Skip to content

Commit a98f8c6

Browse files
fix(lint): a default or create form a form action opens by name is not reported as internal (#36793)
Part of #36545 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:应用作者跑检查时,一个仍被"表单"类动作按名字打开的默认表单或新建表单,不再被误报为"已不再加载";Studio 界面栏的显示这次不变。 - 为什么做:承接上一轮"新建与编辑不再读内部表单"的改动,修掉它带来的误报,免得作者误删一个动作仍在用的表单。 - 出错会怎样:只影响一条提示性警告,什么都不会被拒绝;若判断有误,最多是该报的警告没报或多报,撤回本次合并即可。 - 要你做什么:无。 ## What changes **Lint (`packages/lint/src/validate-internal-form-views.ts`).** Seat ruling 5 on #36425: "A form an action opens by name (action type `form`, `/forms/:name`, `/apps/:app/forms/:name`) is not the object's create or edit form and keeps loading." The advisory rule `form-view-internal-not-loaded` no longer reports a default or create form that a `type: 'form'` action in the stack opens by name. "By name" is matched exactly the way the Console resolves it. `ActionRunner.executeForm` routes the evaluated `target` to `/forms/NAME`, and `FormPage` reads `/meta/view/NAME` with that string, so the target must equal the name the form is served under: - a stored form view item: its own `name`; - a view container's `form` / `formViews.create` / `formViews.default`: the name `expandViewContainer` gives it, on the object `deriveViewContainerObject` binds. Both are the spec's own functions, the ones the registrars use, so a key collision's rename (`OBJECT.default_2`) is honoured and no `OBJECT.KEY` is built by hand. The actions read are `actions[]`, `objects[].actions[]` and a page component's inline `properties.action` (the showcase Overview's Create Task is one). An interpolated target, a shorter spelling (`form`), and an action of another type (`modal`, `url`) exempt nothing. The rule's message and hint are unchanged. The `os explain` paragraph says what is exempted. **Showcase.** The `view "showcase_task" · form` row is gone from `test/author-time-advisories.test.ts`, because the rule no longer fires there: Log Time, New Task and the Overview's Create Task open it as `showcase_task.form`. That test checks both directions, so a stale row fails it and so does an unlisted warning. It now fails if the warning comes back. The comment in `task.view.ts` says the same. **N3, the stale `resolveFormViewLayout` comments.** The function was deleted by #36543. The comments now describe the chain without naming it: `FormPage.tsx`, `FormPage.visibleWhen.test.tsx`, and the plugin-form tests `sectionVisibleWhen-6111` (including one test label), `sectionStyleKeysRetired-13626` and `modalFormSectionGroupReference-11542`. The checklist text in `records-forms.json` (`form-view-gallery`) and `studio-authoring.json` that described the retired default-form overlay recipe is now marked STALE, with what changed. The items still need a re-audit (see Acceptance notes). `git grep -n resolveFormViewLayout -- ui docs/qa` (CHANGELOG.md excluded) now answers zero. **Not in this PR: the Studio Interfaces-rail half.** The rail filter (`StudioDesignSurface.tsx` `offNavSections` → `offNavViewIsInternalForm`) sees only the package's page / dashboard / report / view rows from `loadPackageSurfaces`. It reads no actions. Which read it should take is open on the card, so this PR is `Part of`. The comment in `packageSurfaces.ts` that said "the same test as the lint rule" now says the rail does not make this exemption yet. ## Tests - `packages/lint/src/validate-internal-form-views.test.ts`: four new cases in a new top-level `describe`: - registered and object-bound actions exempt exactly the form they target; - the served name is used, including a collision rename and a form's own `name`; - a page's inline `element:button` action exempts a stored default form; - CONTROL: a short or interpolated target, and a `modal` or `url` action, exempt nothing. - Ablation (rule source, src-resolved relative import) via `scripts/ablation-replace.mjs`, which changed the guard to `... && false`. Result: 3 exemption cases red, CONTROL green. Restored blob equals HEAD (`c2e22aa66429`) and `git diff HEAD` is empty. <details><summary>Readings (after merging origin/main, head cc016f8)</summary> - `pnpm --filter @objectstack/lint exec vitest run`: Test Files 229 passed (229), Tests 9513 passed (9513) - `pnpm --filter @objectstack/lint typecheck`: exit 0 (tsc, plus check:test-typecheck OK) - `pnpm --filter @objectstack/example-showcase exec vitest run test/author-time-advisories.test.ts`: 2 passed. This spawns the built CLI, after `pnpm --filter '@objectstack/example-showcase^...' build`. - ui, from `ui/`: `pnpm exec vitest run` on the six touched test files gave Test Files 6 passed, Tests 71 passed (pre-merge head df6f003; comment and label-only edits). - Gate families from `dispatch-gates --commands` (80, derived at cc016f8): 79 exit 0, 1 NOT MEASURED (`check:type-check-debt`, exit 3: the verify lock was not acquired within its budget, so nothing was measured). `dispatch-gates --ran` (with exit codes): 80 accounted, 0 UNRUN. - `overlap-check`: clean against origin/main bbc7e03 and the one open PR that shares a file (#36721, merges cleanly). </details> ## Acceptance notes - **Rail half open (needs a seat decision).** What the rail can see where it filters: view rows (`name`, `object`, `viewKind`, `internalForm`) plus page / dashboard / report names. There are two candidate reads: - (a) The object rows `StudioDesignSurface` already fetches (`client.list('object', { packageId })`). `defineStack` merges bound actions into `objects[].actions`, but that state keeps only name / label / icon / color, and the served body was not measured live here. - (b) A new `client.list('action', { packageId })` read. Neither sees actions in other packages, or unbound inline page actions. - **Checklist re-audit needed, not done here.** `records-forms.form-view-gallery` is built on overlaying the default form to stage each layout on `/new` and `/edit`. Since #36425 those routes load no form view, so its tabbed / wizard steps cannot pass as written. The `studio-authoring` row on `view.form` keys (`modalSize`, `groups`, `subforms`, `buttons`) has the same gap. Only the stale mechanism text was replaced. - **Prose outside the file surface** still says every non-public default / create form is reported: `content/docs/ui/views.mdx:489`, `content/docs/ui/create-vs-edit-form.mdx:13` and `skills/objectstack-ui/rules/list-views.md:361` (a Tier H surface). None was edited. ## Verification Read first, by risk: 1. `packages/lint/src/validate-internal-form-views.ts`, `servedFormNames`: the zip of `formViews` keys onto expanded items copies the expander's skip test and order. 2. `formNamesOpenedByAction`: which actions count. 3. `docs/qa/platform-checklist/areas/records-forms.json`, the STALE note in `form-view-gallery` `fixtures.requires[0]`. Two-minute check: `pnpm --filter @objectstack/lint exec vitest run src/validate-internal-form-views.test.ts`. Expect 11 passed. --- _Generated by [Claude Code](https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent d2fc055 commit a98f8c6

14 files changed

Lines changed: 222 additions & 35 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/lint': patch
3+
---
4+
5+
fix(lint): a default or create form that a form-type action opens by name is not reported as internal
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The advisory rule `form-view-internal-not-loaded` warned on every default form (`form`, `formViews.default`, an `isDefault` form view item) and every create form (`formViews.create`, `OBJECT.create`) that is not shared publicly. A `type: 'form'` action can still open one of those forms by its name, and the Console still loads it then, so for that form the warning said "no longer loaded" about a form users reach.
11+
12+
The rule now leaves such a form out. A form counts as opened by an action when the `target` of a `type: 'form'` action in the stack equals the name the form is served under: the item's own `name` for a stored form view item, and for a view container's form the name the spec's container expansion gives it (`OBJECT.form` for the default form, or its own `name`; `OBJECT.create` for `formViews.create`; a key collision's renamed name). The actions read are `actions[]`, `objects[].actions[]` and a page component's inline `properties.action`. An interpolated target, a shorter spelling, or an action of another type exempts nothing. The `os explain form-view-internal-not-loaded` text says so.
13+
14+
The warning still fires for every other internal create or edit form, with the same message and hint. Nothing is refused or accepted differently.

‎docs/qa/platform-checklist/areas/records-forms.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -978,12 +978,12 @@
978978
"fixtures": {
979979
"app": "showcase",
980980
"requires": [
981-
"showcase_task's default form (type simple — the `form` key) and its formViews tabbed / wizard / split / quick — examples/app-showcase/src/ui/views/task.view.ts. Since spec 18.3.0 a form view's `type` is its layout only, simple | tabbed | wizard (ADR-0050, packages/spec/src/ui/view.zod.ts#FormViewSchema): the showcase's `split` entry is now a two-section tabbed form and `quick` a simple one, and the type values split, drawer and modal are refused by name (FORM_VIEW_TYPE_RETIRED). The console reads ONLY the default (objectDef.form ?? formViews.default — RecordFormPage through selectRecordFormView), so a named formViews entry is reachable from no console door: each page-level variant is reached by overlaying the object's default form with that variant's type + sections (view is org-overridable, ADR-0005) and reverting afterwards. The overlay recipe goes through the customization pair (ADR-0146 D11; the package-less overlay PUT is the older shape): POST /api/v1/packages/com.example.showcase/ensure-customization, then PUT /api/v1/meta/view/showcase_task.form?package=com.example.showcase.custom&mode=draft with the ViewItem {name:'showcase_task.form', object:'showcase_task', viewKind:'form', isDefault:true, config:{type:<variant>, sections:<that variant's sections>}} carrying overrides: { package: 'com.example.showcase', basedOn: <the showcase's version> }, then POST /api/v1/packages/com.example.showcase.custom/publish-drafts; revert with DELETE on the pair (DELETE /api/v1/meta/view/showcase_task.form?state=draft&package=com.example.showcase.custom, then the same without state). Once the pair exists, Studio Publish on the showcase leaves its read-only posture (#28562), so ux-conventions.disabled-control-reason variants[1] runs before this item creates it, or on a boot without it. Each variant's sections can be read from its own served view item — the container serves formViews as showcase_task.tabbed / .wizard / .split / .quick (GET /api/v1/meta/view/showcase_task.<variant>, QA run #24572). ⚠ Item-level isDefault:true is REQUIRED: the console takes an object's default form — what /new and /edit render — ONLY from a form ViewItem that carries it (objectui packages/app-shell/src/providers/MetadataProvider.tsx applyViewItem, objectui#11539). Without it the publish succeeds, the flag is gone from the served row, and the page falls back to the all-fields layout, which reads like 'the variant does not render'",
981+
"showcase_task's default form (type simple — the `form` key) and its formViews tabbed / wizard / split / quick — examples/app-showcase/src/ui/views/task.view.ts. Since spec 18.3.0 a form view's `type` is its layout only, simple | tabbed | wizard (ADR-0050, packages/spec/src/ui/view.zod.ts#FormViewSchema): the showcase's `split` entry is now a two-section tabbed form and `quick` a simple one, and the type values split, drawer and modal are refused by name (FORM_VIEW_TYPE_RETIRED). STALE since #36425 (PR #36543): the console's record create and edit surfaces (RecordFormPage at /new and /record/:id/edit, the New / Edit dialog, an action-opened create or edit) load no form view at all, and lay the record out by the object's fieldGroups; selectRecordFormView is deleted. So overlaying the default form no longer reaches any of them, and the default-form overlay recipe below no longer stages a variant on those routes: this item awaits a re-audit (the steps that overlay the default form cannot pass as written). A form view still loads where it is opened by name (FormPage at /forms/NAME, which a type 'form' action opens). The retired recipe, kept for that re-audit: each page-level variant was reached by overlaying the object's default form with that variant's type + sections (view is org-overridable, ADR-0005) and reverting afterwards. The overlay recipe goes through the customization pair (ADR-0146 D11; the package-less overlay PUT is the older shape): POST /api/v1/packages/com.example.showcase/ensure-customization, then PUT /api/v1/meta/view/showcase_task.form?package=com.example.showcase.custom&mode=draft with the ViewItem {name:'showcase_task.form', object:'showcase_task', viewKind:'form', isDefault:true, config:{type:<variant>, sections:<that variant's sections>}} carrying overrides: { package: 'com.example.showcase', basedOn: <the showcase's version> }, then POST /api/v1/packages/com.example.showcase.custom/publish-drafts; revert with DELETE on the pair (DELETE /api/v1/meta/view/showcase_task.form?state=draft&package=com.example.showcase.custom, then the same without state). Once the pair exists, Studio Publish on the showcase leaves its read-only posture (#28562), so ux-conventions.disabled-control-reason variants[1] runs before this item creates it, or on a boot without it. Each variant's sections can be read from its own served view item — the container serves formViews as showcase_task.tabbed / .wizard / .split / .quick (GET /api/v1/meta/view/showcase_task.<variant>, QA run #24572). ⚠ Item-level isDefault:true is REQUIRED: the console takes an object's default form — what /new and /edit render — ONLY from a form ViewItem that carries it (objectui packages/app-shell/src/providers/MetadataProvider.tsx applyViewItem, objectui#11539). Without it the publish succeeds, the flag is gone from the served row, and the page falls back to the all-fields layout, which reads like 'the variant does not render'",
982982
"examples/app-showcase/src/ui/pages/task-desk.page.ts — the presentation surface: a JSX page whose ObjectForm opens with formType=\"drawer\" (edit, a side panel) and formType=\"modal\" (create, a dialog) over the task list"
983983
],
984984
"knownGaps": [
985985
"the drawer and modal PRESENTATIONS have one stock surface, task-desk.page.ts (ObjectForm formType=\"drawer\" to edit a task, formType=\"modal\" to create one). No form view can declare either any more: ADR-0050 took drawer and modal out of FormView.type in spec 18.3.0, and examples/app-showcase/src/coverage.ts#FORM_VIEW_TYPES lists the three layouts. If that page cannot be reached, record the presentation variant blocked(fixture) rather than ticking or silently skipping it",
986-
"drawer and modal are presentation modes and split a list-beside-record mode, not page layouts (ADR-0050). Since spec 18.3.0 FormViewSchema refuses all three type values at parse, each with its prescription (packages/spec/src/ui/view.zod.ts FORM_VIEW_TYPE_RETIRED), so a default-form overlay carrying one is refused at the metadata door instead of rendering anything (QA run #27441 measured 422). The New/Edit modal maps only tabbed (resolveFormViewLayout — a wizard degrades to a stacked section list there). So the page-level layouts are walked on the page routes (/new and /record/:id/edit, both RecordFormPage), the presentations on task-desk.page.ts, and the three retired values are scored as the refusal (steps[3], acceptance[5])"
986+
"drawer and modal are presentation modes and split a list-beside-record mode, not page layouts (ADR-0050). Since spec 18.3.0 FormViewSchema refuses all three type values at parse, each with its prescription (packages/spec/src/ui/view.zod.ts FORM_VIEW_TYPE_RETIRED), so a default-form overlay carrying one is refused at the metadata door instead of rendering anything (QA run #27441 measured 422). Since #36425 the New/Edit modal loads no form view at all (before it, the modal mapped only tabbed and a wizard degraded to a stacked section list there). So the page-level layouts are walked on the page routes (/new and /record/:id/edit, both RecordFormPage), the presentations on task-desk.page.ts, and the three retired values are scored as the refusal (steps[3], acceptance[5])"
987987
]
988988
},
989989
"variants": [
@@ -996,7 +996,7 @@
996996
"steps": [
997997
"open a task record's full-page edit form (…/showcase_task/record/<id>/edit — RecordFormPage) on the stock default form (type simple); screenshot; verify the declared section ('Task', 2 columns) and its field order",
998998
"overlay the default form with the tabbed variant (type tabbed + the sections of formViews.tabbed, through the fixtures.requires[0] recipe with item-level isDefault:true); reopen the page form; verify the three tabs (Overview / Schedule / Details) and that switching tabs preserves entered values",
999-
"overlay the default form with the wizard variant; open the PAGE form (…/showcase_task/new, or the record's /edit route — RecordFormPage passes the type in both modes); walk Basics → Assignment → Schedule with next/back; verify back preserves values and submit happens ONCE at the end. The New/Edit MODAL renders a wizard as a stacked section list by design (resolveFormViewLayout), so the steps are walked on the page route",
999+
"overlay the default form with the wizard variant; open the PAGE form (…/showcase_task/new, or the record's /edit route — RecordFormPage passes the type in both modes); walk Basics → Assignment → Schedule with next/back; verify back preserves values and submit happens ONCE at the end. The New/Edit MODAL rendered a wizard as a stacked section list by design, so the steps were walked on the page route; since #36425 neither the modal nor the page route loads the default form (fixtures.requires[0])",
10001000
"RETIRED-TYPE refusal: put the default-form overlay of fixtures.requires[0] with type 'split', then 'drawer', then 'modal' (any sections), and capture each refusal: a 422 whose message names the retired value with its prescription (FORM_VIEW_TYPE_RETIRED). Record whether the draft PUT or its publish answered it. Then re-read GET /api/v1/meta/view/showcase_task.form and confirm none of the three landed. There is no split pane to look for: the showcase's formViews.split is now a two-tab tabbed form",
10011001
"drawer and modal: open task-desk.page.ts; click a task's title (or select one of its cells and press Space) — ObjectForm formType=\"drawer\" opens as a side panel over the list with the task's fields; click New task — ObjectForm formType=\"modal\" opens as a dialog. These are the React block's containers, which ADR-0050 keeps (the block is the caller that opens the form); a form view can no longer name either (steps[3])",
10021002
"on the simple form, set priority to 'urgent' and verify the notes field appears (FormField.visibleWhen CEL); set it back and verify notes hides",
@@ -1053,7 +1053,7 @@
10531053
"packages/spec/src/ui/view.zod.ts#FormViewSchema (FormViewSchema type enum: simple|tabbed|wizard; split, drawer and modal refused by name since 18.3.0, FORM_VIEW_TYPE_RETIRED)",
10541054
"examples/app-showcase/src/coverage.ts#FORM_VIEW_TYPES (FORM_VIEW_TYPES — the 3 layouts)",
10551055
"examples/app-showcase/src/ui/views/task.view.ts#formViews (formViews incl. visibleWhen on notes)",
1056-
"objectui packages/app-shell/src/views/RecordFormPage.tsx (reads objectDef.form ?? formViews.default through selectRecordFormView; page-level layouts only) + packages/app-shell/src/utils/recordFormNavigation.ts (resolveFormViewLayout — the New/Edit modal maps only tabbed)",
1056+
"ui/packages/app-shell/src/views/RecordFormPage.tsx (since #36425 loads no form view: lays the record out by the object's fieldGroups) + ui/apps/console/src/components/FormPage.tsx (a form view opened by name at /forms/NAME)",
10571057
"docs/adr/0050-form-layout-vs-presentation.md (drawer/modal leave FormView.type and split is removed, enacted in spec 18.3.0; where a form opens is the caller's open mode) + examples/app-showcase/src/ui/pages/task-desk.page.ts (ObjectForm formType drawer + modal)"
10581058
],
10591059
"history": [
@@ -1066,7 +1066,7 @@
10661066
{
10671067
"revision": 2,
10681068
"date": "2026-10-05",
1069-
"change": "clause 1 (drawer variant), steps 1-5, the fixtures, a new revert step, negative 2 and the sources re-pointed (assertion defect, #21782 VF3; VF3 gave no verbatim wording, so the clause is derived). RecordFormPage renders drawer/modal as simple by design ('presentation/open-modes, not record-page layouts', objectstack#1890), and resolveFormViewLayout maps only tabbed. The modelling decision is ADR-0050 (Proposed): drawer/modal leave FormView.type, and presentation belongs to NavigationMode / addRecord.mode / action type 'modal'. Named formViews are reachable from no console door, because every consumer reads objectDef.form ?? formViews.default, so the steps now overlay the default form. Measured differently from the card in two places. (1) The card has the wizard rendering as steps only on /new; RecordFormPage passes the type on the /edit page route as well, and only the New/Edit modal degrades it. (2) task-desk.page.ts hosts BOTH a formType=\"drawer\" and a formType=\"modal\" ObjectForm, so the modal presentation is scorable there, and blocked(fixture) stays only as the fallback. Re-read at objectui 9dfaca6543: unchanged",
1069+
"change": "clause 1 (drawer variant), steps 1-5, the fixtures, a new revert step, negative 2 and the sources re-pointed (assertion defect, #21782 VF3; VF3 gave no verbatim wording, so the clause is derived). RecordFormPage renders drawer/modal as simple by design ('presentation/open-modes, not record-page layouts', objectstack#1890), and the New/Edit modal's form-view layout step (deleted by #36425) mapped only tabbed. The modelling decision is ADR-0050 (Proposed): drawer/modal leave FormView.type, and presentation belongs to NavigationMode / addRecord.mode / action type 'modal'. Named formViews are reachable from no console door, because every consumer reads objectDef.form ?? formViews.default, so the steps now overlay the default form. Measured differently from the card in two places. (1) The card has the wizard rendering as steps only on /new; RecordFormPage passes the type on the /edit page route as well, and only the New/Edit modal degrades it. (2) task-desk.page.ts hosts BOTH a formType=\"drawer\" and a formType=\"modal\" ObjectForm, so the modal presentation is scorable there, and blocked(fixture) stays only as the fallback. Re-read at objectui 9dfaca6543: unchanged",
10701070
"ref": "#21797"
10711071
},
10721072
{

‎docs/qa/platform-checklist/areas/studio-authoring.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4531,7 +4531,7 @@
45314531
"flow.errorHandling { strategy, maxRetries } → maxRetries 2 yields three failed attempts, each its own failed run in GET /api/v1/automation/NAME/runs (retryExecution in packages/services/service-automation/src/engine.ts starts each attempt as a new run), not three attempts inside one run",
45324532
"flow.nodes[].inputSchema → stored and served",
45334533
"view.list: searchableFields, userFilters, resizable, compactToolbar, selection, pagination, rowHeight, grouping, rowColor, hiddenFields, fieldOrder, rowActions, bulkActions, conditionalFormatting, inlineEdit, exportOptions (needs an export grant), appearance, addRecord, showRecordCount, allowPrinting, emptyState → each renders as its key describes; probe compactToolbar, showRecordCount and resizable at the value opposite to what the list does with the key unset, since at that default a stored key renders exactly like no key and proves nothing (gap-view card, 3fcafcd3)",
4534-
"view.form: groups, subforms, submitBehavior, modalSize, allowSkip, showStepIndicator, buttons → render as described (buttons measured rendering, knownGaps[0]); splitDirection / splitSize / splitResizable → refused at parse (retired in @objectstack/spec 18.3.0 with the split form, ADR-0050); drawerSide / drawerWidth → refused at parse (retired in @objectstack/spec 18.3.0, ADR-0049: no form view opens in a drawer); defaults: partial (knownGaps[0]). layout, defaultTab and tabPosition are not rows: Studio offers a control for each (step 4, knownGaps[0]). modalSize acts only on the form view the record modal selects, the object's default form view, or for a create its `create` form view when one is declared (selectRecordFormView, ui/packages/app-shell/src/utils/recordFormNavigation.ts), so author it there",
4534+
"view.form: groups, subforms, submitBehavior, modalSize, allowSkip, showStepIndicator, buttons → render as described (buttons measured rendering, knownGaps[0]); splitDirection / splitSize / splitResizable → refused at parse (retired in @objectstack/spec 18.3.0 with the split form, ADR-0050); drawerSide / drawerWidth → refused at parse (retired in @objectstack/spec 18.3.0, ADR-0049: no form view opens in a drawer); defaults: partial (knownGaps[0]). layout, defaultTab and tabPosition are not rows: Studio offers a control for each (step 4, knownGaps[0]). STALE since #36425 (PR #36543): the record create and edit dialogs load no form view any more (selectRecordFormView is deleted), so modalSize, groups, subforms and buttons on the object's default or create form steer nothing there, and this row awaits a re-audit against a surface that still loads a form view (FormPage at /forms/NAME, a form opened by name)",
45354535
"dashboard.requiredPermissions → a viewer without the capability is refused the dashboard. Its steps[0] stored-check runs as a holder of the capability: an admin who does not hold it is refused the draft and the live read alike (403)",
45364536
"dataset (Studio's New dataset, ui/packages/app-shell/src/views/studio-design/datasetCreate.tsx DatasetCreateEntry, writes only a name, an object, the seed's count measure, group-by dimensions and sum measures, so it offers no control for the keys below): include, dimensions with nullLabel, measures count / sum / avg / filtered / ratio, currency format → a report bound to it shows the null bucket labelled and each measure's value",
45374537
"permission.description / isDefault / allowExport / rowLevelSecurity[].positions → the Setup list shows the description; isDefault raises a suggestion; allowExport → export 200 with it, 403 EXPORT_NOT_PERMITTED without; positions limit the policy to holders of the position"

‎examples/app-showcase/src/ui/views/task.view.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,11 @@ export const TaskViews = defineView({
381381
},
382382

383383
// The default form. Since #36425 the Console's create and edit surfaces lay
384-
// the record out by the object's fieldGroups and no longer load it, so it is
385-
// inert there (lint: form-view-internal-not-loaded, allow-listed with its
386-
// reason in test/author-time-advisories.test.ts).
384+
// the record out by the object's fieldGroups and no longer load it there. It
385+
// is not inert: three `type: 'form'` actions open it by its served name
386+
// `showcase_task.form` (Log Time, New Task, and the Overview page's Create
387+
// Task), and the console still loads a form opened by name, so the lint rule
388+
// form-view-internal-not-loaded does not report it (#36545).
387389
// simple ── single-section form ──────────────────────────────────────
388390
form: {
389391
type: 'simple',

0 commit comments

Comments
 (0)