Repository navigation
Commit c357b23
committed
fix(plugin-form): declare the I18nLabel arm on the master-detail label inputs, and correct the changeset's empty-button sentence (objectui#10935)
Contract review 5871765302 on PR objectui#10986 found two defects.
- The `object-master-detail-form` registration still declared `title`,
`submitText` and `cancelText` as `'string'` while this PR teaches the render
site to resolve the `I18nLabel` map. Through the public door
(`getPublicConfigs()` -> `manifestFromConfigs` -> `validateTree`) a legal map
drew `type-mismatch`. The three now declare `['string', 'object']`, with
descriptions teaching the map, as `ComponentInput.type` prescribes. The
console parity gate gets the three `MEMBER_PINS` rows it requires, and
`masterDetailFormI18nLabelManifest.test.ts` pins the public door: a map is
not reported, a string is not reported, a number still is.
- The changeset said the old `??` fallback rendered an empty button for an
empty string AND a string-less map. The map half is false: it threw as a
React child. The sentence now says so, and the changeset records the arm
widening.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk1 parent dbb004b commit c357b23
4 files changed
Lines changed: 127 additions & 5 deletions
File tree
- .changeset
- apps/console/src/__tests__
- packages/plugin-form/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
Lines changed: 86 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2509 | 2509 | | |
2510 | 2510 | | |
2511 | 2511 | | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
2512 | 2516 | | |
2513 | 2517 | | |
2514 | 2518 | | |
| |||
2521 | 2525 | | |
2522 | 2526 | | |
2523 | 2527 | | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
2524 | 2536 | | |
2525 | 2537 | | |
2526 | 2538 | | |
| |||
0 commit comments