Skip to content

feat(generate): render long-form video digest + collapsible raw evidence#77

Merged
VGonPa merged 1 commit into
developfrom
feat/video-longform-digest-render
Jul 6, 2026
Merged

feat(generate): render long-form video digest + collapsible raw evidence#77
VGonPa merged 1 commit into
developfrom
feat/video-longform-digest-render

Conversation

@VGonPa

@VGonPa VGonPa commented Jul 6, 2026

Copy link
Copy Markdown
Owner

PR-A of the long-form video digest (plan).

What

Reshape the note's ## Video digest section so a readable digest is the headline and the raw transcript + 40-frame gallery become collapsible evidence.

  • Model: ContentSourceSuccess.digest: str = "" — additive, legacy stores load unchanged.
  • Render: when digest is present → it's the section body; the raw transcript + frame embeds go inside a <details><summary>{evidence label}</summary>…</details>. When digest is empty (the default, every current record) → raw transcript + frames render inline exactly as today.
  • i18n: video_evidence_header localised (EN "Frames + transcript" / ES "Frames y transcripción").

Why safe to ship first

Empty digest = current behaviour (fallback), so this render change lands before PR-B produces any digest. No data migration.

Tests

digest prose rendered as headline · raw transcript + frame embed demoted inside <details> · digest-above-details ordering · no-digest fallback (no <details>) · localised evidence label · i18n field-set guard updated.

Gate

✅ 1111 tests · 95% cov · ruff/format/mypy/radon/bandit/vulture/interrogate/deptry green.

🤖 Generated with Claude Code

…script

Adds the `digest` field to the `x_video` content source and reshapes the note's
`## Video digest` section: when a `digest` is present it renders as the readable
headline of the section, and the raw transcript + frame embeds are demoted into a
collapsible `<details>` below (evidence kept, the 40-frame wall of noise hidden).
When `digest` is empty (every existing record — the default), the section renders
the raw transcript + frames inline exactly as before, so this ships safely before
any digest exists.

- `models.ContentSourceSuccess.digest: str = ""` — additive, loads legacy stores.
- i18n `video_evidence_header` ("Frames + transcript" / "Frames y transcripción"),
  localised via the configured output language.
- `generate._video_digest_lines`: digest headline + collapsible raw evidence, with
  a fallback path for the no-digest case.

PR-A of the long-form-digest plan (see zz-support-files/.../video-longform-digest.md).
Gate green: 1111 tests, 95% cov.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@VGonPa VGonPa merged commit d69bc9e into develop Jul 6, 2026
1 check passed
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