Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(nav): restore missing navigation items in collapsed rail

Steven Enamakelc61d1fe58489
diff --git a/app/src/AppRoutes.tsx b/app/src/AppRoutes.tsx
index 864011cb72..04974a64ed 100644
--- a/app/src/AppRoutes.tsx
+++ b/app/src/AppRoutes.tsx
@@ -214,7 +214,6 @@ const AppRoutes = ({ location }: AppRoutesProps = {}) => {
first-level module — redirect surviving deep links to /flows. */}
<Route path="/routines" element={<Navigate to="/flows" replace />} />
-
{/* Installed SKILL.md workflows remain a separate runtime surface from
visual Flows. Keep the legacy top-level hub reachable. */}
<Route
diff --git a/app/src/components/layout/shell/CollapsedNavRail.test.tsx b/app/src/components/layout/shell/CollapsedNavRail.test.tsx
index a98fbedae4..7d8090c5fe 100644
--- a/app/src/components/layout/shell/CollapsedNavRail.test.tsx
+++ b/app/src/components/layout/shell/CollapsedNavRail.test.tsx
@@ -1,7 +1,6 @@
import { fireEvent, screen } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi } from 'vitest';
-import { registry } from '../../../lib/commands/registry';
import { renderWithProviders } from '../../../test/test-utils';
import CollapsedNavRail from './CollapsedNavRail';
@@ -16,6 +15,8 @@ vi.mock('./useHomeNav', () => ({ useHomeNav: () => mockHome }));
// Deterministic labels: render the i18n key so queries don't depend on locale.
vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (k: string) => k }) }));
vi.mock('../../../services/analytics', () => ({ trackEvent: vi.fn() }));
+const openUrl = vi.fn().mockResolvedValue(undefined);
+vi.mock('../../../utils/openUrl', () => ({ openUrl: (...args: unknown[]) => openUrl(...args) }));
describe('CollapsedNavRail', () => {
beforeEach(() => vi.clearAllMocks());
diff --git a/app/src/components/layout/shell/CollapsedNavRail.tsx b/app/src/components/layout/shell/CollapsedNavRail.tsx
index 5735fb9aba..e158ed9ea0 100644
--- a/app/src/components/layout/shell/CollapsedNavRail.tsx
+++ b/app/src/components/layout/shell/CollapsedNavRail.tsx
@@ -1,13 +1,13 @@
-import { FaDiscord } from 'react-icons/fa6';
import { useMemo } from 'react';
+import { FaDiscord } from 'react-icons/fa6';
import { useLocation, useNavigate } from 'react-router-dom';
import { NAV_TABS, type NavTab } from '../../../config/navConfig';
import { useT } from '../../../lib/i18n/I18nContext';
-import { openUrl } from '../../../utils/openUrl';
import { trackEvent } from '../../../services/analytics';
import { useAppSelector } from '../../../store/hooks';
import { selectUnreadCount } from '../../../store/notificationSlice';
+import { openUrl } from '../../../utils/openUrl';
import {
SidebarMenu,
SidebarMenuBadge,
diff --git a/app/src/config/__tests__/navConfig.test.ts b/app/src/config/__tests__/navConfig.test.ts
index b205aa917b..cd507ddddc 100644
--- a/app/src/config/__tests__/navConfig.test.ts
+++ b/app/src/config/__tests__/navConfig.test.ts
@@ -12,12 +12,7 @@ describe('NAV_TABS', () => {
});
it('has the correct paths', () => {
- expect(NAV_TABS.map(t => t.path)).toEqual([
- '/chat',
- '/brain',
- '/flows',
- '/connections',
- ]);
+ expect(NAV_TABS.map(t => t.path)).toEqual(['/chat', '/brain', '/flows', '/connections']);
});
it('has the correct labelKeys', () => {