Skip to content

Commit ea1c7bf

Browse files
claude[bot]claude
andauthored
docs(ui): name the 5 remaining nameless form sections in content/docs/ui (#10827)
A section without `name` has no i18n anchor: the heading resolves through `objects.<object>._sections.<name>.label`, so a nameless section renders its authored label in every locale. `name` is `.optional()` in the schema, so nothing rejects these — they are valid, just silently un-localizable. Adds `name` to the five section literals under content/docs/ui/** that still lacked one, following the convention the already-named examples in these same files establish: snake_case, derived from the label, placed first in the literal (ahead of `label`). forms.mdx 'Tell us about yourself' -> about_you forms.mdx 'About you' -> about_you forms.mdx 'Lead' -> lead views.mdx 'Basic Information' -> basic_information views.mdx 'Details' -> details No section that already had a `name` is renamed, no example restructured, no surrounding prose touched. Claude-Session: https://claude.ai/code/session_01DdCnBGcHeufjrq7drTD3wt Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2350264 commit ea1c7bf

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

content/docs/ui/forms.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default defineView({
6666
data: { provider: 'object', object: 'lead' },
6767
sections: [
6868
{
69+
name: 'about_you',
6970
label: 'Tell us about yourself',
7071
columns: 2,
7172
fields: [
@@ -242,6 +243,7 @@ entry in `sections[].fields[]` (declarable since #7467):
242243

243244
```ts
244245
sections: [{
246+
name: 'about_you',
245247
label: 'About you',
246248
fields: [
247249
'company',
@@ -326,6 +328,7 @@ export default defineView({
326328
data: { provider: 'object', object: 'lead' },
327329
sections: [
328330
{
331+
name: 'lead',
329332
label: 'Lead',
330333
columns: 2,
331334
fields: [

content/docs/ui/views.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ formViews: {
350350
data: { provider: 'object', object: 'task' },
351351
sections: [
352352
{
353+
name: 'basic_information',
353354
label: 'Basic Information',
354355
columns: 2,
355356
fields: [
@@ -361,6 +362,7 @@ formViews: {
361362
],
362363
},
363364
{
365+
name: 'details',
364366
label: 'Details',
365367
collapsible: true,
366368
columns: 1,

0 commit comments

Comments
 (0)