Repository navigation
feat(plugin-list, plugin-audit): the audit log loads as it scrolls and stops counting the ledger - #39365
feat(plugin-list, plugin-audit): the audit log loads as it scrolls and stops counting the ledger#39365objectstack-fleet[bot] wants to merge 9 commits into
Conversation
…count (#39270) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB
…ption Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB
📓 Docs Drift CheckThis PR changes 3 package(s): 16 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 2 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 188 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 008f4b8dca5c6a1e9369ab0c8ff8228df4f6a10d && git checkout 008f4b8dca5c6a1e9369ab0c8ff8228df4f6a10d
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f00ab66dd58099dbebb697e30f04a47ab26e34f0 fe50f48c7ffe5226c4b16abdfc5111b767f372c6 && git checkout -B drift-repro f00ab66dd58099dbebb697e30f04a47ab26e34f0 && git merge --no-ff fe50f48c7ffe5226c4b16abdfc5111b767f372c6
node scripts/docs-audit/affected-docs.mjs --json f00ab66dd58099dbebb697e30f04a47ab26e34f0
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CZT8FUBCNmB1htsrbB Real-stack check (head 78b21ff)Showcase app booted from this branch's built packages ( Setup → Audit Logs object list, default view
Every request also carried the view's three filter groups unchanged. The page showed no "N records" figure and no pager; scrolling reached the oldest rows (the boot's own writes), and the short last window ended the loading. Standalone audit page ( Server door, same stack: Screenshots (open, and scrolled to the end) are in the project thread. Generated by Claude Code |
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB
…try; manifest record regenerated Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB
…tion again; en bundle regenerated Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq Contract reviewServed-tier: Governing text: ruling 7381289655 (C, with its execution parameters) and its analysis 7378111006; claim 7381451680 and amendments 7381668903, 7382995488, 7384293442 (file surface); real-stack check 7382299913. Read at the head above; base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implementing files:
Fixes owed: M1, M2, S1. Each earns a delta review of its fix. Implemented-by: VERDICT: FAIL |
…size anywhere The grid footer on a host that loads window by window with no total prints no count lead, asks no whole-set aggregate (it would scan the set the list declined to count), and labels its figures as over the rows on screen. ListView's onTotalChange takes null for a declined total, so hosts drop a stale count; the record drawer and record page step through the loaded rows with no N / M counter. The showRecordCount description names the lists that still ask for the total (grouped grid, numbered pager, compact or capped posture); docs, en bundle and SDUI manifest regenerated. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq Contract reviewServed-tier: Delta of record 7385481231 (head ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentPrevious findings:
New findings:
Fixes owed: M3, S2. Each earns a delta review. Implemented-by: VERDICT: FAIL |
Requested by Bill · project thread
Fixes #39270
Ruling-ref: 7381289655 (ruling C; analysis 7378111006) · Claim: 7381451680 · Thread session:
session_01Utp6CZT8FUBCNmB1htsrbBWhat changes
ui/packages/plugin-list/src/ListView.tsx): an ungrouped grid that loads as it scrolls (no declaredpagination) and whose view declaresshowRecordCount: falsesends the declined total ($count: false, wirecount=false). It pages onhasMoreRows= "the last window came back full", which already existed for a missing total (objectstack#35554). On that pathonTotalChangeis called withnull(its type is now(total: number | null) => void), so a host drops a count an earlier view gave it and never reads the loaded rows as one. Controls kept per the ruling's execution parameters: a view that hides its count but keeps a numbered pager still asks for the total; a grouped grid, the compact posture (its header prints the total) and the capped posture (excluded from scroll-loading) still ask.ui/packages/plugin-grid/src/ObjectGrid.tsx,objectGridSummaries.ts): when the host loads window by window, says there is more, and hands no count larger than the rows loaded, the summary row prints no 「Count N」 lead, asks no whole-set aggregate (that query scans the set the list declined to count; per the zone's steer), and labels each declared figure as over the rows on screen (Sum (this page), the existing page label). Once the last window is in, the loaded rows are the set and the footer reads as before.ui/packages/app-shell/src/views/objectViewRecordNavigation.ts,recordDrawerStack.tsx,ObjectDataPage.tsx): anulltotal marks the drawer's root level and the record page'sfromstatetotalUnknown; both then draw ↑ ↓ through the loaded rows with no 「N / M」 counter. A stale total from a counted view is cleared.ListViewBlockpassesnullto its host and gives the page tab's badge no number; the dashboard drill (DrillRecordList.tsx) treatsnullas no total.packages/plugins/plugin-audit/src/objects/sys-audit-log.object.ts): all sixsys_audit_loglist views declareshowRecordCount: falseand droppagination.all_eventsnow loads in windows of the default page size instead of 100.ui/apps/console/src/pages/system/AuditLogPage.tsx): it already paged on the row past its window and never readtotal; it now sendscount=false.packages/spec/src/ui/view.zod.ts):showRecordCountsays whatfalsenow does, and names the lists that still ask for the total (numbered pager, grouped grid, a page region's compact or capped form; L2 S1); reference docs regenerated (gen:docs). The view metadata form's hint (view.metadata-form.ts) is the same text, as its pin requires, with theenmetadata-forms bundle regenerated (check-i18n-bundles --write).showRecordCountinput description (ui/packages/plugin-list/src/index.tsx) says the same;sdui.manifest.json, its record andcontent/docs/ui/components/plugins.mdxare regenerated from it.Why
Opening Setup → Audit log ran a
count(*)over the whole filtered ledger beside every 50-row window: 3.5 s on the maintainer's 202k-row deployment, 1.7 s cold on 200k rows in the dev's measurement (report 7377789707), with every other request stalled on SQLite. The window itself is 2–4 ms. The ruling chose to stop asking for the total rather than make the count cheaper.Premise check (ruling premises 4 and 8), at main 850d240
hasMoreRowsfalls back todataLimitReachedwhenserverTotalis null; the adapter routes$count: falseto the raw GET withcount=false; the server door omitstotaland skips the count (protocol-data-crud.ts, pinned byprotocol.count-opt-out.test.ts).totalMatching > pageSize; on the scroll-loading arm with no total both are the rows in hand, so the offer is not drawn (no false "all N"). The ledger views declare no selection.Verification
ui/packages/plugin-list/src/__tests__/ListView.declinedTotal-39270.test.tsx(6 cases): every window asks$count: falseand no count runs; rows past the first window are reached (50 → 100 → 120, thenhasMoreRowsfalse); no count bar, no figure beside the view name,onTotalChangetold onlynull; controls (numbered pager, shown count, compact) still ask.ui/packages/plugin-grid/src/__tests__/footerSummaryScope-12081.test.tsx(+2 cases): two windows loaded with more to come print no count lead, label the sum(this page)and ask no aggregate; control: all rows in, the lead counts them and the sum is plain. Ablated (hostCountIsWindowoff), the first fails.ui/packages/app-shell/src/views/__tests__/recordStepper.totalUnknown-39270.test.tsx(7 cases):listOriginOfmarkstotalUnknown(ungrouped only); the record page and the drawer root step with no counter; counted controls keep 「2 / 50」 and 「2 of 3」. Ablated, 2 fail.ui/apps/console/src/pages/system/AuditLogPage.declinedTotal-39270.test.tsx: every ledger read sendscount=false, and Next reaches the 51st row.packages/plugins/plugin-audit/src/objects/sys-audit-log-views-uncounted.test.ts: every declared view is a grid withshowRecordCount: falseand nopagination.totalDeclinedrule and the page'scount=falsereverted, 4 of the new UI cases fail; restored, all pass.vitest run packages/plugin-list/ apps/console/src/pages/system/: 244 files, 2436 tests passed. plugin-audit: the new pin +sys-audit-log-default-view.integration.test.tspass.@objectstack/spec check:generatedaftergen:docs: the one stale artifact regenerated.Clause-②: no
Metadata-protocol: semantic
Skills-docs: none — no
skills/**orui/skills/**text namesshowRecordCount(grep at 850d240); the component reference row is regenerated here.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CZT8FUBCNmB1htsrbB