Studio changes authored caption group boundaries on import
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bun, typescript
- Lĩnh vực
- frontend, testing-qa
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 54.1k
- Fork
- 4.9k
- Merge trung bình
- 7 giờ 29 phút
- Pull request đã merge (30 ngày)
- 778
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của heygen-com/hyperframes
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
heygen-com/hyperframes#5027 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(producer): propagate useGpu to HDR layered streaming encoderCó thể đã có người làm @Monster-GM đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
heygen-com/hyperframes#5002 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
heygen-com/hyperframes#4702 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Studio catalog prompt editor has no accessible nameCó thể đã có người làm @lorenzozanee đã nhận 11 ngày trước. Đang mởbug difficulty/easy triage/ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
heygen-com/hyperframes#4384 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lint: validate composition variables declared on supported root elementsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug difficulty/easy triage/ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
heygen-com/hyperframes#4383 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của heygen-com/hyperframes
Issue tương tự
-
area/dashboard kind/bug QA/dev-automation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rancher/dashboard#19379 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
perf(core): getComments() runs the approved count and the comment list as two sequential queriesĐang mởarea/core bot:bug bot:working
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
emdash-cms/emdash#3905 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
lingdojo/kana-dojo#31728 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
selective-claw: freshTailTurns=0 keeps ALL turns verbatim and summarizes none (slice(-0) === slice(0))Có thể đã có người làm @zjncs đã nhận hôm nay. Đang mởcomponent:tokenless
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
agentic-os-org/ANOLISA#6112 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
rjsf-team/react-jsonschema-form#5439 ·
Maintainer thường phản hồi trong vòng 1 ngày