Skip to content

fix(preview): restore thread panels and compact viewport controls - #880

Merged
nixuuu merged 2 commits into
devfrom
fix/persist-browser-preview-per-thread
Nov 16, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/persist-browser-preview-per-thread

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Change

Returning to a thread restores its mini preview and minimization state. Each thread also remembers whether its side panel is open, whether Files or Preview is selected, and which preview tool is active. Panel metadata survives reloads in local workspace storage; preview targets remain in scoped session memory and frames are discarded when a watch closes.

The mini preview uses one fixed icon button for minimize/restore, with accessible labels, tooltips and keyboard focus preserved. Viewport width, height and Apply remain visible in narrow panels: the toolbar wraps and these numeric fields omit the +/− buttons. Other numeric controls retain their existing steppers.

Documented the implemented behavior and its persistence boundaries in the workspace and automation docs.

Verification

  • Passed web typecheck with zero errors or warnings, lint on edited source files, formatting and diff whitespace checks.
  • Checked real components in a browser with a temporary fixture and simulated preview streams: separate A/B/C panel states, reload persistence, mini preview restore/minimization, stream cleanup and sidebar handoff. Confirmed no transient mini watch starts for the wrong thread.
  • Checked light/dark themes, desktop and a 390 px phone viewport. Viewport fields and Apply remain visible at panel widths 320, 390, 468, 520 and 1100 px. Verified resize submission, keyboard increments, empty-field validation and disabled controls.
  • Copy audit (§8): passed. Existing labels are retained as tooltips/accessibility names; short, typical and long titles were checked at desktop and phone widths. Icon-only restore replaces the inconsistent text button without losing its accessible action name.
  • Passed integration-tests package typecheck and all four device-view persistence tests through check:tmp, with no temporary files left behind.
  • Remaining repository checks, integration tests and builds run in CI. No web UI test suite or verification artifacts were added.

Fixes: #846
Fixes: #872

Restore mini preview selection and minimization after navigating back to a
thread. Persist each thread's side panel visibility, module and preview tool
in local workspace metadata, keeping targets in scoped session memory.

Use consistent icon controls for minimizing and restoring previews. Keep
viewport fields and Apply visible in narrow panels without pointer steppers.

Fixes: #846
Fixes: #872
@nixuuu
nixuuu enabled auto-merge (squash) November 16, 2026 18:46
@nixuuu
nixuuu merged commit c060926 into dev Nov 16, 2026
15 checks passed
@nixuuu
nixuuu deleted the fix/persist-browser-preview-per-thread branch November 16, 2026 18:56
nixuuu added a commit that referenced this pull request Nov 16, 2026
Switching between threads with different Files/Preview panel states
animates the restored panel and resizes the conversation during
navigation. Restore the panel column, opacity and narrow-screen sheet
immediately when the thread changes, including during an active
transition. Opening, closing and changing the panel within the same
thread retain their existing animations.

Update the workspace documentation to describe the navigation behavior.

Validation:
- Web typecheck passed with zero errors or warnings.
- Lint passed for the edited Svelte component; edited source files were
formatted and `git diff --check` passed.
- Static review covered rapid thread changes and narrow-screen
dialog/backdrop handling.
- Visual verification remains outstanding: the browser tool could not
start its session (`connection refused`).
- UI copy audit (§8): not applicable; no user-facing text changes.
- Remaining repository checks and builds run in CI.

Fixes: #880
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