Skip to content

refactor(leantui): remove image forwarding layer - #4845

Merged
dgageot merged 1 commit into
mainfrom
refactor/leantui-remove-image-forwarding-layer-22acea057
Nov 9, 2026
Merged

dgageot merged 1 commit into
mainfrom
refactor/leantui-remove-image-forwarding-layer-22acea057

Conversation

@dgageot

@dgageot dgageot commented Nov 9, 2026

Copy link
Copy Markdown
Member

Summary

Remove lean TUI's image forwarding file and call the shared image helpers directly.

Image decoding remains gated by renderImages, and existing extraction, rendering, and non-image rejection tests now use the shared helpers.

Standalone cleanup: one commit against main; no dependency on the other cleanup PRs.

Validation

  • task --force build
  • task test
  • task --force lint
  • Single signed commit verified; patch equivalent to the original commit.

Assisted-By: OpenAI ChatGPT
Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot
dgageot requested a review from a team as a code owner November 9, 2026 12:04
Copilot AI balanced review requested due to automatic review settings November 9, 2026 12:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the refactor to use shared image helpers directly.

No open issues 🎉

What changed in this PR

Simplifies lean TUI image handling by calling shared image helpers directly instead of using local forwarding functions, while preserving the renderImages decoding guard.

Changes:

  • Removes the image forwarding layer.
  • Updates event handling and existing image tests to use pkg/tui/image directly.
File Description
pkg/​leantui/​image.go Deletes the two forwarding functions.
pkg/​leantui/​image_test.go Uses shared helpers in extraction, rendering, and non-image rejection tests.
pkg/​leantui/​events.go Calls the shared extraction helper within the existing renderImages guard.

Review effort: Balanced

@aheritier aheritier added area/tui For features/issues/fixes related to the TUI kind/refactor PR refactors code without behavior change labels Nov 9, 2026
@dgageot
dgageot added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 62eb388 Nov 9, 2026
18 checks passed
@dgageot
dgageot deleted the refactor/leantui-remove-image-forwarding-layer-22acea057 branch November 9, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tui For features/issues/fixes related to the TUI kind/refactor PR refactors code without behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants