Skip to content

record page: the empty-sections line ignores the reader's remembered 「显示空字段」 choice on authored pages, and does not remember being expanded #35166

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

Filing category: out-of-scope findings from the review of PR #35161 (#35019: the empty-sections line now draws on authored record:details pages too), filed by the seat. ⛔ Not a claim.

What is wrong

  1. The reader's remembered choice is not honoured on authored pages (contract review N2, record 6974227988). A reader who has chosen "show empty fields" does not get the empty-sections line opened for them, and the line's expanded state is not remembered. Since fix(plugin-detail): an authored record page folds its all-empty field groups into one closing line #35161, on an authored record page such a reader expands the line again on every visit.
  2. A stale comment (L1 N1, 6974197194): a comment in ui/packages/app-shell/src/views/RecordDetailView.tsx still says only the synthesized default page draws the empty-sections line, which fix(plugin-detail): an authored record page folds its all-empty field groups into one closing line #35161 made false.

Done when

  • With "show empty fields" remembered, the empty-sections line opens on its own on both the default and authored pages, and a reader's expand/collapse of the line is remembered the same way; pinned on both page kinds.
  • The comment says what ships.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    finding
    domain:ui
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch: p2 kept (seat grade). Not a queue jump: a detail or follow-up of #35019 / PR #35161 with no released-version regression, hosted core break, data loss or breach. Triage grades p1 only for queue jumps (maintainer 2026-11-18).

  3. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p1 (was p2) · area:ux · Bug · UX × every reader, every time · the record page (a core feature) forgets the reader's "show empty fields" choice on every open

  4. added
    priority:p1
    and removed
    priority:p2
    on Nov 18, 2026
  5. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Premise corrected · 2026-11-18T16:36Z (pre-dispatch reading at origin/main ec227fc; the goal is unchanged, only the reach widens).

    • Was: the empty-sections line ignores the remembered 「显示空字段」 choice on authored pages.
    • Reading: EmptySectionsLine (ui/packages/plugin-detail/src/EmptySectionsFold.tsx, about lines 170–215) keeps its expanded state in local useState(false) and never reads useRecordPagePreferences. The default page and the authored record:details page both reach this one component from DetailView.tsx (about line 2149). So the line forgets the choice on both page kinds; fix(plugin-detail): an authored record page folds its all-empty field groups into one closing line #35161 only made authored pages draw it.
    • Fix, unchanged in kind: the line follows the remembered showEmptyFields choice, as DetailSection.tsx (about lines 221–230) already does, and an expand is remembered. Both page kinds get a pin. The stale comment at ui/packages/app-shell/src/views/RecordDetailView.tsx (about lines 5560–5564) is corrected in the same PR.
    • Out of scope, named: EmptySectionsFold (the whole-body fold) has the same gap. It becomes a follow-up if the PR confirms it.
  6. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Claim: PM loop round 1 (repo:objectstack#5; the maintainer, verbatim, in this seat's session, 2026-11-18T16:32Z: 「这几个p1卡都你处理」, this card among them) · 2026-11-18T16:37Z
    Session: session_01Utp6CbUb7TcZK1XUAddUmQ
    Thread session: session_01Utp6CaTDynWQQPWZNZBKq6
    Account: os-bill
    Branch: claude/project-thread-xf41eh
    Worktree: objectstack-issue-35166 (the card thread's container)
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: ui/packages/plugin-detail/src/** (+ tests), one comment in ui/packages/app-shell/src/views/RecordDetailView.tsx, a changeset if needed. Stop on breach and report.
    Container & model: S, mode:thread (p1), model: default — no path-derived mandate, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui plugin-detail's EmptySectionsLine in objectstack keeps local state only; the platform path is useRecordPagePreferences (as DetailSection uses); every reader of every record page with empty sections hits it
    Thread-read: 6984906002
    Premise: corrected 6984906002
    Serial constraints cleared: none — no open PR or pm:dispatched card on these files (premise search at claim time; PR #35161 merged).

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 18, 2026
  8. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CaTDynWQQPWZNZBKq6
    os-dev-report

    {
     "issue": 35166,
     "status": "done",
     "branch": "claude/project-thread-xf41eh",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35233",
     "session": "session_01Utp6CaTDynWQQPWZNZBKq6",
     "premise_still_valid": true,
     "summary": "EmptySectionsLine now takes objectName and, under a host record-page preference store, reads its expanded state from that object's showEmptyFields entry and writes expand/collapse back (same entry and local-state fallback as DetailSection); DetailView passes schema.objectName, which covers the default page and every record:details body. Stale RecordDetailView.tsx comment corrected. A1 confirmed (both page kinds, one call site DetailView.tsx), A2 mirrored, A3 confirmed stale and fixed. No new preference key.",
     "tests": "cd ui && vitest run EmptySectionsLine.authoredPage-35019 + DetailSection.emptyFieldsRemembered-25883: Test Files 2 passed, Tests 24 passed. plugin-detail type-check + test under lock: VERDICT command-exit 0, Tests 3477 passed | 18 skipped. Ablation: EmptySectionsFold.tsx at ec227fc7 bytes (useRecordPagePreferences count 0) -> Tests 4 failed | 13 passed (17), the 4 = remembered-true and remount cases x 2 page kinds; restored via git checkout HEAD, git diff HEAD empty. Tests import src, no dist leg.",
     "gates": "head 2b539819: dispatch-gates --commands 39 families, all exit 0; --ran: 39 run, 0 NOT-MEASURED. eslint on 4 changed files exit 0 (0 errors). CI families: read from PR #35233 check-runs (not yet converged at report time: in_progress).",
     "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 relay writes — pr_create (#35233, assignee os-bill), this os-dev-report comment on #35166; plus git push",
     "line_budget": "+143/-6 code+tests over 4 files, plus a 13-line changeset; under the 3000 human-merge threshold",
     "files_changed": [
      "ui/packages/plugin-detail/src/EmptySectionsFold.tsx",
      "ui/packages/plugin-detail/src/DetailView.tsx",
      "ui/packages/plugin-detail/src/__tests__/EmptySectionsLine.authoredPage-35019.test.tsx",
      "ui/packages/app-shell/src/views/RecordDetailView.tsx",
      ".changeset/35166-empty-sections-line-remembered.md"
     ],
     "deviations": [
      "Tests added as a new top-level describe in the existing EmptySectionsLine.authoredPage-35019.test.tsx harness (AGENTS.md shared-harness rule) rather than a new file.",
      "First commit aa63bf8b carries a model-named Co-Authored-By trailer (pushed before the trailer hook caught the second); not rewritten (published history).",
      "Reviewer request on os-bill not sent (no MCP writes per order); assignee rode pr_create."
     ],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed: EmptySectionsFold (whole-body fold on a standalone detail-view) keeps revealed in useState(false) and ignores the remembered showEmptyFields choice — follow-up per dispatch §3, named in PR Acceptance notes"
     ]
    }

    Report taken 2026-11-18T17:28Z.


    Generated by Claude Code

  9. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    ACCEPT → PR #35233 comment 6986834631 · head 2b539819 · 2026-11-18T17:52Z. Seat landing armed (ready + auto-merge); close-out here on MERGED.

  10. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Close-out 2026-11-18T18:12Z: PR #35233 MERGED as f2078e3674; Fixes closed this card. Delivered: the record page empty-sections line follows the remembered show-empty-fields choice on default and authored pages. Out of scope, recorded on the PR: the standalone EmptySectionsFold keeps its own state. pm:dispatched off.

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

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uifindingpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions