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
fix: keep disabled app tabs reachable by URL
[._.]/ Adam Eivy48172b5f92aa
diff --git a/client/src/components/apps/AppDetailView.jsx b/client/src/components/apps/AppDetailView.jsxindex f2956cdcd9..6625ac1a7c 100644--- a/client/src/components/apps/AppDetailView.jsx+++ b/client/src/components/apps/AppDetailView.jsx@@ -220,8 +220,11 @@ export default function AppDetailView() {setViteHostStatus((prev) => prev ? { ...prev, hostAllowed: true } : prev);};- const visibleTabs = useMemo(() => APP_DETAIL_TABS.filter((entry) => {- if (entry.visibleWhen && !entry.visibleWhen(app)) return false;+ const availableTabs = useMemo(() => APP_DETAIL_TABS.filter((entry) => (+ !entry.visibleWhen || entry.visibleWhen(app)+ )), [app]);++ const visibleTabs = useMemo(() => availableTabs.filter((entry) => {if (!entry.feature) return true;// A feature read is ancillary to the app detail request. Keep tabs visible// during loading or a failed read so a transient settings outage cannot@@ -231,7 +234,7 @@ export default function AppDetailView() {? undefined: globalFeature?.enabled;return isAppFeatureEnabled(app, entry.feature, globalEnabled);- }), [app, instanceFeatures, instanceFeaturesError]);+ }), [app, availableTabs, instanceFeatures, instanceFeaturesError]);if (loading) {return (@@ -250,7 +253,10 @@ export default function AppDetailView() {);}- const effectiveTab = visibleTabs.some(t => t.id === activeTab) ? activeTab : 'overview';+ // Feature flags gate the tab bar, not routes. Keep an explicitly requested+ // feature tab renderable for bookmarked/direct URLs even when it is hidden+ // from browse navigation; structural availability still rejects stale tabs.+ const effectiveTab = availableTabs.some(t => t.id === activeTab) ? activeTab : 'overview';const renderTab = () => {switch (effectiveTab) {diff --git a/client/src/components/apps/AppDetailView.test.jsx b/client/src/components/apps/AppDetailView.test.jsxindex db86ed9411..678c595fbb 100644--- a/client/src/components/apps/AppDetailView.test.jsx+++ b/client/src/components/apps/AppDetailView.test.jsx@@ -53,7 +53,7 @@ vi.mock('./tabs/JiraTab', () => ({ default: () => null }));vi.mock('./tabs/ProcessesTab', () => ({ default: () => null }));vi.mock('./tabs/ReferencesTab', () => ({ default: () => null }));vi.mock('./tabs/SubmodulesTab', () => ({ default: () => null }));-vi.mock('./tabs/DatadogTab', () => ({ default: () => null }));+vi.mock('./tabs/DatadogTab', () => ({ default: () => <div data-testid="datadog-tab" /> }));vi.mock('./tabs/UpdateTab', () => ({ default: () => null }));import * as api from '../../services/api';@@ -73,9 +73,9 @@ function LocationProbe() {return <output data-testid="location">{pathname}</output>;}-function renderDetail() {+function renderDetail(initialEntry = '/apps/app-1/overview') {return render(- <MemoryRouter initialEntries={['/apps/app-1/overview']}>+ <MemoryRouter initialEntries={[initialEntry]}><LocationProbe /><Routes><Route path="/apps/:appId/:tab" element={<AppDetailView />} />@@ -154,4 +154,18 @@ describe('AppDetailView managed-app feature tabs', () => {expect(screen.getByRole('button', { name: 'JIRA' })).toBeInTheDocument();expect(screen.queryByRole('button', { name: 'GSD' })).toBeNull();});++ it('keeps a disabled feature tab reachable from a direct URL', async () => {+ instanceFeatureMock.features = [+ { id: 'datadog', enabled: false },+ { id: 'jira', enabled: false },+ { id: 'gsd', enabled: false },+ ];++ renderDetail('/apps/app-1/datadog');++ await screen.findByRole('heading', { name: 'Example App' });+ expect(screen.queryByRole('button', { name: 'DataDog' })).toBeNull();+ expect(screen.getByTestId('datadog-tab')).toBeInTheDocument();+ });});