Add admin queue assignment - #322
Open
azahjessica49-commits wants to merge 2 commits into
Open
Conversation
|
@azahjessica49-commits 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! 🚀 |
Author
|
Done, close: #322 |
Author
|
kindly merge PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close: #260
I've successfully implemented admin queue assignment functionality. Here's what was completed:
Data Model Changes
Added assignedTo and assignedAt fields to VerificationRequest type in verification.service.ts
Added assignedTo and assignedAt fields to ReviewReport type in review.ts
Service Layer
Added assignRequest() and unassignRequest() methods to verification.service.ts
Added assignReport() and unassignReport() methods to review-report.service.ts
Added getter methods for assigned/unassigned requests and reports
Audit Logging
Added new audit actions: verification_assigned, verification_unassigned, report_assigned, report_unassigned to audit-log.ts
Updated audit log service to validate the new actions
All assignment changes are now logged with actor, target, and metadata
UI Implementation
Added filter buttons (All, Assigned to me, Unassigned) for both verification requests and review reports
Added assignment controls with smart button states:
"Assign to me" for unassigned items
"Reassign to me" for items assigned to others
"Unassign" for items assigned to current admin
Visual badges showing assignment status with truncated admin addresses
Filters properly filter the displayed items based on assignment state
Acceptance Criteria Met
✅ Admins can assign requests to themselves or another admin
✅ Queue filters include assigned to me and unassigned
✅ Assignment changes are audit logged