feat(header): a button opens the session's folder in the file manager - #205
Merged
Merged
Conversation
"next to the tag name in the header showing the session ID there must
be a button to open the folder where all the images are stored." — "in
windows explorer or whatever is the file manager on the OS"
A folder button beside the copy button in the header's session pill.
It posts to a new control route that opens the session's own folder —
snapshots, embryos/{id}/volumes, projections, traces — in Explorer,
Finder, or the desktop's default, on the machine the backend runs on,
which under the desktop shell is the operator's screen. No path comes
from the client: the folder is the store's own for that session. A
toast says the path that opened, or why it did not.
Co-Authored-By: Claude Fable 5.1 <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.
A folder button beside the copy button in the header's session pill. It posts to
POST /api/sessions/{id}/open-folder(control role), which opens the session's own folder —snapshots/,embryos/{id}/volumes, projections, traces — in Explorer on Windows, Finder on macOS, orxdg-open's default elsewhere. It opens on the machine the backend runs on, which under the desktop shell is the operator's own screen. No path comes from the client: the folder is the store's own for that session, so an unknown session is a 404 and nothing opens. A toast says the path that opened, or why it did not. The button hides with the copy button when there is no session.Nine tests in
tests/test_session_folder_button.py: the route opens exactly the store's folder for the session (opener stubbed), 404 / 502 / 503 / 403 paths, the opener covers each OS, the header markup, the script's request and toast, and the hide rule.🤖 Generated with Claude Code