Add photo station capture and reuse workflow - #137
Draft
noobydp wants to merge 3 commits into
Draft
Conversation
noobydp
force-pushed
the
codex/photo-stations-capture-reuse
branch
from
July 11, 2026 07:50
608d9ba to
e308c71
Compare
jasonmadigan
requested changes
Jul 23, 2026
This was referenced Jul 26, 2026
noobydp
force-pushed
the
codex/photo-stations-capture-reuse
branch
from
August 2, 2026 08:46
e308c71 to
77dbad3
Compare
Contributor
Author
|
Updated this branch after review and rebased it onto current Changes made in this update:
Local validation:
Code and PR drafted with Codex |
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.
Summary
This adds the full reusable photo-station workflow to tracing. Users can capture from a camera, crop the capture area, reuse a saved station's corners when the setup matches, save the current setup as a new station, and continue into a save-and-new loop for repeated captures.
The PR includes:
/tracecamera capture pageDependency
This PR depends on #135 and #136.
Because these branches live in a fork and the base repository does not have the stacked base branches, this PR targets
main. Until the earlier PRs land, GitHub's diff may include commits from those PRs as part of the stacked branch history.Implementation Notes
This PR depends on the backend APIs and management UI from the previous two PRs.
The capture page can receive a selected station and pass that station id through upload. When the backend can apply the saved station during upload, the trace editor reflects that reused station state. If the station does not match the current image, the UI disables non-matching station options and reports a warning rather than silently applying bad corners.
The trace editor station logic was extracted into a dedicated
usePhotoStationshook. That keeps station suggestions, reuse, redetect, active station state, save-as-station state, and station notices out of the already-large trace page component.This also addresses review feedback from the original larger PR:
startCamerainuseCallback.Tests
corepack pnpm@10.29.2 --dir frontend exec vitest runcorepack pnpm@10.29.2 --dir frontend lintcorepack pnpm@10.29.2 --dir frontend exec tsc --noEmitpython -m pytest backend/tests/test_photo_stations.pyCode and PR drafted with Codex