Skip to content

Release v1.0.2

Choose a tag to compare

@Taity180 Taity180 released this 17 Apr 02:00
· 3 commits to main since this release
136c4ca
fix: collapse/expand now actually resizes the window (#4)

Tauri v2 requires capability permissions for window APIs like
currentMonitor and outerSize. The repo shipped with no capabilities
file at all, so the in-browser resize logic in App.tsx threw
"permissions not defined," was swallowed by a bare catch, and the
window never shrank/grew — only the content swapped.

- Add src-tauri/capabilities/default.json granting core:default +
  notification:default so the webview can reach Tauri APIs.
- Move window width/scale reads to a new Rust command
  resize_preserving_width(height). The UI no longer needs any
  @tauri-apps/api/window permissions to collapse or expand.
- Add get_logical_size so the UI can capture the user's current
  expanded height before collapsing and restore it on expand,
  rather than snapping back to a hardcoded 520px.
- Replace the row-estimate math with a ResizeObserver over
  CollapsedBar's real content — exact pixel fit, no clipped pills
  or dead space after pill wrapping changes.
- Stop swallowing invoke errors: console.error instead of catch {}.
- Tests: Rust unit tests for the scale-factor helper, Vitest tests
  for hubStore.expandedHeight + setExpandedHeight clamping, and
  App-level tests that verify resize_preserving_width is invoked
  with the persisted height on expand and the captured height on
  collapse.
- Docs: README now describes the collapse behaviour accurately.
- Bump app version to 1.0.1.