Disable add project button for empty path. by sbansal1999 · Pull Request #725 · pingdotgg/t3code
Conversation
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
- This PR is small and focused
- I explained what changed and why
- I included before/after screenshots for any UI changes
- I included a video for animation/interaction changes
Note
Disable 'Add' project button when path input is empty
Adds a canAddProject check 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.
Important
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: ca2e7548-3eb1-4b17-8fc7-6a73d7660d43
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
Tip
Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.
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 @coderabbitai help to get the list of available commands and usage tips.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters