Skip to content

Build a real resource and policy management workflow #18

@Lakes41

Description

@Lakes41

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

  • Admins can view resource metadata and current policy settings
  • Admins can configure minimum tier and allowed roles
  • Invalid policy configurations are rejected before submission
  • Save success and failure states are visible
  • Mock mode supports create, update, and reset-style policy workflows
  • Live mode maps requests to documented backend endpoints

Additional Notes

Keep this aligned with the MVP admin dashboard. Do not add complex governance or analytics features in this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions