Commit Graph

49 Commits

Author SHA1 Message Date
pac7
a9e723c055 Improve moderation queue filtering and sorting for faster feedback
Refactor count query logic in useModerationQueueManager to apply all filters and reduce sort debounce time in useModerationSort to 0ms.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ef7037e7-a631-48a2-94d1-9a4b52d7c35a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/ef7037e7-a631-48a2-94d1-9a4b52d7c35a/kq6AhNt
2025-10-13 15:46:41 +00:00
pac7
b56617efcc Enhance moderation queue sorting with visual indicators and logging
Add loading spinners, detailed sort query logging, result preview logging, disable sort controls during loading, and mobile-specific loading text changes. Also, fix type mismatch in QueueSortControls and correct refresh strategy logic.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ef7037e7-a631-48a2-94d1-9a4b52d7c35a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/ef7037e7-a631-48a2-94d1-9a4b52d7c35a/kq6AhNt
2025-10-13 15:16:16 +00:00
pac7
7e1e959c6e Improve moderation queue manager by updating item fetching logic
Update the moderation queue manager to fetch items with `isInitialFetch` set to `false` in the `fetchItemsRef` callback.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ef7037e7-a631-48a2-94d1-9a4b52d7c35a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/ef7037e7-a631-48a2-94d1-9a4b52d7c35a/kcnWjk6
2025-10-13 15:02:40 +00:00
pac7
a019392971 Improve queue manager to correctly refetch moderation items
Update `useModerationQueueManager` hook to use `fetchItemsRef.current?.(true)` for more reliable refetching of moderation queue items after dependency changes, preventing potential stale data issues.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ef7037e7-a631-48a2-94d1-9a4b52d7c35a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/ef7037e7-a631-48a2-94d1-9a4b52d7c35a/kcnWjk6
2025-10-13 14:52:18 +00:00
gpt-engineer-app[bot]
0c7b898917 Reverted to commit caa8f0e529 2025-10-13 13:47:39 +00:00
gpt-engineer-app[bot]
331d2d36b2 Fix: Apply filters and sorting to count query 2025-10-13 13:33:58 +00:00
gpt-engineer-app[bot]
caa8f0e529 feat: Add debouncing to sort changes 2025-10-13 13:30:50 +00:00
gpt-engineer-app[bot]
73c5815c63 Fix: Correct moderation queue sorting logic 2025-10-13 13:27:43 +00:00
gpt-engineer-app[bot]
0af5443c81 feat: Implement database-level sorting for moderation queue 2025-10-13 13:23:54 +00:00
gpt-engineer-app[bot]
90ae7d9a41 feat: Remove all sorting functionality 2025-10-13 13:15:14 +00:00
gpt-engineer-app[bot]
83e10817c5 Reverted to commit be92deec43 2025-10-13 13:06:29 +00:00
gpt-engineer-app[bot]
4fed307335 Reverted to commit de2d4a495f 2025-10-13 13:05:48 +00:00
gpt-engineer-app[bot]
c129be2e87 Fix: Correct moderation queue filtering 2025-10-13 13:04:29 +00:00
gpt-engineer-app[bot]
cfa11b45e7 Fix: Restore escalated sort order 2025-10-13 13:01:33 +00:00
gpt-engineer-app[bot]
76cbf94ffc Fix: Implement comprehensive sorting fix 2025-10-13 12:58:29 +00:00
gpt-engineer-app[bot]
f6891296d6 Fix: Implement comprehensive sorting fixes 2025-10-13 12:51:21 +00:00
gpt-engineer-app[bot]
3cd5904c31 Fix sorting mechanism 2025-10-13 12:39:38 +00:00
gpt-engineer-app[bot]
9a2e7ac43e Fix sorting logic in moderation queue 2025-10-13 12:33:59 +00:00
gpt-engineer-app[bot]
284f778fc6 Fix: Implement sorting functionality 2025-10-13 12:29:01 +00:00
gpt-engineer-app[bot]
5e83d8a75f Reverted to commit be92deec43 2025-10-13 12:18:00 +00:00
gpt-engineer-app[bot]
a5c48812e7 Reverted to commit 039061ee52 2025-10-13 12:17:37 +00:00
gpt-engineer-app[bot]
3ec26e23a3 Reverted to commit be92deec43 2025-10-13 12:17:13 +00:00
gpt-engineer-app[bot]
085375e595 Fix: Implement moderation queue sorting fix 2025-10-13 12:15:14 +00:00
gpt-engineer-app[bot]
2661d65ab8 Refactor: Debounce effect fetches 2025-10-13 01:45:05 +00:00
gpt-engineer-app[bot]
a5bf6d873e Fix sorting and tab switching bugs 2025-10-13 01:43:04 +00:00
gpt-engineer-app[bot]
9e25beedd5 Refactor: Separate escalated items queue 2025-10-13 01:40:24 +00:00
gpt-engineer-app[bot]
ef913fcc8d Fix count query for sorting 2025-10-13 01:37:19 +00:00
gpt-engineer-app[bot]
ad096b05c6 Fix: Remove invalid sort options and validate sort fields 2025-10-13 01:28:49 +00:00
gpt-engineer-app[bot]
3b568712d9 Fix: Chain sort orders correctly 2025-10-13 01:25:10 +00:00
gpt-engineer-app[bot]
a34271d5f0 Fix: Correct sort column mapping and dependencies 2025-10-13 01:22:14 +00:00
gpt-engineer-app[bot]
e41c36e42b Fix: Remove sort text and fix sorting logic 2025-10-13 01:18:38 +00:00
gpt-engineer-app[bot]
093b21e3df Fix: Use onChange callback for sorting 2025-10-13 01:16:47 +00:00
gpt-engineer-app[bot]
879b890b64 Fix: Implement comprehensive sort debugging and fixes 2025-10-13 01:00:45 +00:00
gpt-engineer-app[bot]
85bdd8a28a Fix: Watch sort.config object in effect 2025-10-13 00:57:01 +00:00
gpt-engineer-app[bot]
0733db07ba Fix: Use fetchItemsRef in sort effect 2025-10-13 00:53:39 +00:00
gpt-engineer-app[bot]
b35135ecad Fix: Remove initialFetchCompleteRef guard from sort effect 2025-10-13 00:37:12 +00:00
gpt-engineer-app[bot]
98ee84c05e Fix: Remove function dependencies from sort effect 2025-10-13 00:25:58 +00:00
gpt-engineer-app[bot]
3820a8c0a4 Fix: Implement moderation queue sorting fixes 2025-10-13 00:23:23 +00:00
gpt-engineer-app[bot]
81bb91e7de Fix moderation queue sorting 2025-10-13 00:20:04 +00:00
gpt-engineer-app[bot]
be92deec43 Fix: Remove fetchItems from mount effect dependency 2025-10-13 00:15:43 +00:00
gpt-engineer-app[bot]
039061ee52 Fix: Change user dependency to user.id 2025-10-13 00:13:57 +00:00
gpt-engineer-app[bot]
281b30bd65 Code edited in Lovable Code Editor 2025-10-13 00:07:47 +00:00
gpt-engineer-app[bot]
113f880775 Fix: Stabilize useAdminSettings dependencies 2025-10-13 00:00:06 +00:00
gpt-engineer-app[bot]
e7aa74287a feat: Add diagnostic logging for tab focus issue 2025-10-12 23:57:23 +00:00
gpt-engineer-app[bot]
21c16870ee Fix: Memoize settings and add defensive checks 2025-10-12 23:47:29 +00:00
gpt-engineer-app[bot]
045419db9a Fix fetchItems stabilization 2025-10-12 23:41:18 +00:00
gpt-engineer-app[bot]
2acc3a8d8a Fix moderation queue auto-refresh on tab switch 2025-10-12 23:38:14 +00:00
gpt-engineer-app[bot]
1f71fb4a3e feat: Complete integration and refactor 2025-10-12 23:27:51 +00:00
gpt-engineer-app[bot]
75b6c1b314 feat: Implement moderation queue manager hook 2025-10-12 23:18:50 +00:00