Repository navigation
fix(ui): restore spaces around orca.yaml in trust dialog - #9511
Conversation
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.
📝 WalkthroughWalkthroughUpdated 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/renderer/src/components/sidebar/OrcaYamlTrustDialog.test.tsx (1)
49-56: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winPrefer
@testing-library/reacthere. The manualrenderToStaticMarkup+ entity decoding/tag stripping path is brittle, and this repo already uses DOM-based renderer tests withhappy-dom. Rendering the component and assertingcontainer.textContentorscreen.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
📒 Files selected for processing (3)
src/renderer/src/components/sidebar/OrcaYamlTrustDialog.test.tsxsrc/renderer/src/components/sidebar/OrcaYamlTrustDialog.tsxsrc/renderer/src/i18n/locales/es.json


Summary
orca.yamlsetup-hook trust dialog so the description and "Always trust" checkbox no longer glue words together (repository'sorca.yaml,trustorca,Always trustorca.yaml inorca).translatefragments (same pattern as the already-correct "script changed" path).Screenshots
Before:
This repository'sorca.yaml/trustorca/Always trustorca.yaml inorcaAfter:
This repository's orca.yaml/trust orca/Always trust orca.yaml in orcaTest plan
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/sidebar/OrcaYamlTrustDialog.test.tsxThis repository's orca.yaml runs... Only run if you trust <repo>.Always trust orca.yaml in <repo>