Commit Graph

30 Commits

Author SHA1 Message Date
KansaiGaijin
f7eeae8469 docs: update README with auth, campaigns, and CI/CD changes
All checks were successful
Build and Push / build (push) Successful in 1m17s
2026-07-30 16:09:54 +12:00
KansaiGaijin
cef9178d8d fix: chunk upload race — always return the completed response with filepath; add campaign name to setup wizard
All checks were successful
Build and Push / build (push) Successful in 1m14s
2026-07-30 15:49:21 +12:00
KansaiGaijin
24fd6f16d2 fix: commit default campaign claim in ensure_admin_exists, surface setup errors to user
All checks were successful
Build and Push / build (push) Successful in 12m37s
2026-07-30 14:35:02 +12:00
KansaiGaijin
d25682397d fix login redirect loop: skip settings check when unauthenticated, only redirect 401 when token present
All checks were successful
Build and Push / build (push) Successful in 1m12s
2026-07-30 13:54:21 +12:00
9dd2439766 Update .gitea/workflows/build.yaml
All checks were successful
Build and Push / build (push) Successful in 27m14s
2026-07-30 01:02:59 +00:00
KansaiGaijin
9bcb24f029 remove file-based workflow — user has UI-configured workflow
Some checks failed
Build and Push / build (push) Has been cancelled
2026-07-30 13:02:13 +12:00
KansaiGaijin
e54a9491c0 add buildx registry cache to whisperx-base step so deps layer skips when requirements unchanged
Some checks failed
Build and Push / build (push) Failing after 2m29s
2026-07-30 12:59:20 +12:00
KansaiGaijin
146da58e7d claim default campaign for the admin on startup so setup wizard works
Some checks failed
Build and Push / build (push) Has been cancelled
2026-07-30 12:55:36 +12:00
KansaiGaijin
677c30ff7d add CI workflow that builds whisperx-base before backend
All checks were successful
Build and Push / build (push) Successful in 13m50s
2026-07-30 12:13:52 +12:00
KansaiGaijin
7b06b151a4 add ARG BASE_IMAGE + AS runtime to Dockerfile for CI
Some checks failed
Build and Push / build (push) Failing after 16s
2026-07-30 12:12:48 +12:00
KansaiGaijin
5081ba00f6 add auth system and split backend into two-image CI/CD build
Some checks failed
Build and Push / build (push) Failing after 17s
Backend:
- password hashing via hashlib.scrypt
- stateless HMAC-SHA256 tokens (7-day expiry)
- POST /api/auth/login, /api/auth/register (admin), /api/auth/reset-password
- admin user created from NAT20_ADMIN_USERNAME/PASSWORD on first startup
- users table, campaign_shares table, created_by on campaigns
- require_user dependency on all routes except auth
- campaign sharing: GET/POST/DELETE /api/campaigns/{id}/shares

Frontend:
- AuthContext: user/token state, login/logout, global fetch Auth header
- Login page, Users page (admin user management)
- route protection, sidebar user info/sign out

Docker/CI:
- split backend/Dockerfile into thin app-only image
- backend/Dockerfile.deps builds the heavy WhisperX/PyTorch base
- CI builds deps only when requirements.txt changes
- docker compose pull now fetches ~100KB app layer instead of 3.5GB
2026-07-30 12:05:56 +12:00
KansaiGaijin
990276366d Replace Link with nav() on Speakers Back button
All checks were successful
Build and Push / build (push) Successful in 12m43s
2026-07-30 10:45:23 +12:00
KansaiGaijin
0936a5bae2 Fix unicode escape in JSX text content
Some checks failed
Build and Push / build (push) Has been cancelled
2026-07-30 10:39:53 +12:00
KansaiGaijin
6c760b5e2e Preload audio as Blob for instant seeking; generate Opus playback file; delete original upload after extraction
Some checks failed
Build and Push / build (push) Has been cancelled
- Download full audio as Blob on mount so seeking is instant (no network range-requests)
- Remove readyState guard from playAt() that was silently blocking seek attempts
- Add disabled/ready state to SessionReel for reliable click-to-seek
- Generate 48kbps Opus playback file during extraction (~65MB for 3hrs vs 1.5GB lossless)
- Serve Opus first in audio endpoint, then original upload, then extracted WAV
- Delete original upload after successful transcription to reclaim storage
- Reorder extract_audio checks so retry works without the original file
- Fix Back links on Speakers and Notes pages to go to home
2026-07-30 10:38:10 +12:00
KansaiGaijin
aed6553ff4 Serve original uploaded file instead of WAV for audio playback
All checks were successful
Build and Push / build (push) Successful in 12m35s
The audio endpoint was serving the extracted WAV (16kHz mono PCM)
which balloons to ~1GB for a 3-hour session. Browsers cannot seek
efficiently in such a large uncompressed file.

Now the endpoint serves the original uploaded file (m4a, mp3, opus, etc.)
— a compressed format the browser can seek via byte-range requests.
Falls back to the WAV if the original is missing.
2026-07-21 22:04:02 +12:00
KansaiGaijin
4e2a99829f fix: DB values override env vars in campaign settings, Settings page resets on campaign switch
All checks were successful
Build and Push / build (push) Successful in 12m16s
2026-07-21 18:35:28 +12:00
KansaiGaijin
9e70b78d7c fix: env var overrides for campaign settings (hf_token, ollama_host etc)
Some checks failed
Build and Push / build (push) Has been cancelled
2026-07-21 18:30:08 +12:00
KansaiGaijin
ca13989ca0 per-campaign settings, default campaign folders, custom prompt fix
All checks were successful
Build and Push / build (push) Successful in 12m10s
2026-07-21 17:46:37 +12:00
0daca2f208 Separating audio uploads from extracted audio
All checks were successful
Build and Push / build (push) Successful in 13m7s
2026-07-21 01:42:21 +00:00
7e373cc6c4 Update backend/app/pipeline/turns.py
All checks were successful
Build and Push / build (push) Successful in 11m39s
Fixing ASCII encoding error by forcing UTF-8
2026-07-20 10:48:24 +00:00
KansaiGaijin
338694dec2 Switch registry from local IP to gitea.kansaigaijin.com
All checks were successful
Build and Push / build (push) Successful in 12m48s
2026-07-11 00:24:08 +12:00
d092e7b172 Update .gitea/workflows/build.yaml
Some checks failed
Build and Push / build (push) Failing after 6m30s
Changing registry url to local ip to ignore cloudflare limit
2026-07-10 11:49:39 +00:00
7a1bb62100 Update .gitea/workflows/build.yaml
Some checks failed
Build and Push / build (push) Failing after 8m42s
Corrected terminology and docker login method
2026-07-10 11:21:56 +00:00
KansaiGaijin
ef44155b5d Add CI workflow, full env docs, fix Up button navigation
Some checks failed
Build and Push / build (push) Failing after 2m15s
- .gitea/workflows/build.yaml: Gitea Actions — push latest on main
- docker-compose.example.yml: image-based pull, all NAT20_ vars shown
- settings.py: add NAT20_PLAYER_RECAP_STYLE / CUSTOM_PROMPT overrides
- README.md: full env var reference table with accepted values + rationale
- files.py: fix parent_path to avoid up-button bug; add path traversal guard
- Files.tsx: remove copy/paste/autoPlay, scope to campaign
2026-07-10 22:17:47 +12:00
KansaiGaijin
bc7ac32de3 Add campaign layer, GPU model caching, file browser cleanup
- Campaigns: new table, CRUD API, React context + provider
- Sessions: scoped to campaigns, paths under campaigns/{id}/
- File browser: scoped per campaign, removed copy/paste/autoPlay
- Sidebar: campaign selector dropdown at top
- Transcribe: GPU model cached/released via job counter
- Jobs: status text updates dynamically in real-time
- Auto-redirect: blocked when summarize job is active
2026-07-10 21:41:29 +12:00
KansaiGaijin
db19cfd05e Add files page and router, update settings, sessions, and notes 2026-07-10 18:28:55 +12:00
KansaiGaijin
babc0f58ef multi-stage Dockerfile + player recap styles
Dockerfile: split into whisperx-base and runtime stages so app-only
changes skip the 10min pip install on rebuild. Example compose updated.

Player recap: replace hardcoded 'story so far' prompt with selectable
styles (story/diary/bullets/custom) via dropdown in Setup and Settings.

Settings: add NAT20_ONBOARDING_COMPLETED env var; fix merge logic so
env vars properly override defaults (not just empty DB values).
2026-07-10 16:25:52 +12:00
KansaiGaijin
a261301638 Tweak port pun wording 2026-07-06 23:55:03 +12:00
KansaiGaijin
be12f0a816 Use localhost as example Ollama host 2026-07-06 23:52:41 +12:00
KansaiGaijin
0f9e9d4c5c Initial commit: Nat20 Notes — TTRPG session transcription & summarization 2026-07-06 23:50:09 +12:00