feat(web): path-based account and admin sections#125
Merged
Conversation
Replace hash-panel switching (#workspaces) with file-based routes under shared layouts so sections are real URLs, bookmarkable, and idiomatic Astro.
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (2)
🚫 Excluded labels (none allowed) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
uploads-web | 13488bc | Commit Preview URL Branch Preview URL |
Jul 13 2026, 03:15 PM |
Zach Dunn (zachdunn)
added a commit
that referenced
this pull request
Jul 13, 2026
Port the branch's work onto the #125/#126 restructure: - AccountLayout/AdminLayout adopt BaseHead (DS tokens/fonts/favicon); SITE_FAVICON removed from signed-in-page.ts - signed-in-shell.css drops its :root copy and the side-stripe .status; session-gate blocks render as ul-callout (data-state=error for denied) and each shell gets an sr-only h1 - workspaces.astro: file browsers mount via IntersectionObserver; invite copy buttons announce via aria-live - account-shell.ts taken from main wholesale (hash-panel focus fix is obsolete under path-based navigation)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In plain terms
Account and admin used hash fragments (
/account#workspaces) for sidebar sections. That felt like a mini-SPA glued onto Astro. This switches those sections to real file-based routes (/account/workspaces,/admin/users, …) so URLs are shareable and match how Astro is meant to work.What it does
/account,/account/workspaces,/account/profile,/account/developers/admin,/admin/userssigned-in-pagehelpers (origins, CSP, favicon, console-link visibility)What it is not
#…hashes (intentional)@astrojs/cloudflarewith a custom entry for markdown negotiationHow to try it
/account(overview)./account/workspacesand/admin/users— both should resolve.Technical notes
AccountLayout.astro,AdminLayout.astroonSession/resolveSessionGateinaccount-shell.tsso page scripts do not race the layout gatearia-current="page"on the active nav linkTest plan
pnpm --filter @uploads/web testpnpm --filter @uploads/web typecheckpnpm --filter @uploads/web build