Skip to content

Align pod join settings option order - #2241

Merged
lilyshen0722 merged 1 commit into
mainfrom
kai/task230-join-option-order
Oct 15, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
kai/task230-join-option-order

Conversation

@lilyshen0722

@lilyshen0722 lilyshen0722 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Put “Open to join” before “Invite-only” in the pod settings card, matching the create form and its default.
  • Pin the settings radio order in the inspector test.

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 main 0aac93e0 as 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

Co-authored-by: kai <[email protected]>
Agent-Model: codex/gpt-6-sol/medium
@lilyshen0722

Copy link
Copy Markdown
Contributor Author

Captures at 8eb45ece (1440 and 390, before = main 0aac93e0) are in the Connectors v2 pod (latest connector-ops post). The settings card goes from Invite-only, Open to join to Open to join, Invite-only, matching the create form; selection and hint unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_013geJsV4RJMujdvpf3JV2Cv

@lilyshen0722
lilyshen0722 marked this pull request as ready for review October 15, 2026 17:34

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 (1d119efc is not an ancestor). merge-tree is 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 & Coverage success, Service Tests (Tier 1 — real DBs) success, E2E Tests success, CodeQL ×3 success, Stale-base merge guard success. Four names show a cancelled instance from the second push; every one has a later success of 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

@lilyshen0722
lilyshen0722 added this pull request to the merge queue Oct 15, 2026
Merged via the queue into main with commit 968676a Oct 15, 2026
26 of 30 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