@cosmicdrift/kumiko-framework 0.406.0 → 0.409.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/agents/api/framework-db.md +1 -0
  2. package/agents/api/framework-engine.md +15 -2
  3. package/agents/api/framework-ui-types.md +15 -0
  4. package/agents/api/renderer-web.md +156 -2
  5. package/agents/api/types.md +113 -71
  6. package/agents/api.md +4 -4
  7. package/agents/boot-rules.md +743 -0
  8. package/agents/examples/contact.md +167 -0
  9. package/agents/examples/delivery-notifications.md +34 -1
  10. package/agents/examples/record-detail-layout.md +13 -2
  11. package/agents/examples/search.md +65 -3
  12. package/agents/examples/secrets-demo.md +96 -2
  13. package/agents/examples/tenant-inactivity.md +138 -0
  14. package/agents/examples.md +2 -0
  15. package/agents/features-index.md +4 -0
  16. package/agents/features.md +24 -1
  17. package/agents/widgets.md +12 -1
  18. package/dist/api/export/export-rows.js +1 -0
  19. package/dist/compliance/index.d.ts +1 -1
  20. package/dist/db/event-store-executor-read-where.js +15 -5
  21. package/dist/db/index.d.ts +1 -1
  22. package/dist/db/index.js +1 -1
  23. package/dist/db/migrate-generator.js +3 -1
  24. package/dist/db/queries/event-consumer.js +11 -7
  25. package/dist/db/queries/event-store.d.ts +2 -1
  26. package/dist/db/queries/event-store.js +25 -6
  27. package/dist/db/queries/rls-boot-catalog.js +3 -1
  28. package/dist/db/queries/session-advisory-lock.d.ts +7 -0
  29. package/dist/db/queries/session-advisory-lock.js +23 -0
  30. package/dist/db/query.js +7 -10
  31. package/dist/db/row-level-security-connection.js +4 -2
  32. package/dist/engine/active-membership.js +1 -0
  33. package/dist/engine/boot-validator/access-declarations.js +57 -33
  34. package/dist/engine/boot-validator/action-wiring.js +8 -6
  35. package/dist/engine/boot-validator/agent-effect-rules.d.ts +12 -0
  36. package/dist/engine/boot-validator/agent-effect-rules.js +12 -0
  37. package/dist/engine/boot-validator/agent-effect.d.ts +2 -0
  38. package/dist/engine/boot-validator/agent-effect.js +20 -0
  39. package/dist/engine/boot-validator/boot-context.js +5 -1
  40. package/dist/engine/boot-validator/boot-environment-rules.d.ts +12 -0
  41. package/dist/engine/boot-validator/boot-environment-rules.js +12 -0
  42. package/dist/engine/boot-validator/boot-phases-app.js +5 -1
  43. package/dist/engine/boot-validator/boot-phases.js +3 -1
  44. package/dist/engine/boot-validator/boot-rules.d.ts +2619 -0
  45. package/dist/engine/boot-validator/boot-rules.js +58 -0
  46. package/dist/engine/boot-validator/bundled-lists-table.js +23 -9
  47. package/dist/engine/boot-validator/config-deps.js +71 -23
  48. package/dist/engine/boot-validator/config-edit-action-rules.d.ts +17 -0
  49. package/dist/engine/boot-validator/config-edit-action-rules.js +17 -0
  50. package/dist/engine/boot-validator/config-key-rules.d.ts +117 -0
  51. package/dist/engine/boot-validator/config-key-rules.js +117 -0
  52. package/dist/engine/boot-validator/custom-screen-write-qns.js +6 -2
  53. package/dist/engine/boot-validator/derived-sql-fields-rules.d.ts +77 -0
  54. package/dist/engine/boot-validator/derived-sql-fields-rules.js +77 -0
  55. package/dist/engine/boot-validator/derived-sql-fields.js +53 -17
  56. package/dist/engine/boot-validator/detail-screens.js +10 -4
  57. package/dist/engine/boot-validator/entity-declaration-rules.d.ts +92 -0
  58. package/dist/engine/boot-validator/entity-declaration-rules.js +92 -0
  59. package/dist/engine/boot-validator/entity-handler-access-rules.d.ts +102 -0
  60. package/dist/engine/boot-validator/entity-handler-access-rules.js +102 -0
  61. package/dist/engine/boot-validator/entity-handler.d.ts +0 -7
  62. package/dist/engine/boot-validator/entity-handler.js +259 -355
  63. package/dist/engine/boot-validator/entity-image-variants.d.ts +2 -0
  64. package/dist/engine/boot-validator/entity-image-variants.js +91 -0
  65. package/dist/engine/boot-validator/entity-list-aggregate-options.js +8 -2
  66. package/dist/engine/boot-validator/entity-reference-embedded-rules.d.ts +117 -0
  67. package/dist/engine/boot-validator/entity-reference-embedded-rules.js +117 -0
  68. package/dist/engine/boot-validator/entity-select-image-rules.d.ts +122 -0
  69. package/dist/engine/boot-validator/entity-select-image-rules.js +122 -0
  70. package/dist/engine/boot-validator/entity-select.d.ts +8 -0
  71. package/dist/engine/boot-validator/entity-select.js +197 -0
  72. package/dist/engine/boot-validator/entity-structure-rules.d.ts +107 -0
  73. package/dist/engine/boot-validator/entity-structure-rules.js +107 -0
  74. package/dist/engine/boot-validator/field-conditions-rules.d.ts +92 -0
  75. package/dist/engine/boot-validator/field-conditions-rules.js +92 -0
  76. package/dist/engine/boot-validator/field-conditions.js +67 -22
  77. package/dist/engine/boot-validator/form-derivations-rules.d.ts +77 -0
  78. package/dist/engine/boot-validator/form-derivations-rules.js +77 -0
  79. package/dist/engine/boot-validator/form-derivations.js +52 -18
  80. package/dist/engine/boot-validator/global-tenancy.js +13 -7
  81. package/dist/engine/boot-validator/handler-declaration-rules.d.ts +72 -0
  82. package/dist/engine/boot-validator/handler-declaration-rules.js +72 -0
  83. package/dist/engine/boot-validator/handler-field-references-rules.d.ts +22 -0
  84. package/dist/engine/boot-validator/handler-field-references-rules.js +22 -0
  85. package/dist/engine/boot-validator/handler-field-references.js +14 -6
  86. package/dist/engine/boot-validator/list-bulk-actions-rules.d.ts +42 -0
  87. package/dist/engine/boot-validator/list-bulk-actions-rules.js +42 -0
  88. package/dist/engine/boot-validator/list-bulk-actions.js +29 -11
  89. package/dist/engine/boot-validator/list-column-layout.js +22 -10
  90. package/dist/engine/boot-validator/list-query-rules.d.ts +107 -0
  91. package/dist/engine/boot-validator/list-query-rules.js +107 -0
  92. package/dist/engine/boot-validator/list-table-aggregate-options.js +43 -15
  93. package/dist/engine/boot-validator/list-table-aggregate-query.js +7 -3
  94. package/dist/engine/boot-validator/list-table-aggregate-rules.d.ts +82 -0
  95. package/dist/engine/boot-validator/list-table-aggregate-rules.js +82 -0
  96. package/dist/engine/boot-validator/list-table-export-options.js +19 -7
  97. package/dist/engine/boot-validator/list-table-options.js +33 -13
  98. package/dist/engine/boot-validator/list-table-reject-unknown-keys.js +6 -2
  99. package/dist/engine/boot-validator/list-table-rules.d.ts +132 -0
  100. package/dist/engine/boot-validator/list-table-rules.js +132 -0
  101. package/dist/engine/boot-validator/nav-rules.d.ts +42 -0
  102. package/dist/engine/boot-validator/nav-rules.js +42 -0
  103. package/dist/engine/boot-validator/nav.js +29 -15
  104. package/dist/engine/boot-validator/ownership-rules.d.ts +27 -0
  105. package/dist/engine/boot-validator/ownership-rules.js +27 -0
  106. package/dist/engine/boot-validator/ownership.js +28 -12
  107. package/dist/engine/boot-validator/parent-ref.js +32 -20
  108. package/dist/engine/boot-validator/projection-list-screens.js +76 -35
  109. package/dist/engine/boot-validator/query-output-columns.js +9 -3
  110. package/dist/engine/boot-validator/query-refs.js +20 -10
  111. package/dist/engine/boot-validator/query-rules.d.ts +37 -0
  112. package/dist/engine/boot-validator/query-rules.js +37 -0
  113. package/dist/engine/boot-validator/read-gate.js +14 -10
  114. package/dist/engine/boot-validator/record-owned.js +5 -1
  115. package/dist/engine/boot-validator/related-list-table-rules.js +17 -7
  116. package/dist/engine/boot-validator/screens-actions-rules.d.ts +185 -0
  117. package/dist/engine/boot-validator/screens-actions-rules.js +185 -0
  118. package/dist/engine/boot-validator/screens-actions.js +169 -93
  119. package/dist/engine/boot-validator/screens-dashboard-chart-rules.d.ts +87 -0
  120. package/dist/engine/boot-validator/screens-dashboard-chart-rules.js +87 -0
  121. package/dist/engine/boot-validator/screens-dashboard-rules.d.ts +227 -0
  122. package/dist/engine/boot-validator/screens-dashboard-rules.js +227 -0
  123. package/dist/engine/boot-validator/screens-dashboard.js +222 -85
  124. package/dist/engine/boot-validator/screens-forms-layout-rules.d.ts +122 -0
  125. package/dist/engine/boot-validator/screens-forms-layout-rules.js +122 -0
  126. package/dist/engine/boot-validator/screens-forms-rules.d.ts +152 -0
  127. package/dist/engine/boot-validator/screens-forms-rules.js +152 -0
  128. package/dist/engine/boot-validator/screens-forms.js +240 -112
  129. package/dist/engine/boot-validator/screens-kind-config-edit.js +72 -16
  130. package/dist/engine/boot-validator/screens-kind-entity-edit.js +15 -7
  131. package/dist/engine/boot-validator/screens-kind-entity-list.js +57 -32
  132. package/dist/engine/boot-validator/screens-kind-projection-detail-rules.d.ts +92 -0
  133. package/dist/engine/boot-validator/screens-kind-projection-detail-rules.js +92 -0
  134. package/dist/engine/boot-validator/screens-kind-projection-detail.js +85 -47
  135. package/dist/engine/boot-validator/screens-kind-rules.d.ts +137 -0
  136. package/dist/engine/boot-validator/screens-kind-rules.js +137 -0
  137. package/dist/engine/boot-validator/screens-kind-secret-mint.js +18 -8
  138. package/dist/engine/boot-validator/screens-kind-shared.js +40 -22
  139. package/dist/engine/boot-validator/screens-lists-rules.d.ts +82 -0
  140. package/dist/engine/boot-validator/screens-lists-rules.js +82 -0
  141. package/dist/engine/boot-validator/screens-lists.js +90 -45
  142. package/dist/engine/boot-validator/screens-rules.d.ts +57 -0
  143. package/dist/engine/boot-validator/screens-rules.js +57 -0
  144. package/dist/engine/boot-validator/screens.js +17 -12
  145. package/dist/engine/boot-validator/transaction-phases.js +12 -4
  146. package/dist/engine/boot-validator/transfer-graph.js +17 -11
  147. package/dist/engine/boot-validator/url-prefill-fields.js +9 -5
  148. package/dist/engine/boot-validator/workspaces.js +11 -5
  149. package/dist/engine/boot-validator/zod-shape.js +6 -2
  150. package/dist/engine/entity-handlers.d.ts +1 -0
  151. package/dist/engine/entity-handlers.js +3 -0
  152. package/dist/engine/entity-list-runtime-options.js +23 -29
  153. package/dist/engine/extensions/tenant-data.d.ts +3 -0
  154. package/dist/engine/factories.d.ts +1 -1
  155. package/dist/engine/factories.js +4 -3
  156. package/dist/engine/index.d.ts +4 -2
  157. package/dist/engine/index.js +2 -0
  158. package/dist/engine/project-app-schema-for-roles.js +29 -14
  159. package/dist/engine/registry-facade.js +7 -8
  160. package/dist/engine/registry-validate.js +5 -1
  161. package/dist/engine/soft-delete-cleanup.d.ts +1 -0
  162. package/dist/engine/soft-delete-cleanup.js +5 -0
  163. package/dist/engine/steps/describe-workflow-step-error.js +1 -0
  164. package/dist/es-ops/operations-schema.d.ts +1 -1
  165. package/dist/event-store/ensure-dead-letter-table.d.ts +2 -0
  166. package/dist/event-store/ensure-dead-letter-table.js +10 -0
  167. package/dist/event-store/rebuild-dead-letter.js +2 -8
  168. package/dist/event-store/upcaster-dead-letter.js +2 -8
  169. package/dist/files/copy-pending-file-refs-to-tenant.d.ts +28 -0
  170. package/dist/files/copy-pending-file-refs-to-tenant.js +87 -0
  171. package/dist/files/file-routes.d.ts +1 -1
  172. package/dist/files/file-routes.js +21 -6
  173. package/dist/files/index.d.ts +2 -0
  174. package/dist/files/index.js +1 -0
  175. package/dist/i18n/required-surface-keys.js +1 -0
  176. package/dist/jobs/job-runner-helpers.js +1 -0
  177. package/dist/jobs/job-runner.js +7 -12
  178. package/dist/logging/utils.js +30 -60
  179. package/dist/observability/metrics-handle.js +10 -21
  180. package/dist/pipeline/cascade-handler.js +7 -6
  181. package/dist/pipeline/dispatch-query.js +18 -5
  182. package/dist/pipeline/dispatch-shared.d.ts +1 -0
  183. package/dist/pipeline/dispatch-shared.js +3 -1
  184. package/dist/pipeline/dispatch-write.js +10 -12
  185. package/dist/pipeline/dispatcher.js +12 -14
  186. package/dist/pipeline/event-dispatcher-admin.js +9 -8
  187. package/dist/pipeline/event-dispatcher-delivery.d.ts +19 -1
  188. package/dist/pipeline/event-dispatcher-delivery.js +121 -29
  189. package/dist/pipeline/event-dispatcher.d.ts +5 -1
  190. package/dist/pipeline/event-dispatcher.js +28 -21
  191. package/dist/pipeline/handler-context-phase-denials.js +2 -0
  192. package/dist/pipeline/multi-stream-apply-context.js +12 -20
  193. package/dist/pipeline/system-hooks.d.ts +4 -1
  194. package/dist/pipeline/system-hooks.js +79 -6
  195. package/dist/pipeline/system-identity-switch.js +10 -7
  196. package/dist/search/build-search-snippet.d.ts +9 -0
  197. package/dist/search/build-search-snippet.js +40 -0
  198. package/dist/search/index.d.ts +1 -0
  199. package/dist/search/index.js +1 -0
  200. package/dist/search/meilisearch-adapter.d.ts +32 -0
  201. package/dist/search/meilisearch-adapter.js +153 -56
  202. package/dist/search/meilisearch-chunking.d.ts +21 -0
  203. package/dist/search/meilisearch-chunking.js +96 -0
  204. package/dist/search/reindex-entity.d.ts +1 -0
  205. package/dist/search/reindex-entity.js +97 -52
  206. package/dist/ui-types/index.d.ts +1 -1
  207. package/dist/upgrade-cli.js +3 -14
  208. package/package.json +3 -3
  209. package/src/changes.json +73 -0
@@ -0,0 +1,72 @@
1
+ export const HANDLER_DECLARATION_RULES = {
2
+ openToAllReasonInvalid: {
3
+ id: "handler/open-to-all-reason-invalid",
4
+ summary: "An openToAll declaration is an object with a valid reason explaining why any authenticated user may call the handler.",
5
+ fix: 'Declare { openToAll: { reason: "<explanation>" } }.',
6
+ },
7
+ escapeHatchGrantsInvalid: {
8
+ id: "handler/escape-hatch-grants-invalid",
9
+ summary: "An escapeHatch declares valid grants.",
10
+ fix: "Correct the escapeHatch grants as named in the error message.",
11
+ },
12
+ escapeHatchReasonInvalid: {
13
+ id: "handler/escape-hatch-reason-invalid",
14
+ summary: "An escapeHatch carries a valid reason.",
15
+ fix: "Write an escapeHatch reason that explains the bypass.",
16
+ },
17
+ personalDataUnsupportedForKind: {
18
+ id: "handler/personal-data-unsupported-for-kind",
19
+ summary: "A personalData declaration appears only on handler kinds whose input is checked for personal-data fields.",
20
+ fix: "Remove the personalData declaration from this handler.",
21
+ },
22
+ openToAllPersonalDataUnknown: {
23
+ id: "handler/open-to-all-personal-data-unknown",
24
+ summary: 'openToAll.personalData is "tenant-members" when set.',
25
+ fix: 'Use personalData: "tenant-members" or remove it.',
26
+ },
27
+ accessPersonalDataUnknown: {
28
+ id: "handler/access-personal-data-unknown",
29
+ summary: 'access.personalData is "public-intake" when set.',
30
+ fix: 'Use personalData: "public-intake" or remove it.',
31
+ },
32
+ publicIntakeWithoutAnonymous: {
33
+ id: "handler/public-intake-without-anonymous",
34
+ summary: 'A handler with access.personalData "public-intake" allows the anonymous role.',
35
+ fix: "Add the anonymous role to access.roles or remove personalData.",
36
+ },
37
+ publicIntakeRateLimitDisabled: {
38
+ id: "handler/public-intake-rate-limit-disabled",
39
+ summary: 'A handler with access.personalData "public-intake" keeps its rateLimit enabled, because it is the only protection for anonymous personal-data writes.',
40
+ fix: 'Declare rateLimit: { per: "ip" or "ip+handler", ... } instead of disabling it.',
41
+ },
42
+ inputSchemaNotIntrospectable: {
43
+ id: "handler/input-schema-not-introspectable",
44
+ summary: "A write handler's input schema is a Zod shape whose keys boot can collect.",
45
+ fix: "Use an object schema the boot validator can walk, as named in the error message.",
46
+ },
47
+ openToAllPersonalDataUnbound: {
48
+ id: "handler/open-to-all-personal-data-unbound",
49
+ summary: "An openToAll write handler accepts personal-data fields only when they are bound to the caller or explicitly declared tenant-members.",
50
+ fix: 'Bind rows to the caller, restrict access to roles, or declare openToAll: { reason, personalData: "tenant-members" }.',
51
+ },
52
+ anonymousPersonalDataUndeclared: {
53
+ id: "handler/anonymous-personal-data-undeclared",
54
+ summary: 'A write handler that allows anonymous callers and accepts personal-data fields declares access.personalData "public-intake".',
55
+ fix: 'Declare access: { roles: [..., "anonymous"], personalData: "public-intake" }.',
56
+ },
57
+ perCommandWithPhase: {
58
+ id: "handler/per-command-with-phase",
59
+ summary: 'A write handler with transaction "perCommand" declares neither beforeTransaction nor reserveBeforeTransaction.',
60
+ fix: "Move the phase into the commands the handler issues via ctx.dispatch.write.",
61
+ },
62
+ nestedSkipWithoutPhase: {
63
+ id: "handler/nested-skip-without-before-transaction",
64
+ summary: "A write handler with beforeTransactionWhenNested also declares beforeTransaction.",
65
+ fix: "Declare beforeTransaction or remove beforeTransactionWhenNested.",
66
+ },
67
+ nestedSkipWithReservation: {
68
+ id: "handler/nested-skip-with-reserve-before-transaction",
69
+ summary: "A write handler with beforeTransactionWhenNested does not declare reserveBeforeTransaction, because a nested run would run unreserved.",
70
+ fix: "Remove reserveBeforeTransaction or beforeTransactionWhenNested.",
71
+ },
72
+ };
@@ -0,0 +1,22 @@
1
+ export declare const HANDLER_FIELD_REFERENCE_RULES: {
2
+ readonly invalidReference: {
3
+ readonly id: "handler-schema/invalid-references";
4
+ readonly summary: "A references meta on an input field is an entity name, feature:entity or { entity, by? }.";
5
+ readonly fix: 'Use "<entity>", "<feature>:<entity>" or { entity, by? }.';
6
+ };
7
+ readonly unknownReferenceEntity: {
8
+ readonly id: "handler-schema/unknown-references-entity";
9
+ readonly summary: "The entity a references meta names is registered.";
10
+ readonly fix: 'Use "<entity>" for this feature or "<feature>:<entity>" for another one.';
11
+ };
12
+ readonly unknownReferenceBy: {
13
+ readonly id: "handler-schema/unknown-references-by";
14
+ readonly summary: "The by field of a references meta is a field of the referenced entity.";
15
+ readonly fix: "Use an existing field of that entity for by.";
16
+ };
17
+ readonly zodWalkLimit: {
18
+ readonly id: "handler-schema/zod-walk-limit";
19
+ readonly summary: "A handler schema has a finite node count when walked.";
20
+ readonly fix: "Hoist a z.lazy() getter that returns a new schema on every call into a constant.";
21
+ };
22
+ };
@@ -0,0 +1,22 @@
1
+ export const HANDLER_FIELD_REFERENCE_RULES = {
2
+ invalidReference: {
3
+ id: "handler-schema/invalid-references",
4
+ summary: "A references meta on an input field is an entity name, feature:entity or { entity, by? }.",
5
+ fix: 'Use "<entity>", "<feature>:<entity>" or { entity, by? }.',
6
+ },
7
+ unknownReferenceEntity: {
8
+ id: "handler-schema/unknown-references-entity",
9
+ summary: "The entity a references meta names is registered.",
10
+ fix: 'Use "<entity>" for this feature or "<feature>:<entity>" for another one.',
11
+ },
12
+ unknownReferenceBy: {
13
+ id: "handler-schema/unknown-references-by",
14
+ summary: "The by field of a references meta is a field of the referenced entity.",
15
+ fix: "Use an existing field of that entity for by.",
16
+ },
17
+ zodWalkLimit: {
18
+ id: "handler-schema/zod-walk-limit",
19
+ summary: "A handler schema has a finite node count when walked.",
20
+ fix: "Hoist a z.lazy() getter that returns a new schema on every call into a constant.",
21
+ },
22
+ };
@@ -1,23 +1,31 @@
1
1
  import { readHandlerFieldReferences } from "../handler-field-references.js";
2
2
  import { parseRefTarget } from "../parse-ref-target.js";
3
+ import { bootRuleError } from "./boot-rule.js";
4
+ import { HANDLER_FIELD_REFERENCE_RULES } from "./handler-field-references-rules.js";
3
5
  function validateHandlerGroup(feature, featureMap, handlers, handlerNoun) {
4
6
  for (const [handlerName, def] of Object.entries(handlers)) {
5
7
  for (const { path, reading } of readHandlerFieldReferences(def.schema)) {
6
8
  const where = `Input field "${path}" of ${handlerNoun} "${handlerName}"`;
7
9
  if (reading.kind === "invalid") {
8
- throw new Error(`[Feature ${feature.name}] ${where} has an invalid meta references value ${JSON.stringify(reading.raw)}. ` +
9
- `Use "<entity>", "<feature>:<entity>" or { entity, by? }.`);
10
+ throw bootRuleError(HANDLER_FIELD_REFERENCE_RULES.invalidReference, {
11
+ message: `[Feature ${feature.name}] ${where} has an invalid meta references value ${JSON.stringify(reading.raw)}. ` +
12
+ `Use "<entity>", "<feature>:<entity>" or { entity, by? }.`,
13
+ });
10
14
  }
11
15
  const { entity, by } = reading.reference;
12
16
  const target = parseRefTarget(entity, feature.name);
13
17
  const targetEntity = featureMap.get(target.featureName)?.entities?.[target.entityName];
14
18
  if (targetEntity === undefined) {
15
- throw new Error(`[Feature ${feature.name}] ${where} has meta references: "${entity}", ` +
16
- `which is not a registered entity. Use "<entity>" for this feature or "<feature>:<entity>" for another one.`);
19
+ throw bootRuleError(HANDLER_FIELD_REFERENCE_RULES.unknownReferenceEntity, {
20
+ message: `[Feature ${feature.name}] ${where} has meta references: "${entity}", ` +
21
+ `which is not a registered entity. Use "<entity>" for this feature or "<feature>:<entity>" for another one.`,
22
+ });
17
23
  }
18
24
  if (by !== undefined && targetEntity.fields[by] === undefined) {
19
- throw new Error(`[Feature ${feature.name}] ${where} references entity "${entity}" by "${by}", ` +
20
- `but that entity has no field "${by}". Use an existing field of that entity for "by".`);
25
+ throw bootRuleError(HANDLER_FIELD_REFERENCE_RULES.unknownReferenceBy, {
26
+ message: `[Feature ${feature.name}] ${where} references entity "${entity}" by "${by}", ` +
27
+ `but that entity has no field "${by}". Use an existing field of that entity for "by".`,
28
+ });
21
29
  }
22
30
  }
23
31
  }
@@ -0,0 +1,42 @@
1
+ export declare const LIST_BULK_ACTION_RULES: {
2
+ readonly notArray: {
3
+ readonly id: "list-bulk/not-array";
4
+ readonly summary: "bulkActions is a non-empty array.";
5
+ readonly fix: 'Write bulkActions as [{ id: "archive", rowAction: "archive" }] or remove it.';
6
+ };
7
+ readonly entryNotObject: {
8
+ readonly id: "list-bulk/entry-not-object";
9
+ readonly summary: "Every bulkActions entry is an object with id and rowAction.";
10
+ readonly fix: "Write each entry as { id, rowAction }.";
11
+ };
12
+ readonly idNotKebab: {
13
+ readonly id: "list-bulk/id-not-kebab";
14
+ readonly summary: "A bulk action id is a kebab-case string.";
15
+ readonly fix: "Rename the id to kebab-case.";
16
+ };
17
+ readonly idDuplicate: {
18
+ readonly id: "list-bulk/id-duplicate";
19
+ readonly summary: "Bulk action ids are unique within a list.";
20
+ readonly fix: "Rename or remove the duplicate bulk action.";
21
+ };
22
+ readonly unknownKey: {
23
+ readonly id: "list-bulk/unknown-key";
24
+ readonly summary: "A bulk action uses only the allowed keys.";
25
+ readonly fix: "Remove the unknown keys.";
26
+ };
27
+ readonly rowActionMissing: {
28
+ readonly id: "list-bulk/row-action-missing";
29
+ readonly summary: "A bulk action names the id of a row action in rowAction.";
30
+ readonly fix: "Set rowAction to the id of a declared row action.";
31
+ };
32
+ readonly rowActionUndeclared: {
33
+ readonly id: "list-bulk/row-action-undeclared";
34
+ readonly summary: "A bulk action's rowAction is declared in the list's rowActions.";
35
+ readonly fix: "Declare the row action in rowActions or point rowAction at a declared one.";
36
+ };
37
+ readonly rowActionNotWriteHandler: {
38
+ readonly id: "list-bulk/row-action-not-write-handler";
39
+ readonly summary: "Bulk actions run one server write per row, so they point at writeHandler row actions.";
40
+ readonly fix: "Point rowAction at a writeHandler row action.";
41
+ };
42
+ };
@@ -0,0 +1,42 @@
1
+ export const LIST_BULK_ACTION_RULES = {
2
+ notArray: {
3
+ id: "list-bulk/not-array",
4
+ summary: "bulkActions is a non-empty array.",
5
+ fix: 'Write bulkActions as [{ id: "archive", rowAction: "archive" }] or remove it.',
6
+ },
7
+ entryNotObject: {
8
+ id: "list-bulk/entry-not-object",
9
+ summary: "Every bulkActions entry is an object with id and rowAction.",
10
+ fix: "Write each entry as { id, rowAction }.",
11
+ },
12
+ idNotKebab: {
13
+ id: "list-bulk/id-not-kebab",
14
+ summary: "A bulk action id is a kebab-case string.",
15
+ fix: "Rename the id to kebab-case.",
16
+ },
17
+ idDuplicate: {
18
+ id: "list-bulk/id-duplicate",
19
+ summary: "Bulk action ids are unique within a list.",
20
+ fix: "Rename or remove the duplicate bulk action.",
21
+ },
22
+ unknownKey: {
23
+ id: "list-bulk/unknown-key",
24
+ summary: "A bulk action uses only the allowed keys.",
25
+ fix: "Remove the unknown keys.",
26
+ },
27
+ rowActionMissing: {
28
+ id: "list-bulk/row-action-missing",
29
+ summary: "A bulk action names the id of a row action in rowAction.",
30
+ fix: "Set rowAction to the id of a declared row action.",
31
+ },
32
+ rowActionUndeclared: {
33
+ id: "list-bulk/row-action-undeclared",
34
+ summary: "A bulk action's rowAction is declared in the list's rowActions.",
35
+ fix: "Declare the row action in rowActions or point rowAction at a declared one.",
36
+ },
37
+ rowActionNotWriteHandler: {
38
+ id: "list-bulk/row-action-not-write-handler",
39
+ summary: "Bulk actions run one server write per row, so they point at writeHandler row actions.",
40
+ fix: "Point rowAction at a writeHandler row action.",
41
+ },
42
+ };
@@ -1,19 +1,27 @@
1
1
  import { isPlainObject } from "@cosmicdrift/kumiko-types/type-guards";
2
2
  import { isKebabSegment } from "../qualified-name.js";
3
3
  import { LIST_BULK_ACTION_KEYS } from "../types/screen.js";
4
+ import { bootRuleError } from "./boot-rule.js";
5
+ import { LIST_BULK_ACTION_RULES } from "./list-bulk-actions-rules.js";
4
6
  function validateBulkActionTarget(where, bulkId, target, rowActions) {
5
7
  if (typeof target !== "string" || target === "") {
6
- throw new Error(`${where} bulk action "${bulkId}" needs rowAction: the id of a row action.`);
8
+ throw bootRuleError(LIST_BULK_ACTION_RULES.rowActionMissing, {
9
+ message: `${where} bulk action "${bulkId}" needs rowAction: the id of a row action.`,
10
+ });
7
11
  }
8
12
  const rowAction = rowActions.find((action) => action.id === target);
9
13
  if (rowAction === undefined) {
10
14
  const known = rowActions.map((action) => action.id).join(", ") || "(none)";
11
- throw new Error(`${where} bulk action "${bulkId}" points at rowAction "${target}", which is not declared ` +
12
- `in rowActions. Declared row actions: ${known}.`);
15
+ throw bootRuleError(LIST_BULK_ACTION_RULES.rowActionUndeclared, {
16
+ message: `${where} bulk action "${bulkId}" points at rowAction "${target}", which is not declared ` +
17
+ `in rowActions. Declared row actions: ${known}.`,
18
+ });
13
19
  }
14
20
  if (rowAction.kind !== undefined && rowAction.kind !== "writeHandler") {
15
- throw new Error(`${where} bulk action "${bulkId}" points at rowAction "${target}" of kind "${rowAction.kind}". ` +
16
- `Bulk actions run one server write per row, so only writeHandler row actions are allowed.`);
21
+ throw bootRuleError(LIST_BULK_ACTION_RULES.rowActionNotWriteHandler, {
22
+ message: `${where} bulk action "${bulkId}" points at rowAction "${target}" of kind "${rowAction.kind}". ` +
23
+ `Bulk actions run one server write per row, so only writeHandler row actions are allowed.`,
24
+ });
17
25
  }
18
26
  }
19
27
  /** `where` is the full message prefix, e.g. `[Feature x] Screen "y" (entityList)`. */
@@ -22,24 +30,34 @@ export function validateListBulkActions(where, bulkActions, rowActions) {
22
30
  if (bulkActions === undefined)
23
31
  return;
24
32
  if (!Array.isArray(bulkActions) || bulkActions.length === 0) {
25
- throw new Error(`${where} bulkActions must be a non-empty array like [{ id: "archive", rowAction: "archive" }].`);
33
+ throw bootRuleError(LIST_BULK_ACTION_RULES.notArray, {
34
+ message: `${where} bulkActions must be a non-empty array like [{ id: "archive", rowAction: "archive" }].`,
35
+ });
26
36
  }
27
37
  const seen = new Set();
28
38
  for (const entry of bulkActions) {
29
39
  if (!isPlainObject(entry)) {
30
- throw new Error(`${where} bulkActions entries must be objects with id and rowAction.`);
40
+ throw bootRuleError(LIST_BULK_ACTION_RULES.entryNotObject, {
41
+ message: `${where} bulkActions entries must be objects with id and rowAction.`,
42
+ });
31
43
  }
32
44
  const id = entry["id"];
33
45
  if (typeof id !== "string" || !isKebabSegment(id)) {
34
- throw new Error(`${where} bulk action id ${JSON.stringify(id)} must be a kebab-case string.`);
46
+ throw bootRuleError(LIST_BULK_ACTION_RULES.idNotKebab, {
47
+ message: `${where} bulk action id ${JSON.stringify(id)} must be a kebab-case string.`,
48
+ });
35
49
  }
36
50
  if (seen.has(id))
37
- throw new Error(`${where} declares bulk action "${id}" twice.`);
51
+ throw bootRuleError(LIST_BULK_ACTION_RULES.idDuplicate, {
52
+ message: `${where} declares bulk action "${id}" twice.`,
53
+ });
38
54
  seen.add(id);
39
55
  const unknown = Object.keys(entry).filter((key) => !isOneOfBulkKeys(key));
40
56
  if (unknown.length > 0) {
41
- throw new Error(`${where} bulk action "${id}" has unknown key(s) ${unknown.map((k) => `"${k}"`).join(", ")}. ` +
42
- `Allowed keys: ${LIST_BULK_ACTION_KEYS.join(", ")}.`);
57
+ throw bootRuleError(LIST_BULK_ACTION_RULES.unknownKey, {
58
+ message: `${where} bulk action "${id}" has unknown key(s) ${unknown.map((k) => `"${k}"`).join(", ")}. ` +
59
+ `Allowed keys: ${LIST_BULK_ACTION_KEYS.join(", ")}.`,
60
+ });
43
61
  }
44
62
  validateBulkActionTarget(where, id, entry["rowAction"], rowActions ?? []);
45
63
  }
@@ -1,13 +1,17 @@
1
1
  import { isOneOf } from "@cosmicdrift/kumiko-types/type-guards";
2
2
  import { normalizeListColumn } from "../screen-helpers.js";
3
3
  import { LIST_COLUMN_PINS } from "../types/screen.js";
4
+ import { bootRuleError } from "./boot-rule.js";
5
+ import { LIST_TABLE_RULES } from "./list-table-rules.js";
4
6
  function isPositiveFiniteNumber(value) {
5
7
  return typeof value === "number" && Number.isFinite(value) && value > 0;
6
8
  }
7
9
  function validatePixelWidth(where, field, key, value) {
8
10
  if (!isPositiveFiniteNumber(value)) {
9
- throw new Error(`${where} column "${field}" has ${key} ${JSON.stringify(value)} — ` +
10
- `must be a finite number of pixels greater than 0.`);
11
+ throw bootRuleError(LIST_TABLE_RULES.columnWidthInvalid, {
12
+ message: `${where} column "${field}" has ${key} ${JSON.stringify(value)} — ` +
13
+ `must be a finite number of pixels greater than 0.`,
14
+ });
11
15
  }
12
16
  }
13
17
  /** Checks `pinned`, `width` and `minWidth` of every column against the table's opt-in flags. */
@@ -15,12 +19,16 @@ export function validateColumnLayout(where, flags, columns) {
15
19
  for (const col of columns.map(normalizeListColumn)) {
16
20
  if (col.pinned !== undefined) {
17
21
  if (!isOneOf(LIST_COLUMN_PINS, col.pinned)) {
18
- throw new Error(`${where} column "${col.field}" has pinned ${JSON.stringify(col.pinned)} — ` +
19
- `must be one of ${LIST_COLUMN_PINS.map((pin) => `"${pin}"`).join(", ")}.`);
22
+ throw bootRuleError(LIST_TABLE_RULES.columnPinnedInvalid, {
23
+ message: `${where} column "${col.field}" has pinned ${JSON.stringify(col.pinned)} — ` +
24
+ `must be one of ${LIST_COLUMN_PINS.map((pin) => `"${pin}"`).join(", ")}.`,
25
+ });
20
26
  }
21
27
  if (!flags.pinning) {
22
- throw new Error(`${where} column "${col.field}" is pinned but table.pinning is not enabled, ` +
23
- `so the pin would have no effect. Set table: { pinning: true } or remove "pinned".`);
28
+ throw bootRuleError(LIST_TABLE_RULES.columnPinnedWithoutPinning, {
29
+ message: `${where} column "${col.field}" is pinned but table.pinning is not enabled, ` +
30
+ `so the pin would have no effect. Set table: { pinning: true } or remove "pinned".`,
31
+ });
24
32
  }
25
33
  }
26
34
  for (const key of ["width", "minWidth"]) {
@@ -29,13 +37,17 @@ export function validateColumnLayout(where, flags, columns) {
29
37
  continue;
30
38
  validatePixelWidth(where, col.field, key, value);
31
39
  if (!flags.resizing) {
32
- throw new Error(`${where} column "${col.field}" sets ${key} but table.resizing is not enabled, ` +
33
- `so it would have no effect. Set table: { resizing: true } or remove "${key}".`);
40
+ throw bootRuleError(LIST_TABLE_RULES.columnWidthWithoutResizing, {
41
+ message: `${where} column "${col.field}" sets ${key} but table.resizing is not enabled, ` +
42
+ `so it would have no effect. Set table: { resizing: true } or remove "${key}".`,
43
+ });
34
44
  }
35
45
  }
36
46
  if (col.width !== undefined && col.minWidth !== undefined && col.minWidth > col.width) {
37
- throw new Error(`${where} column "${col.field}" has minWidth ${col.minWidth} greater than width ${col.width}. ` +
38
- `Lower minWidth or raise width.`);
47
+ throw bootRuleError(LIST_TABLE_RULES.columnMinWidthExceedsWidth, {
48
+ message: `${where} column "${col.field}" has minWidth ${col.minWidth} greater than width ${col.width}. ` +
49
+ `Lower minWidth or raise width.`,
50
+ });
39
51
  }
40
52
  }
41
53
  }
@@ -0,0 +1,107 @@
1
+ export declare const LIST_QUERY_RULES: {
2
+ readonly derivedFlagHandAuthored: {
3
+ readonly id: "list-query/derived-flag-hand-authored";
4
+ readonly summary: "A projectionList sets neither sortable nor paginated, both come from the query's Zod schema.";
5
+ readonly fix: "Remove sortable and paginated from the screen.";
6
+ };
7
+ readonly searchableWithoutSearchParam: {
8
+ readonly id: "list-query/searchable-without-search-param";
9
+ readonly summary: 'A searchable list binds a query whose Zod schema has a "search" parameter.';
10
+ readonly fix: 'Add a "search" field to the query schema or remove searchable: true.';
11
+ };
12
+ readonly searchableWithoutSearchableField: {
13
+ readonly id: "list-query/searchable-without-searchable-field";
14
+ readonly summary: "A searchable projectionList does not list an entity that has no searchable field.";
15
+ readonly fix: "Mark a field searchable: true on the entity or remove searchable: true.";
16
+ };
17
+ readonly searchableFalseDisablesSearch: {
18
+ readonly id: "list-query/searchable-false-disables-search";
19
+ readonly summary: 'A projectionList whose query accepts "search" is searchable unless it is on the searchable-false whitelist.';
20
+ readonly fix: "Remove searchable: false or add the screen id to SEARCHABLE_FALSE_WHITELIST.";
21
+ };
22
+ readonly defaultSortRequired: {
23
+ readonly id: "list-query/default-sort-required";
24
+ readonly summary: "A projectionList with active search or sort declares a defaultSort.";
25
+ readonly fix: "Set defaultSort: { field, direction } on the screen.";
26
+ };
27
+ readonly filterParamMissing: {
28
+ readonly id: "list-query/filter-param-missing";
29
+ readonly summary: 'A projectionList that declares filter binds a query with a "filter" parameter.';
30
+ readonly fix: "Add a filter parameter to the handler's schema, or reuse entityListSchema's shape.";
31
+ };
32
+ readonly facetsWithoutFiltersParam: {
33
+ readonly id: "list-query/facets-without-filters-param";
34
+ readonly summary: 'A list that declares facets sent as filters binds a query with a "filters" parameter.';
35
+ readonly fix: "Add a filters parameter to the handler's schema, or reuse entityListSchema's shape.";
36
+ };
37
+ readonly dateRangeSameParam: {
38
+ readonly id: "list-query/date-range-same-param";
39
+ readonly summary: "A dateRange facet names different params for its from and to bounds.";
40
+ readonly fix: "Use two different param names for from and to.";
41
+ };
42
+ readonly dateRangeReservedParam: {
43
+ readonly id: "list-query/date-range-reserved-param";
44
+ readonly summary: "A dateRange facet bound does not use a reserved list-payload key.";
45
+ readonly fix: "Pick the query's own time-bound param names.";
46
+ };
47
+ readonly dateRangeParamReused: {
48
+ readonly id: "list-query/date-range-param-reused";
49
+ readonly summary: "Each dateRange facet on a screen uses its own param names.";
50
+ readonly fix: "Give each dateRange facet its own param names.";
51
+ };
52
+ readonly dateRangeParamMissing: {
53
+ readonly id: "list-query/date-range-param-missing";
54
+ readonly summary: "The query accepts every param a dateRange facet sends.";
55
+ readonly fix: "Add the param to the handler's schema or point params at keys it already accepts.";
56
+ };
57
+ readonly countNeedsTabsLayout: {
58
+ readonly id: "list-query/count-needs-tabs-layout";
59
+ readonly summary: 'A relatedList section with count: true sits in a layout with mode "tabs".';
60
+ readonly fix: 'Use mode "tabs" or remove count.';
61
+ };
62
+ readonly countAndCountField: {
63
+ readonly id: "list-query/count-and-count-field";
64
+ readonly summary: "A relatedList section declares either count or countField.";
65
+ readonly fix: "Pick one badge source.";
66
+ };
67
+ readonly countParamMissing: {
68
+ readonly id: "list-query/count-param-missing";
69
+ readonly summary: "A relatedList section with count: true binds a query that accepts limit and totalCount.";
70
+ readonly fix: "Add the missing parameter to the query's Zod schema.";
71
+ };
72
+ readonly parentFilterAndParentParam: {
73
+ readonly id: "list-query/parent-filter-and-parent-param";
74
+ readonly summary: "A relatedList section declares parentFilter or parentParam, not both.";
75
+ readonly fix: "Remove parentParam or drop parentFilter.";
76
+ };
77
+ readonly parentFilterParamMissing: {
78
+ readonly id: "list-query/parent-filter-param-missing";
79
+ readonly summary: 'A relatedList section with parentFilter binds a query with a "filter" parameter.';
80
+ readonly fix: "Add a filter parameter to the handler's schema, or reuse entityListSchema's shape.";
81
+ };
82
+ readonly parentFilterFieldUnknown: {
83
+ readonly id: "list-query/parent-filter-field-unknown";
84
+ readonly summary: "parentFilter.field is a declared field of the entity behind the section's query.";
85
+ readonly fix: "Use one of the known fields named in the message.";
86
+ };
87
+ readonly groupByRemoved: {
88
+ readonly id: "related-list/group-by-removed";
89
+ readonly summary: "A relatedList section or expandableRow does not use the removed groupBy.";
90
+ readonly fix: "Use table.grouping and make the bound query accept aggregate.";
91
+ };
92
+ readonly expandableRowTableKeys: {
93
+ readonly id: "related-list/expandable-row-table-keys";
94
+ readonly summary: "An entityList expandableRow sets only table.grouping.";
95
+ readonly fix: "Put the other table options on the entityList screen itself.";
96
+ };
97
+ readonly expandableRowGroupingChoice: {
98
+ readonly id: "related-list/expandable-row-grouping-choice";
99
+ readonly summary: "An expandableRow sets no table.grouping.userChoice or fields, it has no view menu.";
100
+ readonly fix: "Set a fixed table.grouping.field.";
101
+ };
102
+ readonly expandableRowBulkActions: {
103
+ readonly id: "related-list/expandable-row-bulk-actions";
104
+ readonly summary: "An entityList expandableRow declares no bulkActions.";
105
+ readonly fix: "Put bulkActions on the entityList screen itself.";
106
+ };
107
+ };
@@ -0,0 +1,107 @@
1
+ export const LIST_QUERY_RULES = {
2
+ derivedFlagHandAuthored: {
3
+ id: "list-query/derived-flag-hand-authored",
4
+ summary: "A projectionList sets neither sortable nor paginated, both come from the query's Zod schema.",
5
+ fix: "Remove sortable and paginated from the screen.",
6
+ },
7
+ searchableWithoutSearchParam: {
8
+ id: "list-query/searchable-without-search-param",
9
+ summary: 'A searchable list binds a query whose Zod schema has a "search" parameter.',
10
+ fix: 'Add a "search" field to the query schema or remove searchable: true.',
11
+ },
12
+ searchableWithoutSearchableField: {
13
+ id: "list-query/searchable-without-searchable-field",
14
+ summary: "A searchable projectionList does not list an entity that has no searchable field.",
15
+ fix: "Mark a field searchable: true on the entity or remove searchable: true.",
16
+ },
17
+ searchableFalseDisablesSearch: {
18
+ id: "list-query/searchable-false-disables-search",
19
+ summary: 'A projectionList whose query accepts "search" is searchable unless it is on the searchable-false whitelist.',
20
+ fix: "Remove searchable: false or add the screen id to SEARCHABLE_FALSE_WHITELIST.",
21
+ },
22
+ defaultSortRequired: {
23
+ id: "list-query/default-sort-required",
24
+ summary: "A projectionList with active search or sort declares a defaultSort.",
25
+ fix: "Set defaultSort: { field, direction } on the screen.",
26
+ },
27
+ filterParamMissing: {
28
+ id: "list-query/filter-param-missing",
29
+ summary: 'A projectionList that declares filter binds a query with a "filter" parameter.',
30
+ fix: "Add a filter parameter to the handler's schema, or reuse entityListSchema's shape.",
31
+ },
32
+ facetsWithoutFiltersParam: {
33
+ id: "list-query/facets-without-filters-param",
34
+ summary: 'A list that declares facets sent as filters binds a query with a "filters" parameter.',
35
+ fix: "Add a filters parameter to the handler's schema, or reuse entityListSchema's shape.",
36
+ },
37
+ dateRangeSameParam: {
38
+ id: "list-query/date-range-same-param",
39
+ summary: "A dateRange facet names different params for its from and to bounds.",
40
+ fix: "Use two different param names for from and to.",
41
+ },
42
+ dateRangeReservedParam: {
43
+ id: "list-query/date-range-reserved-param",
44
+ summary: "A dateRange facet bound does not use a reserved list-payload key.",
45
+ fix: "Pick the query's own time-bound param names.",
46
+ },
47
+ dateRangeParamReused: {
48
+ id: "list-query/date-range-param-reused",
49
+ summary: "Each dateRange facet on a screen uses its own param names.",
50
+ fix: "Give each dateRange facet its own param names.",
51
+ },
52
+ dateRangeParamMissing: {
53
+ id: "list-query/date-range-param-missing",
54
+ summary: "The query accepts every param a dateRange facet sends.",
55
+ fix: "Add the param to the handler's schema or point params at keys it already accepts.",
56
+ },
57
+ countNeedsTabsLayout: {
58
+ id: "list-query/count-needs-tabs-layout",
59
+ summary: 'A relatedList section with count: true sits in a layout with mode "tabs".',
60
+ fix: 'Use mode "tabs" or remove count.',
61
+ },
62
+ countAndCountField: {
63
+ id: "list-query/count-and-count-field",
64
+ summary: "A relatedList section declares either count or countField.",
65
+ fix: "Pick one badge source.",
66
+ },
67
+ countParamMissing: {
68
+ id: "list-query/count-param-missing",
69
+ summary: "A relatedList section with count: true binds a query that accepts limit and totalCount.",
70
+ fix: "Add the missing parameter to the query's Zod schema.",
71
+ },
72
+ parentFilterAndParentParam: {
73
+ id: "list-query/parent-filter-and-parent-param",
74
+ summary: "A relatedList section declares parentFilter or parentParam, not both.",
75
+ fix: "Remove parentParam or drop parentFilter.",
76
+ },
77
+ parentFilterParamMissing: {
78
+ id: "list-query/parent-filter-param-missing",
79
+ summary: 'A relatedList section with parentFilter binds a query with a "filter" parameter.',
80
+ fix: "Add a filter parameter to the handler's schema, or reuse entityListSchema's shape.",
81
+ },
82
+ parentFilterFieldUnknown: {
83
+ id: "list-query/parent-filter-field-unknown",
84
+ summary: "parentFilter.field is a declared field of the entity behind the section's query.",
85
+ fix: "Use one of the known fields named in the message.",
86
+ },
87
+ groupByRemoved: {
88
+ id: "related-list/group-by-removed",
89
+ summary: "A relatedList section or expandableRow does not use the removed groupBy.",
90
+ fix: "Use table.grouping and make the bound query accept aggregate.",
91
+ },
92
+ expandableRowTableKeys: {
93
+ id: "related-list/expandable-row-table-keys",
94
+ summary: "An entityList expandableRow sets only table.grouping.",
95
+ fix: "Put the other table options on the entityList screen itself.",
96
+ },
97
+ expandableRowGroupingChoice: {
98
+ id: "related-list/expandable-row-grouping-choice",
99
+ summary: "An expandableRow sets no table.grouping.userChoice or fields, it has no view menu.",
100
+ fix: "Set a fixed table.grouping.field.",
101
+ },
102
+ expandableRowBulkActions: {
103
+ id: "related-list/expandable-row-bulk-actions",
104
+ summary: "An entityList expandableRow declares no bulkActions.",
105
+ fix: "Put bulkActions on the entityList screen itself.",
106
+ },
107
+ };