Repository navigation
feat(ui): resident list footer row — pick each column's calculation from its cell - #35919
Conversation
…icker Claude-Session: https://claude.ai/code/session_01L6bhgVb7fsaFeMStucvNWA Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVb7fsaFeMStucvNWA Co-authored-by: Claude <noreply@anthropic.com>
…te count assertions to the row's lead Claude-Session: https://claude.ai/code/session_01L6bhgVb7fsaFeMStucvNWA Co-authored-by: Claude <noreply@anthropic.com>
… metadata door stores it; migrate e2e count reads to the footer row Claude-Session: https://claude.ai/code/session_01L6bhgVb7fsaFeMStucvNWA Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — REWORK (L1-b)Head-sha: cf1927d · read 2026-11-20T19:06Z · L1 only, never an L2 (Clause-② yes → seat owes L2 at TIER_DEFAULT on the final green head) 维护者速读
Must-fix
Should-fix
Checked, fine
Owed
|
…ken back when not saved L1 7048239634 on #35919. The pick no longer materialises the reader's drawn columns into the view or appends a column the reader added: the stored view's own columns are the base, and the menu is offered on the columns the view declares only (`summaryPickFields`). A personal view writes from its stored row, so unsaved hides and order never ride along. A save the host refuses (answer false, a promise of false, or a rejection) takes the pick back; the shared save also restores the prior view draft. A shared view the console saves is named `object.key` too (`showcase_product.team_products` in the custom package), so the gate stays the overlay read's list rather than the name's shape; a view a read-only package ships is refused by the door and the pick is taken back with the refusal said, as measured in the browser. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVb7fsaFeMStucvNWA
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta REWORK (L1-b)Head-sha: 6243bf8 · read 2026-11-20T19:44Z · delta cf1927d..6243bf8 (one commit) plus the round-trip screenshots in the project files ( 维护者速读
Must-fix
Should-fix
Delta read, fine
Owed
|
L1 7049007771 on #35919. The picker's trigger is a flex box, which the cell's `text-align` does not move, so a right-aligned amount's figure was drawn at the column's left edge. It is now justified from the column's `align`, and its menu opens from the same edge. The changeset says what a shared view's draft save does to the drawn pick until it is published (#35932). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVb7fsaFeMStucvNWA
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha: ad2d94c · read 2026-11-20T19:49Z · delta 6243bf8..ad2d94c (one commit) plus 维护者速读
Delta read
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T19:49Z. The brief handed to the isolated declaration-face reviewer for PR #35919 (owed by the PR's Contract review brief — PR #35919 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: ① Derived judgmentsGate-verdicts: as read at 2026-11-20T19:54Z, 63 check-runs on this head: 22 success, 12 skipped, 0 failure, 29 still pending. Pending: Type Check UI, Lint UI, Build & E2E UI, Build Docs, Test UI 1 to 16 of 16, Test Core 1 and 2 of 10, and the Lint gate families (CI, release and engine; PM dispatch-gates; docs and code guards; repo and tooling; the three scoped lints). Green already: Check Changeset, PR-body guards, Governed Surface Queue Guard, Spec property liveness, Type Check workspace, Type Check debt ledger, Check Documentation Links, Dogfood Regression Gate, Build UI Deps. This PASS covers the contract. Landing still waits for the pending runs; a red one among them overrides this record for its own family. Inputs read: card #35702 (body and all four comments: triage, claim 7045492046, ruling 7045525672, dev report 7048106237), PR #35919 (body, file list, the three L1 comments 7048239634, 7049007771 and 7049099065), and the net diff of 30 files against main at merge-base Public surface, each judged:
Must-fix: none. Should-fix:
Nits (no effect on the contract):
② Semver levelThe changeset Clause-②: yes (widening) — right, and the same in the PR body and the changeset. The diff widens what the packages publish: optional host props, two new fields on a result type, and i18n keys. It removes no export, prop, key or accepted value, so ③ Boundary flags
Implemented-by: VERDICT: PASS |
…nd shared pick does L2 7049212622 on #35919. The spec's boolean class is `boolean` and `toggle`, so a toggle column no longer offers Sum, Average, Min or Max. The changeset says that, until #35932, a second pick on a shared view before Publish replaces the first in the draft. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVb7fsaFeMStucvNWA
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha: c5dc817 · read 2026-11-20T19:57Z · delta ad2d94c..c5dc817 (one commit, from L2 record 7049212622) · L1 only, never an L2 维护者速读
Delta read
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T19:58Z. The DELTA brief handed to the same isolated declaration-face reviewer for PR #35919 (delta of its record 7049212622 on Contract review brief — PR #35919 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: ① Derived judgmentsThis is a delta record against record 7049212622, which reviewed head Gate-verdicts: as read at 2026-11-20T19:58Z, 40 check-runs on this head so far: 7 success, 12 skipped, 1 cancelled, 20 pending, 0 failure. The cancelled run is a superseded "PR-body guards" run; its rerun on the same head is green. Pending: Check Changeset (both runs), Build UI Deps, Build Docs, Dogfood Regression Gate, Live E2E UI, Plan Test Core shards, Plan Test UI shards, the four Type Check families and the Lint families. Test UI, Type Check UI, Lint UI and Build & E2E UI have not been scheduled yet. This PASS covers the contract. Landing waits for the full set, and a red run overrides this record for its own family.
Should-fix (new, small, owed by the seat, not the code):
② Semver levelThere is no change in this delta. The changeset frontmatter is unchanged: Clause-②: yes (widening) — still right, in the PR body and the changeset. S1 takes four menu entries away from toggle columns. That is a fix to a menu introduced inside this same unreleased PR, not a narrowing of anything published. ③ Boundary flagsI judged each declined nit from 7049212622:
The dev's SQL push-down: no finding. The delta changes only a client menu list and prose. It adds no query, id materialisation or in-app join. Implemented-by: VERDICT: PASS |
…into claude/project-thread-2l0ab5
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T20:52Z. The second DELTA brief handed to the same isolated declaration-face reviewer for PR #35919 (delta of its record 7049294462 on Contract review brief — PR #35919 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: ① Derived judgmentsThis is the second delta record, against record 7049294462 on head Gate-verdicts: as read at 2026-11-20T20:54Z, 62 check-runs on this head, all finished: 52 success, 10 skipped, 0 failure, 0 cancelled, 0 pending. The thread's count is confirmed. Among them, these are green: Test UI 1 to 16 of 16, Test Core 1 to 3, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI and Check Changeset. The merge does not change what this PR contributes:
Should-fix from 7049294462 — 1 (the PR body claimed #35932's acceptance already covers the second pick): closed. Comment 7049223341 on #35932, from the seat at 19:55Z, adds the acceptance line: two successive draft changes to a shared view both survive into the published version. The PR body now says the case "is added to #35932 as an acceptance item in a comment there", which is true. The body of #35932 itself still names only the flash-back. Folding the comment into the body is the card owner's housekeeping and does not affect this PR. Must-fix: none. Should-fix: none. ② Semver levelThere is no change in this round. The changeset Clause-②: yes (widening) — still right, the same in the PR body and the changeset. The merge brings in nothing this PR publishes. ③ Boundary flagsNo new flag. The dev's SQL push-down: no finding. The merge resolution touched only docs prose, and the PR's net code is unchanged. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b), merge-only · L1 finalHead-sha: 1537210 · read 2026-11-20T20:54Z · delta c5dc817..1537210 (one merge of 维护者速读
Delta read
L1 status
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob L2 adoption and landing · 2026-11-20T20:56Z · The seat adopts the isolated declaration-face L2 merge-delta record 7050392384 on head L1-b: REWORKs 7048239634 and 7049007771, then delta ACCEPTs 7049099065 and 7049263644, and the merge-only delta ACCEPT 7050397669 on |
Requested by Sales · project thread
Part of #35702 — this PR is everything in the card that needs no
packages/specchange. Left for the second PR: the boolean 「是」/「否」 counts, whichColumnSummarySchemadoes not have (spec + server aggregate, a contract face).Clause-②: yes (widening)
Metadata-protocol: none
repo:objectstack#1 · os-sales · session_01L6bhgVb7fsaFeMStucvNWA
Flow: dev-thread rule (maintainer 2026-11-20 09:22:50Z 「所有 p1 都按照新规则执行」): the card thread builds itself; L1 and the isolated L2 run in parallel at hand-back, the maintainer's 09:22Z ruling for every p1 card (deviates from contract-review.md:18 until the skill card lands).
Save-path ruling: record 7045525672 on #35702 (option A). A personal view saves the pick at once; on a shared view a reader who may edit it saves the pick as a draft through the view settings panel's own save, and other readers see it once it is published. The card's acceptance line "another user opening the same view sees it" therefore reads "after publish" for a shared view.
维护者速读
What changes
@object-ui/plugin-grid).ObjectGridtakesresidentSummaryRowand draws its table's summary row on a flat table even when no column declares asummary, led by the record count (summaryRowLeadlets the host word the count; the list passes its ownlist.recordCount, plural forms included). A grouped grid and the phone card list draw none, as before.onResidentSummaryRowChange(drawn)reports whether the row is drawn.onColumnSummaryPick(field, summary)(wired only for a reader who may change the view) each footer cell is aSummaryCellPicker, justified from its column'salign(the trigger is a flex box, which the cell'stext-aligndoes not move): hover shows "Calculate" on an empty cell; a click opens one menu of the calculations the field type allows (offeredColumnSummaries:sum/avg/min/maxbyisAggregateCompatibleWithFieldType, never on a boolean (booleanortoggle, the spec's boolean class) or a record-currency amount; the count family on any field; nocount, the first cell already says it), the current one ticked, None last. The grid draws a pick at once (summaryPicks, dropped once the view handed back declares it).summaryPickFieldslimits the menu to the columns the host can save. A host answeringfalse(or a promise of it, or a rejection) did not save, and the grid takes the pick back.ColumnSummaryResultgainsnameandtext; the resident row draws the name in the secondary text colour and the figure in the normal one, a space between, no colon.min/maxover a date read Earliest/Latest (also in the host-footer report path). Currency figures keepformatCurrency, unabbreviated.@object-ui/plugin-list).ListViewpasses the resident row to the grid (not in the compact/capped postures, nor for a view withshowRecordCount: false) and forwards a hostonColumnSummaryPickandcolumnSummaryPickFields. The record-count bar no longer prints the count while the grid draws it; the data-cap warning stays in the bar.@object-ui/app-shell). A pick saves the column's calculation and nothing else of the reader's layout.ObjectViewwirespickSummary: a personal view →personalViews.updatewith the STORED row's config and the newcolumns(unsaved hides and order never ride along); a shared view →handleViewConfigSave(the view settings panel's save, an ADR-0034 draft), for an admin, on a view the overlay read lists (never the fallback "All records" tab of an object with no views).columnsWithSummarychanges only the picked column'ssummaryamong the view's own declared columns (every entry in the object form, sincecolumnsis all names or all objects) and answersnullfor a column the view does not declare;declaredColumnFieldshands the grid those columns assummaryPickFields, so a column the reader added and a view that declares nocolumnsoffer no menu. A refused save answersfalse; the shared one also restores the prior view draft.grid.summarykeys in all eleven packs:earliest,latest,pageName,calculate,none,menuPercentEmpty,menuPercentFilled.plugin-gridREADME andcontent/docs/frontend/plugins/plugin-grid.mdx. Changeset35702-footer-calculation-row.md(patch ×4).Read first, by risk:
ui/packages/plugin-grid/src/ObjectGrid.tsx(thesummaryPicksstate and thesummaryRowbuild),ui/packages/app-shell/src/views/ObjectView.tsx(pickSummarygate and the two save handlers),ui/packages/plugin-list/src/ListView.tsx(recordCountTextShown).Tests
New:
plugin-grid/src/__tests__/footerCalculationPicker-35702.test.tsx— the offer per field type (amount, text, lookup, date, boolean, toggle, unknown); the row drawn with no declaration and reported; no row without the host prop; no menu withoutonColumnSummaryPickwhile the figure still draws; pick → drawn at once and ticked → None takes it off; Earliest/Latest on a date.plugin-grid/.../footerCalculationPicker-35702.test.tsxalso pins (L1 7048239634): the menu only onsummaryPickFields, the other cells drawing their figure; a pick taken back when the host answersfalse, resolvesfalseor rejects; a saved pick kept.app-shell/src/views/__tests__/columnSummaryWrite-35702.test.ts— string → object form, object form keeps itsfieldoverride, None deletes; a view declaring[a, b]whose reader hidband addedc: a pick onawrites[{a, summary}, {b}], a pick oncwrites nothing; a view with no declared columns writes nothing;declaredColumnFieldsin the view's order.Migrated (the count moved from the bar into the footer row's first cell; the date
maxnow reads Latest):plugin-list/src/__tests__/ListView.test.tsx— 8 tests read the count offrecord-count-bar; they now readdata-table-summary-lead(same wording, e.g. "3 records") and two assert the bar carries no count.app-shell/src/views/ObjectView.recordCountFooter-10636.test.tsx— the per-locale count wording (en/ru/ar plural forms) is now read off the footer row's lead, and the bar is asserted absent.plugin-grid/src/__tests__/footerSummaryScope-12081.test.tsx— two date-columnmaxassertions: "Max:" → "Latest:".ui/e2e/list-condition-row-35549.spec.ts,ui/e2e/live/user-filters.spec.ts,ui/e2e/live/saved-view-filter.spec.tsread the count offdata-table-summary-leadinstead ofrecord-count-bar(not run locally; Build & E2E UI and Live E2E UI run them).Voided: none. Platform checklist (
docs/qa/platform-checklist): no item names the record-count bar or the column footer, none changed.Local runs
On 6243bf8's tree: the two #35702 test files plus
footerSummaryScope-12081,ListView.test.tsx,ObjectView.recordCountFooter-10636,ObjectView.overlayPatchOnly—Test Files 6 passed (6),Tests 230 passed (230);plugin-grid,plugin-list,app-shelltype-checkexit 0 (after a full-DTS rebuild of the spec/client/lint closure);eslint --no-inline-configon the changed files: the one pre-existing inline-disabled error inObjectGrid.tsxonly.Earlier, on c116220's tree (before the main merge cf1927d and the one-line gate in bd759bb):
pnpm --dir ui exec vitest runover the 45 files that pin the footer, the summaries or the count bar (plugin-grid footer/summary suites, every plugin-list and app-shell test namingrecord-count-barordata-table-summary, the i18n parity/identity suites, the two new files):Test Files 45 passed (45),Tests 882 passed (882), lockVERDICT command-exit 0.plugin-gridandplugin-listtype-check: exit 0.app-shelltype-check: exit 0 on the full-DTS build; a later re-run after anOS_SKIP_DTS=1server build reports errors only inCommandPalette.tsx/AppContent.tsx, files this PR does not touch (stale.d.tsof their imports) — CI's Type Check UI is the reading.plugin-grid+plugin-list+app-shellsuites did not finish locally inside the container's window (stopped after 70 minutes with only the three migrated files red, all fixed since); Test UI runs them in CI.Acceptance notes
showcase_task.in_progressanswers 403 ("ships in 'com.example.showcase': save it into 'com.example.showcase.custom'"), toasted, and the pick is taken back (rt-07). That is the view settings panel's own save call (handleViewConfigSave→PUT /api/v1/meta/view/:name?mode=draft), refused the same way there; the refusal is by design (the Studio: Customize on a list view the deployment created in the console declares an override of the read-only base and the save answers 403 ("ships no view named …"), so such a view cannot be edited in Studio (item 2 of #34908) #35600 line), and neither the footer nor the panel offers a way to save into the customization. The menu is not gated on a dotted name, because every stored view is namedobject.key, the console's own saved views included (showcase_product.team_products, homecom.example.showcase.custom): that gate removed the shared path entirely. The overlay rows the list reads carry no package id, so telling a read-only package's view apart would need the adapter to carry it; not done here (follow-up Footer calculation menu is offered on read-only package views; the list-view rows lose _packageId so the UI cannot tell them apart #35933).persistRuntimeMetadata→emitMetadataRefresh), which remountsObjectView, the panel's save included. The admin sees the pick drawn, then the published figures until Publish (rt-03); the pending draft is in the view settings panel's draft bar (rt-04). Pre-existing, outside this card (follow-up Saving a shared view's draft reloads the whole list and shows the published version again until Publish #35932). Because the remount drops the local draft, the next pick is built on the published view, so a second pick before Publish replaces the first in the draft and only the latest is published; that case (a second draft save before Publish keeps the first one's changes) is added to Saving a shared view's draft reloads the whole list and shows the published version again until Publish #35932 as an acceptance item in a comment there, for its body (L2 7049212622).columns, draw their figure with no menu (the pick could only save by writing the reader's layout into the view).showRecordCount: falsekeeps the old behaviour (row only under a declared calculation, no picker), since the row's first cell is the count.overlap-checkreports textual conflicts with feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910 (ObjectView.tsx,objectViewListRenderer.tsx) and feat(list): a two-row list toolbar — View settings beside the view name, a resident condition row, ⋮ More at the far right #35918 (the same two plusui/e2e/list-condition-row-35549.spec.ts); the later one rebases.Verification
Browser (showcase, own backend :43702 + console dev :53702, admin): evidence in
/mnt/project-files/build-seat1/35702/—after-01-resident-row.png(row, count first, no bar),after-02-hover-calculate.png,after-03-menu-currency.png(Sum, Avg, Min, Max, Unique, Filled, Empty, Percent filled, Percent empty, None),after-04-sum-picked.png("Sum $328.98"),after-06-menu-due_date.png(Earliest, Latest, counts),after-07-task-picked.png("Latest Dec 10"; the 403 toast above). The boolean column's menu lists counts only. NOT MEASURED in the browser: a personal view's save round trip and a published shared draft seen by a second user (no personal or customizable shared view in the seeded showcase); covered bycolumnsWithSummarytests and the existing personal-view / view-panel save paths.Round trip (L1 7048239634 must-fix 2), same stand, head 6243bf8's tree, evidence
rt-01…rt-07in the same folder:PATCH /api/v1/data/sys_personal_view/<id>200 withconfig.columns= the stored row's five columns, onlyunit_pricegainingsummary: "sum"→ the cell reads "Sum $328.98" → reload → still "Sum $328.98" (rt-01,rt-02).showcase_product.team_productsincom.example.showcase.custom, its creation draft published first): as admin pick Avg under Unit Price →PUT /api/v1/meta/view/showcase_product.team_products?mode=draft200 with onlyunit_pricegainingsummary: "avg"(rt-03) → Manage views → the view's settings → the draft bar reads "Pending changes … Click Publish to release" (rt-04) → Publish →POST …/publish200, bar gone (rt-05) → reload as admin: "Avg $82.25".rt-06).rt-07above.rt-08-right-aligned-figure.png); before the fix it ended ~75px to the left (rt-05). Pinned: the picker of a right/center/left column carriesjustify-end/justify-center/justify-start.Two-minute check: on a personal view of any object's table, hover under a number column, click "Calculate", pick Sum — the cell reads "Sum " at once, right-aligned under the amounts, and the page foot shows no "N records" line.
Human Minimum
packages/specholds no runtime logic.eslint --no-inline-configover the changed files adds no finding (its one error is a pre-existing inline-disabled line inObjectGrid.tsx); the repo-widepnpm lintis CI's.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVb7fsaFeMStucvNWA
Generated by Claude Code