feat: Implement database-level sorting for moderation queue

This commit is contained in:
gpt-engineer-app[bot]
2025-10-13 13:23:54 +00:00
parent 90ae7d9a41
commit 0af5443c81
8 changed files with 269 additions and 18 deletions

View File

@@ -99,7 +99,25 @@ export type StatusFilter = 'all' | 'pending' | 'partially_approved' | 'flagged'
*/
export type QueueTab = 'mainQueue' | 'archive';
// Removed - sorting functionality deleted
/**
* Available fields for sorting the moderation queue
*/
export type SortField = 'created_at' | 'submission_type' | 'status';
/**
* Sort direction
*/
export type SortDirection = 'asc' | 'desc';
/**
* Configuration for sorting the moderation queue
*/
export interface SortConfig {
/** Field to sort by */
field: SortField;
/** Sort direction */
direction: SortDirection;
}
/**
* Loading states for the moderation queue