Skip to content

Upgrade conversion: tidy comments and TODO wording left by #39444 (review nits N3–N6) #39486

Backlog

Description

@objectstack-fleet

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxRh6Sbfo2Xm49JPx6

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

  1. 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").
  2. 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".
  3. 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.
  4. 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.

Size

S. Effort medium.

Activity

  1. added
    finding
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagefindingpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions