Studio changes authored caption group boundaries on import
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bun, typescript
- Ambito
- frontend, testing-qa
Direzione di ricerca
Start with packages/studio/src/captions/parser.ts and the regression fixture in packages/studio/src/captions/parser.dom.test.ts. Run bunx vitest run packages/studio/src/captions/parser.dom.test.ts using the reproduction steps, then confirm imported captions preserve authored group boundaries, word order, IDs, and timing, including nested layout lines.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
Opening existing captions in Studio changes which words belong together. The importer averages the number of words across all caption groups, so even a normal final, shorter group shifts a word into the wrong group.
| Caption group | Authored | Imported on main |
|---|---|---|
| 1 | We asked what you needed. | We asked what you |
| 2 | Forty-seven percent | needed. Forty-seven percent |
Seven words grouped as 5 + 2 become 4 + 3. Nonuniform 2 + 4 + 1 groups become 2 + 2 + 2 + 1. Generating HTML from the imported model then writes those changed boundaries.
Reproduction
Minimal regression fixture. The fix and tests are already prepared on this branch.
To reproduce the failure in a fresh clone using the original parser:
git clone --branch fix/caption-group-import https://github.com/AksharP5/hyperframes.git caption-group-repro
cd caption-group-repro
bun install --frozen-lockfile
git restore --source=ee73b282a^ --worktree packages/studio/src/captions/parser.ts
bunx vitest run packages/studio/src/captions/parser.dom.test.ts
The first test fails with expected [4, 3] to deeply equal [5, 2]. The fixture supplies a transcript and matching DOM word spans to parseCaptionComposition, the same boundary Studio uses when detecting captions.
Expected behavior
Import preserves the authored group boundaries, word order, IDs, and timing. Layout lines nested inside a caption group do not count as separate timed groups.
Environment
Reproduced against main at 51a88b956, Studio 0.8.35, Linux, Node 26.8.1, Bun 1.3.13. Regression tests use Vitest and happy-dom; the fixed generator/import round trip was also checked in Chromium with real iframe DOM and GSAP.
- Lingua principale
- TypeScript
- Stelle
- 54.1k
- Fork
- 4.9k
- Merge medio
- 7h 29m
- PR unite (30g)
- 778
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di heygen-com/hyperframes
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
heygen-com/hyperframes#5027 ·
I maintainer di solito rispondono entro 1 giorno
-
fix(producer): propagate useGpu to HDR layered streaming encoderForse già presa @Monster-GM l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
heygen-com/hyperframes#5002 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
heygen-com/hyperframes#4702 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Studio catalog prompt editor has no accessible nameForse già presa @lorenzozanee l’ha presa 11 giorni fa. Apertabug difficulty/easy triage/ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
heygen-com/hyperframes#4384 ·
I maintainer di solito rispondono entro 1 giorno
-
lint: validate composition variables declared on supported root elementsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabug difficulty/easy triage/ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
heygen-com/hyperframes#4383 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di heygen-com/hyperframes
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
solana-foundation/solana-com#2245 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
`document.cookie` with `max-age=0` does not delete the cookieForse già presa @BartInTheField l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
capricorn86/happy-dom#2460 ·
I maintainer di solito rispondono entro 2 giorni