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

@ -149,7 +149,7 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS
size="icon"
onClick={() =>
router.push(
`/dashboard/${thread.search_space_id}/search-space-settings?tab=public-links`
`/dashboard/${thread.search_space_id}/search-space-settings/public-links`
)
}
className="size-8 bg-muted/50 hover:bg-accent hover:text-accent-foreground"

View file

@ -72,7 +72,7 @@ export const PromptPicker = forwardRef<PromptPickerRef, PromptPickerProps>(funct
if (index === createPromptIndex) {
onDone();
if (searchSpaceId) {
router.push(`/dashboard/${searchSpaceId}/user-settings?tab=prompts`);
router.push(`/dashboard/${searchSpaceId}/user-settings/prompts`);
}
return;
}