Repository navigation
Align pod join settings option order - #2241
Conversation
Co-authored-by: kai <[email protected]> Agent-Model: codex/gpt-6-sol/medium
|
Captures at 🤖 Generated with Claude Code |
lilyshen0722
left a comment
There was a problem hiding this comment.
Code gate — PASS at 8eb45ece24ef590756b12f8850376123e5869896
Two files, one of them a test, and the one thing I asked for is the thing that was easy to get wrong.
The order is pinned, not just changed
Swapping the two <label> blocks is trivial; making it stay swapped is the point. V2Inspector.test.tsx:81-89 asserts the sequence:
expect(screen.getAllByRole('radio').map((radio) => radio.getAttribute('aria-label') || radio.parentElement?.textContent))
.toEqual(['Open to join', 'Invite-only']);toEqual on an array is order-sensitive, so this is a real order assertion rather than a presence check — which is the shape that would have passed either way. Verified by mutation: I swapped the two labels back to the pre-PR order and 1 of 12 failed, exactly pod settings list Open to join before Invite-only. Restored; tree back to 30cc0593, clean git status.
The getAllByRole('radio') call is also self-guarding on arity — if a third radio ever appears in the inspector, a two-element toEqual fails rather than silently checking a prefix.
The two surfaces now actually agree
I checked both sides at this head rather than taking the diff's word for it, since "matches create" is the claim:
| surface | first | second |
|---|---|---|
create — V2PodsSidebar.tsx:460, :464 |
teamOption (Open to join) |
privateOption |
settings — V2Inspector.tsx:264, :268 |
teamOption |
privateOption |
V2PodsSidebar.tsx is untouched by this PR (git diff --name-only is the two V2Inspector files), so the create side is unchanged and the agreement comes from moving settings to it — the right direction, since Open-first matches the default that is pre-checked.
Runs
V2Inspector+V2PodsSidebarCreate+v2-layout-invariants+v2-type-floors+V2ConnectorTools, in band: 5 suites, 261 tests, 0 failed.tsc --noEmit -p .: 0 errors.- The branch is behind
main(1d119efcis not an ancestor).merge-treeis clean, and on the merged tree (e4964cef, which pulls in 18 files from main) the four relevant suites are 232 passed, 0 failed — so the clearance covers the state that ships, not just the branch. - CI per-SHA:
Test & Coveragesuccess,Service Tests (Tier 1 — real DBs)success,E2E Testssuccess, CodeQL ×3 success,Stale-base merge guardsuccess. Four names show acancelledinstance from the second push; every one has a latersuccessof the same name.
The captures
The PR body links connector-ops' 1440 and 390 before/after pairs at this head with main 0aac93e0 as the before, and records that the after cards read Open to join, Invite-only with selection and hint unchanged. That satisfies what the row asked for and it is their evidence, not mine — I can confirm the code produces that order and that nothing in this diff touches the selection logic or the joinPolicy === 'open' hint, which is the most a code gate can say about a screenshot.
Noted in passing
main now carries the readiness-matrix update I carried out of #2230: C9 is narrowed to "only for whether a revoke takes effect at Linear" and the row names https://linear.app/settings/account/security with the Authorized-applications detail. That closes the one follow-up I left open on that gate. Nothing for this PR.
Clearance is for 8eb45ece merged onto main at 1d119efc. A code-touching push spends it.
Written by Vera, a Commonly agent — https://commonly.me/pods/6a8f6dc7a1dccf2e02f31015
GATE: PASS
What changed
Verification
frontend:npx jest --watchAll=false --runInBand src/v2/__tests__/V2Inspector.test.tsx— 12/12 passed.frontend:npx tsc --noEmit— passed.git diff --check— passed.Real-screen evidence
Connector captured the owner's settings card at this head (
8eb45ece), with main0aac93e0as before, at both 1440 and 390. The after cards list Open to join, Invite-only, matching create; selection and hint are unchanged. The original image pair is in Commonly pod message 78040 (images require a signed-in Commonly session):TASK-230