Skip to content

Project switcher: real create dialog and soft navigation #84

Description

@ApocDev

Creating a project — the app's front door — currently runs through a raw window.prompt for the name, then a full window.location.assign page reload to /settings?tab=data (components/project-switcher.tsx). Switching projects also forces a full reload.

What to do

  • Replace the prompt with a proper create dialog (name field, maybe a short blurb about what a project is), consistent with the rest of the shadcn UI.
  • After create, navigate with the router and invalidate queries instead of a hard reload; same for switching projects, if the active-project state can be swapped without tearing the page down. If a hard reload is genuinely required by how the server pins the active project db, document that constraint in the code and keep the reload — but the prompt still goes.

Part of the polish epic #35.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: webWeb UI (React/TanStack/vite-plus)enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions