Unified settings modal + dashboard shell redesign #69

Merged
uz1mani merged 107 commits from staging into main 2026-03-26 09:15:33 +00:00
44 changed files with 2760 additions and 357 deletions
Showing only changes of commit b78f5d4b96 - Show all commits

View File

@@ -25,7 +25,7 @@ function usePageTitle() {
const pathname = usePathname() const pathname = usePathname()
// pathname is /sites/:id or /sites/:id/section/... // pathname is /sites/:id or /sites/:id/section/...
const segment = pathname.replace(/^\/sites\/[^/]+\/?/, '').split('/')[0] const segment = pathname.replace(/^\/sites\/[^/]+\/?/, '').split('/')[0]
return PAGE_TITLES[segment] ?? segment.charAt(0).toUpperCase() + segment.slice(1) || 'Dashboard' return PAGE_TITLES[segment] ?? (segment ? segment.charAt(0).toUpperCase() + segment.slice(1) : 'Dashboard')
} }
// Load sidebar only on the client — prevents SSR flash // Load sidebar only on the client — prevents SSR flash