You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add zoom controls and fix Tauri desktop dev navigation (#135)
## Summary
- Add frontend zoom controls for the Tauri desktop build
(Cmd+/Cmd-/Cmd+0 hotkeys and status bar buttons)
- Fix Tauri navigation guard race that caused the app to open in Chrome
instead of the webview
## Changes
**Zoom controls** (`b8eded7`):
- Add `zoomLevel` state to UIStore with localStorage persistence and CSS
`zoom` property application
- Handle Cmd+=, Cmd+-, Cmd+0 in the keyboard shortcut handler
- Add `[-] 100% [+]` controls to the status bar (click percentage to
reset)
- Zoom steps: 67%, 75%, 80%, 90%, 100%, 110%, 125%, 150%, 175%, 200%
**Tauri navigation fix** (`a6d1329`):
- Switch the backend redirect from
`window.eval("window.location.replace(...)")` to Tauri's native
`window.navigate()` API
**Review fixes** (`9ad264f`):
- Gate zoom controls, keyboard shortcuts, and CSS zoom effect behind
desktop detection (`?desktop` query param) so browser builds keep native
Cmd+/- zoom
- Tighten navigation guard to only allow the known sidecar port on
`127.0.0.1` instead of any localhost port — reads `backend_port` from
`SidecarState` at navigation time
## Test plan
- [ ] Run `make desktop-dev` and verify the app loads inside the Tauri
window (not Chrome)
- [ ] Press Cmd+= / Cmd+- to zoom in/out; verify the UI scales
- [ ] Press Cmd+0 to reset zoom to 100%
- [ ] Click the `[-]` / `[+]` / percentage buttons in the status bar
- [ ] Verify zoom level persists across app restarts
- [ ] Verify the `?` shortcuts modal lists the zoom shortcuts
- [ ] Open the web build (not desktop) and verify Cmd+/- uses native
browser zoom, no zoom controls in status bar
- [ ] Run `make test` to verify Go tests pass
- [ ] Run `cargo test` in `desktop/src-tauri/` to verify Rust tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments