Guard product creation with the signed-in dashboard#225

draft1
v2
orch/2026-07-18T08-42-00-926Z-2efb3c4e/issue200-author
openedJul 18, 2026byAAviddaram
View on GitHubTwo-way sync enabledPR last imported 20d ago

Summary

  • move the existing product-create file route beneath the pathless signed-in dashboard parent
  • regenerate the TanStack route tree through the Vite build
  • preserve /products/add and the existing form/save implementation

Verification

  • bun run --cwd apps/admin build
  • bun run --cwd apps/admin check-types
  • generated tree changes the product-add parent from root to _dash; no other route-parent changes
  • signed-out desktop and mobile navigation to /products/add redirected to /login before the form rendered

Remaining proof

  • Signed-in browser proof requires an operator-provided approved User session. The available browser profile had no authenticated Google/admin session, so this PR remains draft until that proof can be observed.

Addresses #200

Note

Move product creation route under the signed-in /_dash layout

Moves products.add.tsx from the root route namespace into /_dash, so the add-product page now inherits the authenticated dashboard layout and context. The route ID changes from /products/add to /_dash/products/add and the generated routeTree.gen.ts is updated accordingly.

Macroscope summarized c7519c4.

Checks

4 successful · 1 skipped
All checks passed
9869adc

Added 1 commit

  • fix(admin): guard product creation route9869adc
Synced from GitHub

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

yaml
1reviews:
2 auto_review:
3 drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.