USRSE / USRSE/usrse.github.io

feat(admin): vocab curation queue

Open
#1,958 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
33
Forks
104
Avg merge
12h 3m
Merged PRs (30d)
10

Description

Summary

Approve / reject / merge interface for the four controlled vocabularies — disciplines, skills, languages, organizations — that members can propose via inline editors on their dossier.

Requirements

  • Brainstorming → spec under docs/superpowers/specs/.
  • /admin/vocab — unified queue across the four tables, showing pending rows with proposer, proposed-on date, and current usage count.
  • Per-table list views: /admin/vocab/disciplines, /admin/vocab/skills, /admin/vocab/languages, /admin/vocab/organizations.
  • Detail view per term: accept / reject / merge-into-canonical actions, name + slug edit before approval, audit log inline.
  • Merge action mirrors the organization-merge pattern (set merged_into_id, repoint user_x rows, mark merged source as rejected).
  • Bulk-approve action for high-confidence batches (e.g., "approve all programming languages added in the last week"), super_admin gate.

Context

Foundation must ship first (#1956). Existing schema already supports status: pending | approved | rejected on every vocab table and merged_into_id on organizations.

Implementation Notes

  • Policy: canApproveVocab requires staff+.
  • The proposer (suggestedBy) should see status changes on their own dossier next time they load it (already works via dossier loader).
  • Merge UX should highlight near-duplicates (normalized-form match) so admins can resolve obvious dupes in one click.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the foundation work in #1956 and the organization-merge pattern, then turn the requirements into a spec under docs/superpowers/specs/. Trace the existing vocabulary tables, status fields, dossier loader, and canApproveVocab policy before implementing the /admin/vocab routes and views. Done means the four queues, detail actions, audit visibility, merge behavior, and gated bulk approval work as specified.

Written by the indexing model from the issue text.

Assessment

Domain
full-stack
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.