cards: add report (flag-for-fixing) columns #78
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
project-halkyon/halkyon-infra!78
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/78/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds three nullable columns to
cardsfor a flashcard "report" (flag-for-fixing) feature:reported_at,report_category(typo/grammar/content/other), andreport_note. Lets a deck owner flag a card that needs rectifying — a typo, grammar slip, content error, or anything else — instead of co-opting a studyset tag.One open report per card: the three columns are set together on report and cleared together on resolve. A reported card is otherwise untouched and still studies normally — the flag is metadata only.
Why on
cards, not a separate reports table: writes are owner-only and "Add to library" forks a private copy, so a report always lands on a card the reporter owns. Modelled on the existinghidden_atslice (#77). A cross-user table would only be needed to push reports upstream to another deck's author, which the app has no path for today.Constraints:
(reported_at IS NULL) = (report_category IS NULL), and a note is only allowed on a reported card;report_category IN ('typo','grammar','content','other')(extend in a follow-up if the set grows);reported_at >= created_at.Already applied to the live project (
20260709155528_add_cards_report); this mirrors it into the repo. Paired with halkyon-learn PR #743 (the data layer).