Skip to content

Say why to move projects in the WSL move dialog - #37390

Merged
nwparker merged 2 commits into
mainfrom
wsl-ux-move-why
Nov 2, 2026
Merged

nwparker merged 2 commits into
mainfrom
wsl-ux-move-why

Conversation

@nwparker

@nwparker nwparker commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The "Move projects to the host" dialog explained what happens during a move but never said why you would want to. It now opens with one plain sentence saying why, and how to undo it.

What Changed

Before, the dialog started with:

Your files stay where they are. Terminals restart in the same folder; their output, shell history and agent conversations are kept.

After, one line comes first:

Work then runs inside Linux, next to your files, so terminals, Git and file changes are faster and more reliable. Your projects don't change, and you can move any project back with "Use on this computer again".

The rest of the dialog is unchanged and stays compact. The same dialog is used by both entry points, Settings → Remote Orca Servers → "Move projects from this distro…" and the in-context offers that lead into it, so both get the line. The new string is translated into all ten shipped languages, quoting each language's existing "Use on this computer again" label.

Why

Users being asked to move projects had no stated reason to do it. The sentence is deliberately plain: we measured terminals opening about 3.5× faster on a WSL host, but we keep numbers out of the UI because they vary by machine. The way back is the existing "Use on this computer again" action, named exactly as it appears in the sidebar.

The add-project "Run as a host" offer already has its own one-line reason, and another change is reworking that flow, so its text is left alone here.

Linked Issue

Maintainer change, no issue.

Visual Proof

The move dialog only mounts on Windows with WSL hosts enabled, so it cannot open in a macOS dev build. Screenshots are the dialog body rendered from the real component and placed in the running dev app (real styles, hidden window, CDP screenshot). They will be attached in a comment.

Testing

  • I manually tested these changes locally (rendered as described above; not on Windows)

  • Automated tests added/updated

  • WslMoveDialog.test.tsx: the preview shows the reason line and the "Use on this computer again" way back, with no numbers in it.

  • pnpm tc, pnpm typecheck:ci, pnpm lint (includes check:code-quality:changed, oxlint and the localization checks), and the localization catalog, runtime-catalog and protected-copy checks.

Risk

Level: Low

Copy only: one new string and one paragraph. Nothing about the move itself changes. A plain revert backs it out.

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@nwparker
nwparker marked this pull request as ready for review November 2, 2026 07:14
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 42421efa-5535-48f9-bde2-dd94924cdf2b
Commits

Reviewing files that changed from the base of the PR and between 46004ff and 4d66202.

Files selected for processing: 2
  • src/renderer/src/components/wsl-move/WslMovePreviewBody.tsx
  • src/renderer/src/i18n/locales/en.json
Files skipped from review as they are similar to previous changes: 2
  • src/renderer/src/components/wsl-move/WslMovePreviewBody.tsx
  • src/renderer/src/i18n/locales/en.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Walkthrough

The WSL move preview now displays a translated explanation of Linux-based work, project preservation, and the option to move projects back. Locale updates also remove a duplicate Spanish translation and distinguish browser-login warnings in French. A test checks that the explanation mentions working inside Linux and the return option, with no digits.

Merge Risk: Minimal · up to 4d662

The supplied evidence identifies no issue that needs to be fixed before merging the dialog-copy change.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: adding an explanation of why users should move projects in the WSL move dialog.
Description check Passed The description is complete and focused. It explains the user-facing change, rationale, testing, risk, scope, translations, and rollback plan. Visual proof is described as pending in a comment, and th…
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.
Full details: Description check

Explanation

The description is complete and focused. It explains the user-facing change, rationale, testing, risk, scope, translations, and rollback plan. Visual proof is described as pending in a comment, and the maintainer exception explains why no linked issue is provided.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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/wsl-move/WslMoveDialog.test.tsx: 1

59-64: Trivial · Maintainability & Code Quality · Quick win

Add the missing project-preservation assertion.

The test title says it verifies that projects keep working as before, but the assertions only check the Linux rationale, the return action, and the absence of digits. The test still passes if Your projects don’t change is removed from the paragraph. Add an assertion for that clause. (raw.githubusercontent.com)

Suggested assertion
     expect(why).toContain('“Use on this computer again”')
+    expect(why).toContain('Your projects don’t change')
     // Plain claims only: no measured numbers in the copy.

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c1424301-d038-4f4d-b1ed-e36ec3e790a0
Commits

Reviewing files that changed from the base of the PR and between 5c27709 and 46004ff.

Files selected for processing: 13
  • src/renderer/src/components/wsl-move/WslMoveDialog.test.tsx
  • src/renderer/src/components/wsl-move/WslMovePreviewBody.tsx
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

@nwparker
nwparker merged commit f8ce006 into main Nov 2, 2026
42 checks passed
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