feat(frontend): add employee moderation dashboard (#69)#118
Merged
pierrick-fonquerne merged 1 commit intodevelopfrom Feb 16, 2026
Merged
feat(frontend): add employee moderation dashboard (#69)#118pierrick-fonquerne merged 1 commit intodevelopfrom
pierrick-fonquerne merged 1 commit intodevelopfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Create ModerationPage with pending characters grid, approve/reject flows - Add ModerationCard, RejectReasonModal, ModerationStats components - Add moderationService with API calls (list, approve, reject) - Add PendingCharacter type matching backend PendingCharacterResponse - Add 'success' variant to Button component using design system tokens - Add menu separators in Header for staff links (desktop + mobile) - Refactor ApiClient to eliminate duplicated fetch/error handling logic - Add patchAuthenticatedWithBody method for PATCH requests with body - Route /moderation protected by ProtectedRoute requiredRole="Employee" - 14 unit tests (loading, display, actions, validation, pagination, a11y)
f19259f to
eed0807
Compare
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.
Summary
/moderationpage with pending characters grid, approve/reject flows, pagination and responsive layoutModerationCard,RejectReasonModal,ModerationStatscomponents with full accessibility (aria-labels, semantic HTML, axe clean)moderationService(list, approve, reject) andPendingCharactertypesuccessvariant toButtoncomponent aligned on design system tokens (success-500/600)Header(desktop dropdown + mobile menu)ApiClientto eliminate duplicated fetch/error handling (281 → 120 lines)Test plan
npm run build— 0 errorsnpm run test— 459 tests pass (14 new)npx tsc --noEmit— 0 errorsCloses #69