Skip to content

[Feature] UI: Add archive action to StatusesPage (admin-only) #123

@mpaulosky

Description

@mpaulosky

Summary

StatusesPage.razor shows a grid with Edit actions but has no way to archive or delete a status. Once the API endpoint exists (see #121), this UI work adds the archive action — admin-only, with confirmation.

Context

Mirrors the Categories archive UI work (see #122). The page uses RadzenDataGrid with inline edit; the action column currently has only an Edit button.

Work Required

Archive Button

  • Add an "Archive" button to the action column — visible only to admins (AuthorizeView Policy="Admin")
  • Wire to HandleArchive(string id) method

Confirmation Dialog

  • Use the existing ConfirmDialog component before submitting
  • Text: "Archive '[StatusName]'? Issues with this status will need to be reassigned."

API Call + Feedback

  • Call StatusApiClient.ArchiveAsync(id) (add this method to the client)
  • On success: remove the row from the grid (optimistic UI)
  • On failure: show error notification

Acceptance Criteria

  • Archive button visible to admins only
  • Confirmation dialog shown before archiving
  • Confirmed archive calls DELETE API and removes item from grid
  • Non-admin users cannot trigger the action
  • Error state handled

Files

  • src/Web/Components/Features/Statuses/StatusesPage.razor
  • src/Web/Components/Features/Statuses/StatusApiClient.cs

Depends On

Metadata

Metadata

Assignees

No one assigned

    Labels

    go:yesReady to implementpriority:p2Next sprintrelease:backlogNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a membersquad:legolasAssigned to Legolas (Frontend Dev)type:featureNew capability

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions