Skip to content

feat(frontend): add employee moderation dashboard (#69)#118

Merged
pierrick-fonquerne merged 1 commit intodevelopfrom
69-dashboard-employe
Feb 16, 2026
Merged

feat(frontend): add employee moderation dashboard (#69)#118
pierrick-fonquerne merged 1 commit intodevelopfrom
69-dashboard-employe

Conversation

@pierrick-fonquerne
Copy link
Copy Markdown
Owner

Summary

  • Create /moderation page with pending characters grid, approve/reject flows, pagination and responsive layout
  • Add ModerationCard, RejectReasonModal, ModerationStats components with full accessibility (aria-labels, semantic HTML, axe clean)
  • Add moderationService (list, approve, reject) and PendingCharacter type
  • Add success variant to Button component aligned on design system tokens (success-500/600)
  • Add staff menu separators in Header (desktop dropdown + mobile menu)
  • Refactor ApiClient to eliminate duplicated fetch/error handling (281 → 120 lines)
  • 14 unit tests covering loading, display, empty, error, retry, approve, reject modal + validation, pagination, a11y

Test plan

  • npm run build — 0 errors
  • npm run test — 459 tests pass (14 new)
  • npx tsc --noEmit — 0 errors
  • E2E Playwright: login Employee → dropdown separators → moderation page → reject modal validation → approve flow → DB verified
  • Responsive: 1 col mobile / 2 col tablet / 3 col desktop
  • Accessibility: axe clean, aria-labels, keyboard navigation

Closes #69

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fantasyrealm-character-manager Ready Ready Preview, Comment Feb 16, 2026 10:22pm

- 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)
@pierrick-fonquerne pierrick-fonquerne merged commit 3fcfe55 into develop Feb 16, 2026
6 checks passed
@pierrick-fonquerne pierrick-fonquerne deleted the 69-dashboard-employe branch February 16, 2026 22:24
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.

1 participant