fix: update sidebar routing for coordinator pages#4718
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the access control logic in SidebarPage.tsx to restrict access to the dashboard, devices, and resources pages based on the field coordinator role. The review feedback correctly identifies a redundant and potentially problematic check where dashboardPath is evaluated both within the request page access block and as a standalone check, and provides a code suggestion to resolve this issue.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d59787a178
ℹ️ 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".
Summary
This PR updates OPS sidebar routing for Field Coordinator users by fixing Dashboard navigation.
Changes
SidebarPage.tsxfor readability.