mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 19:31:13 -05:00
feat: Implement database-level sorting for moderation queue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user