Skip to content

Disable add project button for empty path.#725

Merged
juliusmarminge merged 1 commit intopingdotgg:mainfrom
sbansal1999:disable-add-button
Mar 9, 2026
Merged

Disable add project button for empty path.#725
juliusmarminge merged 1 commit intopingdotgg:mainfrom
sbansal1999:disable-add-button

Conversation

@sbansal1999
Copy link
Copy Markdown
Contributor

@sbansal1999 sbansal1999 commented Mar 9, 2026

What Changed

Disables the 'Add' button in the 'Add Projects' section when the entered path is empty.

Why

Can be misleading sometines.

UI Changes

Before After
image image

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.

@github-actions github-actions bot added the vouch:unvouched PR author is not yet trusted in the VOUCHED list. label Mar 9, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 9, 2026

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@juliusmarminge juliusmarminge merged commit 99dbe4f into pingdotgg:main Mar 9, 2026
5 checks passed
@sbansal1999 sbansal1999 deleted the disable-add-button branch March 10, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants