fix(web): show text input for adding projects on Linux desktop#1075
fix(web): show text input for adding projects on Linux desktop#1075eggfriedrice24 wants to merge 1 commit intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip CodeRabbit can use OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.OpenGrep is compatible with Semgrep configurations. Add an |
Summary
On Linux/Wayland, the GTK file picker is broken for folder selection in Electron apps, completely blocking adding projects. This shows the web-style text input on Linux desktop instead of immediately opening the native file picker.
Closes #966
Closes #270
Changes
isElectron && /linux/i.test(navigator.platform))Test plan
Note
Show text input for adding projects on Linux desktop in Electron
On Linux, the native file browser dialog is not triggered immediately when adding a project in Electron. Instead, Sidebar.tsx now detects Linux via a case-insensitive check on
navigator.platformand shows the project path text input instead.Macroscope summarized 387d58a.