Skip to content

fix(web): update add-project toggle label in cancel state#1248

Merged
juliusmarminge merged 3 commits intopingdotgg:mainfrom
UtkarshUsername:fix/add-project-toggle-label
Mar 20, 2026
Merged

fix(web): update add-project toggle label in cancel state#1248
juliusmarminge merged 3 commits intopingdotgg:mainfrom
UtkarshUsername:fix/add-project-toggle-label

Conversation

@UtkarshUsername
Copy link
Contributor

@UtkarshUsername UtkarshUsername commented Mar 20, 2026

What Changed

Updated the sidebar add-project toggle so its text matches the control's cancel state when the add-project form is open.

Specifically:

  • the toggle aria-label now switches between Add project and Cancel add project
  • the tooltip text now switches between Add project and Cancel add project

Why

The toggle already changes behavior when the add-project form is open, but its text stayed stuck in the add-project state. Aria label and hover tooltip text were left out of sync with the actual action.

This is a small bug fix that makes the control state explicit and consistent.

UI Changes

Before:

  • Closed state: tooltip Add project, accessible label Add project
  • Open state: tooltip Add project, accessible label Add project
image

After:

  • Closed state: tooltip Add project, accessible label Add project
  • Open state: tooltip Cancel add project, accessible label Cancel add project
image

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes

Note

Fix add-project button label and tooltip to show 'Cancel add project' when active

The aria-label and tooltip text for the add-project button in the Sidebar were always showing 'Add project', even when the project path entry was open. Both now conditionally render 'Cancel add project' or 'Add project' based on the shouldShowProjectPathEntry state.

Macroscope summarized f43a3ff.

- Update the sidebar button aria-label to reflect add/cancel states
- Improves accessibility when toggling project path entry
- Show "Cancel add project" while project path entry is open
- Keep the tooltip label aligned with the add-project toggle state
@coderabbitai
Copy link

coderabbitai bot commented Mar 20, 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: f154cb1f-9981-4593-985d-f2a719cd1148

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

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.

@github-actions github-actions bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Mar 20, 2026
@juliusmarminge juliusmarminge enabled auto-merge (squash) March 20, 2026 18:28
@juliusmarminge juliusmarminge merged commit 34cef62 into pingdotgg:main Mar 20, 2026
9 checks passed
aaditagrawal pushed a commit to aaditagrawal/t3code that referenced this pull request Mar 21, 2026
gabrielMalonso pushed a commit to gabrielMalonso/t3code that referenced this pull request Mar 21, 2026
bulbulogludemir added a commit to bulbulogludemir/krabbycode that referenced this pull request Mar 21, 2026
Ported from pingdotgg/t3code (bc12421..9e29c9d):

- feat: persist modelOptions, refactor provider-specific logic (pingdotgg#1121)
  Sticky model/options in composer, composerProviderRegistry, shared
  resolveSelectableModel utility
- fix(ChatView): update scroll button styles (pingdotgg#1246)
- fix(web): show health banner for selected provider (pingdotgg#1223)
- fix(web): update add-project toggle label in cancel state (pingdotgg#1248)
- Prefer Claude user ID for telemetry identity (pingdotgg#1249)
- feat: configurable base directory (pingdotgg#826)
  Renamed stateDir → baseDir, T3CODE_STATE_DIR → T3CODE_HOME,
  deriveServerPaths for attachmentsDir/logsDir/dbPath/anonymousIdPath

All changes adapted for Krabby branding and merged with existing features.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). 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