You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dashboard date presets: read the spec macro window table instead of a second table with different spellings #29116
area:reportsBusiness reporting — dashboards, reports, the numbers a manager readsdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p3
Filed by the record-page epic seat under epic #26676. An independent reviewer assessed this and the seat re-read the evidence. The maintainer: 「三点都按 A:相对日期立独立卡,在 #28971 第一版立卡前合入,包含早于/晚于的相对点;仪表盘拼法另立低优先级卡;两只钟另立 finding。」 (2026-11-02). Code readings below are on maina4015ab47b. No domain:* label is set: triage routes this card.
ui/packages/core/src/utils/dashboard-filters.ts:165-179, PRESET_RANGES: this_week: { from: '{current_week_start}', to: '{current_week_end}' }. Month, quarter and year differ the same way.
Both spellings resolve today, as aliases (DATE_MACRO_ALIAS_TOKENS, packages/spec/src/data/date-macros.zod.ts:118). On the preview, between with {month_*} and with {current_month_*} returned the same rows. So nothing is wrong on screen; the risk is the two tables drifting.
Target
dashboard-filters.ts derives its preset bounds from the spec's table, with no second table. Behaviour is unchanged. No new key or option.
Acceptance
PRESET_RANGES is gone, or built from DATE_RANGE_PRESET_MACRO_WINDOWS.
All 13 dashboard presets return the same rows as before.
A stored dashboard config that uses the {current_*} spelling still works.
Read fresh. The fix lands in ui/packages/core/src/utils/dashboard-filters.ts, where PRESET_RANGES duplicates the spec's DATE_RANGE_PRESET_MACRO_WINDOWS with the {current_*} alias spellings, so domain:ui. The existing priority:p3 stands: the maintainer asked for low priority and behaviour is unchanged (table drift only). It is a ruled change with a named location and acceptance, so pm:queue.
Claim: PM loop round 3 · 2026-11-02T11:11Z
Session: session_01QsR2jSgqmN55SMKRe9YTif (card thread, os-dev); dispatched by seat session session_01QsR2jQjvWkZ7is6GXbC6DB
Account: zhuangjianguo
Branch: claude/project-thread-e8bmpz (platform-assigned to the card thread; it can push only this branch)
Worktree: objectstack-issue-29116
Domain: domain:ui
Seat: domain:ui#5
File surface: ui/packages/core/src/utils/dashboard-filters.ts, its tests, any test that pins the emitted {current_*} spelling, and a patch changeset (stop on breach; a change to a published export of @objectstack/spec or @object-ui/core goes to the seat first)
Container & model: S, mode:thread, model: default tier (no Fable per the maintainer's standing rule), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: dashboard date presets keep a second preset table (PRESET_RANGES, {current_*} spellings) beside the spec's DATE_RANGE_PRESET_MACRO_WINDOWS | both spellings resolve today through DATE_MACRO_ALIAS_TOKENS, so nothing is wrong on screen | every author of a dashboard date preset, once the two tables drift
Thread-read: 6572543427
Premise: holds (at origin/main39951d2a: PRESET_RANGES at dashboard-filters.ts:165, the spec table at packages/spec/src/data/date-range-presets.ts:120-136). Triage 6572543427 graded p3 on the maintainer's low-priority ask. Unnamed in the five-seat split; seat 5 took it for its fifth slot, 11:09Z.
Serial constraints cleared: the dev lists open PRs on dashboard-filters.ts before editing and merges main right before the PR opens.
{
"issue": 29116,
"status": "done",
"branch": "claude/project-thread-e8bmpz",
"pr": "https://github.com/objectstack-ai/objectstack/pull/29320",
"head": "97d4d508",
"session": "session_01QsR2jSgqmN55SMKRe9YTif",
"premise_still_valid": true,
"summary": "PRESET_RANGES is gone from ui/packages/core/src/utils/dashboard-filters.ts. presetBounds now reads DATE_RANGE_PRESET_MACRO_WINDOWS from @objectstack/spec/data, and preset membership (presetBounds and normalizeDateDefault) uses the spec's isDateRangePresetName instead of an in-check. this_week/this_month/this_quarter/this_year now emit the spec's bare aliases ({month_start}); the other nine presets emit identical tokens. No new key, option, schema or export; no spec change.",
"tests": "New dashboard-filters.presetWindows-29116.test.ts, 44 tests: 13 spec-window pins, 13 old-vs-new resolved-date parity cases on 6 reference dates, 13 compareTo (previousPeriod, previousYear, trend label) parity cases, stored {current_*} custom range and bare-token default, unknown and prototype-member preset names miss. ui vitest packages/core/: 231/231 files, 4280 passed, 27 skipped (b8bd4482 and again on 97d4d508). 16 consumer pin files (plugin-dashboard DashboardFilterBar*, DashboardRenderer.filters, types report-chart-query-spec-parity, plugin-designer presetAlias, i18n preset labels, app-shell DashboardWidgetInspector): 16/16, 142 passed, 6 skipped. type-check @object-ui/core exit 0. Ablations via ablation-replace.mjs: presetBounds guard to an in-check reds the prototype-miss case; normalizeDateDefault guard to an in-check reds the not-lifted case; both restored to the HEAD blob.",
"gates": "dispatch-gates --commands at b8bd4482: 34 families, every one exit 0 (33 check commands plus pnpm --dir ui exec vitest run scripts/: 169 passed, 2 skipped). --ran reconciliation: 34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN. PR-body gates on the final body: check-changeset-no-major, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword all exit 0. After merging main to 97d4d508: check:nul-bytes and check-sdui-manifest exit 0. CI check-runs on #29320: in_progress at report time.",
"line_budget": "4 files, +249 / -53 at b8bd4482 (under 3000)",
"files_changed": [
"ui/packages/core/src/utils/dashboard-filters.ts",
"ui/packages/core/src/utils/__tests__/dashboard-filters.presetWindows-29116.test.ts",
"ui/packages/core/src/utils/__tests__/dashboard-filters.test.ts",
".changeset/29116-dashboard-preset-windows-from-spec.md"
],
"deviations": [
"dashboard-filters.test.ts: two this_month pins moved from {current_month_*} to {month_*} (emitted-spelling pin, inside the claim's surface; behaviour-neutral, proven by the parity cases), plus two comment edits that named PRESET_RANGES.",
"Junk-input delta: a preset name matching only an Object.prototype member (constructor) was silently dropped and is now dropped with the standard unknown-preset warning. Named in the PR's Acceptance notes.",
"The final comment-only commit 97d4d508 landed after the gate sweep at b8bd4482; the core suite was re-run on 97d4d508."
],
"dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
"serial_constraints": "Open PRs naming dashboard-filters (#29162, #29263, #29295, #29251) touch no dashboard-filters.ts; main merged at a19759ac right before pr_create, no parallel fix found.",
"mcp_calls": "0",
"api_writes": "3 - git push (not REST), relay pr_create #29320, this os-dev-report comment",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
area:reportsBusiness reporting — dashboards, reports, the numbers a manager readsdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p3
Activity
objectstack-fleet commentedon Nov 2, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: dashboards.global-filters-rescope
Triage:
domain:ui·pm:queue· 2026-11-02T08:26Z⛔ Not a claim.
Generated by Claude Code
objectstack-fleet commentedon Nov 2, 2026
domain:ui#5 · zhuangjianguo · session_01QsR2jQjvWkZ7is6GXbC6DB
Claim: PM loop round 3 · 2026-11-02T11:11Z
Session:
session_01QsR2jSgqmN55SMKRe9YTif(card thread, os-dev); dispatched by seat sessionsession_01QsR2jQjvWkZ7is6GXbC6DBAccount:
zhuangjianguoBranch:
claude/project-thread-e8bmpz(platform-assigned to the card thread; it can push only this branch)Worktree:
objectstack-issue-29116Domain:
domain:uiSeat:
domain:ui#5File surface:
ui/packages/core/src/utils/dashboard-filters.ts, its tests, any test that pins the emitted{current_*}spelling, and a patch changeset (stop on breach; a change to a published export of@objectstack/specor@object-ui/coregoes to the seat first)Container & model: S,
mode:thread,model: default tier (no Fable per the maintainer's standing rule),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
dashboard date presets keep a second preset table (PRESET_RANGES, {current_*} spellings) beside the spec's DATE_RANGE_PRESET_MACRO_WINDOWS | both spellings resolve today through DATE_MACRO_ALIAS_TOKENS, so nothing is wrong on screen | every author of a dashboard date preset, once the two tables driftThread-read: 6572543427
Premise: holds (at
origin/main39951d2a:PRESET_RANGESatdashboard-filters.ts:165, the spec table atpackages/spec/src/data/date-range-presets.ts:120-136). Triage 6572543427 graded p3 on the maintainer's low-priority ask. Unnamed in the five-seat split; seat 5 took it for its fifth slot, 11:09Z.Serial constraints cleared: the dev lists open PRs on
dashboard-filters.tsbefore editing and merges main right before the PR opens.objectstack-fleet commentedon Nov 2, 2026
domain:ui#5 · zhuangjianguo · session_01QsR2jSgqmN55SMKRe9YTif
os-dev-report
{ "issue": 29116, "status": "done", "branch": "claude/project-thread-e8bmpz", "pr": "https://github.com/objectstack-ai/objectstack/pull/29320", "head": "97d4d508", "session": "session_01QsR2jSgqmN55SMKRe9YTif", "premise_still_valid": true, "summary": "PRESET_RANGES is gone from ui/packages/core/src/utils/dashboard-filters.ts. presetBounds now reads DATE_RANGE_PRESET_MACRO_WINDOWS from @objectstack/spec/data, and preset membership (presetBounds and normalizeDateDefault) uses the spec's isDateRangePresetName instead of an in-check. this_week/this_month/this_quarter/this_year now emit the spec's bare aliases ({month_start}); the other nine presets emit identical tokens. No new key, option, schema or export; no spec change.", "tests": "New dashboard-filters.presetWindows-29116.test.ts, 44 tests: 13 spec-window pins, 13 old-vs-new resolved-date parity cases on 6 reference dates, 13 compareTo (previousPeriod, previousYear, trend label) parity cases, stored {current_*} custom range and bare-token default, unknown and prototype-member preset names miss. ui vitest packages/core/: 231/231 files, 4280 passed, 27 skipped (b8bd4482 and again on 97d4d508). 16 consumer pin files (plugin-dashboard DashboardFilterBar*, DashboardRenderer.filters, types report-chart-query-spec-parity, plugin-designer presetAlias, i18n preset labels, app-shell DashboardWidgetInspector): 16/16, 142 passed, 6 skipped. type-check @object-ui/core exit 0. Ablations via ablation-replace.mjs: presetBounds guard to an in-check reds the prototype-miss case; normalizeDateDefault guard to an in-check reds the not-lifted case; both restored to the HEAD blob.", "gates": "dispatch-gates --commands at b8bd4482: 34 families, every one exit 0 (33 check commands plus pnpm --dir ui exec vitest run scripts/: 169 passed, 2 skipped). --ran reconciliation: 34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN. PR-body gates on the final body: check-changeset-no-major, check-adr-0087-registration, check-closing-keyword-parity, check-partof-closing-keyword all exit 0. After merging main to 97d4d508: check:nul-bytes and check-sdui-manifest exit 0. CI check-runs on #29320: in_progress at report time.", "line_budget": "4 files, +249 / -53 at b8bd4482 (under 3000)", "files_changed": [ "ui/packages/core/src/utils/dashboard-filters.ts", "ui/packages/core/src/utils/__tests__/dashboard-filters.presetWindows-29116.test.ts", "ui/packages/core/src/utils/__tests__/dashboard-filters.test.ts", ".changeset/29116-dashboard-preset-windows-from-spec.md" ], "deviations": [ "dashboard-filters.test.ts: two this_month pins moved from {current_month_*} to {month_*} (emitted-spelling pin, inside the claim's surface; behaviour-neutral, proven by the parity cases), plus two comment edits that named PRESET_RANGES.", "Junk-input delta: a preset name matching only an Object.prototype member (constructor) was silently dropped and is now dropped with the standard unknown-preset warning. Named in the PR's Acceptance notes.", "The final comment-only commit 97d4d508 landed after the gate sweep at b8bd4482; the core suite was re-run on 97d4d508." ], "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm", "serial_constraints": "Open PRs naming dashboard-filters (#29162, #29263, #29295, #29251) touch no dashboard-filters.ts; main merged at a19759ac right before pr_create, no parallel fix found.", "mcp_calls": "0", "api_writes": "3 - git push (not REST), relay pr_create #29320, this os-dev-report comment", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }