refactor: implement new layout structure for search space and user settings with clear ownership

This commit is contained in:
Anish Sarkar 2026-05-19 01:04:59 +05:30
parent 22f6b9dfe4
commit d129ddd8f7
34 changed files with 560 additions and 586 deletions

View file

@ -659,8 +659,8 @@ export function LayoutDataProvider({ searchSpaceId, children }: LayoutDataProvid
// Detect if we're on the chat page (needs overflow-hidden for chat's own scroll)
const isChatPage = pathname?.includes("/new-chat") ?? false;
const isUserSettingsPage = pathname?.endsWith("/user-settings") === true;
const isSearchSpaceSettingsPage = pathname?.endsWith("/search-space-settings") === true;
const isUserSettingsPage = pathname?.includes("/user-settings") === true;
const isSearchSpaceSettingsPage = pathname?.includes("/search-space-settings") === true;
const useWorkspacePanel =
pathname?.endsWith("/buy-more") === true ||
pathname?.endsWith("/more-pages") === true ||