Skip to content

feat: add compliance mros list screen#1061

Merged
TaprootFreak merged 3 commits intodevelopfrom
feat/compliance-mros-list
Apr 23, 2026
Merged

feat: add compliance mros list screen#1061
TaprootFreak merged 3 commits intodevelopfrom
feat/compliance-mros-list

Conversation

@TaprootFreak
Copy link
Copy Markdown
Collaborator

Summary

  • New route /compliance/mros listing all MROS reports in a table with all columns (ID, Created, Updated, UserData ID, Status, Submission Date, Authority Reference, Case Manager)
  • Guarded by useComplianceGuard — accessible for COMPLIANCE + ADMIN + SUPER_ADMIN
  • DTOs in src/dto/mros.dto.ts (consistent with src/dto/order.dto.ts and src/dto/recall.dto.ts)
  • useCompliance hook extended with getMrosList() calling GET /mros

Dependency

  • Backend release PR Release: develop -> main api#3611 must be merged and deployed to api.dfx.swiss first — that release contains the MROS module with GET /mros endpoint on UserRole.COMPLIANCE guard. Until deployed, this screen will show a 404 error.

Test plan

  • Wait for Release: develop -> main api#3611 to be merged and live on api.dfx.swiss
  • Log in as COMPLIANCE user, navigate to /compliance/mros
  • Verify all MROS entries are shown with all columns
  • Non-compliance user → redirected away (guard)
  • Empty state message when no MROS entries exist

New route /compliance/mros with a table of all MROS reports (all columns:
ID, Created, Updated, UserData ID, Status, Submission Date, Authority
Reference, Case Manager). Guarded by compliance role. DTOs in
src/dto/mros.dto.ts, fetched via mros endpoint added in the API repo.
DRAFT = gray, SUBMITTED = blue, CONFIRMED = green, CLOSED = dark gray.
Uses the same badge pattern as compliance-custody-orders.screen.tsx.
@TaprootFreak TaprootFreak merged commit 63e4595 into develop Apr 23, 2026
6 checks passed
@TaprootFreak TaprootFreak deleted the feat/compliance-mros-list branch April 23, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants