feat(tui): gallery grid thumbnail images via ratatui-image #121

Merged
charles merged 1 commit from tui/gallery-grid-images into main 2026-04-13 20:12:36 +00:00
Collaborator

Summary

  • Gallery grid cells now render image thumbnails via ratatui-image StatefulImage widget
  • Cells are 10 rows tall (border + 7 image rows + 1 label + border)
  • Per-cell StatefulProtocol cached in HashMap<usize, StatefulProtocol>, cleared on item reload
  • Prefers thumbnail_path, falls back to image_path
  • Label still shows below the thumbnail with prompt text

Test plan

  • cargo test -p loom-tui — 169 tests pass
  • cargo clippy -p loom-tui -- -D warnings — clean
  • Manual: gallery grid shows image thumbnails in Kitty/Sixel/halfblock
  • Manual: scrolling gallery updates thumbnails for visible cells

🤖 Generated with Claude Code

## Summary - Gallery grid cells now render image thumbnails via `ratatui-image` `StatefulImage` widget - Cells are 10 rows tall (border + 7 image rows + 1 label + border) - Per-cell `StatefulProtocol` cached in `HashMap<usize, StatefulProtocol>`, cleared on item reload - Prefers `thumbnail_path`, falls back to `image_path` - Label still shows below the thumbnail with prompt text ## Test plan - [x] `cargo test -p loom-tui` — 169 tests pass - [x] `cargo clippy -p loom-tui -- -D warnings` — clean - [ ] Manual: gallery grid shows image thumbnails in Kitty/Sixel/halfblock - [ ] Manual: scrolling gallery updates thumbnails for visible cells 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(tui): gallery grid thumbnail images via ratatui-image
Some checks are pending
QA / qa (pull_request) Waiting to run
443d9bebac
Render image thumbnails in gallery grid cells using ratatui-image
StatefulProtocol. Each visible cell gets a lazily-loaded image from the
thumbnail path (falling back to full image). Grid cells are now 10 rows
tall (border + 7 image rows + 1 label + border) to accommodate the
thumbnail preview.

Per-cell image state is cached in HashMap<usize, StatefulProtocol> and
cleared when items reload from storage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
charles force-pushed tui/gallery-grid-images from 443d9bebac
Some checks are pending
QA / qa (pull_request) Waiting to run
to 48b00be53d
Some checks failed
QA / qa (pull_request) Has been cancelled
2026-04-12 21:23:56 +00:00
Compare
chore(ci): remove meson build from QA workflow
Some checks failed
QA / qa (pull_request) Has been cancelled
b7b0e84e94
Drop the meson setup/compile step and its ninja-build/meson deps.
QA now runs only cargo fmt, clippy, and tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
charles force-pushed tui/gallery-grid-images from b7b0e84e94
Some checks failed
QA / qa (pull_request) Has been cancelled
to 6d89718c27
All checks were successful
qa / qa (pull_request) Successful in 5m0s
2026-04-13 19:43:28 +00:00
Compare
charles referenced this pull request from a commit 2026-04-14 16:00:49 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/loom!121
No description provided.