Skip to content

Clarify Text Patch empty states and path hints - #649

Merged
baseGame merged 3 commits into
masterfrom
accept/text-patch-ux-2026-10-06
Oct 6, 2026
Merged

baseGame merged 3 commits into
masterfrom
accept/text-patch-ux-2026-10-06

Conversation

@baseGame

@baseGame baseGame commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Text Patch is easier for first-time users:

  • Stage-aware empty hints that point at Parse Patch (and Open Patch…)
  • Open Patch browse so opening a .patch/.diff is obvious
  • Source/target path placeholders; Enter on source loads text for Apply Patch
  • Parse / Apply / Apply to File disabled with plain tips until ready
  • Clearer Apply to File missing-source message; patch file path no longer overwrites the apply source path

Test plan

  • vitest TextPatchView (empty state, Open Patch, Enter source, Apply to File tip)
  • lint / typecheck / stylelint via pre-commit
  • CI green

Add stage-aware empty hints, Open Patch browse, source/target path
placeholders, Enter-to-load source, disabled Parse/Apply tips, and
clearer Apply to File messaging so first-time users know the next step.
Fill patch and source text before Apply so the CTA stays gated until
ready, matching the friendlier disabled-button behavior.
Naive UI NInput puts data-testid on the wrapper; Playwright fill needs
the inner textarea.
@baseGame
baseGame merged commit 0ae8477 into master Oct 6, 2026
1 check 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