Commit 4de3629
Redesign flagged activity review as inbox-style two-column layout (#218)
* Improve flagged activity review with full context
Add media gallery, flagger info, metrics, notes, and activity
details to the admin flagged activity review page. Convert to
real-time client component for live updates during review.
Backend: getFlaggedActivityDetail now returns media URLs, cloudinary
IDs, individual flag records with flagger user info, comment count,
triggered bonuses, location/time context, and scoring config.
Frontend: New client component shows flag alert banner with reporter
details, full activity card with all context, and dedicated sections
for admin comments, actions, and history.
https://claude.ai/code/session_016USSPskfc25tKX1qmCsJv5
* Redesign flagged activity review as inbox-style two-column layout
Replaces the old list→detail page navigation with a persistent sidebar
+ detail panel layout optimized for fast admin triage:
- Two-column inbox layout: sidebar list (filterable, real-time) on the
left, activity detail on the right — no more back-and-forth navigation
- Activity detail mirrors the user-facing activity page layout (user
header, media, stats, caption) instead of admin-style card grids
- Admin actions promoted above the fold with collapsible comment/edit
forms behind toggle buttons
- Keyboard shortcuts: arrow keys to navigate, R to resolve, C to comment,
E to edit, ESC to close forms, Cmd/Ctrl+Enter to submit
- Shared context between sidebar and detail panel so arrow navigation
always matches the visible filtered list
- Removed router.refresh() calls — Convex real-time queries handle updates
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5bbae6b commit 4de3629
12 files changed
Lines changed: 1386 additions & 508 deletions
File tree
- apps/web
- app/challenges/[id]/admin/flagged-activities
- [activityId]
- components/admin
- packages/backend
- _generated
- queries
- tasks
Lines changed: 47 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
47 | 42 | | |
48 | 43 | | |
49 | 44 | | |
50 | 45 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
68 | 86 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 87 | + | |
| 88 | + | |
99 | 89 | | |
100 | | - | |
101 | | - | |
| 90 | + | |
| 91 | + | |
102 | 92 | | |
103 | 93 | | |
104 | 94 | | |
0 commit comments