Skip to content

refactor(tui): migrate render-previews script to Nushell and restore demo step comments - #1244

Merged
hakula139 merged 1 commit into
mainfrom
refactor/render-previews-nushell
Dec 6, 2026
Merged

hakula139 merged 1 commit into
mainfrom
refactor/render-previews-nushell

Conversation

@hakula139

@hakula139 hakula139 commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Migrate scripts/render-previews.sh to executable Nushell script scripts/render-previews.nu, preserving SVG export, Maple Mono NF font resolution, parallel resvg rasterization via par-each (--zoom 2 for static previews and --zoom 4 for demo frames), lossless cwebp and img2webp encoding, try ... finally temporary directory cleanup, SHA-256 manifest copying, and tui_previews parity verification.
  • Add dk.nushell to the default devShell and enable the nu-check pre-commit hook in flake.nix, and update script references in crates/ox-tui/tests/tui_previews.rs and .agents/skills/tui-previews/SKILL.md.
  • Restore concise storyboard step comments in crates/ox-tui/tests/common/demo_frames.rs describing each beat of the animated hero demo.
  • Update the two stale "claude-sonnet-4-5" model strings in crates/ox-tui/tests/common/preview_scenes.rs to "claude-sonnet-5-5", and update docs/assets/tui/resume-picker.webp and docs/assets/previews.sha256 from ./scripts/render-previews.nu.

Test plan

  • nix develop -c run-hooks (all 21 hooks passed, including nu-check, clippy, rustfmt, cspell, and nixfmt)
  • nix develop -c ./scripts/render-previews.nu (regenerated previews, confirmed byte-identical WebP output across consecutive runs, and verified docs/assets/tui/resume-picker.webp visually)
  • nix develop -c cargo test -p ox-tui --test tui_previews (2/2 tests passed)

Related

@hakula139 hakula139 added refactor Behavior-preserving restructuring area: tui Touches terminal UI rendering, input, or theming labels Dec 6, 2026
@hakula139 hakula139 self-assigned this Dec 6, 2026
@codecov

codecov Bot commented Dec 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hakula139
hakula139 force-pushed the refactor/render-previews-nushell branch from 6c73e0f to 37b33d9 Compare December 6, 2026 12:46
@hakula139
hakula139 merged commit 42efbc7 into main Dec 6, 2026
10 checks passed
@hakula139
hakula139 deleted the refactor/render-previews-nushell branch December 6, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tui Touches terminal UI rendering, input, or theming refactor Behavior-preserving restructuring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant