Skip to content

fix(ui): restore spaces around orca.yaml in trust dialog - #9511

Merged
nwparker merged 1 commit into
mainfrom
nwparker/missing-space
Jul 20, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/missing-space

Conversation

@nwparker

@nwparker nwparker commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fix missing spaces in the orca.yaml setup-hook trust dialog so the description and "Always trust" checkbox no longer glue words together (repository'sorca.yaml, trustorca, Always trustorca.yaml inorca).
  • Explicit JSX whitespace between translate fragments (same pattern as the already-correct "script changed" path).
  • Trim Spanish locale trailing spaces that would double once JSX owns spacing.
  • Add unit coverage for first-run and re-approval copy.

Screenshots

Before After
before after

Before: This repository'sorca.yaml / trustorca / Always trustorca.yaml inorca
After: This repository's orca.yaml / trust orca / Always trust orca.yaml in orca

Test plan

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/sidebar/OrcaYamlTrustDialog.test.tsx
  • Manually open a workspace create flow that shows the orca.yaml trust dialog and confirm:
    • Description: This repository's orca.yaml runs... Only run if you trust <repo>.
    • Checkbox: Always trust orca.yaml in <repo>

Adjacent translate fragments glued the filename and repo name together
(e.g. "repository'sorca.yaml", "trustorca", "Always trustorca.yaml inorca").
Insert explicit JSX spaces between fragments, trim Spanish strings that
already carried trailing space, and lock the copy with a unit test.
@nwparker

Copy link
Copy Markdown
Contributor Author

Attachments

before.png after.jpg
before.png after.jpg

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updated OrcaYamlTrustDialog JSX to preserve whitespace between translated text, inline code, and the repository name. Adjusted three Spanish translation segments to remove trailing spaces. Added Vitest coverage for first-run and script-changed dialog states, validating expected and malformed text concatenations after static rendering.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning It covers summary, screenshots, and testing, but omits the required AI Review Report, Security Audit, and Notes sections from the template. Add the missing template sections and include the required review, security, and platform notes; rename Test plan to Testing if possible.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main UI spacing fix in the trust dialog.
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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/renderer/src/components/sidebar/OrcaYamlTrustDialog.test.tsx (1)

49-56: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Prefer @testing-library/react here. The manual renderToStaticMarkup + entity decoding/tag stripping path is brittle, and this repo already uses DOM-based renderer tests with happy-dom. Rendering the component and asserting container.textContent or screen.getByText(...) would make the whitespace checks simpler and avoid HTML parsing edge cases.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b2ebd4cf-4bd3-48db-ac0c-fc5f2d8d72ab

📥 Commits

Reviewing files that changed from the base of the PR and between c0f0810 and b8fb5c9.

📒 Files selected for processing (3)
  • src/renderer/src/components/sidebar/OrcaYamlTrustDialog.test.tsx
  • src/renderer/src/components/sidebar/OrcaYamlTrustDialog.tsx
  • src/renderer/src/i18n/locales/es.json

@nwparker
nwparker merged commit 7df56ad into main Jul 20, 2026
2 checks passed
@nwparker
nwparker deleted the nwparker/missing-space branch July 20, 2026 04:16
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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