Commit Graph

26 Commits

Author SHA1 Message Date
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
7402f18bcf Add render_as_batch for SQLite and document migration rules
- Set render_as_batch=True in Alembic env.py so autogenerated
  migrations use batch mode for SQLite compatibility
- Add SQLite + Alembic section to CLAUDE.md with rules for
  avoiding circular dependency and idempotency issues

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 10:41:36 -04:00
Ryan Chen
f1a05a68a8 Make migrations idempotent for production DB with pre-existing columns
Check for existing columns/tables before adding to avoid duplicate
column errors when production DB state is ahead of Alembic history.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 10:36:21 -04:00
ryan
a8f340bec9 adding makefile 2026-04-03 10:34:56 -04:00
Ryan Chen
bac02fecf5 Fix SQLite circular dependency in batch migrations
Split batch_alter_table operations to avoid circular dependency
errors caused by the current_turn_team_id foreign key during
SQLite table recreation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 10:33:24 -04:00
Ryan Chen
406daeeab1 Update transfer-questions CLI to accept user ID instead of username
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 10:30:56 -04:00
Ryan Chen
d73cf5545c Add transfer-questions CLI command for bulk ownership reassignment
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 10:27:40 -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
758e1a18e4 images 2026-01-12 22:01:32 -05:00
Ryan Chen
cea321d032 big b oys 2026-01-12 21:59:07 -05:00
Ryan Chen
a69d704284 asdf 2026-01-12 21:44:30 -05:00
Ryan Chen
75f4b93c4b asdf 2026-01-12 21:37:39 -05:00
Ryan Chen
6223858114 yeet 2026-01-12 21:27:40 -05:00
Ryan Chen
4573a38a75 yeet 2026-01-12 21:25:21 -05:00
Ryan Chen
ee47c89a84 caddy example 2026-01-12 21:24:19 -05:00
Ryan Chen
0158f2808f productionize 2026-01-12 21:23:08 -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
557f440256 import 2026-01-12 21:09:57 -05:00
Ryan Chen
00e9eb8986 initial 2025-12-22 14:47:25 -05:00
Ryan Chen
d4e859f9a7 gitignore 2025-12-22 14:46:50 -05:00