feat(tray): enable zoom hotkeys on dashboard/setup windows
Your work logs itself. Meridian watches what you build - no prompts, no timers - classifies every session into the right task, and auto-updates Jira, Linear, and GitHub Issues. All data stays on your machine.
Brought to you by:
prateekbhoge320
Originally posted by: coderabbitai[bot]
โจ Finishing Touches
๐งช Generate unit tests (beta)
- [ ] Create PR with unit tests - [ ] Commit unit tests in branch `feat/window-zoom-hotkeys`Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
โค๏ธ Share
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)Comment
@coderabbitai helpto get the list of available commands.Originally posted by: Akarsh-Hegde
Review โ enable zoom hotkeys on dashboard/setup windows
Summary: Enables native zoom hotkeys on the dashboard/setup webviews (plus an unrelated asset-protocol scope); wiring is correct and window coverage is complete, but the PR folds in scope-creep and its test plan never actually exercises the feature.
Blocking / correctness issues
None. The wiring is sound: both runtime dashboard builders (
system.rs:51open_dashboardandtray.rs:106open_native_dashboard, label"dashboard") and the setup builder (tray.rs:176open_wizard_window, label"setup") get.zoom_hotkeys_enabled(true), and thedefaultcapability already scopes["main","dashboard","setup","tray-tooltip"](capabilities/default.json:4), so the newcore:webview:allow-set-webview-zoompermission reaches those windows. No missing window label.Suggestions / nits
assetProtocolblock is unrelated to zoom (tauri.conf.json:16-19). It's "groundwork for the per-app icon PR" (#411), has no consumer in this diff, and would review far more naturally alongside the code that readsicon-cache/. Recommend moving it there so this PR stays single-purpose. If it stays: the glob$HOME/.meridian/icon-cache/*is single-level โ use**if the cache is ever nested.allow-set-webview-zoommay be redundant for hotkeys.zoomHotkeysEnableddrives the platform-native Cmd+/Cmd-/Cmd0 handlers; thecore:webview:allow-set-webview-zoomACL gates the JSsetZoom()path, which nothing in this diff calls. Harmless to keep, but if you're not doing programmatic zoom from JS it's an unused grant.zoomHotkeysEnabled: trueonmainandtray-tooltip(tauri.conf.json:39,:58) is pointless โ those are the fixed-size, non-resizable popover/tooltip. Not harmful; consider dropping them to keep intent clear.cargo build/clippyprove it links, not that Cmd+/Cmd- actually zoom the dashboard/setup webviews (exactly the class of thing that silently no-ops on a permission/window-flag mismatch). A one-line manual confirmation before merge would be worth it.Convention check: clean โ both
.rsfiles keep the line-1 header, JSON is exempt, no new command so the tracing requirement doesn't apply.Verdict: Approve with nits. No correctness defects. Please split out the
assetProtocolchange (or defer to the icon PR) and do a quick runtime check that the hotkeys actually zoom.๐ค Automated review via Claude Code
Ticket changed by: adityaharishch