Skip to content

Commit d578952

Browse files
fix(lint)!: publish-time checks for views, dashboards and the app shell that save and do not work (#38107)
Part of #35143 Clause-②: yes (narrowing) Metadata-protocol: narrowed Skills-docs: follow-up owed — skills/objectstack-ui/rules/list-views.md, skills/objectstack-ui/SKILL.md (#38153) ## 维护者速读 - 作者在命令行校验或在设计器保存应用时,会多看到六条提示:看板按非选项字段分组、空白仪表盘、列表筛选用了公式字段、应用没有导航、对象没有入口、打开的对象没有设计过列表;运行中的用户无感。 - 属于「发布时拦下保存成功却用不了的元数据」这一组检查的第二批,替作者在发布前发现页面打不开或显示空白的问题。 - 只有列表筛选用公式字段一条会拒绝保存(这样的视图本来一打开就报错);其余五条都只是提醒,撤回本合并即可恢复原状。 - 无 ## What changes The "Views, dashboards, app shell" lines of #35143, each re-verified on `origin/main` (27ee984) first: a probe of all six shapes produced no finding on `os validate` / `build` / `lint` nor at the runtime `view` / `dashboard` / `app` doors. Two lines extend an existing rule; the app shell is one new module. | Line | Rule id | Where | Severity | Doors | |---|---|---|---|---| | V1a board grouped by a field with no lanes | `list-view-kanban-group-field-uncategorical` | extends `validateListViewFieldRefs` | warning | CLI + runtime (view, object) | | V1b dashboard with no widgets | `dashboard-without-widgets` | extends `validateWidgetBindings` | warning | CLI + runtime (dashboard) | | V2 list filter on a formula field | `list-view-filter-field-virtual` | extends `validateListViewFieldRefs` (own filter and `userFilters.tabs` filters) | error | CLI + runtime (view, object) | | V3 app with no navigation entry | `app-navigation-empty` | new `validateAppNavigationPresent` | warning | CLI + runtime (app) | | V3 object no app opens | `object-unreachable-from-navigation` | new `validateObjectShellReach` | warning | CLI only (needs the full snapshot) | | V3 navigated object with no list view | `object-without-view` | new `validateObjectShellReach` | warning | CLI only | Severity reasoning (engine read, consistent across the publish door and the CLI): - **V2 is an error everywhere**: objectql's `assertFilterIsMaterializable` refuses a filter on a virtual field (`isVirtualSearchField`) with `400 INVALID_FIELD`, so the saved view opens on that error. This is the narrowing. - **V1a is a warning**: the kanban renderer falls back to lanes from loaded records, so a text-grouped board still draws, only with lanes nobody designed; reference and boolean fields are categorical (reference lanes are supported), multi-value fields are flagged because they stringify into combined lanes. - **V1b is a warning at every door** (seat ruling M1 option B): the shape breaks no request (the dashboard opens on its header), and the platform's own create steps write it and fill it afterwards: Studio, the spec's dashboard create seed, and `os generate dashboard`. Both doors see the same dashboard, so the severity is the same. - **V3 is a warning**: each shape is a legitimate step of building an app; nothing breaks a request. `app-navigation-empty` counts navigation contributed into the app (`navigationContributions`); a contribution from a package the stack cannot see is why it is not an error. `object-unreachable-from-navigation` says only that no navigation entry opens the object's list. Not judged: a stack with no app and no contributions; an object with a `master_detail` field or named in another object's `relatedLists`; an object a page names when a `type: 'page'` entry opens that page; an object with `enable.apiEnabled: false`. `object-without-view` reads `ObjectSchema.listViews` and bound `views[]` items, and is judged only where an entry opens a list (no `recordId`). Also: six `os explain` entries, an ADR-0087 semantic migration notice (`19.publish-refuses-views-and-dashboards-that-save-and-do-not-work`), the docs rule-family table rows, and the "author-time rules (N)" counts (main 88 → 90). ## Why Each of these saves cleanly and then shows the user less than was built: a page that opens on an error, a blank dashboard, an app that opens on the "no access" empty state, an object nobody can reach, or an "All records" list nobody designed. ## Tests Readings at head `2399eab8` unless marked; the commits after `d95f7a4e` touch only three `packages/cli/test` fixtures. <details><summary>Lint package</summary> - `pnpm --filter @objectstack/lint test` (at 1d79fae, lint source unchanged since): Test Files 246 passed (246), Tests 9921 passed. `typecheck` OK. - Suites: `validate-app-shell-reach.test.ts` (new), `validate-list-view-field-refs.test.ts`, `validate-list-view-kanban-lanes.test.ts`, `validate-widget-bindings.test.ts`, `validate-security-posture.runtime-surface.test.ts`. Every rule pinned lit and dark, through the registry, on each command, and at the runtime door it rides. - Ablation (each restored, verified): kanban check removed → 7 failed; filter check removed → 7 failed; master-detail exemption removed → 1 failed (first round); relatedLists/page exemption removed → 1 failed; list-entry (`recordId`) gate removed → 1 failed (this round). </details> <details><summary>CLI scaffold pins, showcase, dogfood</summary> - `generate-scaffold-gates.e2e.test.ts` + `generate-scaffolds-reach-stack.e2e.test.ts` (`OS_TEST_TIERS=nightly`, at 17f62e7; the two files unchanged since): Test Files 2 passed, Tests 77 passed. Before the test rework they measured 2 failed / 74 passed, which is how the pins below were found. - `pnpm --filter @objectstack/cli exec vitest run --project unit`: 445/446 files passed, the one red file `generate-scaffold-validates.test.ts` (3 tests) fixed and re-run at d95f7a4: 26/26 passed. - `examples/app-showcase`: whole suite 49 files, 546 tests passed; `author-time-advisories.test.ts` 2/2. - Dogfood battery at d95f7a4 (the later commit is three CLI test fixtures, off the dogfood path): `VERDICT command-exit 0`, Test Files 490 passed + 3 skipped (493), Tests 4144 passed + 68 skipped (4212). - CLI integration fixtures CI found red on d95f7a4 (`Test Core (5/10)`): `lint-per-package-authoring-parity`, `package-union-readers`, `stack-conversion-record-door` now open their objects from navigation, each on a declared list (the parity fixture's orders package contributes its entry into core's app). Re-run locally at 2399eab: 3 files, 34 tests passed. - First round, unchanged code paths: metadata-protocol 372 files + 9 skipped; objectql 643/643; runtime 659 files, all `VERDICT command-exit 0`. </details> ## Acceptance notes - **Seat rulings applied**: `Clause-②: yes (narrowing)` (six rule-id exports enlarge the `.` entry); `dashboard-without-widgets` is a warning at both doors, and `validateWidgetBindings` no longer takes an options argument, so its signature is unchanged from main. - **Scaffold pins (M1/M2), settled per pin, none loosened to a filter by rule:** - `os g object` (and every leg that generates an object) now meets `object-unreachable-from-navigation`. Making the scaffold silent would need `os g` to edit the author's app, which #32153 rules out (`os g` never edits an app). The finding is true and the author's to answer, as `nav-object-ungranted` already is in the same file, so each leg pins that it fires only on objects the leg generated, then answers it as the starter app's own header tells the author to (the entry the hint names, then `os g view` for an object that reports `object-without-view`) before the three gates run, which stay at zero findings. - `os g dashboard` writes `widgets: []` under a comment naming the widget shape; a widget needs a dataset and measures only the author can choose. `dashboard-without-widgets` is carried in a `SCAFFOLD_ADVISORIES` ledger with that reason, pinned to fire at every gate in the dashboard leg and in no other leg. Same ledger in the in-process pin. - `os g app` opens the object it binds, which has no list view; the in-process pin answers it with `os g view` and pins that `app` is the only scaffold that needs it. `generate.ts` is unchanged, so no `@objectstack/cli` changeset. - **Showcase (M2)**: 16 new advisories, each listed with its reason in `author-time-advisories.test.ts`: 8 `object-without-view` (objects on the console's derived list; designing those lists would change what browser checklist items observe) and 8 `object-unreachable-from-navigation` (objects kept off navigation on purpose: OWD siblings, share-link, public-form inbox, semantic-roles fixtures, federated externals). `showcase_private_note` is linked by URL from the Capability Map page, which the rule does not read. - **S3**: an object another object names in `relatedLists`, or that a page opened by a `type: 'page'` entry names (an `object` / `objectName` value), is not judged; the message claims only that no navigation entry opens the list, and the hint no longer prescribes a `master_detail` field. - **S2**: `object-without-view` reads `ObjectSchema.listViews`, names it in the hint, explanation and changeset; the dead `obj.list` read is gone. **N1**: an entry with `recordId` owes no list view. **N2**: the one-element holder indirection is gone; `viewBinds` still duplicates the list-view walk in `validate-list-view-field-refs.ts` (left, noted). **N3**: board messages for `rating` / `formula` grouping left generic (noted). - **Corpus**: app-crm and app-multi-package exit 0 with `object-without-view` for objects with no list view; app-todo clean. hotcrm at 99a4279, a static reading (not a run): every object file is named by some `objectName`, has a `master_detail` field, or is in a `relatedLists`, so no unreachable finding is expected; kanbans group by select or lookup; no empty dashboards. - **Not judged**: `userFilters.fields` for formula fields; boolean grouping counts as categorical. - **Merge**: main merged twice; the rule counts read 90 (main 88 + two), confirmed by `check:docs-transcript-drift`. The "Test UI" red on 1d79fae was all 16 shards cancelled by the next push, not a test failure. - **Surface outside `packages/lint/**`** (admitted by the seat's claim note): docs rows and counts, the changeset, the spec semantic entry, `packages/cli/test/**`, `examples/app-showcase/test/**`. ## Verification Two-minute check: `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-app-shell-reach.test.ts`. Expected: all tests pass. Or `os validate` in `examples/app-crm`: exit 0 with `object-without-view` warnings for `crm_account` and `crm_contact`. Read first (by risk): 1. `packages/lint/src/validate-list-view-field-refs.ts`: `checkFilterVirtual`, the only new error, at every door. 2. `packages/lint/src/validate-app-shell-reach.ts`: what counts as reach (`collectNav`, `shownElsewhere`) and the list-entry gate. 3. `packages/cli/test/generate-scaffold-gates.e2e.test.ts`: `answerAppShell` and `SCAFFOLD_ADVISORIES`. <details><summary>Local gates</summary> 119 derived families (`dispatch-gates.mjs --commands` at d95f7a4); `--ran` reconciliation with exit codes: 115 exit 0, 4 NOT MEASURED, each exit 3 PREREQUISITE NOT MET: `check-plugin-teardown-shape --self-test` (shallow clone), spec `check:skill-examples` (client-react dts), `check:dual-build-cjs-loads` (unbuilt), `check:type-check-debt` (lock queue-timeout behind this PR's own dogfood run). `check:docs-transcript-drift` and `check-nul-bytes` re-run at 2399eab, exit 0. CI owns the farm. </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [ ] 3. No formatter ran; `pnpm lint` is the CI-owned repo scan, not run locally. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK <!-- signed: repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4f7aa88 commit d578952

23 files changed

Lines changed: 1304 additions & 25 deletions
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
'@objectstack/lint': minor
3+
'@objectstack/spec': patch
4+
---
5+
6+
fix(lint)!: publish-time checks for views, dashboards and the app shell that save and do not work
7+
8+
Clause-②: yes (narrowing)
9+
Metadata-protocol: narrowed
10+
11+
<!-- adr-0087: registered publish-refuses-views-and-dashboards-that-save-and-do-not-work -->
12+
13+
**BREAKING** for a list view filter keyed on a `formula` field: it was accepted before and is refused now, with the fix named in the finding. The schema is unchanged and stored metadata is not rewritten or refused at boot; the refusal comes at the next publish, and from `os validate` / `lint` / `compile` / `build`.
14+
15+
- `list-view-filter-field-virtual` (error): a list view's own `filter`, or a `userFilters.tabs[]` preset, keyed on a field computed on read (`formula`). The engine refuses every query filtered on such a field (`400 INVALID_FIELD`), so the view opens on that error every time. Refused at the runtime publish door on a `view` write and on an `object` write through the object's own `listViews`. A dotted key whose head is a formula stays `list-view-field-dotted`; the filter bar's field list (`userFilters.fields`) is not judged.
16+
- `dashboard-without-widgets` (warning, every door): a dashboard with `widgets: []`, which opens on its header over an empty canvas. Advisory because the shape breaks no request and the platform's own create steps (Studio, the spec's create seed, `os generate dashboard`) write it and fill it afterwards.
17+
- `list-view-kanban-group-field-uncategorical` (warning): a `kanban` board grouped by a field with no fixed set of lanes. A text, number or date field gets one lane per distinct value on the loaded cards and no lane for a value no card holds; a multi-valued field puts a card holding several values in one lane named by all of them. A `select` / `radio`, a boolean and a single-valued reference are silent. Runs on the runtime `view` and `object` doors.
18+
- `app-navigation-empty` (warning): an app with no entry in `navigation` nor in any `areas[].navigation` (a separator or an empty group counts as nothing), and no navigation the stack contributes into it. It opens on the "no access" empty state for every member. Runs on the runtime `app` door.
19+
- `object-unreachable-from-navigation` and `object-without-view` (warnings, `os validate` / `lint` / `build` only): an object no navigation entry opens (not judged: a `master_detail` child, an object another object names in `relatedLists`, an object a page names when navigation opens that page, an API-disabled object, and a stack with no app), and an object navigation opens as a list that declares no `listViews` entry and no bound `views` item, which then opens on the console's own "All records" tab. Fix: `listViews: { all: { type: 'grid', columns: [...] } }` on the object, or a `views` entry bound to it.
20+
21+
## FROM → TO
22+
23+
- `filter: [{ field: 'is_overdue', operator: 'equals', value: true }]` where `is_overdue` is a `formula` → `filter: [{ field: 'due_date', operator: 'lt', value: '{today}' }]` (the stored field the formula reads), or a stored field written when its sources change.
24+
25+
`@objectstack/lint` exports six rule id constants (`LIST_VIEW_FILTER_FIELD_VIRTUAL`, `LIST_VIEW_KANBAN_GROUP_FIELD_UNCATEGORICAL`, `DASHBOARD_WITHOUT_WIDGETS`, `APP_NAVIGATION_EMPTY`, `OBJECT_UNREACHABLE_FROM_NAVIGATION`, `OBJECT_WITHOUT_VIEW`) so `os explain` carries an entry for each; the two new rule functions are not exported. `@objectstack/spec` adds only the upgrade-guide entry `publish-refuses-views-and-dashboards-that-save-and-do-not-work`.

‎content/docs/deployment/cli.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ os compile --json # JSON output for CI pipelines
937937
→ Normalizing stack definition...
938938
→ Lowering inline handlers...
939939
→ Validating protocol compliance...
940-
→ Running author-time rules (88)...
940+
→ Running author-time rules (90)...
941941
→ Checking that every required capability has a provider installable in this edition...
942942
→ Collecting package docs (ADR-0046)... 0 collected
943943
→ Writing artifact...

‎content/docs/deployment/validating-metadata.mdx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,19 +500,21 @@ orthogonal to both, and no cell here can carry it; it is written out in
500500
| Retired object title template — an object that declares `titleFormat`, retired by ADR-0079 for `nameField` (`title-format-retired`, #29007) | ✓ | ✓ | ✓ | ✓ᵒ |
501501
| Roll-up aggregands — a `summaryOperations` `min` / `max` whose answer is not a number, or a `sum` / `avg` over a child field type the aggregate × field-type table refuses (`rollup/non-numeric-aggregand`) | ✓ | ✓ | ✓ | ✓ᵒ |
502502
| View container shape | ✓ | ✓ | ✓ | — |
503-
| Widget-binding integrity (ADR-0021) | ✓ | ✓ | ✓ | ✓ᵈ |
503+
| Widget-binding integrity (ADR-0021) — and a dashboard with no widgets, which opens on its header over an empty canvas (`dashboard-without-widgets`, #35143): a warning at every door, since Studio, the create seed and `os generate dashboard` write it empty and fill it afterwards | ✓ | ✓ | ✓ | ✓ᵈ |
504504
| Dataset measure `aggregate` × the field's declared type — a pair the spec's compatibility table refuses, e.g. `avg` over a `datetime` field (#16354) | ✓ | ✓ | ✓ | ✓ᵈᵗ |
505505
| Dashboard action/route references (ADR-0049) | ✓ | ✓ | ✓ | — |
506506
| Filter placeholder resolvability (#3574) | ✓ | ✓ | ✓ | — |
507507
| Ordering comparands naming a date-range preset — `last_30_days` in a `>=` position (#8793) | ✓ | ✓ | ✓ | ✓ᵈᵛᵒᵖᶠʳ |
508508
| Empty filter combinators — `$and: []`, `$or: []`, `$not: {}` (#5330) | ✓ | ✓ | ✓ | ✓ᶠʳ |
509509
| Object & action name references (#3583) — and the object a seed dataset, a flow `get_record` / `create_record` / `update_record` / `delete_record` / object-form `screen` node or a standalone action is bound to (`object-reference-unknown`, #35143); a flow node's miss is a warning on the CLI, where a declared dependency may define the object, and an error at the publish door; at the publish door a seed over an unknown object is the save door's own refusal (#34864) | ✓ | ✓ | ✓ | ✓ᶠᵈᵗᵃᶜ |
510510
| Reference integrity — flow node writes, template paths, read-only writes (#3583); at the publish door each write type runs only the members that declare it, and the flow members run on `flow` alone (#9313) | ✓ | ✓ | ✓ | ✓ᶠᵛᵒᵈᵗʳᵖᵃᶜ |
511-
| List-view field members — a list view's `sort` (a `sortable: false` field, a `formula`, an unknown name: `sort-field-unsortable`), its `searchableFields` (`searchable-field-unknown`) and its field references, columns, filter keys, grouping and the board bindings (`list-view-field-unknown`); the row merges three members, so its codes follow no one rule's order, and the `page` door runs the sort member only (#9313, #15495, #30095) | ✓ | ✓ | ✓ | ✓ᶠᵛᵒᵖ |
511+
| List-view field members — a list view's `sort` (a `sortable: false` field, a `formula`, an unknown name: `sort-field-unsortable`), its `searchableFields` (`searchable-field-unknown`) and its field references, columns, filter keys, grouping and the board bindings (`list-view-field-unknown`); a filter key on a `formula` field, which the engine refuses to filter by (`list-view-filter-field-virtual`, #35143), and, advisory, a board grouped by a field with no fixed set of lanes (`list-view-kanban-group-field-uncategorical`, #35143); the row merges three members, so its codes follow no one rule's order, and the `page` door runs the sort member only (#9313, #15495, #30095) | ✓ | ✓ | ✓ | ✓ᶠᵛᵒᵖ |
512512
| Page-component field bindings (#3583) | ✓ | ✓ | ✓ | ✓ᶠ |
513513
| React page block field bindings — §10 (#4340) | ✓ | ✓ | ✓ | ✓ᶠ |
514514
| Chart bindings outside dashboards (#3583) | ✓ | ✓ | ✓ | ✓ᶠʳᵛᵒ |
515515
| Navigation vs. granted access (ADR-0090 D6) | ✓ | ✓ | ✓ | ✓ᶠ |
516+
| App shell, advisory — an app with no navigation entry, which opens on the "no access" empty state (`app-navigation-empty`, #35143) | ✓ | ✓ | ✓ | ✓ᵃ |
517+
| App shell reach, advisory — an object no navigation entry, navigated page or parent's `relatedLists` shows (`object-unreachable-from-navigation`) and an object navigation opens as a list with no `listViews` entry or bound view (`object-without-view`, #35143); they read every app, view and object of the stack, which no per-write snapshot carries | ✓ | ✓ | ✓ | — |
516518
| SDUI scoped styling (ADR-0065) | ✓ | ✓ | ✓ | — |
517519
| SDUI component props — every `ComponentPropsMap` verdict: an undeclared prop, a value its props schema rejects, a missing `dataSource.object` binding, and a retired prop (`retiredKey()`) refused with its prescription (#23026, #23147; at the save door #23388) | ✓ | ✓ | ✓ | ✓ᵖ |
518520
| Page component types inside a spec-reserved namespace — a type the platform does not declare, e.g. `global:serch` (`component-type-unknown`, ADR-0078; at the save door #23388) | ✓ | ✓ | ✓ | ✓ᵖ |
@@ -870,7 +872,7 @@ A clean run walks the registry and reports timing:
870872
Config: /path/to/support-desk/objectstack.config.ts
871873
Load time: 21ms
872874
→ Validating against ObjectStack Protocol...
873-
→ Running author-time rules (88)...
875+
→ Running author-time rules (90)...
874876
→ Checking that every required capability has a provider installable in this edition...
875877
→ Checking package docs (ADR-0046)...
876878

‎content/docs/getting-started/build-with-claude-code.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ visible: 'status != "resolved"'
318318
◆ Validate
319319
────────────────────────────────────────
320320
→ Validating against ObjectStack Protocol...
321-
→ Running author-time rules (88)...
321+
→ Running author-time rules (90)...
322322
323323
✗ Author-time rules failed (1 issue)
324324
• stack · action 'resolve_ticket' visible: bare reference `status` — a

‎content/docs/ui/react-pages.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ objectstack validate
404404
────────────────────────────────────────
405405
→ Loading configuration...
406406
→ Validating against ObjectStack Protocol...
407-
→ Running author-time rules (88)...
407+
→ Running author-time rules (90)...
408408
→ Checking that every required capability has a provider installable in this edition...
409409
→ Checking package docs (ADR-0046)...
410410

‎examples/app-showcase/test/author-time-advisories.test.ts‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ const NESTED_FAN_OUT =
7676
+ 'pinned by test/nested-fan-out-region-indices.test.ts. Wrapping the notify step in a try_catch puts a region '
7777
+ 'between the parallel branch and the step whose (iteration, branch) tags the clause reads.';
7878

79+
const DERIVED_LIST =
80+
'Opened from the app\'s navigation on the console\'s own derived list ("All records": the name field and '
81+
+ 'highlightFields, or the first five fields). The showcase demonstrates designed lists on projects, tasks, '
82+
+ 'contacts and the field zoo; this object keeps the derived one, and declaring a list here would change what '
83+
+ 'the browser checklist items on it observe. #35143 made the advisory; designing the list is a separate change.';
84+
85+
const OFF_NAVIGATION =
86+
'Deliberately not in the app\'s navigation: the object exists to demonstrate a server-side contract (sharing '
87+
+ 'model, share links, a public form, federation, or served semantic roles) that its tests drive over REST, '
88+
+ 'and the app shell is not what it shows. The rule claims only that no navigation entry opens its list.';
89+
7990
export const ALLOWED_ADVISORIES: readonly Allowed[] = [
8091
// ── Approval slates (info) ───────────────────────────────────────────────
8192
{ rule: 'approval-approvers-may-resolve-empty', where: 'flow "showcase_expense_signoff" · node "dual_signoff"', reason: POSITION_SLATE },
@@ -147,6 +158,20 @@ export const ALLOWED_ADVISORIES: readonly Allowed[] = [
147158
reason: 'A junction row: every surface that lists it names it by its two masters (team and project), and it '
148159
+ 'has no text field for nameField to point at. Records fall back to the stable Record #ID floor.',
149160
},
161+
162+
// ── App shell (#35143): the derived list, and objects kept off navigation (warning) ──
163+
...['showcase_account', 'showcase_cascade', 'showcase_category', 'showcase_expense_report', 'showcase_invoice',
164+
'showcase_preference', 'showcase_product', 'showcase_team'].map((name): Allowed => ({
165+
rule: 'object-without-view', where: `object "${name}"`, reason: DERIVED_LIST,
166+
})),
167+
{ rule: 'object-unreachable-from-navigation', where: 'object "showcase_announcement"', reason: OFF_NAVIGATION + ' Public-read OWD sibling of showcase_private_note.' },
168+
{ rule: 'object-unreachable-from-navigation', where: 'object "showcase_private_note"', reason: OFF_NAVIGATION + ' Owner-private OWD; the Capability Map page links to it by URL, which the rule does not read.' },
169+
{ rule: 'object-unreachable-from-navigation', where: 'object "showcase_client_brief"', reason: OFF_NAVIGATION + ' The share-link (publicSharing) object, opened by its capability token.' },
170+
{ rule: 'object-unreachable-from-navigation', where: 'object "showcase_inquiry"', reason: OFF_NAVIGATION + ' The public form\'s inbox; the Contact Form page submits into it.' },
171+
{ rule: 'object-unreachable-from-navigation', where: 'object "showcase_semantic_zoo"', reason: OFF_NAVIGATION + ' A served-pipeline fixture of the semantic-roles dogfood test.' },
172+
{ rule: 'object-unreachable-from-navigation', where: 'object "showcase_semantic_zoo_legacy"', reason: OFF_NAVIGATION + ' The legacy-spelling twin of showcase_semantic_zoo, same dogfood test.' },
173+
{ rule: 'object-unreachable-from-navigation', where: 'object "showcase_ext_customer"', reason: OFF_NAVIGATION + ' Federated read-only from the external SQLite datasource (ADR-0015).' },
174+
{ rule: 'object-unreachable-from-navigation', where: 'object "showcase_ext_order"', reason: OFF_NAVIGATION + ' Federated read-only from the external SQLite datasource (ADR-0015).' },
150175
];
151176

152177
/**

0 commit comments

Comments
 (0)