+
+
+ Resource reviews
+
+
+ Proposed edits to existing PHLask resources and brand-new site
+ submissions, pending approval.
+
+
+
+
+
+ New site submissions
+
+
+
+
+
+
+ Edits to existing resources
+
+
+
+
);
};
diff --git a/app/types/ResourceEdit.ts b/app/types/ResourceEdit.ts
index 934482a..79fe672 100644
--- a/app/types/ResourceEdit.ts
+++ b/app/types/ResourceEdit.ts
@@ -31,3 +31,28 @@ export type ResourceEdit = ResourceEntry & {
export type ResourceEditQueueRow = ResourceEdit & {
current_resource: ResourceEntry & { id: number };
};
+
+/**
+ * A row from `resource_edit_counts` — the number of PENDING edits currently
+ * queued against a given resource. Useful for flagging resources with
+ * multiple competing proposed edits before a reviewer picks one to approve.
+ */
+export type ResourceEditCount = {
+ resource_id: number;
+ pending_count: number;
+};
+
+/**
+ * A row from `resource_change_log` — a decided (APPROVED or REJECTED) edit,
+ * stripped down to just the review-lifecycle columns. One row per past
+ * decision, ordered by `resource_id` then most-recently-reviewed first.
+ */
+export type ResourceChangeLogEntry = {
+ edit_id: number;
+ resource_id: number | null;
+ review_status: EditReviewStatus;
+ submitted_by: string | null;
+ reviewed_by: string | null;
+ reviewed_at: string | null;
+ review_notes: string | null;
+};