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 }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 4a7ef0d
Browse filesBrowse the repository at this point in the historyBrowse files
docs(types,core): name resolveRecordSourceConfig, not getDataConfig, for the gantt and calendar record-source ladder (objectui#9618) (#10550)
Fixes#9618
Clause-②: no
## What changed
Text only: no schema shape, accept-set or export moves. The ladder ORDER
(`data`, then `staticData`, then `objectName`) is unchanged everywhere.
The gantt and calendar record-source text named a `getDataConfig` that
their renderers do not contain. objectui#7632 (commit `ce2aaefe1`) took
it out of `ObjectGantt.tsx`, and `ObjectCalendar.tsx` has none either.
Both renderers call the shared `resolveRecordSourceConfig` from
`@object-ui/core`. This PR rewrites only the false mentions so they name
that function. The map text stays as it is, because `ObjectMap.tsx`
still has its local `function getDataConfig(` wrapper, which delegates
to the shared ladder.
## Census: every `getDataConfig` mention in the two types files on
`origin/main` (c2c4372)
The renderer check greps each renderer file. The control reads
`ObjectMap.tsx`: it has `function getDataConfig(` and 7 mentions, while
`ObjectGantt.tsx` and `ObjectCalendar.tsx` have 0 each. Positions are
given by the owning symbol, not by line.
| file | where | schema | renderer has `getDataConfig`? | action |
|---|---|---|---|---|
| `zod/objectql.zod.ts` | `requireRecordSource` docblock (the refinement
shared by map, gantt and calendar), 2 mentions | shared | map yes, gantt
no | rewritten: it named the ladder and attributed it to both files. It
now names `resolveRecordSourceConfig` and says the map reaches it
through its local wrapper |
| `zod/objectql.zod.ts` | `ObjectMapSchema` docblock + `objectName` /
`data` / `staticData` describes, 4 mentions | map | **yes** | untouched
|
| `zod/objectql.zod.ts` | `ObjectGanttSchema` docblock + `objectName` /
`data` / `staticData` describes, 4 mentions | gantt | no | rewritten |
| `zod/objectql.zod.ts` | `ObjectCalendarSchema` `objectName` /
`staticData` describes, 2 mentions | calendar | no | rewritten |
| `objectql.ts` | `ObjectMapSchema.objectName` / `.data` JSDoc, 2
mentions | map | **yes** | untouched |
| `objectql.ts` | `ObjectGanttSchema.objectName` / `.data` /
`.staticData` JSDoc, 3 mentions | gantt | no | rewritten. The `.data`
doc quoted the code `if (schema.data) return schema.data;`, which the
shared ladder no longer contains (rung 1 is judged by arm), so that
quote is replaced with a description |
| `objectql.ts` | `ObjectCalendarSchema.objectName` / `.staticData`
JSDoc, 2 mentions | calendar | no | rewritten |
After the change, 5 mentions remain in the zod file and 2 in
`objectql.ts`. All of them are on map text, plus the new wording that
names the map's local wrapper.
**Second site, `packages/core/src/utils/record-source.ts`.** Two
docblocks quoted the describes as the ruled contract and attributed that
text to the map and gantt twins. Both now say that the quoted text is
the map faces' text, and that the gantt (and calendar) faces name
`resolveRecordSourceConfig`. The `resolveRecordSourceObjectName`
docblock said callers pass "their `getDataConfig(schema)` output". It
now says they pass their `resolveRecordSourceConfig` output, directly or
through a local wrapper. This stays clear of the regions that
objectui#10540 edits in the same file.
**Test header.** The `objectql-record-source-refinement-6939.test.ts`
header made the same attribution, and it is corrected in the same way.
That file also holds the new pin.
## Pin and reverse verification
A new `describe` block, `objectui#9618 — the record-source text names
the function each renderer actually has`, in
`packages/types/src/__tests__/objectql-record-source-refinement-6939.test.ts`:
- For `ObjectGanttSchema` and `ObjectCalendarSchema`, no zod member
describe contains `getDataConfig`. The `objectName` and `staticData`
describes name `resolveRecordSourceConfig`, and the TS `export
interface` block contains no `getDataConfig`.
- Control: the map zod describe and the TS face still name
`getDataConfig`, and `ObjectMap.tsx` still declares `function
getDataConfig(`.
Reverse verification ran from the committed fix (`a709aab8f`), with
restore from `HEAD` under an EXIT/INT/TERM trap. The mutation put
`getDataConfig` back into the gantt `objectName` describe. On disk the
marker count went from 1 to 0 and the `getDataConfig` count from 5 to 6.
Vitest then reported `Tests 1 failed | 19 passed (20)`, and the failure
was `ObjectGanttSchema: no zod describe and no TS doc names
getDataConfig`. After the restore, `git diff HEAD` was 0 bytes and the
file hash matched the `HEAD` blob.
## Local verification (head `27ac561f0`, after merging `origin/main`)
- `pnpm exec vitest run packages/types/ packages/core/src/utils/` gave
`Test Files 324 passed (324)` and `Tests 6923 passed (6923)`. This
covers the zod mirror parity suites in `packages/types`.
- `pnpm --filter '@object-ui/core^...' run build`, then `pnpm --filter
@object-ui/types --filter @object-ui/core run type-check`: both printed
`Done`, exit 0.
- eslint on the 4 touched source files (`--format json`, 4 files): 0
errors. The warnings are existing `no-explicit-any` hits on untouched
lines. `eslint.config.js` sets no `parserOptions` or type-aware config,
so this diff cannot change the verdict on any untouched file. The
repo-wide `pnpm lint` is left to CI.
- `check-changeset-presence` passed with 1 changeset for 4 source files
in 2 released packages. `check-changeset-no-major`,
`check:new-line-citations` (`0 new citation(s)`), `check:control-bytes`
and `check:test-path-roots` all exited 0. `check-governed-queue-guard
--test` reports NOT GOVERNED.
## Acceptance notes (not in this PR)
- `packages/plugin-gantt/src/index.tsx` still has 3 comment mentions
that say `ObjectGantt` reads through `getDataConfig`. They have the same
false attribution, but the file is outside this card's claimed surface
and the text is comment-only. Carrier: none.
- Several pending `.changeset/*.md` bodies name `getDataConfig` for the
renderers of their time. They are release records of those changes and
are left alone.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01D486C1axmXnrkJMNUfz2eb)_
---------
Co-authored-by: Claude <noreply@anthropic.com>
objectName: z.string().optional().describe('ObjectQL object name — the THIRD record source getDataConfig resolves, after data and staticData; one of the three must be present (objectui#6939)'),
1852
-
data: ViewDataSchema.optional().describe('Data source configuration — read FIRST by getDataConfig; undeclared on either face until objectui#6939'),
1853
+
objectName: z.string().optional().describe('ObjectQL object name — the THIRD record source resolveRecordSourceConfig resolves, after data and staticData; one of the three must be present (objectui#6939)'),
1854
+
data: ViewDataSchema.optional().describe('Data source configuration — read FIRST by resolveRecordSourceConfig; undeclared on either face until objectui#6939'),
1853
1855
startDateField: z.string().optional().describe('Start date field'),
1854
1856
endDateField: z.string().optional().describe('End date field'),
// The query/data keys the fetch path reads. They were declared on
1969
1971
// `ObjectGridSchema` — what `ObjectGanttProps.schema` used to be typed as before
1970
1972
// objectui#5903 retyped it to `ObjectGanttSchema` — so they need declaring here.
1971
-
staticData: z.array(z.any()).optional().describe('Inline records, wrapped into a { provider: value } data config — read SECOND by getDataConfig'),
1973
+
staticData: z.array(z.any()).optional().describe('Inline records, wrapped into a { provider: value } data config — read SECOND by resolveRecordSourceConfig'),
1972
1974
filter: z.array(z.any()).optional().describe('Query filter, forwarded verbatim as $filter'),
1973
1975
sort: z.array(SortConfigSchema).optional().describe('Sort configuration, forwarded as $orderby (array only; the legacy string clause is retired — objectui#8221)'),
1974
1976
// objectui#10250 — the full-text pair the record query carries, declared in
objectName: z.string().optional().describe('ObjectQL object name — the THIRD record source getDataConfig resolves, after data and staticData; one of the three must be present (objectui#7313)'),
2002
+
objectName: z.string().optional().describe('ObjectQL object name — the THIRD record source resolveRecordSourceConfig resolves, after data and staticData; one of the three must be present (objectui#7313)'),
2001
2003
// objectui#9239 — the ARRAY arm, mirroring `ComponentPropsMap['object-calendar'].data`
2002
2004
// on `@objectstack/spec` (`z.array(z.unknown()).optional()`, "Pre-fetched
2003
2005
// records — skips the internal fetch"). ⛔ NOT `ViewDataSchema`: this member
// TYPE: the TS face derives `SpecObjectCalendarProps['data']`, whose input is
2018
2020
// `unknown[]`, which is exactly what `z.array(z.unknown())` infers here.
2019
2021
data: z.array(z.unknown()).optional().describe('Pre-fetched records — an ARRAY, drawn in place of the calendar\'s own query; read FIRST by the record-source ladder. Mirrors ComponentPropsMap[\'object-calendar\'].data — the { provider, items } config object is refused by kind on this block (objectui#9239, ruling objectui#8348)'),
2020
-
staticData: z.array(z.any()).optional().describe('Inline records, wrapped into a { provider: value } data config — read SECOND by getDataConfig'),
2022
+
staticData: z.array(z.any()).optional().describe('Inline records, wrapped into a { provider: value } data config — read SECOND by resolveRecordSourceConfig'),
2021
2023
// objectui#8651 — the configuration container the SPEC declares for this
2022
2024
// element (`ComponentPropsMap['object-calendar'].calendar`), which this
2023
2025
// package's registration `inputs` already publishes and which
0 commit comments