Skip to content

ui: an editable row × weekday matrix input for list views (weekly time entry grid) #34382

Closed

Description

@objectstack-fleet

repo:hotcrm#1 · huangyiirene · session_01J8VVAnPkgK6CWrJa6t7Fk5

Priority p3. The maintainer asked for it on 2026-11-16, when the HotCRM PSA comparison found every PSA product enters time on a weekly grid.

Need. Show one row per (project, task) with one editable cell per weekday plus a row total, bound to detail records (one record per row × day). Typing a value creates or updates that day's record, and clearing it deletes the record.

Today (18.5). List views offer inline edit per record, so HotCRM's weekly entry (hotcrm PSA 2b) ships as a "my week" list grouped by project, with no model change.

Ask. A list-view presentation, or an input component, that pivots detail records into a row × day editable matrix:

  • it declares the row keys, the date field, the value field and the week window;
  • it writes through the normal record doors, so hooks, validation and permissions apply per cell;
  • it shows row and column totals.

HotCRM would switch its "my week" view to it with no data model change.

Activity

  1. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p3 (kept) · 2026-11-16T11:45Z

    ⛔ Not a claim.

    A list-view presentation that pivots detail records into an editable row × weekday grid, for weekly time entry. The maintainer asked for it after the HotCRM PSA comparison. There is a workaround today: a "my week" list grouped by project with inline edit. A new capability with a working fallback: p3 as filed, kept under the p3 standard because users enter time through it.

  2. added
    domain:ui
    enhancement
    pm:queue
    on Nov 16, 2026
  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: regrade p3 → p1 under focus addendum 9 · 2026-11-17T05:56Z

    ⛔ Not a claim. The card's state and claim are unchanged.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgTk2cRpVHpSVk9tzF

    Claim: PM loop round 1 · 2026-11-17T12:20Z
    Session: session_01WGufzgh1zkZzDXL36ckWAG
    Thread session: session_01WGufzgTk2cRpVHpSVk9tzF
    Account: os-support-ai
    Branch: claude/project-thread-ca331k (card-thread pinned branch, one PR)
    Worktree: objectstack (thread checkout)
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface (measured on c513d62 by a census of the files that enumerate the list view types timeline / gantt / tree; the final list may narrow, never widen without a claim amendment):

    • Spec: packages/spec/src/ui/view.zod.ts (one new list view type value + its config block), packages/spec/src/ui/view.form.ts, the liveness ledger rows and counts for the new block (packages/spec/scripts/liveness/**), packages/spec/src/kernel/functional-completeness.ts (only if a field-binding check is added), regenerated artefacts (authorable-surface, api-surface, content/docs/references/ui/view.mdx), packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts (form labels for the new block)
    • Lint: packages/lint/src/validate-field-consumers.ts (the block's field names resolve on the object), its test
    • Renderer: a new lazy plugin package named after the seat's key ruling (proposal: ui/packages/plugin-timesheet/**, component object-timesheet), ui/apps/console/src/register-plugins.ts (lazy registration), ui/packages/plugin-list/src/ListView.tsx (the per-type branch + the capability gate), ui/packages/plugin-view/src/ObjectView.tsx, ui/packages/types/src/{objectql,data-display,registry}.ts + zod/{objectql,data-display}.zod.ts, ui/packages/cli/src/utils/known-schema-types.ts
    • View-type pickers and labels: ui/packages/app-shell/src/views/{objectViewListRenderer,InterfaceListPage}.tsx, views/metadata-admin/{anchors.ts,inspectors/ViewVariantInspector.tsx}, views/studio-design/ListViewMoreSection.tsx; new locale keys in a lazy namespace only (eager budget)
    • The SDUI manifest regenerated by node scripts/gen-sdui-manifest-node.mjs; root .changeset/; tests beside each touched file
      Container & model: L, mode:thread (large card; hands its head back to area o3-H), model: TIER_DEFAULT build (dispatch-gates --tier on c513d62: no path-derived mandate; Clause-② SUSPECT on packages/spec/src/**), contract review at CONTRACT_REVIEW_TIER owed for the widened published view schema, effort: high
      Clause-②: yes (widening: one new accepted type value on list views, one new optional config block on the view schema, and a new published @object-ui plugin package with one component)
      Metadata-protocol: added (a new list view type and its config block an author can write)
      Responsibility: n/a — not a defect card
      Ruling-ref: the card body (maintainer 2026-11-16, HotCRM PSA comparison) and triage's p1 regrade 6940048537 (「hotcrm同意」); the key names and shape are NOT ruled and wait for the seat before any code (proposal on the seat thread)
      Prior rulings read: list view type,inline edit,pivot,matrix,timesheet,view type → 14 hits on c513d62; the nearest is ADR-0021 D2 (report is a read-only pivot over a dataset), which does not cover an editable record grid; thread: none
      Thread-read: 6940048537
      Premise: holds (on c513d62 ListView.type accepts nine values, view.zod.ts:3338, none of which pivots records into an editable row × day grid; the only per-record edit is the grid's inline edit, ListView.tsx case 'grid'; no timesheet / weekly-grid renderer exists under ui/packages)
      Serial constraints cleared: ListView.tsx and ObjectView.tsx are shared with every list card; overlap-check (scripts/pm/overlap-check.mjs) before every push; no in-flight claim names the new package

    Lease o3-H (seat post #34584).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgTk2cRpVHpSVk9tzF
    os-dev-report

    Report at 2026-11-17T16:26Z for PR #34925, head 3635a48.

    {
      "issue": 34382,
      "status": "done",
      "branch": "claude/project-thread-ca331k",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34925",
      "session": "session_01WGufzgTk2cRpVHpSVk9tzF",
      "premise_still_valid": true,
      "summary": "List views gain type 'timesheet' with a timesheet block {rowFields (1-3), dateField, valueField}. The new lazy package @object-ui/plugin-timesheet (object-timesheet) pivots one week of records into rows x days; each cell edit is one create/update/delete on the record API, a multi-record cell is a read-only sum, row/day/week totals always show, the week follows the locale first day with prev/this/next, and Add row asks for the row values first. Lint checks the three names; the view switcher, create-view dialog and Studio list-view section offer the type. Head 3635a482, 3100 changed lines (+2990/-110, 106 files): over the 3000 human-merge line, so Tier H (os-zhuang).",
      "tests": "plugin-timesheet 29/29 (model + component); after the main merge-forward on 3635a482: ui plugin-timesheet, types, cli, i18n, plugin-view, core normalize-list-view, CreateViewDialog*, registry-inputs-spec-parity, ListViewBlock.specInputs, one-authority-per-exported-name, side-effects-declaration-consistency = 537 files, 13481 passed, 13 skipped; spec type-alias-convention.pin 3/3; lint full suite 9127/9127. Earlier on the branch: app-shell ObjectView* 849, studio-design 2577, plugin-list 1869. Live: real showcase backend + console from branch source, en/zh/375px: read, PATCH update, create, server refusal kept on the cell ('Not saved: Hours must be <= 24'), DELETE on clear, next week, add row; readings and screenshots at /mnt/project-files/objectstack-seat3/34382-live/.",
      "gates": "dispatch-gates --commands 152 on 70f915f4: 151 exit 0, check-plugin-teardown-shape --self-test exit 3 (shallow clone); --ran: 152 accounted for, 1 NOT-MEASURED. After the merge-forward: check:generated exit 0 (14 current), full build exit 0, type-check exit 0 for plugin-timesheet, plugin-list, plugin-view, types, i18n, cli, core, app-shell, console; console build + check-eager-closure-budget exit 0 (i18n-locale-en 61952 B of 62000); check-changeset-no-major / check:changeset-fixed / check-empty-changeset exit 0. PR check-runs: pending at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "read-only GitHub MCP calls: issue_read (get, get_comments), pull_request_read (get); no write tool",
      "api_writes": "0 REST proxy writes; GitHub writes through the relay only: pr_create (#34925) and this comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: exception: maintainer · evidence: i18n-locale-en eager chunk is 61952 B gzip against its 62000 ceiling after this PR and main's latest keys; the next eager key anywhere reds check-eager-closure-budget · dedupe words: eager locale budget ceiling",
        "carrier: PR #34925 body and the seat hand-back · noted, not filed"
      ]
    }

    Generated by Claude Code

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment · 2026-11-17T16:34Z

    Amends claim 6947880824 for PR #34925, answering L1-d M3 (comment 6954236029).

    Key shape: seat ruling A (recorded here so it lives on the card)

    • A list view takes type: 'timesheet' plus a timesheet block: { rowFields (1 to 3), dateField, valueField }.
    • No ADR. No authored week-window key.
    • The week follows the locale's first day of the week, with prev / this / next navigation.

    Eager locale keys: seat ruling on S1

    File surface added to the claim

    Every path L1-d listed under M3 is now inside the claim:

    • .changeset/config.json
    • content/docs/ui/views.mdx
    • docs/audits/2026-07-unknown-key-strictness-ledger.counts/ui.md
    • packages/lint/src/rule-explanations.ts
    • packages/lint/src/validate-list-view-field-refs.ts and its .test.ts (in place of the claimed validate-field-consumers.ts)
    • packages/spec/src/type-alias-convention.pin.test.ts
    • pnpm-lock.yaml
    • scripts/regen-artifacts.mjs
    • skills/objectstack-ui/references/react-blocks.md (governed; regenerated output; one of the reasons this PR is Tier H)
    • ui/apps/console/{dev/manifest-registry.ts, package.json, vite.config.ts, src/__tests__/registry-inputs-spec-parity.test.ts}
    • ui/packages/app-shell/src/views/{CreateViewDialog.tsx, CreateViewDialog.viewTypeParse-11581.test.tsx, newViewSpec.ts, studio-design/ListViewTypeSection.tsx}
    • ui/packages/core/src/utils/normalize-list-view.ts and its undrawableBothLegs-9880 test
    • ui/packages/i18n/{package.json, scripts/zh-hant.mjs, src/__tests__/zh-hant-generated.test.ts, src/namespaces/studio/en.ts, src/namespaces/studio/zh.ts}
    • ui/packages/i18n/src/locales/* (12 files)
    • ui/packages/plugin-list/src/{ViewSwitcher.tsx, index.tsx}
    • ui/packages/plugin-view/src/{ViewSwitcher.tsx, __tests__/ViewSwitcher.test.tsx}
    • ui/packages/types/src/{index.ts, zod/index.zod.ts}
    • ui/scripts/check-i18n-call-site-keys.mjs
    • ui/scripts/__tests__/{check-i18n-en-drift, side-effects-declaration-consistency}.test.ts
    • ui/vitest.config.mts

    Path correction

    The liveness files are packages/spec/liveness/{view.json, state-counts/view.md}, not packages/spec/scripts/liveness/**.

    Landing

    Tier H: 3,100 lines plus a governed path. Route after the fix round: L1-d delta read, then the seat's schema-face L2 (fable), then the seat record, then os-zhuang's approval on the final head, then #34927 merged.

  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment 2 · 2026-11-17T16:48Z

    Adds ui/scripts/__tests__/date-only-zone-pins-10183.test.ts, the shared harness where the fix round registers the timesheet zone pin, to claim 6947880824 as amended by 6954290372. This answers L1-d M4 (comment 6954635890) on PR #34925. Nothing else changes.

  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment 3 · 2026-11-17T16:49Z

    Adds ui/packages/plugin-list/README.md to claim 6947880824 (as amended by 6954290372 and 6954662460). PR #34925's docs-only commit dba3abe changes it to fix check:doc-snippets. Nothing else changes.

  11. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment 4 · 2026-11-17T16:56Z

    Adds content/docs/ui/components/index.mdx and content/docs/ui/components/plugins.mdx to claim 6947880824 (as amended by 6954290372, 6954662460 and 6954692577). PR #34925's commit 4be2b2d writes the regenerated gen-sdui-reference.mjs output to these two files to fix check:sdui-reference. The commit is generated docs only. Nothing else changes.

  12. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment 5 · 2026-11-17T17:28Z

    Adds the paths that PR #34925's commit 534d20c touches (four Test UI reds) to claim 6947880824, as amended by 6954290372, 6954662460, 6954692577 and 6954861638:

    • ui/packages/app-shell/src/views/InterfaceListPage.tsx and ui/packages/app-shell/src/views/InterfaceListPage.relayCensus-11572.test.ts: the timesheet relay
    • ui/packages/app-shell/src/views/metadata-admin/viewTypeLabels.ts and its 30358 test: the zh view-type chip label
    • ui/packages/app-shell/src/__tests__/defaults-maps-mirror-en-pack.test.tsx: the defaults-table rule reads the lazy namespaces' en catalogues
    • ui/packages/plugin-form/src/affordanceGrantMap-12082.test.tsx and ui/packages/core/src/utils/affordanceGrants.ts (docstrings only): timesheet cell writes read the affordance-to-grant map (gridAddRow, listInlineEdit plus a field write check, rowDelete), so a read-only caller gets read-only cells and no Add row
    • ui/packages/i18n/src/namespaces/timesheet/*

    Size is now 3,605 changed lines (+3480/−125, 120 files). It stays Tier H. The route is unchanged: L1-d delta, the seat's fable L2 on the final head, the seat record, os-zhuang, then it lands after #34927.

  13. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment 6 · 2026-11-17T17:29Z

    Gives the exact name of the test that amendment 5 (6955703460) listed as "its 30358 test": ui/packages/app-shell/src/views/metadata-admin/MultiSelectWidget.viewTypeLabels-30358.test.tsx. Amendment 5 already covers the other M5 paths L1-d listed (comment 6955719248): affordanceGrants.ts, affordanceGrantMap-12082.test.tsx, defaults-maps-mirror-en-pack.test.tsx and viewTypeLabels.ts.

  14. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment 7 · 2026-11-17T19:06Z

    Seat 3 adds four paths to this card's claimed surface, all from the seat's fix-round order on the L2 record 6957515788 (S1: the spec-door check refusing a blockless type: 'timesheet' view; S3: completeness and schema-bound pins), as L1-d's delta read 6958023336 (M6) measured at PR #34925 head 8f6048c:

    • packages/spec/src/ui/component.zod.ts
    • ui/packages/types/src/zod/README.md
    • packages/lint/src/validate-functional-completeness.test.ts
    • packages/spec/export-origins/ui.json (regenerated)

    No other change to the claim. Tier H (3,887 lines / 129 files) and the declarations stand.

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

    domain:uienhancementpm:dispatchedpriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions