From 3b9d3ecce12631f4e3ba382b1e0672ada4f4b6e2 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 21 Aug 2026 12:41:49 +0000 Subject: [PATCH] docs(ui): name the 5 remaining nameless form sections in content/docs/ui MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A section without `name` has no i18n anchor: the heading resolves through `objects.._sections..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. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01DdCnBGcHeufjrq7drTD3wt --- content/docs/ui/forms.mdx | 3 +++ content/docs/ui/views.mdx | 2 ++ 2 files changed, 5 insertions(+) diff --git a/content/docs/ui/forms.mdx b/content/docs/ui/forms.mdx index 34c393c5e5..8db251f4a4 100644 --- a/content/docs/ui/forms.mdx +++ b/content/docs/ui/forms.mdx @@ -66,6 +66,7 @@ export default defineView({ data: { provider: 'object', object: 'lead' }, sections: [ { + name: 'about_you', label: 'Tell us about yourself', columns: 2, fields: [ @@ -242,6 +243,7 @@ entry in `sections[].fields[]` (declarable since #7467): ```ts sections: [{ + name: 'about_you', label: 'About you', fields: [ 'company', @@ -326,6 +328,7 @@ export default defineView({ data: { provider: 'object', object: 'lead' }, sections: [ { + name: 'lead', label: 'Lead', columns: 2, fields: [ diff --git a/content/docs/ui/views.mdx b/content/docs/ui/views.mdx index 168ba44b20..1de3ae5f71 100644 --- a/content/docs/ui/views.mdx +++ b/content/docs/ui/views.mdx @@ -350,6 +350,7 @@ formViews: { data: { provider: 'object', object: 'task' }, sections: [ { + name: 'basic_information', label: 'Basic Information', columns: 2, fields: [ @@ -361,6 +362,7 @@ formViews: { ], }, { + name: 'details', label: 'Details', collapsible: true, columns: 1,