skill-agency-views
Installation
SKILL.md
Objective
Build role-specific views for Multi-Agency Plan users:
- Agency Owner (Super Admin): Management dashboard with 10 caregivers, 30 elders, scheduling, timesheets
- Agency Caregiver: Multi-elder quick-switch view with shift context
These views use the same layout system (bottom nav + icon rail) but show different content based on role.
Constraints
- DO NOT modify Firestore rules (already support all needed queries)
- DO NOT modify existing caregiver/elder assignment logic
- MUST use existing
caregiver_assignmentscollection for data - MUST use existing scheduling collections (
scheduledShifts,shiftSessions) - MUST reuse layout components from skill-layout-system
- MUST show role-appropriate data only (use existing RBAC checks)
- Agency features only visible when
subscription.plan === 'multi-agency'