Repository navigation
viewer: let the thermal inset be dragged about the video - #102
Conversation
214d9fc to
ef99cf6
Compare
Previous review (2026-12-02)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Reviewed at 214d9fc; the PR head has since moved to ef99cf6, which this review does not cover. The combined RGB and thermal stream, per-track indexing and the draggable inset look sound, and the unit tests, build and format check pass; two low-severity notes, both depending on SupportProxy behaviour that can't be checked from this repo. Low
Minor (1)
Not fully reviewed: commits after 214d9fc (head now ef99cf6); browser end-to-end playback was not exercised by any pass. Head moved during review: observed |
ef99cf6 to
b6cad5d
Compare
The inset can be dragged anywhere on the video stage, or moved with the arrow keys when it has the focus. Its place is kept as a fraction of the room the stage has for it, so it holds through a change of window size, and is saved for later visits. A click that ends a drag does not switch to the thermal view. The download rows are drawn above the inset, which can now be put where they are.
b6cad5d to
1c25f94
Compare
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head The draggable thermal inset looks sound: unit tests, build and format checks pass, and mouse, touch and keyboard dragging behaved correctly in headless Chromium. The repository's Playwright suite and full-app playback were not run. Since the last review the PR has been rebased onto master, which now has the combined-stream work, so it is down to the single inset-drag commit. The two earlier notes are about master code this PR no longer touches. Minor (2)
The earlier coverage and head-moved notes are closed, because this review covers the current head. |
Lets the raw thermal inset of the combined RGB and thermal view be moved to another place on the video.
What it does
The drag logic is in a new
src/ui/inset-drag.js;main.jswires it to the inset and re-places it when the stage or the inset changes size.Testing
tests/inset-drag.test.js: placement by fractions, a drag against a click, a second pointer, release beyond the last move, lost capture, a cancelled drag, a click that comes late or not at all, a resize and a hidden inset during a drag, the arrow keys, and damaged saved values.npm testpasses (244 passed, 1 skipped) andprettier --checkis clean.Not yet done
tests/browserfor the inset; the browser check above was a one-off script.