Repository navigation
Admin: staff pages for role holders only, one Renewals page, Sharing inside Requests - #3462
Conversation
…e, tidy Numbers Hospital and People and roles no longer show to signed-out visitors (example data switched on still opens them). Workforce redirects to Hospital, whose Medical Workforce section is the live version. Sharing leaves Admin's menu while not live. Therapy's Review tab shows only to the site administrator or on its own page. Numbers drops the empty Support card and the duplicate On site tiles. Day one check points to the real sharing switch in New job. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRAKeUNKFmnQHMbMmnHWDW
Compliance becomes Renewals' By group view (Soonest / By group / Personal), with its Export and before-your-next-job list; /admin/compliance redirects there. Renewals' at-a-glance counts become four compact tiles. Sharing becomes Requests' "Send a pack" view and says plainly that you send it yourself; /admin/sharing redirects there. Admin's menu drops Compliance and Export and leads with Requests. Approved by Josh from real-app screenshots on 11 Oct 2026. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRAKeUNKFmnQHMbMmnHWDW
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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. Comment |
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
There was a problem hiding this comment.
BigSimmo has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
…inistrator Hiding it now would hide it from the owner as well, since no account carries the site administrator role yet. The administrators audience stays ready to switch on. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRAKeUNKFmnQHMbMmnHWDW
🏁 CodeAnt Quality Gate ResultsCommit: ✅ Overall Status: PASSEDQuality Gate Details
|
Merging this PR will not alter performance
|
PR Summary by QodoAdmin: gate staff pages to role holders, merge Renewals/Compliance and Requests/Sharing
AI Description
Diagram
High-Level Assessment
Files changed (30)
|
Qodo FixerNo findings are available for this PR yet. Findings appear here once Qodo has reviewed the PR. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1f11df418c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Code Review by Qodo
No findings for this group No findings for this group No findings for this group Resolved findings 1.
|
CodeAnt Nitpicks5 code suggestions1. The
|
CodeAnt PR Risk: Low Risk
Assessed commit: |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRAKeUNKFmnQHMbMmnHWDW
|
Code review by qodo was updated up to the latest commit de7520e |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRAKeUNKFmnQHMbMmnHWDW
|
Code review by qodo was updated up to the latest commit 859d652 |
|
CodSpeed flags
I can't re-run a CodSpeed check from here. The owner can acknowledge the result on CodSpeed if it blocks the merge. Generated by Claude Code |
|
Unit coverage partition (1) failed on 619efb1 with one test: This isn't from this PR:
There's no fix on main yet. A longer-term fix would be to loosen that timing limit under coverage, but that belongs in its own PR. I'll re-run the failed job once when the current run finishes. Generated by Claude Code |
The clinical side menu imported its counts loader from the module that lazy-loads the side menus, closing an import cycle back to itself; the loader now has its own module. The tablet rail test still expected Tools and no Psychiatry after the More modes regroup. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRAKeUNKFmnQHMbMmnHWDW
|
Two checks went red on Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRAKeUNKFmnQHMbMmnHWDW
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Staff-page menu gating could hide Hospital navigation from role holders if role detection fails; Compliance and Sharing URLs now redirect to merged screens. Admin staff pages are now limited to role holders, with Renewals consolidating Compliance and Sharing moved inside Requests as a "Send a pack" view. The resolved finding: choosing Done from Send a pack no longer flips the tab back to Open, and a new test covers that ordering. No open issues found.
✅ 1 closed✅ Bug: Choosing Done from Send a pack flips the tab back to Open
Review coverage🤖 Auto-approval Approved 📋 Rules No rules evaluated 🧪 Functional validation Not enabled · Set up OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
User description
Requested by Josh · project thread
Summary
Before: signed-out visitors saw Hospital and People and roles and hit a sign-in dead end; Workforce was an unguarded sample shown to every doctor; Renewals, Compliance and Documents listed the same requirements; Sharing said "Not live yet"; Numbers showed an empty Support card and repeated its On site items.
After: staff-only pages show only to role holders (or with example data switched on); Workforce redirects to Hospital, whose Medical Workforce section is the live version; Compliance is Renewals' "By group" view with its Export; Sharing is Requests' "Send a pack" view; Numbers drops the empty card and duplicate tiles; Day one check points to the real sharing switch in New job.
How: one gate change in
use-work-frame-gate-open.ts, Admin menu entries inareas.ts, and the old Compliance, Sharing and Workforce routes become redirects (allowlisted in route reachability). Mode navigation gains anaudience: "administrators"option, not yet applied: Therapy's Review tab stays visible until the owner's account carries the site administrator role, because hiding it now would hide it from the owner too. The Renewals and Requests merge was approved by Josh from real-app screenshots on 11 Oct 2026 (usefulness and layout audit, items 1 and 4).Areas touched: Personal practice, App experience, Design system, Prototypes
Verification
npm run test:focusedon every changed file:Tests 2901 passed (2901);tests/mode-secondary-navigation.test.tsafter the Review change:Tests 59 passed (59). ESLint on changed files andtsc --noEmitclean. Real-app screenshots at 320, 390 and 1440 px in container Chromium (focused visual check only; the browser suite is left to CI).Risk and rollout
Notes
🤖 Generated with Claude Code
https://claude.ai/code/session_01VRAKeUNKFmnQHMbMmnHWDW
CodeAnt-AI Description
Bring Admin renewals and sharing together, while limiting staff-page visibility
What Changed
Impact
✅ Renewals and compliance in one place✅ Send-a-pack options alongside tracked requests✅ Fewer dead-end visits to staff pages💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.