Skip to content

Super Admin review queue for feature requests and suggested tasks (D544, migration 383) #1107

Description

@guillaumelauzier

S1: Task for slot S08, after #1103. It is part of #1101.

Do

  1. The store, in migration 383. community_tasks holds:
  2. The review API, in a new routes/admin_ticket_reviews.ts mounted in index.ts, Super Admin only, with a typed reason and logAdminAction. It lists pending feature requests and suggested tasks, and approves or declines each:
  3. The page, after the canvas: an HQ "Review queue" with two tabs, Features and Suggested tasks. Each entry shows its text, who asked (as a link to the account), the priority, the date, and Approve and Decline with a reason.

Owns

  • migration 383 and routes/admin_ticket_reviews.ts
  • the new HQ review page and its route guard
  • tests, and documentation/architecture/decisions/D544.md

Tests

  • the Super Admin gate;
  • each approve and decline path;
  • a task reward granted exactly once;
  • the label added on approval.

Mutation-check every assertion.

Design

needs-design. The Claude Design prompt for this page and for #1108 is in the next comment. Build the store and the API now. Build the page once S1 posts that the owner has approved the design.

Numbers

D544, migration 383.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    slot:S08Work queue of slot S08

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions