Skip to content

updates - #9

Merged
Aditya2550 merged 1 commit into
mainfrom
phase-5-frontend
Aug 9, 2026
Merged

Aditya2550 merged 1 commit into
mainfrom
phase-5-frontend

Conversation

@Aditya2550

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 9, 2026 18:30
@Aditya2550
Aditya2550 merged commit c7bd892 into main Aug 9, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands access to the Analytics section across the frontend navigation, frontend routing, and backend analytics API authorization so that finance and director roles can view analytics alongside admin and manager.

Changes:

  • Added finance and director to the Analytics nav item role gate in AppLayout.
  • Added finance and director to the /analytics ProtectedRoute role allowlist.
  • Added FINANCE and DIRECTOR to the backend /analytics/summary route authorization.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
frontend/src/components/layout/AppLayout.jsx Expands sidebar Analytics visibility to finance/director roles.
frontend/src/app/router.jsx Expands /analytics route access to finance/director roles via ProtectedRoute.
backend/src/modules/analytics/analytics.routes.js Expands /summary API authorization to include finance/director roles.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants