Skip to content

Give the catalog and charts views their own routes - #10

Merged
puppe1990 merged 1 commit into
mainfrom
feat/catalog-charts-routes
Sep 19, 2026
Merged

puppe1990 merged 1 commit into
mainfrom
feat/catalog-charts-routes

Conversation

@puppe1990

Copy link
Copy Markdown
Owner

Catalog and charts were tabs toggled by local Svelte state, so neither view had its own URL (no shareable link, no back/forward).

Routes

Route View
/u/{login} catalog (personal)
/u/{login}/charts charts (personal)
/u/{login}/all catalog (all)
/u/{login}/all/charts charts (all)
/u/{login}/orgs/{org} catalog (org)
/u/{login}/orgs/{org}/charts charts (org)

Changes

  • HomeHandler passes the active view as an Inertia prop; the charts variants reuse the same loaders (no duplicate fetch).
  • Tabs become Inertia links built from the current source; the old view local state is gone.

Verification

  • go test ./... → ok (new tests for the default view and the three charts routes)
  • npm run test:fe → 42 passed
  • vite build → ok

Catalog and charts were two tabs toggled by local state, so neither view
had a URL of its own: no shareable link, no back/forward between them.

Add /u/{login}/charts, /u/{login}/all/charts, and
/u/{login}/orgs/{org}/charts next to the catalog routes. The handler
passes the active view as an Inertia prop and the tabs become links, so
each view now maps to a route.
@puppe1990
puppe1990 merged commit 3177c8b into main Sep 19, 2026
4 checks passed
@puppe1990
puppe1990 deleted the feat/catalog-charts-routes branch September 19, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant