-
Notifications
You must be signed in to change notification settings - Fork 625
fix: add fix for setting page with shortcut #919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughCentralizes GO_SETTINGS handling in the main process. Shortcuts now send via eventBus to WindowPresenter, which opens or focuses a Settings tab in the target window. Renderer removes its GO_SETTINGS listener and delegates AppBar settings action to WindowPresenter. Types updated to expose the new method. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User as User
participant KS as ShortcutHandler
participant EB as eventBus (renderer→main)
participant WP as WindowPresenter (main)
participant TP as TabPresenter
participant W as BrowserWindow
User->>KS: Press cmd+, (GO_SETTINGS)
KS->>EB: sendToMain(GO_SETTINGS, focusedWindowId)
EB->>WP: GO_SETTINGS(windowId)
note right of WP: Determine target window: provided id → focused → main
WP->>W: Resolve/ensure target window
WP->>TP: getTabs(windowId)
TP-->>WP: tabs[]
alt Settings tab exists
WP->>TP: activateTab(settingsTabId)
else Create new
WP->>TP: createTab({ url: "local://settings", activate: true })
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (25)**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/development-setup.mdc)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/error-logging.mdc)
Files:
src/shared/**/*.{ts,tsx,d.ts}📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Files:
**/*.{ts,tsx,js,vue}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx,vue}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/shared/**/*.ts📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/shared/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{js,jsx,ts,tsx,vue}📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/{main,renderer}/**/*.ts📄 CodeRabbit inference engine (.cursor/rules/electron-best-practices.mdc)
Files:
src/main/**/*.ts📄 CodeRabbit inference engine (.cursor/rules/electron-best-practices.mdc)
Files:
src/main/**/*.{ts,js,tsx,jsx}📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Files:
src/main/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/main/presenter/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/renderer/src/**/*📄 CodeRabbit inference engine (.cursor/rules/i18n.mdc)
Files:
src/renderer/**/*.{vue,ts,js,tsx,jsx}📄 CodeRabbit inference engine (.cursor/rules/project-structure.mdc)
Files:
src/renderer/src/**/*.{vue,ts,tsx,js,jsx}📄 CodeRabbit inference engine (.cursor/rules/vue-best-practices.mdc)
Files:
src/renderer/src/**/*.vue📄 CodeRabbit inference engine (.cursor/rules/vue-best-practices.mdc)
Files:
src/renderer/**/*.{ts,tsx,vue}📄 CodeRabbit inference engine (.cursor/rules/vue-shadcn.mdc)
Files:
src/renderer/**/*.{vue,ts}📄 CodeRabbit inference engine (.cursor/rules/vue-shadcn.mdc)
Files:
src/renderer/**/*.{ts,vue}📄 CodeRabbit inference engine (.cursor/rules/vue-shadcn.mdc)
Files:
src/renderer/{src,shell,floating}/**/*.vue📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/renderer/src/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/renderer/src/**/*.{vue,ts}📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/renderer/**/*.vue📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/renderer/shell/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (4)📚 Learning: 2025-07-21T01:45:54.229ZApplied to files:
📚 Learning: 2025-09-16T07:06:30.939ZApplied to files:
📚 Learning: 2025-07-21T01:47:11.608ZApplied to files:
📚 Learning: 2025-07-23T00:45:57.322ZApplied to files:
🧬 Code graph analysis (2)src/main/presenter/shortcutPresenter.ts (2)
src/main/presenter/windowPresenter/index.ts (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (9)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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. Comment |
fix #918
Summary by CodeRabbit
New Features
Bug Fixes
Refactor