mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
feat(content): add catalogue review metadata
Add reversible review states, audit history, and super-admin controls for catalogue entities without changing current client visibility. Stage 30 high-risk production packs for archival review, cap generated content at non-explicit language, and preserve a checksummed pre-change production catalogue snapshot.
This commit is contained in:
1 parent
b43804d8fd
commit
94c76535a4
30 files changed
+46906
-128
No files matched your search
@@ -18,6 +18,17 @@ export interface Profile {
|
||||
onboarding_version?: number;
|
||||
}
|
||||
|
||||
/** Editorial catalogue state. Customer applications do not enforce it yet. */
|
||||
export type ContentReviewStatus = 'unreviewed' | 'allowed' | 'archived';
|
||||
|
||||
export interface ContentReviewMetadata {
|
||||
/** Optional until the additive migration has reached every environment. */
|
||||
content_status?: ContentReviewStatus;
|
||||
content_review_reason?: string | null;
|
||||
content_reviewed_at?: string | null;
|
||||
content_reviewed_by?: string | null;
|
||||
}
|
||||
|
||||
// Couple pairing
|
||||
export interface Couple {
|
||||
id: string;
|
||||
@@ -26,7 +37,7 @@ export interface Couple {
|
||||
}
|
||||
|
||||
// Question pack
|
||||
export interface QuestionPack {
|
||||
export interface QuestionPack extends ContentReviewMetadata {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string | null;
|
||||
@@ -38,7 +49,7 @@ export interface QuestionPack {
|
||||
}
|
||||
|
||||
// Individual question
|
||||
export interface Question {
|
||||
export interface Question extends ContentReviewMetadata {
|
||||
id: string;
|
||||
pack_id: string;
|
||||
text: string;
|
||||
|
||||
Reference in new issue
Block a user