Skip to content

fix: preserve experiment tree viewport - #318

Merged
sox8502 merged 3 commits into
alphaXiv:mainfrom
dajiaohuang:fix/144-preserve-tree-zoom
Sep 13, 2026
Merged

fix: preserve experiment tree viewport#318
sox8502 merged 3 commits into
alphaXiv:mainfrom
dajiaohuang:fix/144-preserve-tree-zoom

Conversation

@dajiaohuang

@dajiaohuang dajiaohuang commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Preserve the experiment tree’s pan and zoom across tabs, task switches, and reloads using the existing per-task workspace state. Reset the viewport when the effective experiment scope changes, after workspace and experiment data load.

The Rust workspace schema accepts and validates the optional viewport. Only completed user gestures save it, avoiding per-frame writes and persisting automatic fits.

Closes #144

Validation:

  • UI production build and typecheck; regenerated embedded assets
  • 162 UI tests and dev-slot helper tests
  • Localization and style checks
  • Rust formatting, Clippy, locked build and tests (815 passed, 2 ignored)
  • Browser: pan/zoom across Files, table/tree, tasks, and reload
  • Browser: manual and automatic scope changes; fallback-scope reload
  • Backend: saved user viewport persists; automatic fit leaves it unset
  • User acceptance testing in the running dev slot

@sox8502
sox8502 merged commit 8875585 into alphaXiv:main Sep 13, 2026
11 checks passed
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.

Tree always zoomed out

2 participants