Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (claude): reveal collapsed LLM section when the provider gate blocks Enable-all
Adam Eivy006837cdfa6c
diff --git a/client/src/components/meatspace/post/PostDrillConfig.jsx b/client/src/components/meatspace/post/PostDrillConfig.jsxindex 496dcbbd14..2c3bee0716 100644--- a/client/src/components/meatspace/post/PostDrillConfig.jsx+++ b/client/src/components/meatspace/post/PostDrillConfig.jsx@@ -620,6 +620,10 @@ export default function PostDrillConfig({ config, onSaved, onBack }) {// gate). Disabling never calls a provider, so it's unguarded.function setAllLlmEnabled(enabled) {if (enabled && !llmProviderId) {+ // Reveal the section (without enabling any drills) so the AI Provider+ // picker the toast points at is actually on screen — it renders inside+ // the {llmEnabled && …} block and every preset turns llmEnabled off.+ setLlmEnabled(true);toast.error('Pick an AI provider above before enabling all LLM drills');return;}diff --git a/client/src/components/meatspace/post/PostDrillConfig.test.jsx b/client/src/components/meatspace/post/PostDrillConfig.test.jsxindex 16a3b4b76d..37ee9e5009 100644--- a/client/src/components/meatspace/post/PostDrillConfig.test.jsx+++ b/client/src/components/meatspace/post/PostDrillConfig.test.jsx@@ -357,6 +357,18 @@ describe('PostDrillConfig', () => {expect(toastModule.default.error).toHaveBeenCalled();});+ it('a blocked LLM "Enable all" reveals the collapsed LLM section so the provider picker is visible', () => {+ render(<PostDrillConfig config={config} onSaved={vi.fn()} onBack={vi.fn()} />);+ // Every preset collapses the LLM section; the bulk button stays visible.+ fireEvent.click(screen.getByText('Balanced daily'));+ expect(screen.queryByText('AI Provider')).toBeNull();+ fireEvent.click(screen.getByLabelText('Enable all LLM drills'));+ // The gate blocks the bulk enable (no provider chosen) but opens the+ // section so the "pick a provider above" toast points at a real control.+ expect(screen.getByText('AI Provider')).toBeTruthy();+ expect(screen.getByRole('switch', { name: 'Reframe' }).getAttribute('aria-checked')).toBe('false');+ });+it('LLM "Enable all" enables every LLM drill once a provider is chosen', async () => {getProviders.mockResolvedValue({providers: [{ id: 'prov-1', name: 'Test Provider', type: 'api', enabled: true, models: [] }],