8000 docs: SESSION-mode README rewrite + IndexedDB upgrade-hang fix by johannboehme · Pull Request #28 · johannboehme/tk-1 · GitHub
[go: up one dir, main page]

Skip to content

docs: SESSION-mode README rewrite + IndexedDB upgrade-hang fix - #28

Merged
johannboehme merged 2 commits into
mainfrom
claude/amazing-rubin-eca6ff
May 5, 2026
Merged

johannboehme merged 2 commits into
mainfrom
claude/amazing-rubin-eca6ff

Conversation

@johannboehme
Copy link
Copy Markdown
Owner

Summary

  • fix(storage) — openDB(...) in jobs-db.ts now wires blocking / blocked / terminated handlers plus a 5 s timeout safety net, so the History page surfaces "close every other TK-1 tab and reload" instead of hanging on Loading… when an older tab still holds the previous schema version.
  • docs — README rewrite for the SESSION-mode era (~40 k LoC since the last update). Repositions the hero around "Have a track. Want a video." (DIRECT) vs. "Have an hour. Want a song." (SESSION), walks the new triage / arrange / editor loop, and pushes the 5-stage sync pipeline + Rayleigh tempo prior into a new "Under the hood" appendix so the operator-facing prose stays non-technical.
  • Screenshot pipeline — frontend/scripts/readme-screenshots.mjs adapted for the new file-handle picker (deletes window.showOpenFilePicker so Playwright's filechooser intercept still fires), the SESSION routing card, and three new stops: triage rack, arrange film strip, FX hardware panel with the LCD in envelope mode. All 13 screenshots regenerated into .github/screenshots/.

Test plan

  • On a browser whose IDB is at v7 (older build), /jobs shows the "close other TK-1 tabs and reload" banner instead of hanging on Loading….
  • Close other tabs + reload → schema migrates v7 → v8 cleanly, History renders the existing jobs.
  • Fresh IDB: full upload → SESSION → sync → triage → arrange → editor → FX/ADSR flow renders end-to-end.
  • npm run dev, navigate every screen the README references; copy still matches the shipped UI.
  • node scripts/readme-screenshots.mjs regenerates all 13 PNGs without manual intervention.

🤖 Generated with Claude Code

When a fresh tab tries to open the v8 schema and an older tab still
holds a v7 connection, openDB sat on the upgrade forever because we
wired neither `blocking` (close our connection so the other tab's
upgrade can proceed) nor `blocked` (surface an actionable error
when WE're the one waiting). The History page rendered "Loading…"
indefinitely on every browser that had used a previous build.

Add `blocking`, `blocked`, `terminated`, plus a 5 s timeout safety
net in case `blocked` doesn't fire on older Chromium builds. The
existing try/catch in History.tsx routes the rejection through to
a visible error banner, so the user sees "close every other TK-1
tab and reload" instead of an infinite spinner.
Since the last README update (~40k LoC ago) the program changed
shape: a 90-minute jam recording now becomes a finished multi-cam
video without a DAW or NLE. Triage carves the recording into bar-
aligned chunks, Arrange sequences them on a 35 mm film strip,
the editor plays cuts and FX over the result. The old README still
described a post-recording multi-cam editor and chroma-cross-
correlation sync.

Repositions the hero around the two ways in — "Have a track. Want
a video." (DIRECT) vs. "Have an hour. Want a song." (SESSION) —
and walks the new operator loop: triage rack, film-strip arrange,
contextual I/O hotkeys, OP-1 loop with gapless wrap, stage-based
output with per-clip viewport, FX hardware panel with synth-voice
ADSR, native file handles + multi-GB streaming. Audio prose stays
non-technical above the new "Under the hood" appendix; the 5-tier
sync pipeline and Rayleigh tempo prior live there.

Adapts scripts/readme-screenshots.mjs to the new picker (deletes
`window.showOpenFilePicker` so Playwright's filechooser intercept
still works) and the SESSION routing card, plus three new stops:
triage rack, arrange film strip, FX panel with the LCD flipped to
envelope mode. Regenerates all screenshots into .github/screenshots
including the four new filenames the README references.
@johannboehme
johannboehme merged commit 4309727 into main May 5, 2026
1 check passed
@johannboehme
johannboehme deleted the claude/amazing-rubin-eca6ff branch May 5, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0