You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrade conversion: tidy comments and TODO wording left by #39444 (review nits N3–N6) #39486
Follow-up to #39444 (merged as 5c2a41a, closed #39395 and #39446). Four non-blocking review nits from the L1 records on that PR (7396734393, 7398206418) that the PR did not carry. Comment, wording and one lenience gap only; no behaviour a parsed input can reach changes.
What to do
N3 — packages/metadata-protocol/src/protocol-stored-view-selection.ts header comment still lists "an arm the object already declares" under left and "no actionLayout.selection is needed" under moves. Since fix(spec): rewrite a stored bulk-actions list when the object already declares the same selection arm #39444 the rule is: a declared arm that keeps the list's order agrees and the row moves; only an arm that does not keep the order leaves the row. Update both sentences (e.g. "a different arm" / "needed or already declared in an order-keeping arm").
N6 — packages/spec/src/conversions/entries/19/view-bulk-actions-to-action-selection.ts header, refusal list around line 65: "one that already has a different selection arm" → "one whose declared selection arm does not keep the list's order".
N4 — same file, the TODO sentence "…, as X does, which the arm it declares, Y, is not." → "…, which the arm it declares, Y, does not." (the antecedent is a verb phrase). Update any test that pins the TODO wording.
N5 — same file, armPart(undefined) reads an absent pinned as empty, so { more: [b, a] } agrees although the protocol-19 arm requires pinned. Unreachable today (the object's own parse refuses that arm first), but make armKeepsOrder treat an arm without pinned as not an arm, with one test case.
Acceptance
Comments and TODO wording match the rule armKeepsOrder implements.
pnpm --filter @objectstack/spec exec vitest run src/conversions/entries/19/view-bulk-actions-to-action-selection-39395.test.ts passes, with one new case for an arm lacking pinned.
Activity