feat: DashboardShell for all auth pages, site settings modal from home
- layout-content wraps integrations/pricing in DashboardShell - GlassTopBar derives title per page (Integrations, Pricing, etc.) - Site card gear icon opens settings modal with siteId context - Removed delete button from site cards (accessible via site settings) - Extended InitialTab to accept optional siteId for cross-page use
This commit is contained in:
@@ -303,7 +303,11 @@ export default function UnifiedSettingsModal() {
|
||||
useEffect(() => {
|
||||
if (!isOpen || !user?.org_id) return
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
if (initTab?.siteId) {
|
||||
// Site ID passed explicitly (e.g. from home page site card)
|
||||
setActiveSiteId(initTab.siteId)
|
||||
if (!initTab?.context) setContext('site')
|
||||
} else if (typeof window !== 'undefined') {
|
||||
const match = window.location.pathname.match(/\/sites\/([a-f0-9-]+)/)
|
||||
if (match) {
|
||||
setActiveSiteId(match[1])
|
||||
|
||||
Reference in New Issue
Block a user