Skip to content

ui: the inline grid renderer keeps its own SORT_FIELD_NAMES list instead of the spec's deriveInlineGridSortField, and nothing pins the two equal #32283

Closed

Description

@objectstack-fleet

domain:spec#3 · os-support-ai · session_01WGufzh7cM8EmUX4T2CBNHX

What is wrong

PR #32276 (#32256) publishes deriveInlineGridSortField(def) from @objectstack/spec/data. It picks the inline grid's line-position field: the first field, in field order, whose name is in the spec's private INLINE_GRID_SORT_FIELDS. The lint rule field-no-consumers now credits that field through the helper.

The renderer does not call the helper. ui/packages/plugin-form/src/deriveMasterDetail.ts L55 keeps its own SORT_FIELD_NAMES literal (position, sort_order, sequence, line_no, line_number, sort), and L535 applies the same first-match rule. Nothing pins the two lists equal. If either list changes alone, lint credits one field while the grid orders by another. The contract review on PR #32276 (comment 6772543690) raised this as a follow-up.

Ask

  • Make deriveDetail in deriveMasterDetail.ts call deriveInlineGridSortField from @objectstack/spec/data, and delete the local SORT_FIELD_NAMES. plugin-form already depends on @objectstack/spec.
  • Keep the existing behaviour: MasterDetailForm.tsx uses sortField on the authored and derived branches and in $orderby. Pin one child with a sort-named field and one without.

Depends on PR #32276 landing first, because the helper does not exist on main until then.

Activity

  1. added
    pm:blocked
    domain:ui
    on Nov 10, 2026
  2. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: confirmed · domain:ui · p3 · pm:blocked · 2026-11-10T17:02Z

    Blocked-by: #32256

    ⛔ Not a claim.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#3 · os-support-ai · session_01WGufzh7cM8EmUX4T2CBNHX
    Unblocked: at 2026-11-10T17:23Z — PR #32276 (#32256), which this card depended on, MERGED as f1d1f6c. pm:blocked → pm:queue.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 10, 2026
  5. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · huangyiirene · session_01J8VVAmxB38cjBXwr9FZGyt

    Claim: PM loop round 3 · 2026-11-10T19:35Z
    Session: session_01J8VVAoVP2rgc7FjY2L8jYt (card thread, dev) · seat session_01J8VVAmxB38cjBXwr9FZGyt
    Account: huangyiirene
    Branch: claude/project-thread-qj8e8l (a card thread can push only its designated branch, a measured platform exception to claude/issue-<n>-<slug>)
    Worktree: objectstack-issue-32283
    Domain: domain:ui
    Seat: domain:ui#3
    File surface: ui/packages/plugin-form/src/deriveMasterDetail.ts (the sort-field lines only), its tests under ui/packages/plugin-form/src/**, root .changeset/. ⛔ No packages/**, no other renderer file.
    Container & model: S, mode:thread, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate for this surface), effort: low
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the master-detail inline grid takes its line-position field from the spec's deriveInlineGridSortField (PR #32276), and the renderer's own SORT_FIELD_NAMES copy is deleted, behaviour unchanged (thread's premise reading on ac9622e3: the two lists are equal, same six names in the same order).
    Thread-read: 6774245102
    Premise: holds (seat reading: the code path the card names is present on origin/main ac9622e3; the thread reproduces on main before editing and stops on a false premise)
    Serial constraints cleared: domain:ui#2 in flight (live Claim: comments): #32021 (auth pages, FirstRunChecklist.tsx, signInRefusalMessages.ts, locale packs), #32225 (PR #32255, ui/packages/i18n namespaces and console chunking), #32165 (plugin-dashboard, data-objectstack index.ts), #32297 (sys-sso-provider.object.ts, regenerated platform-objects translation bundles: regenerate on conflict), #32305 (DatasourceResourcePage.tsx). Sibling domain:ui#3 in flight: #32159 (shell navigation and bell), #32037 (PR #32320, plugin-chatbot), #32158 (waiting on #32050), #32283 and #31912 (both may touch plugin-form deriveMasterDetail.ts: #32283 lands first, #31912 edits that file only after merging main).

    Dispatch order: /mnt/project-files/ui-seat3/order-32283.md + common-tail.md (project files of the seat's project), carried in the thread's opening message.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 10, 2026
  7. objectstack-fleet commented on Nov 11, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · huangyiirene · session_01J8VVAmxB38cjBXwr9FZGyt

    ACCEPT → PR #32376 comment 6783418329 · 2026-11-11T00:40Z · deriveDetail reads the sort field from deriveInlineGridSortField; behaviour unchanged. Lands when green.

  8. objectstack-fleet commented on Nov 11, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · huangyiirene · session_01J8VVAmxB38cjBXwr9FZGyt

    Landed · 2026-11-11T01:32Z

    probe reading
    PR #32376 merged through the merge queue as 20c7073bc392 at 2026-11-11T01:31Z
    card #32283 closed/completed at 2026-11-11T01:31Z (the PR's Fixes #32283)

    State: pm:dispatched removed; the card is done.

  9. removed
    pm:dispatched
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uipriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions