Commit Graph

18 Commits

Author SHA1 Message Date
Ryan Chen
5df01add6d Fix Game Queue row overflow with min-w-0 and overflow-hidden
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:51:37 -04:00
Ryan Chen
e1c0c859e9 Fix long question text overflow in Game Queue panel
Add min-w-0 to the queue column so truncation works within the
CSS grid layout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:46:55 -04:00
Ryan Chen
07408e0e33 Make question text clickable to open edit sheet
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:41:01 -04:00
Ryan Chen
114d44f6c0 Show existing image preview when editing an image question
Set imagePreview to the question's image_path in handleEdit so the
current image displays in the Sheet form.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:38:26 -04:00
Ryan Chen
a5a80aa93d Redesign QuestionBankView with Tailwind, shadcn/ui, and virtualization
Rewrite QuestionBankView from inline-styled JSX to TypeScript with
Tailwind CSS, shadcn/ui components, and @tanstack/react-virtual.
Adds slide-out Sheet form, sortable column headers, custom checkboxes,
hover action icons, sticky bulk action bar, and empty state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:36:23 -04:00
Ryan Chen
b3b6827a89 Restrict drag-and-drop to within the game queue bounds
Add @dnd-kit/modifiers restrictToParentElement so dragged questions
stay clamped inside the queue container.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:26:58 -04:00
Ryan Chen
bc4eaf53bf Show answer text for image questions and virtualize question pool
Display the answer field instead of question_content for non-text
questions (image/audio/video) in both the pool and queue panels.
Add @tanstack/react-virtual to virtualize the question pool list
for smooth scrolling with large question banks. Search also matches
against the answer field.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:24:27 -04:00
Ryan Chen
67cc877e30 Rebuild GameSetupView with two-column layout and drag-and-drop
Replace the linear scrolling game creation form with a two-column
layout: left panel for browsing/searching the question pool with
collapsible categories, right panel for the game queue with
drag-and-drop reordering via @dnd-kit/sortable. Add shadcn Dialog
for template picker, search/filter bar, random question panel,
progress indicators, and sticky create button. Convert to TypeScript.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:18:35 -04:00
Ryan Chen
5aba7b5aa1 Set up Tailwind CSS v4 + shadcn/ui + TypeScript foundation
Install Tailwind v4 with @tailwindcss/vite plugin, TypeScript, and
shadcn/ui (button + sheet components). Convert shared layout files
(App, AdminNavbar, AuthContext, ProtectedRoute, useSocket, api) from
JSX/JS to TSX/TS with type annotations. Rebuild AdminNavbar using
shadcn Button and Sheet components with Tailwind classes, replacing
custom CSS. Page components remain as JSX for incremental migration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:10:33 -04:00
Ryan Chen
69992f1be9 Add question ownership and sharing
Questions now have a created_by field linking to the user who created them.
Users only see questions they own or that have been shared with them.
Includes share dialog, user search, bulk sharing, and export/import
respects ownership.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 09:43:04 -04:00
ryan
02fcbad9ba Add migrations troubleshooting guide 2026-01-24 10:19:11 -05:00
ryan
d4345a4e09 Adding completed_at and winners to g ames 2026-01-24 09:57:25 -05:00
ryan
e431ba45e9 oops 2026-01-18 16:22:43 -05:00
ryan
96716d95b6 Add mobile-responsive admin view and disable dark mode
Improve mobile experience for admin interface with responsive layouts
that stack on smaller screens, hamburger menu navigation, and force
light mode across the app.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:49:03 -05:00
ryan
ab962725e6 Add filtering and sorting to question bank
- Add search, category, and type filters to questions API
- Add clickable sortable table headers with sort indicators
- Add filter controls UI with clear filters button

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 13:01:11 -05:00
Ryan Chen
dc1ac54b8c torrtle 2026-01-12 21:16:52 -05:00
Ryan Chen
444dbe4458 port 2026-01-12 21:13:21 -05:00
Ryan Chen
00e9eb8986 initial 2025-12-22 14:47:25 -05:00