feat(image-editor): live Navigator panel thumbnail#96
Merged
Conversation
The PixelForge prototype shows the Navigator panel as functional; toolbox had it as a stub (empty box + zoom %). Render a live composite thumbnail of the document into the panel via renderEditorToCanvas (the same helper the editor uses), down-fit (letterboxed) into a fixed preview box; re-paints on image/state/zoom changes. Shows a placeholder line before an image is opened. i18n: pages.imageEditor.navigator.empty in en + zh-CN. Verified: typecheck/lint/build clean, 388 tests green, i18n parity intact; headless-Chrome confirmed the navigator tab renders a non-blank composite thumbnail (11.8k non-blank px), zero page errors. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The PixelForge prototype shows the Navigator panel as functional; toolbox had it as a stub (empty box + zoom %). It now renders a live composite thumbnail of the document.
How
NavigatorStub(RightSidebar) now takesimage / state / imageCacheand paints the editor composite (via the existingrenderEditorToCanvashelper) into a fixed-height preview box, letterboxed. Re-paints on image/state/zoom changes. Shows a placeholder line before an image is open.pages.imageEditor.navigator.emptyin en + zh-CN.Verification
pnpm typecheck/pnpm lint/pnpm buildclean; 388 tests green; i18n parity intact (0 gaps).Follows #95 (the prototype's placeholder layer ops). Together these turn the prototype's last "functional-looking but stubbed" surfaces real, except the items deliberately deferred there (Fade — architecturally redundant given non-destructive adjustment layers; vector mask — large render rework).
🤖 Generated with Claude Code