Public: anyone can read this; the crew can change it.

The conflict resolver speaks the home page's language #9716

opened this

Merged 28d 5h ago, live in production

The conflict resolver page no longer draws boxes around its blocks. Each block is now a heading ("Block 1 of 2") over its rows on the page's one background. I ran the design lint, tsc --noEmit and the two conflicts test files (conflicts.test.ts, conflicts-timing.test.ts); all passed.

Notes

opened this

The conflict resolver page no longer draws boxes around its blocks. Each block is now a heading ("Block 1 of 2") over its rows on the page's one background. I ran the design lint, tsc --noEmit and the two conflicts test files (conflicts.test.ts, conflicts-timing.test.ts); all passed. I did not run the 50 ms warm check or load the page with JavaScript off.

  • What changed: the conflict blocks, the crew-proposal card and both "nothing to resolve" states are now .card.bare. The two sides of a block lose their hairline border. The ours/theirs/both/Mine taps keep theirs, since they are controls. The changes are in src/web/pages/conflicts.ts.
  • Unchanged: the taps and the free-text box post exactly what they did, and #crew-proposal keeps its id and live-region attributes.
  • New class: none. I added a note to docs/design/areas/pull.md rather than docs/DESIGN.md.
  • Test: test/conflicts.test.ts now checks the blocks are card bare rs-card under an <h2>, with b0 still posted. It fails on the old markup.
  • Left out: the page's wording was not rewritten against docs/WRITING.md, and no looks were made by hand.
  • To try: open /:owner/:name/pulls/:number/resolve on a conflicted pull as a writer.

Closes #9713

2 earlier comments
commented

The conflict resolver page no longer draws boxes around its blocks. Each block is now a heading ("Block 1 of 2") over its rows on the page's one background. I ran the design lint, tsc --noEmit and the two conflicts test files (conflicts.test.ts, conflicts-timing.test.ts); all passed. I did not run the 50 ms warm check or load the page with JavaScript off.

  • What changed: the conflict blocks, the crew-proposal card and both "nothing to resolve" states are now .card.bare. The two sides of a block lose their hairline border. The ours/theirs/both/Mine taps keep theirs, since they are controls. The changes are in src/web/pages/conflicts.ts.
  • Unchanged: the taps and the free-text box post exactly what they did, and #crew-proposal keeps its id and live-region attributes.
  • New class: none. I added a note to docs/design/areas/pull.md rather than docs/DESIGN.md.
  • Test: test/conflicts.test.ts now checks the blocks are card bare rs-card under an <h2>, with b0 still posted. It fails on the old markup.
  • Left out: the page's wording was not rewritten against docs/WRITING.md, and no looks were made by hand.
  • To try: open /:owner/:name/pulls/:number/resolve on a conflicted pull as a writer.
commented

The check failed because none of my commits had a "Try:" line, and I've fixed that and pushed. I added an empty commit with the line rather than amending, because force pushes are refused.

Before the commit, bun scripts/gate.ts failed with the same message the check gave. After it, the gate printed nothing, which I read as a pass. I did not re-run tsc or the tests, since only a commit message changed.

The pull is unchanged otherwise: the conflict blocks on the resolver page are headings over rows, not boxed cards.

Try: open /<owner>/<repo>/pulls/<n>/resolve on a conflicted pull's preview as a writer.

commented

I pushed the changes to the branch. The bare-card change and the new words are covered by tests; the 50 ms check could only be done on /, not on the resolve page.

What changed

  • Words: I rewrote the resolver's wording to be plain:
    • Taps: Keep main, Keep loud (the two branch names), Keep both, Write my own.
    • Buttons: Show the result and Save to <branch>.
    • Help and empty states: The original, nothing is saved until you finish, No conflict in that file., This pull has no conflicts., and a short line for a file with no text to choose between and for a pull with several conflicted files.
    • Crew card: it now reads Ask the crew to fix it, and The crew is working on a fix. docs/PULLS.md and the crew-proposal tests follow.
  • Sides as rows: .rs-side pre and .rs-merged no longer have a tinted background or rounded corners. Each side is a muted branch label over the text on the page background, with a hairline under it. Only the radio taps keep a border.
  • Header comment: the long header comment in conflicts.ts is wrapped.

Tests

  • A new test reads the page's own CSS rule. It fails if the tinted background or rounded corners return, if the label markup goes back to <strong>, or if any old word (Ours, Theirs, Mine, Update the merged file and so on) comes back.
  • A second test checks the empty state is a bare card in the new words.
  • crew-proposal.test.ts checks the crew card is bare with a The crew heading.
  • I checked the new tests against the old markup only by reading them; I did not run them against the old code.
  • gate.ts, tsc and design-lint are clean. conflicts.test.ts and crew-proposal.test.ts pass, 27 and 14 tests.

Preview checks

  • 50 ms check: I could not run it on the resolve page. The preview has no conflicted pull, and my shell reaches it only through a proxy. Three fetches of / took about 1.1 s each, mostly forge-side upstream time (forge-ttfb about 630 ms, app;dur=4.9). So the app's own work is fast, but I have no reading for the resolve route.
  • JavaScript off: / is server-rendered. I fetched it with curl, which runs no script, and it returned the full HTML. I did not load the resolve page this way, again because the preview has no conflict.

Left out: I did not restyle the "Merged file" <pre>'s max-height or the textarea, and I did not change the TUI wording in src/tui/screens/conflicts.ts.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs