Files
Momento/memento-note/lib/dashboard/home-route.ts
Antigravity 30da592ba2
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 7m3s
CI / Deploy production (on server) (push) Successful in 23s
feat(dashboard): tableau de bord Second Brain configurable avec chargement progressif
Briefing granulaire, pistes rapides puis enrichissement async, layout persisté v5,
suggestions agents, intégration Gmail et navigation sidebar alignée sur /home.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 16:50:53 +00:00

18 lines
556 B
TypeScript

/** True when /home shows the Second Brain dashboard (not list, editor, or filters). */
export function isDashboardHomeRoute(
pathname: string,
searchParams: Pick<URLSearchParams, 'get'>,
): boolean {
if (pathname !== '/home') return false
return (
searchParams.get('forceList') !== '1' &&
!searchParams.get('notebook') &&
!searchParams.get('search') &&
!searchParams.get('labels') &&
!searchParams.get('shared') &&
!searchParams.get('reminders') &&
!searchParams.get('color') &&
!searchParams.get('openNote')
)
}