Skip to content

feat(header): a button opens the session's folder in the file manager - #205

Merged
pskeshu merged 1 commit into
developmentfrom
feat/session-folder-button
Sep 26, 2026
Merged

pskeshu merged 1 commit into
developmentfrom
feat/session-folder-button

Conversation

@pskeshu

@pskeshu pskeshu commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

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 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, or xdg-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

"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>
@pskeshu
pskeshu merged commit 0eb0434 into development Sep 26, 2026
2 checks passed
@pskeshu
pskeshu deleted the feat/session-folder-button branch September 26, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant