refactor: move IDE selection to inline dropdown in Folder view (#1254)#1261
Conversation
|
Can you add a short video or snapshot for your PR? Thanks. |
Move IDE selection to the point of action via a dropdown menu on the terminal icon button, offering "Open in VS Code", "Open in Cursor", and "Open in File Manager" options. Remembers last choice via authStore.
The IDE selection is now handled inline in the Folder view dropdown, making this settings section redundant.
Add open-in-vscode, open-in-cursor, open-in-file-manager keys to chat.json across all 11 locales. Remove obsolete preferred-ide, preferred-ide-description, and system-file-manager keys from setting.json.
ab87764 to
864752b
Compare
|
@Pakchoioioi @bytecii please review the screenshots, I attached |
|
Hi @Douglasymlai would you review this PR? |
|
thanks @eureka928 for the contribution and sorry for the late reply, could @4pmtong and @fengju0213 help reviewing this? |
|
I'd like to follow up on this |
|
Hi @Douglasymlai @a7m-1st would you review this PR as well? |
Douglasymlai
left a comment
There was a problem hiding this comment.
@eureka928 Thanks for contributing. Feature function testing passed. There are no conflicts. There are still some space for UX improvement but we can merge this PR first. @4pmtong Can you help run the final review for the code before merging?
|
@Douglasymlai thank you for your review |
fengju0213
left a comment
There was a problem hiding this comment.
overall looks good thanks !@eureka928
Related Issue
Closes #1254
Description
The "Open in IDE" feature (PR #1159) currently splits the action across two disconnected places: a "Preferred IDE" dropdown in Settings → General and a terminal icon button in the Folder view header. This is hard to discover and adds unnecessary friction.
This PR moves IDE selection to the point of action by replacing the single icon button with an inline DropdownMenu that offers three options directly: "Open in VS Code", "Open in Cursor", and "Open in File Manager". The last choice is remembered via
authStore.setPreferredIDE(). The now-redundant Settings section is removed.Key Changes:
src/components/Folder/index.tsx:<Button>with a<DropdownMenu>using the same terminal icon as triggerhandleOpenInIDE(ide)functionauthStore.setPreferredIDE(ide)src/pages/Setting/General.tsx:src/i18n/locales/*/chat.json(11 locales):open-in-vscode,open-in-cursor,open-in-file-managerkeys with translationssrc/i18n/locales/*/setting.json(11 locales):preferred-ide,preferred-ide-description,system-file-managerkeysNo changes needed:
src/store/authStore.ts—preferredIDE+ persistence kept (still used to remember last choice)electron/main/index.ts— IPC handlers unchangedelectron/preload/index.ts— Preload bridge unchangedTesting Evidence (REQUIRED)
What is the purpose of this pull request?
Contribution Guidelines Acknowledgement