Fix #547: merge strategy select #552
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!552
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-547"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #547 — the merge-strategy select on the PR page joins the system select idiom (styling/markup only; no backend, SDK, or API change; no new deps).
What changed (4 files):
web/src/components/MergeBox.jsx— strategy select takes the canonical.input w-full(same-page finish-review-verdict sibling,Pull.jsx:678); undefinedfieldlabel becomes the #479 shape (label.grid.gap-1 mt-2+text-sm font-mediumspan). Themt-2button row below keeps its spacing — no overlap desktop or ~390px (sidebar stacks full-width, select fills it).web/src/ui.css— base layer declares:root { color-scheme: light }+.dark { color-scheme: dark }so the NATIVE dropdown panel/option highlight follows the theme. Deliberately noappearance-none(OwnerNameRow precedent).web/test/unit/merge-strategy-select-547.test.js— 6 headless tests (idiom/width/options, no-bare/no-field pins, #479 label + button-row order, base-layer color-scheme + intact-.input, full-src select sweep + named siblings, no-behavior-change).docs/go/12_web_ui.md— law-12 decision (guideline §2.input+ §7 form shape by reference; no new pattern).Deliberately untouched: legacy
web/css/base.css:74bare-select rule (unbundled —index.jsximports ui.css only; sweep proves no bare selects remain);PullNew.jsxfieldlabels (separate page, stays a noted follow-up per #545).Acceptance: all 5 criteria pinned in the new test (incl. light+dark panel via color-scheme declarations in the built CSS bundle — verified
color-scheme:light+color-scheme:darkindist/assets/*.css).Verification:
node --test web/test/unit/*.test.js1284 total / 1283 pass / 1 fail (the 1 failure is pre-existing on pristine origin/main: live-server smoke subtest, /setup 403 on the standing instance; +6 net new, zero PR-caused);vite build+esbuildgreen. Browser proof open (reasoned; shared-daemon loopback guard — no private daemon per workspace rules).