-
Notifications
You must be signed in to change notification settings - Fork 53
Add platform-specific terminal app checking #1983
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
📊 Performance Test ResultsComparing 50229b1 vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
epeicher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for improving this @ivan-ottinger! I have tested on both, Mac and Windows, and they display the correct Terminal applications. LGTM! ![]()
| Mac | Windows |
|---|---|
![]() |
![]() |
I have left a minor suggestion of refactor to consider, but feel free to progress with this version if you prefer it
src/stores/installed-apps-api.ts
Outdated
| terminalConfig, | ||
| isTerminalSupportedOnPlatform, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking suggestion: What do you think about adding a method that returns directly the terminal supported by platform? Something like getTerminalsSupportedOnPlatform so the lib/terminal is in charge of doing the filtering? I think this leaves the filtering responsibility to the terminal lib and makes the code more maintainable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the suggestion, Roberto! I have made the change in 6d22cf7.
I agree it is more maintainable and easier to read as well. 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ivan-ottinger for addressing the comment! I’ve tested it again on Mac and Windows, and it works perfectly 🙌
* Add platform-specific terminal app checking * Fix typo * Fix tests * Improve terminal support detection and filtering


Related issues
Related to STU-931
Proposed Changes
On Monday I am planning to propose adding PowerShell as another terminal option on Windows in another PR.→ Update: After further consideration I don't think it makes sense to add PowerShell. In the future we could consider some additional options though.
Testing Instructions
npm install && npm starton Windows.Command PromptandWarpapp options available.Pre-merge Checklist