Skip to content

Commit 581ae76

Browse files
fix(app-shell): the metadata form field picker reads the object document the server serves (#38116)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoHA4cvc77SGmCXasFnbgKTX)_ Fixes #37508 repo:objectstack#3 · os-tesla · session_01L9qibwBcaYpnhtGgnknxmq Clause-②: no Metadata-protocol: none ## 维护者速读 - 后台元数据表单里的「字段选择」控件以前去读一个服务端根本没有的地址,所以每次都显示加载失败;现在改读服务端已有的对象元数据接口,能正常列出字段。 - 属于「声明的能力要真的能用」这条线:控件留着,读取点改对,不新增任何服务端路由。 - 只改控件读哪条路由,spec、控件配置和服务端都不动;有问题直接撤回即可。 - 无 ## What changes - `ui/packages/app-shell/src/views/metadata-admin/widgets.tsx`: `fetchFieldSelectorOptions` no longer requests `/api/v1/objects/:name/fields`, which no ObjectStack server mounts (no route ledger carries a `fields` row). It reads the object document at `GET /api/v1/meta/object/:name` (`?preview=draft`) through the console's `MetadataClient` (`useMetadataClient`) and normalizes `object.fields` with `readFields` — the read `useObjectFields` already makes for the other field pickers in this directory. - The four `LoadState` arms are kept. A refused or failed read throws (the client's own error, carrying the server's message) and lands in the failure arm; a 404 (the client's `null`) is shown as a failure reading "Object not found" in the designer's language, never as an empty catalog; a served object answers its fields, possibly none. - The load keys on the object name alone; the client is read through a ref set in a layout effect, so nothing rests on the identity of the memoized client (ui/AGENTS.md #10). - The raw `createAuthenticatedFetch` import goes; the bearer is carried by the client's transport (`metadataClientFactory.ts`), so the property objectstack#37225 fixed still holds. - `loadState.ts`: one docblock sentence no longer says the widget bypasses `MetadataClient`. - No server route is added (one route, one owner), and the widget and its configuration (`dependsOn`, `reference`, `multiple`) are unchanged. - `patch` changeset for `@object-ui/app-shell`. ## Tests - `FieldSelectorWidget.loadFailure.test.tsx`: the existing fault-vs-measurement pins are re-pointed at the served read (responses are the `{ type, name, item }` envelope; a non-JSON 500 still fails with its status). The objectstack#37225 describe now pins the `Authorization` header on the served read. New top-level describe "the catalog is read from the served object document": the request is exactly `GET /api/v1/meta/object/:name?preview=draft` and never a `/fields` path; the bound name is encoded into the path; record-shaped `fields` become the options (label and type on the stored chip); a 404 is the "Object not found" failure, with no picker. - `FormFieldSpec.dependsOn.test.tsx` and `__tests__/SchemaForm.controlWidgetFailureArmNaming-9931.test.tsx`: their fetch doubles answer the served envelope, and the asserted URL is the served one. <details><summary>Readings at de4ff26 (base origin/main 815e882)</summary> - Premise at 815e882, static census: 0 rows whose path contains `fields` in all 18 route ledgers (each conformance-tested against the mounted routes); 0 declarers of `widget: 'field-selector'` in `packages/spec` metadata forms, `ui/` production code or hotcrm. Not measured by booting a server. - Seven files (the three above plus `selector-placeholder.i18n`, `SchemaForm.widgetLabelling`, `SchemaForm.controlWidgetGridNaming-9889`, `viewListDrop-13057`): `Test Files 7 passed (7)`, `Tests 203 passed (203)`. `metadata-client-auth.ratchet` and two siblings: `Tests 25 passed (25)`; `sameServerFetch.bearer.ratchet`: `Tests 4 passed (4)`. - Ablation: `widgets.tsx` restored to 815e882 with the new tests (fix committed first; restore `blob == HEAD` after): `Tests 8 failed | 54 passed (62)` across the three changed test files — every test of the new describe red, plus the populated, rejected and bearer pins and the `dependsOn` URL pin. - The whole `metadata-admin/` directory at aa74c7c (the previous head, whose read built its client through the factory): `Test Files 1 failed | 804 passed (805)`; the one failure was `viewListDrop-13057`'s "every console MetadataClient is built by useMetadataClient", which de4ff26 fixes (it passes in the seven-file run above). - `@object-ui/app-shell` `type-check` (both `tsc` programs) exit 0 after a real `.d.ts` build of its dependency closure. `eslint` on the five changed `.ts`/`.tsx` files exit 0, no new warnings in `widgets.tsx` (one fewer `no-explicit-any`). - `dispatch-gates --ran`: 38 derived, 38 run, 0 NOT-MEASURED; 37 exit 0. `pnpm --dir ui exec vitest run scripts/` was killed by the local 20-minute timeout (SIGKILL), so it is left to CI. `check:new-line-citations` alone: 0 citations added. </details> ## Acceptance notes - The full `@object-ui/app-shell` suite did not finish inside a 28-minute local timeout; CI's `Test UI` is the reading for it. - No boot reading: the old path's 404 and the new path's 200 against a running showcase server are not measured here. ## Verification Read first (by risk): 1. `widgets.tsx`: `fetchFieldSelectorOptions` and the `loadFields` / `objectMissing` lines in `FieldSelectorWidget`. 2. `FieldSelectorWidget.loadFailure.test.tsx`: the new last describe. Two-minute check: `pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/FieldSelectorWidget.loadFailure.test.tsx` passes; put `widgets.tsx` back to 815e882 and the same file reds in the new describe. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibwBcaYpnhtGgnknxmq)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1f1cd21 commit 581ae76

6 files changed

Lines changed: 184 additions & 112 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): the metadata form's field picker reads an object's fields from the object document the server serves
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `field-selector` picker in the metadata forms asked for an object's fields at `/api/v1/objects/:name/fields`, a path no ObjectStack server mounts, so every load ended in the picker's failure state. It now reads the object document at `GET /api/v1/meta/object/:name` (draft-overlaid, as the other field pickers in the metadata forms read it) through the console's metadata client, which still sends the stored sign-in token. A name that matches no object now reads as "Object not found" rather than as a failed request. No server route is added and the widget's configuration (`dependsOn`, `reference`, `multiple`) is unchanged.

‎ui/packages/app-shell/src/views/metadata-admin/FieldSelectorWidget.loadFailure.test.tsx‎

Lines changed: 104 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
*
77
* ## The defect, and why it had two mouths
88
*
9-
* `FieldSelectorWidget` is the one loader in this family that does not go
10-
* through `MetadataClient`: a raw `fetch` to `/api/v1/objects/:name/fields`,
11-
* its own component-local `fields` / `loading` state, no `WidgetContext`. That
12-
* is why objectui#5170 fixed the three `ResourceEditPage` pickers and left this
9+
* `FieldSelectorWidget` is the one loader in this family that does not read a
10+
* `WidgetContext` catalog: it asks for the field catalog of the object a
11+
* SIBLING form value names, with its own component-local load state. That is
12+
* why objectui#5170 fixed the three `ResourceEditPage` pickers and left this
1313
* one, and why the `catalogErrors` channel PR #5226 added never reached it.
14+
* It reads the object document the server mounts (`GET /api/v1/meta/object/:name`)
15+
* through the console's `MetadataClient` — pinned by the last `describe` here.
1416
*
1517
* It could reach a false "no fields" two different ways:
1618
*
@@ -72,7 +74,8 @@ import { t } from './i18n';
7274
const FieldSelector = WIDGETS['field-selector'];
7375

7476
const OBJECT = 'showcase_account';
75-
const FIELDS_URL = `/api/v1/objects/${OBJECT}/fields`;
77+
/** The served object read: the meta item route, draft-overlaid. */
78+
const OBJECT_URL = `/api/v1/meta/object/${OBJECT}?preview=draft`;
7679

7780
/** Shown while the catalog request is genuinely in flight. */
7881
const LOADING_FIELDS = t('engine.form.loadingFields', 'en-US');
@@ -87,14 +90,17 @@ const FAILURE_TESTID = 'field-selector-load-failed';
8790
*/
8891
const ADD_FIELDS = t('engine.form.addFields', 'en-US');
8992

90-
// `headers`: the read goes through the console's authenticated fetch, which
91-
// reads a rotated session token off every answer (objectstack#37225).
92-
function okResponse(body: unknown): Response {
93-
return { ok: true, status: 200, headers: new Headers(), json: async () => body } as unknown as Response;
93+
function json(status: number, body: unknown): Response {
94+
return new Response(JSON.stringify(body), { status, headers: { 'Content-Type': 'application/json' } });
95+
}
96+
97+
/** The served answer of `GET /meta/object/:name`: the item envelope around the object document. */
98+
function objectResponse(fields: Record<string, { type: string; label?: string }>): Response {
99+
return json(200, { type: 'object', name: OBJECT, item: { name: OBJECT, fields } });
94100
}
95101

96102
function jsonErrorResponse(status: number, body: unknown): Response {
97-
return { ok: false, status, headers: new Headers(), json: async () => body } as unknown as Response;
103+
return json(status, body);
98104
}
99105

100106
/** A promise the test resolves by hand, so the loading arm is observable. */
@@ -154,7 +160,7 @@ describe('field-selector — a failed field fetch is not an empty field list (ob
154160
// …and the loading flag cleared.
155161
expect(screen.queryByDisplayValue(LOADING_FIELDS)).not.toBeInTheDocument();
156162

157-
expect(fetchMock).toHaveBeenCalledWith(FIELDS_URL, expect.objectContaining({ credentials: 'include' }));
163+
expect(fetchMock.mock.calls.map(([url]) => url)).toEqual([OBJECT_URL]);
158164
});
159165

160166
it('mouth 2: a NON-OK response with a parseable JSON body is a fault, not an empty catalog', async () => {
@@ -178,27 +184,22 @@ describe('field-selector — a failed field fetch is not an empty field list (ob
178184
});
179185

180186
it('mouth 2: a NON-OK response with no usable message still fails with its status', async () => {
181-
const fetchMock = vi.fn().mockResolvedValue({
182-
ok: false,
183-
status: 500,
184-
headers: new Headers(),
185-
// A non-JSON body — the parse throws, and that must not be mistaken for
186-
// a refusal that said nothing to report.
187-
json: async () => {
188-
throw new SyntaxError('Unexpected token < in JSON');
189-
},
190-
} as unknown as Response);
187+
// A non-JSON body — the parse throws, and that must not be mistaken for
188+
// a refusal that said nothing to report.
189+
const fetchMock = vi.fn().mockResolvedValue(
190+
new Response('<html>Internal Server Error</html>', { status: 500, statusText: 'Internal Server Error' }),
191+
);
191192
vi.stubGlobal('fetch', fetchMock);
192193

193194
renderWidget();
194195

195196
await waitFor(() => expect(screen.getByTestId(FAILURE_TESTID)).toBeInTheDocument());
196197
expect(screen.queryByRole('combobox')).not.toBeInTheDocument();
197-
expect(screen.getByTestId(`${FAILURE_TESTID}-cause`)).toHaveTextContent('HTTP 500');
198+
expect(screen.getByTestId(`${FAILURE_TESTID}-cause`)).toHaveTextContent('500');
198199
});
199200

200201
it('a genuinely EMPTY successful load still renders the picker, and no failure block', async () => {
201-
const fetchMock = vi.fn().mockResolvedValue(okResponse({ fields: [] }));
202+
const fetchMock = vi.fn().mockResolvedValue(objectResponse({}));
202203
vi.stubGlobal('fetch', fetchMock);
203204

204205
renderWidget();
@@ -216,7 +217,7 @@ describe('field-selector — a failed field fetch is not an empty field list (ob
216217

217218
it('a POPULATED successful load renders an enabled picker', async () => {
218219
const fetchMock = vi.fn().mockResolvedValue(
219-
okResponse({ fields: [{ name: 'name', label: 'Name', type: 'text' }] }),
220+
objectResponse({ name: { type: 'text', label: 'Name' } }),
220221
);
221222
vi.stubGlobal('fetch', fetchMock);
222223

@@ -238,7 +239,7 @@ describe('field-selector — a failed field fetch is not an empty field list (ob
238239
expect(screen.queryByRole('combobox')).not.toBeInTheDocument();
239240
expect(screen.queryByTestId(FAILURE_TESTID)).not.toBeInTheDocument();
240241

241-
gate.resolve(okResponse({ fields: [{ name: 'name', label: 'Name', type: 'text' }] }));
242+
gate.resolve(objectResponse({ name: { type: 'text', label: 'Name' } }));
242243

243244
await waitFor(() => expect(screen.getByRole('combobox')).toBeInTheDocument());
244245
expect(screen.queryByDisplayValue(LOADING_FIELDS)).not.toBeInTheDocument();
@@ -290,21 +291,21 @@ describe('field-selector — a failed field fetch is not an empty field list (ob
290291
});
291292

292293
/**
293-
* objectstack#37225 — the catalog read went out as a bare `fetch` with no init:
294-
* the default `same-origin` credentials, the session cookie alone. A session
295-
* held by its bearer token alone was answered `401` and the picker showed a
296-
* failure for every object. Against a server that refuses any request without
297-
* the bearer, the read now carries it beside the cookie; with no token stored
298-
* (a cookie session) it goes out cookie-only, as before.
294+
* objectstack#37225 — the catalog read went out cookie-only, so a session held
295+
* by its bearer token alone was answered `401` and the picker showed a failure
296+
* for every object. Against a server that refuses any request without the
297+
* bearer, the read carries it; with no token stored (a cookie session) it goes
298+
* out without one, as before. The console's `MetadataClient` transport is what
299+
* carries it now (`metadataClientFactory.ts`).
299300
*/
300301
describe('field-selector — the catalog read under a bearer-only session (objectstack#37225)', () => {
301302
const TOKEN = 'stored-session-token';
302-
const sent: Array<{ credentials: RequestCredentials | undefined; authorization: string | null }> = [];
303+
const sent: Array<{ authorization: string | null }> = [];
303304
const bearerOnlyServer = vi.fn(async (_input: RequestInfo | URL, init?: RequestInit) => {
304305
const authorization = new Headers(init?.headers).get('Authorization');
305-
sent.push({ credentials: init?.credentials, authorization });
306+
sent.push({ authorization });
306307
return authorization === `Bearer ${TOKEN}`
307-
? okResponse({ fields: [{ name: 'name', label: 'Name', type: 'text' }] })
308+
? objectResponse({ name: { type: 'text', label: 'Name' } })
308309
: jsonErrorResponse(401, { error: { message: 'Authentication is required to access this endpoint.' } });
309310
});
310311

@@ -313,24 +314,88 @@ describe('field-selector — the catalog read under a bearer-only session (objec
313314
bearerOnlyServer.mockClear();
314315
});
315316

316-
it('loads the catalog, sending the stored bearer beside the cookie', async () => {
317+
it('loads the catalog, sending the stored bearer', async () => {
317318
TokenStorage.set(TOKEN);
318319
vi.stubGlobal('fetch', bearerOnlyServer);
319320

320321
renderWidget();
321322

322323
await waitFor(() => expect(screen.getByRole('combobox')).toBeEnabled());
323324
expect(screen.queryByTestId(FAILURE_TESTID)).not.toBeInTheDocument();
324-
expect(bearerOnlyServer.mock.calls.map(([url]) => url)).toEqual([FIELDS_URL]);
325-
expect(sent).toEqual([{ credentials: 'include', authorization: `Bearer ${TOKEN}` }]);
325+
expect(bearerOnlyServer.mock.calls.map(([url]) => url)).toEqual([OBJECT_URL]);
326+
expect(sent).toEqual([{ authorization: `Bearer ${TOKEN}` }]);
326327
});
327328

328-
it('CONTROL: with no token stored the read goes out cookie-only, and is refused as before', async () => {
329+
it('CONTROL: with no token stored the read goes out without one, and is refused as before', async () => {
329330
vi.stubGlobal('fetch', bearerOnlyServer);
330331

331332
renderWidget();
332333

333334
await waitFor(() => expect(screen.getByTestId(FAILURE_TESTID)).toBeInTheDocument());
334-
expect(sent).toEqual([{ credentials: 'include', authorization: null }]);
335+
expect(sent).toEqual([{ authorization: null }]);
336+
});
337+
});
338+
339+
/**
340+
* The catalog is read off a route the server mounts. It used to be read from
341+
* `/api/v1/objects/:name/fields`, which no server registers, so every load
342+
* failed: the object document at `GET /api/v1/meta/:type/:name` (the REST
343+
* route ledger's `meta.getItem` row) is the one route that serves an object's
344+
* fields, and `useObjectFields` reads the same one.
345+
*/
346+
describe('field-selector — the catalog is read from the served object document', () => {
347+
it('asks GET /api/v1/meta/object/:name, and never the unmounted fields path', async () => {
348+
const fetchMock = vi.fn(async (_input: RequestInfo | URL, init?: RequestInit) => {
349+
expect(init?.method ?? 'GET').toBe('GET');
350+
return objectResponse({ name: { type: 'text', label: 'Name' } });
351+
});
352+
vi.stubGlobal('fetch', fetchMock);
353+
354+
renderWidget();
355+
356+
await waitFor(() => expect(screen.getByRole('combobox')).toBeEnabled());
357+
const urls = fetchMock.mock.calls.map(([url]) => String(url));
358+
expect(urls).toEqual([OBJECT_URL]);
359+
expect(urls.some((u) => u.includes('/fields'))).toBe(false);
360+
});
361+
362+
it('names the object the sibling form value binds, encoded into the path', async () => {
363+
const fetchMock = vi.fn().mockResolvedValue(objectResponse({}));
364+
vi.stubGlobal('fetch', fetchMock);
365+
366+
renderWidget({ formData: { objectName: 'a/b' } });
367+
368+
await waitFor(() => expect(screen.getByRole('combobox')).toBeInTheDocument());
369+
expect(fetchMock.mock.calls.map(([url]) => url)).toEqual(['/api/v1/meta/object/a%2Fb?preview=draft']);
370+
});
371+
372+
it("reads the document's fields — record shape — into the picker's options", async () => {
373+
vi.stubGlobal(
374+
'fetch',
375+
vi.fn().mockResolvedValue(
376+
objectResponse({ amount: { type: 'currency', label: 'Amount' }, stage: { type: 'select' } }),
377+
),
378+
);
379+
380+
// With a stored value: the chip draws the catalog's label
381+
// and type for it, which only a read of the served document can supply.
382+
renderWidget({ value: ['amount'] });
383+
384+
await waitFor(() => expect(screen.getByRole('combobox')).toBeEnabled());
385+
expect(screen.getByText('Amount')).toBeInTheDocument();
386+
expect(screen.getByText('currency')).toBeInTheDocument();
387+
});
388+
389+
it('a 404 (no such object) is a failure naming the missing object, not an empty catalog', async () => {
390+
vi.stubGlobal('fetch', vi.fn().mockResolvedValue(json(404, { error: { message: 'not found' } })));
391+
392+
renderWidget();
393+
394+
await waitFor(() => expect(screen.getByTestId(FAILURE_TESTID)).toBeInTheDocument());
395+
expect(screen.getByTestId(`${FAILURE_TESTID}-cause`)).toHaveTextContent(
396+
t('engine.form.objectNotFound', 'en-US'),
397+
);
398+
expect(screen.queryByRole('combobox')).not.toBeInTheDocument();
399+
expect(screen.queryByText(ADD_FIELDS)).not.toBeInTheDocument();
335400
});
336401
});

‎ui/packages/app-shell/src/views/metadata-admin/FormFieldSpec.dependsOn.test.tsx‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,15 @@ describe('objectui#5040 — a spec typed as `FormFieldSpec` configures its widge
182182
// `calls[0][0]` unreachable rather than merely unasserted.
183183
const fetchMock = vi.fn(async (input: RequestInfo | URL) => {
184184
void input;
185-
return {
186-
ok: true,
187-
status: 200,
188-
// The authenticated fetch reads a rotated token off every answer (objectstack#37225).
189-
headers: new Headers(),
190-
json: async () => ({ fields: [{ name: 'amount', label: 'Amount' }] }),
191-
} as unknown as Response;
185+
// The served object read: the item envelope around the object document.
186+
return new Response(
187+
JSON.stringify({
188+
type: 'object',
189+
name: 'showcase_opportunity',
190+
item: { name: 'showcase_opportunity', fields: { amount: { type: 'currency', label: 'Amount' } } },
191+
}),
192+
{ status: 200, headers: { 'Content-Type': 'application/json' } },
193+
);
192194
});
193195
vi.stubGlobal('fetch', fetchMock);
194196

@@ -199,7 +201,7 @@ describe('objectui#5040 — a spec typed as `FormFieldSpec` configures its widge
199201

200202
await waitFor(() => expect(fetchMock).toHaveBeenCalled());
201203
expect(fetchMock.mock.calls.map((c) => String(c[0]))).toEqual([
202-
'/api/v1/objects/showcase_opportunity/fields',
204+
'/api/v1/meta/object/showcase_opportunity?preview=draft',
203205
]);
204206
});
205207

‎ui/packages/app-shell/src/views/metadata-admin/__tests__/SchemaForm.controlWidgetFailureArmNaming-9931.test.tsx‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ const TITLE = 'Probe';
8787
const SUB = 'trailing_stop';
8888
const COLUMN = 'Trailing Stop';
8989

90-
/** The object `field-selector`'s raw `fetch` loader is pointed at. */
90+
/** The object `field-selector`'s own catalog read is pointed at. */
9191
const OBJECT = 'showcase_account';
9292

9393
/**
9494
* Every "still asking" copy in this registry. A picker that is still LOADING
9595
* also renders a named control, so an assertion taken before the arm settles
9696
* would pass while measuring the wrong branch — `field-selector` is
97-
* genuinely asynchronous (a raw `fetch`, not a `WidgetContext` catalog).
97+
* genuinely asynchronous (its own read, not a `WidgetContext` catalog).
9898
*/
9999
const STILL_LOADING = [
100100
t('engine.form.loadingObjects', 'en-US'),
@@ -174,7 +174,7 @@ const CASES: ControlCase[] = [
174174

175175
/**
176176
* `field-selector` is the one loader here that does not read a
177-
* `WidgetContext` catalog — it `fetch`es its own. Both modes are stubbed, so
177+
* `WidgetContext` catalog — it reads the served object document itself. Both modes are stubbed, so
178178
* the failed leg fails for a stated reason and the loaded leg is a real
179179
* completed load rather than an unresolved promise.
180180
*/
@@ -183,13 +183,12 @@ function stubFetch(mode: 'failed' | 'loaded') {
183183
'fetch',
184184
mode === 'failed'
185185
? vi.fn().mockRejectedValue(new Error('NetworkError: failed to fetch'))
186-
: vi.fn().mockResolvedValue({
187-
ok: true,
188-
status: 200,
189-
// The authenticated fetch reads a rotated token off every answer (objectstack#37225).
190-
headers: new Headers(),
191-
json: async () => ({ fields: [{ name: 'status', label: 'Status', type: 'text' }] }),
192-
} as unknown as Response),
186+
: vi.fn().mockResolvedValue(
187+
new Response(
188+
JSON.stringify({ type: 'object', name: OBJECT, item: { name: OBJECT, fields: { status: { type: 'text', label: 'Status' } } } }),
189+
{ status: 200, headers: { 'Content-Type': 'application/json' } },
190+
),
191+
),
193192
);
194193
}
195194

‎ui/packages/app-shell/src/views/metadata-admin/loadState.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export function loadErrorOf(state: LoadState<unknown>): string | undefined {
204204
* and it can only produce the `error` arm. Copy-pasted unions are how the next
205205
* drift starts — which is exactly what happened: `FieldSelectorWidget` in
206206
* `widgets.tsx` was a fourth loader with the same swallow, missed by
207-
* objectui#5170 because it does not go through `MetadataClient` at all. It now
207+
* objectui#5170 because it reads no `WidgetContext` catalog. It now
208208
* calls this hook too, so the hook lives here rather than private to
209209
* `ResourceEditPage` (`widgets.tsx` cannot import that module — `ResourceEditPage`
210210
* imports `widgets`).

0 commit comments

Comments
 (0)