Skip to content

fix(ui): right-align Project detail in new workspace combobox - #11521

Merged
nwparker merged 1 commit into
mainfrom
nwparker/run-on-style
Jul 30, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/run-on-style

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

Right-aligns the Project combobox detail text so it matches the Run on field layout.

Previously, short provider details like stablyai/orca sat next to the project name with only gap-2 spacing (justify-end alone does nothing on the non-flex single-span detail path). Run on already used text-right so the path sat on the far right. Project now does the same.

Screenshots

Before — detail sits next to the name:

before-project-spaced.png

After — Project detail right-aligned like Run on:

project-runon-dialog.png

Full Electron window (dev instance, CDP screenshot):

project-detail-right-align.png

Test plan

  • Open Create worktree dialog with a GitHub project selected
  • Confirm stablyai/orca (or other short detail) sits on the far right of the Project field, matching Run on
  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/new-workspace/ProjectCombobox.test.tsx (18 passed)
  • Sanity-check a long path detail still truncates correctly from the left/head

Match Run on field layout so short provider details like stablyai/orca
sit on the far right of the committed Project field instead of next to the name.
@greptile-apps

greptile-apps Bot commented Jul 30, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds text-right to the ProjectOptionDetail className in the committed-selection display of ProjectCombobox, fixing an alignment mismatch where short detail strings (e.g. stablyai/orca) sat next to the project name instead of being pushed to the far right of the field.

  • The non-split (single-<span>) path in ProjectOptionDetail had justify-end but no flex context on the span itself, so only text-right actually produces right-alignment there — the fix is correct for this case.
  • The split (two-segment) path already relied on flex justify-end to right-push the path fragments; adding text-right is consistent with ProjectOptionRow's existing class list (text-right justify-end) and does not regress truncation behavior.

Confidence Score: 5/5

Safe to merge — a single-class addition with no logic changes and a passing test suite.

The fix is a one-word Tailwind addition that corrects a known CSS behaviour: justify-end has no effect on a non-flex span, so text-right is the correct way to right-align its inline text. All 18 unit tests pass and the change is isolated to the committed-selection display overlay.

Files Needing Attention: No files require special attention.

Important Files Changed

Filename Overview
src/renderer/src/components/new-workspace/ProjectCombobox.tsx Adds text-right to the committed-selection detail span, matching the alignment pattern already used in ProjectOptionRow and the Run on field.

Reviews (1): Last reviewed commit: "fix(ui): right-align Project detail in n..." | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ad6d2212-2c35-454f-b27d-559bba6ece82

📥 Commits

Reviewing files that changed from the base of the PR and between a60aa85 and 5551591.

📒 Files selected for processing (1)
  • src/renderer/src/components/new-workspace/ProjectCombobox.tsx

📝 Walkthrough

Walkthrough

The committed selected project detail container in ProjectCombobox now includes the text-right styling class. Existing flex, shrinking, justification, text-size, and muted-text classes remain unchanged.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning Summary, screenshots, and testing are present, but the required AI Review Report, Security Audit, and Notes sections are missing. Add the missing AI Review Report, Security Audit, and Notes sections, and include any required cross-platform checks and follow-up notes.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main UI change: right-aligning Project detail text in the new workspace combobox.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@nwparker
nwparker merged commit 3bc9355 into main Jul 30, 2026
2 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…ai#11521)

Match Run on field layout so short provider details like stablyai/orca
sit on the far right of the committed Project field instead of next to the name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant