Summary
Expand the admin policy page from editing existing tier values into a complete resource and access policy management workflow.
Current Behaviour
The admin policy page lists existing policies and allows changing minTier, but it does not expose resource metadata, role requirements, create/delete flows, validation, or detailed save feedback.
Expected Behaviour
Admins should be able to view resources, create or edit policies, configure minimum tier and roles, and understand whether changes were saved successfully.
Suggested Implementation
Extend the AccessApi interface to include resource and policy management operations. Update mock and live clients. Build a form-driven admin workflow with validation, optimistic updates or clear pending states, and error handling.
Files or Areas Likely Affected
app/admin/policies/page.tsx
lib/api/types.ts
lib/api/live.ts
lib/api/mock.ts
components/ui/
README.md
Acceptance Criteria
Additional Notes
Keep this aligned with the MVP admin dashboard. Do not add complex governance or analytics features in this issue.
Summary
Expand the admin policy page from editing existing tier values into a complete resource and access policy management workflow.
Current Behaviour
The admin policy page lists existing policies and allows changing
minTier, but it does not expose resource metadata, role requirements, create/delete flows, validation, or detailed save feedback.Expected Behaviour
Admins should be able to view resources, create or edit policies, configure minimum tier and roles, and understand whether changes were saved successfully.
Suggested Implementation
Extend the
AccessApiinterface to include resource and policy management operations. Update mock and live clients. Build a form-driven admin workflow with validation, optimistic updates or clear pending states, and error handling.Files or Areas Likely Affected
app/admin/policies/page.tsxlib/api/types.tslib/api/live.tslib/api/mock.tscomponents/ui/README.mdAcceptance Criteria
Additional Notes
Keep this aligned with the MVP admin dashboard. Do not add complex governance or analytics features in this issue.