fix(web): add Agent Inbox + Day Planner links to Dashboard navbar with feature flag gates
This commit is contained in:
parent
a9361b44bb
commit
5dd0a18221
@ -11,7 +11,7 @@ import { CreateTimerModal } from './CreateTimerModal';
|
|||||||
import { AlarmOverlay } from './AlarmOverlay';
|
import { AlarmOverlay } from './AlarmOverlay';
|
||||||
import { requestNotificationPermission } from '@/lib/notifications';
|
import { requestNotificationPermission } from '@/lib/notifications';
|
||||||
import { formatTime, formatDate } from '@/lib/format';
|
import { formatTime, formatDate } from '@/lib/format';
|
||||||
import { Plus, Clock, Bell, Keyboard, Sun, Moon, Settings, Eye, BarChart3, ListChecks, Cloud, CloudOff, Loader2 } from 'lucide-react';
|
import { Plus, Clock, Bell, Keyboard, Sun, Moon, Settings, Eye, BarChart3, ListChecks, Cloud, CloudOff, Loader2, Bot, CalendarDays } from 'lucide-react';
|
||||||
import { useSync } from '@/lib/use-sync';
|
import { useSync } from '@/lib/use-sync';
|
||||||
import { isEnabled as isFlagEnabled } from '@/lib/feature-flags';
|
import { isEnabled as isFlagEnabled } from '@/lib/feature-flags';
|
||||||
import { BUILT_IN_CATEGORIES, matchesCategory } from '@/lib/categories';
|
import { BUILT_IN_CATEGORIES, matchesCategory } from '@/lib/categories';
|
||||||
@ -185,6 +185,28 @@ export function Dashboard() {
|
|||||||
<ListChecks size={18} />
|
<ListChecks size={18} />
|
||||||
</Link>
|
</Link>
|
||||||
) : null}
|
) : null}
|
||||||
|
{isFlagEnabled('agent_inbox.enabled') ? (
|
||||||
|
<Link
|
||||||
|
href="/inbox"
|
||||||
|
className="p-2 rounded-lg transition-colors"
|
||||||
|
style={{ color: 'var(--cm-text-tertiary)' }}
|
||||||
|
title="Agent Inbox"
|
||||||
|
aria-label="Agent Inbox"
|
||||||
|
>
|
||||||
|
<Bot size={18} />
|
||||||
|
</Link>
|
||||||
|
) : null}
|
||||||
|
{isFlagEnabled('day_planner.enabled') ? (
|
||||||
|
<Link
|
||||||
|
href="/planner"
|
||||||
|
className="p-2 rounded-lg transition-colors"
|
||||||
|
style={{ color: 'var(--cm-text-tertiary)' }}
|
||||||
|
title="Day Planner"
|
||||||
|
aria-label="Day Planner"
|
||||||
|
>
|
||||||
|
<CalendarDays size={18} />
|
||||||
|
</Link>
|
||||||
|
) : null}
|
||||||
<Link
|
<Link
|
||||||
href="/history"
|
href="/history"
|
||||||
className="p-2 rounded-lg transition-colors"
|
className="p-2 rounded-lg transition-colors"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user