Disable add project button for empty path.#725
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)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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 |
What Changed
Disables the 'Add' button in the 'Add Projects' section when the entered path is empty.
Why
Can be misleading sometines.
UI Changes
Checklist
Note
Disable 'Add' project button when path input is empty
Adds a
canAddProjectcheck in Sidebar.tsx that requires the path input (newCwd) to be non-empty after trimming before enabling the button. Previously, the button was only disabled while an add operation was in progress.Macroscope summarized 4f86620.