feat(admin): users page; document audit-logs, submit endpoint, verification history - #1215
Conversation
… verification history - Add admin users page listing users with role/verification and role/suspend actions (closes CodeGirlsInc#932) - Document the admin audit-logs page (columns, filters, admin-only access) (closes CodeGirlsInc#934) - Document the real POST /submit anchoring handler (closes CodeGirlsInc#936) - Document verification-history population via the history:{hash} cache key (closes CodeGirlsInc#941)
|
@RUKAYAT-CODER is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@RUKAYAT-CODER Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
mftee
left a comment
There was a problem hiding this comment.
Reviewed. Two clear contract docs (CT-31 submit endpoint, CT-36 verification history) that accurately describe the existing lib.rs handlers, plus a new admin Users page (FE-61) with a real GET /admin/users fetch, loading/empty states, and route guarded under (protected)/admin per FE-44. Table renders correctly for name/email/role/verification.
One non-blocking note for a follow-up: the 'Change role · Suspend' actions column is currently static text, not wired to the PATCH/DELETE endpoints the docs describe — fine to land now, but worth a fast-follow PR to make those actionable.
Approving.
Small, focused changes.
/admin/userslisting users with role and verification status (fromGET /admin/users), with role-change and suspend/delete actions; admin-only under(protected)/admin. Closes [FE-61] Build /admin/users page #932routePath/httpMethod/ipAddress/createdAtcolumns, userId + date-range filters, admin-only. Closes [FE-63] Build /admin/audit-logs page #934State<AppState>, hash validation, idempotent cache, Stellar anchoring, metrics). Closes [CT-31] Implement real POST /submit handler in the Rust verifier #936history:{hash}is populated and read byGET /verify/:hash/history. Closes [CT-36] Populate verification history — nothing currently writes to the history:{hash} cache key #941Closes #932
Closes #934
Closes #936
Closes #941