Skip to content

Box Request List Page (Admin) #25

@raystorm

Description

@raystorm

User Story

As an admin
I want to view a list of all pending box requests
So that I can review and manage requests efficiently

Acceptance Criteria

Given I am an admin user
When I navigate to the Box Request List page
Then I see all pending box requests with key information
And I can access this page from the AppBar menu
And non-admin users cannot access this page

Scenario: Request list display
  Given there are pending box requests
  When I view the Box Request List page
  Then I see for each request:
    - Requester name
    - Requested box name
    - Purpose/description
    - Request date
    - Current status
  And I can click to view full request details

Technical Tasks

  • Create BoxRequestListPage component
  • Add admin-only route /admin/box-requests
  • Add "Box Requests" menu item to AppBar (admin only)
  • Implement admin authorization check
  • Create listBoxRequests GraphQL query
  • Display requests in MUI DataGrid
  • Add navigation to request detail page
  • Add loading and error states
  • Test admin-only access

Implementation Notes

  • Use existing admin flag check (admin=true on User object)
  • Follow existing page patterns (UserListPage, etc.)
  • Static URL: /admin/box-requests
  • Menu item only visible to admin users
  • Consider adding filters (status, date range)

Related

  • Epic Box display  #2: Request & Approval Workflow
  • Story: Box Request Detail Page
  • Story: Box Request Status Page

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions