modcomms/frontend/components
michael 05e74becfe Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management
- Add UserRole type and AppUser interface to types.ts
- Create UserContext with useUser() hook providing role-based permission booleans
- Split App into App (auth wrapper) + AppContent (uses UserContext)
- Update Sidebar to filter nav items by UserRole instead of boolean isAdmin
- Add User Management nav item (super_admin only)
- Add AgencyFilterBar component for oversight_admin/super_admin session-level filtering
- Pass agencyId to getCampaigns, getAnalytics, audit endpoints in apiService
- Add getMe, getUsers, updateUser, createAgency to apiService
- Build UserManagement page with user table (role/agency dropdowns) and agency CRUD
- Add readOnly prop to Campaigns (hides create/delete/status-toggle for oversight_admin)
- Add readOnly prop to Settings (disables all ManagementCards, shows view-only banner)
- Pass agencyId to Analytics component for filtered data
- Update urlState with Knowledge Base and User Management views

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 08:36:38 -06:00
..
icons Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00
AgencyFilterBar.tsx Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management 2026-02-19 08:36:38 -06:00
Analytics.tsx Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management 2026-02-19 08:36:38 -06:00
AssetPreview.tsx Replace 'asset' with 'proof' in user-facing UI text 2026-01-27 15:45:48 -06:00
Auditing.tsx Fix Resolutions tab Proof Name to use blue link styling 2026-02-12 14:09:19 -06:00
Campaigns.tsx Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management 2026-02-19 08:36:38 -06:00
ChecksOverview.tsx UI overhaul: white backgrounds, flat design, teal hero, sidebar flush-left nav 2026-02-05 16:53:03 -06:00
CopyGenAI.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
CreateCampaignModal.tsx Implement Barclays design system UI update 2026-01-27 13:50:46 -06:00
CreateProjectModal.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
FeedbackReport.tsx Fix resolved items not persisting in proof report UI after refresh 2026-02-16 07:39:34 -06:00
Header.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
Hero.tsx Remove 'View Documentation' button from Hero section 2026-02-12 11:33:15 -06:00
KnowledgeBase.tsx Show partial parse status in UI when some pages fail 2026-02-12 17:51:52 -06:00
LoadingVisual.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
Login.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
PDFReport.tsx Adjust status pill padding: 0 top, 13px bottom 2026-01-27 15:21:24 -06:00
Profile.tsx UI overhaul: white backgrounds, flat design, teal hero, sidebar flush-left nav 2026-02-05 16:53:03 -06:00
Projects.tsx Fix retry reprocessing all proofs instead of just the failed one 2026-02-12 18:15:09 -06:00
ProofPreview.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
ProofTypeManager.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
ProofUpload.tsx Replace 'asset' with 'proof' in user-facing UI text 2026-01-27 15:45:48 -06:00
Settings.tsx Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management 2026-02-19 08:36:38 -06:00
Sidebar.tsx Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management 2026-02-19 08:36:38 -06:00
StatusDashboard.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
ToggleSwitch.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
UserManagement.tsx Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management 2026-02-19 08:36:38 -06:00
WIPReviewer.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00