Repository navigation
fix(web): smoother image viewing and live monitor updates - #15
Merged
Merged
Conversation
DualChimerra
commented
Sep 27, 2026
Owner
- ImagePreviewModal renders through a portal to . It was mounted inside queue cards; finished cards have opacity .72, so the lightbox came out translucent, could sit under later cards and forced the whole page to be composited behind the full-size image every frame. Also locks body scroll, binds keydown once, and preloads the prev/next image.
- ZoomableImage keeps the current image painted while the next one loads (no blank flash when flipping), decodes async, refits in a layout effect.
- useMonitorProgress is now a shared per-task store: Topbar, Sidebar, Queue, QueueDetail and MonitorDashboard used to each fetch the full multi-MB snapshot and merge every 1s delta into their own 50k-point arrays.
- TaskSampleStrip and the dashboard's SampleViewer are memoized, so the per-second training ticks no longer re-render them (or an open lightbox).
- MonitorDashboard: chart series are memoized; fixes the learning-rate chart being rendered twice and the "d" chart floating outside a card - it now shows in its own card only when the optimizer reports d.
- ImagePreviewModal renders through a portal to <body>. It was mounted inside queue cards; finished cards have opacity .72, so the lightbox came out translucent, could sit under later cards and forced the whole page to be composited behind the full-size image every frame. Also locks body scroll, binds keydown once, and preloads the prev/next image. - ZoomableImage keeps the current image painted while the next one loads (no blank flash when flipping), decodes async, refits in a layout effect. - useMonitorProgress is now a shared per-task store: Topbar, Sidebar, Queue, QueueDetail and MonitorDashboard used to each fetch the full multi-MB snapshot and merge every 1s delta into their own 50k-point arrays. - TaskSampleStrip and the dashboard's SampleViewer are memoized, so the per-second training ticks no longer re-render them (or an open lightbox). - MonitorDashboard: chart series are memoized; fixes the learning-rate chart being rendered twice and the "d" chart floating outside a card - it now shows in its own card only when the optimizer reports d. Co-Authored-By: Claude Opus 5.5 <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.