pelagia-portal/App/app/(portal)
Hardik a16f418e71 fix(admin): guard user deletion against all FK constraints
The delete action was only checking for submitted POs, leaving POAction
(actorId) and ItemConsumption (recordedById) to throw FK constraint
errors at the DB level. Now returns a clear error for each case and
also cleans up SuperUserRequest rows (requester + resolver) inside the
transaction before deleting.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 23:20:18 +05:30
..
admin fix(admin): guard user deletion against all FK constraints 2026-05-28 23:20:18 +05:30
approvals fix(po): tighten filters and export data 2026-05-22 17:15:03 +05:30
dashboard feat(my-orders): rename to Closed Purchase Orders, show only closed POs 2026-05-27 04:21:53 +05:30
history fix(po): tighten filters and export data 2026-05-22 17:15:03 +05:30
inventory chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
my-orders feat(po): show note author name on manager note banners 2026-05-27 04:41:53 +05:30
payments fix(ui): use defined theme colors for danger/warning buttons 2026-05-27 13:11:10 +05:30
po feat(po): show note author name on manager note banners 2026-05-27 04:41:53 +05:30
profile feat(auth): add Microsoft 365 SSO via Azure Entra ID 2026-05-28 22:48:37 +05:30
layout.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30