@cratis/pi 8.0.2 → 8.1.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 (486) hide show
  1. package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +9 -102
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +3 -5
  3. package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +8 -49
  4. package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +1 -1
  5. package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -84
  6. package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +6 -51
  7. package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -81
  8. package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -54
  9. package/package/corpus/harnesses/copilot/instructions/components.instructions.md +1 -1
  10. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +5 -22
  11. package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +7 -315
  12. package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +1 -1
  13. package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +3 -25
  14. package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +5 -151
  15. package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +5 -104
  16. package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +5 -63
  17. package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +8 -55
  18. package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +3 -33
  19. package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +6 -79
  20. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +4 -27
  21. package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +4 -6
  22. package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +0 -2
  23. package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +0 -1
  24. package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +1 -1
  25. package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +7 -138
  26. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +19 -19
  27. package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +1 -4
  28. package/package/corpus/harnesses/copilot/instructions/go.instructions.md +2 -7
  29. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +5 -6
  30. package/package/corpus/harnesses/copilot/instructions/java.instructions.md +7 -129
  31. package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +8 -165
  32. package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +5 -98
  33. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +9 -63
  34. package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +1 -1
  35. package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +8 -148
  36. package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +4 -37
  37. package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +3 -1
  38. package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +7 -70
  39. package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -98
  40. package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +3 -47
  41. package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +3 -65
  42. package/package/corpus/hooks/README.md +4 -7
  43. package/package/corpus/hooks/scripts/quality-gates.json +3 -5
  44. package/package/corpus/rules/ai-distribution.md +9 -102
  45. package/package/corpus/rules/authoring-skills.md +3 -5
  46. package/package/corpus/rules/browser.md +8 -49
  47. package/package/corpus/rules/code-health-policy.txt +4 -24
  48. package/package/corpus/rules/code-health.md +1 -1
  49. package/package/corpus/rules/code-quality.csharp.md +3 -84
  50. package/package/corpus/rules/code-quality.md +6 -51
  51. package/package/corpus/rules/code-quality.typescript.md +4 -81
  52. package/package/corpus/rules/codescene.md +5 -54
  53. package/package/corpus/rules/components.md +1 -1
  54. package/package/corpus/rules/cratis-folder-is-configuration.md +5 -22
  55. package/package/corpus/rules/csharp.md +7 -315
  56. package/package/corpus/rules/dialogs.md +1 -1
  57. package/package/corpus/rules/discoverability.md +3 -25
  58. package/package/corpus/rules/documentation-structure-and-formatting.md +5 -151
  59. package/package/corpus/rules/documentation.md +5 -104
  60. package/package/corpus/rules/editing-cratis-docs.md +5 -63
  61. package/package/corpus/rules/efcore.md +8 -55
  62. package/package/corpus/rules/efcore.specs.md +3 -33
  63. package/package/corpus/rules/elixir.md +6 -79
  64. package/package/corpus/rules/exit-codes-and-wrappers.md +4 -27
  65. package/package/corpus/rules/framework-dotnet.md +4 -6
  66. package/package/corpus/rules/framework.md +0 -2
  67. package/package/corpus/rules/frontend-quality.md +0 -1
  68. package/package/corpus/rules/frontend-testing.md +1 -1
  69. package/package/corpus/rules/general.md +2 -2
  70. package/package/corpus/rules/github-actions.md +7 -138
  71. package/package/corpus/rules/glossary.md +19 -19
  72. package/package/corpus/rules/go-engineering.md +1 -4
  73. package/package/corpus/rules/go.md +2 -7
  74. package/package/corpus/rules/guards-and-fuses.md +5 -6
  75. package/package/corpus/rules/java.md +7 -129
  76. package/package/corpus/rules/kotlin.md +8 -165
  77. package/package/corpus/rules/orleans.md +5 -98
  78. package/package/corpus/rules/profiles.md +9 -63
  79. package/package/corpus/rules/scripting.md +1 -1
  80. package/package/corpus/rules/specs.csharp.md +8 -148
  81. package/package/corpus/rules/specs.elixir.md +4 -37
  82. package/package/corpus/rules/specs.typescript.md +3 -1
  83. package/package/corpus/rules/storybook.md +7 -70
  84. package/package/corpus/rules/typescript.md +8 -98
  85. package/package/corpus/rules/writing-correct-examples.md +3 -47
  86. package/package/corpus/rules/writing-cratis-docs.md +3 -65
  87. package/package/corpus/skills/cratis-application-growth/SKILL.md +7 -54
  88. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +49 -0
  89. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +12 -14
  90. package/package/corpus/skills/cratis-application-growth/references/stages.md +2 -2
  91. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +2 -2
  92. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +3 -3
  93. package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +2 -2
  94. package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +10 -43
  95. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +40 -0
  96. package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +1 -1
  97. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +1 -1
  98. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +4 -4
  99. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +1 -1
  100. package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +6 -7
  101. package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +2 -8
  102. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +1 -1
  103. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +1 -1
  104. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +1 -1
  105. package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +6 -12
  106. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +4 -0
  107. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +2 -2
  108. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +11 -4
  109. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +1 -1
  110. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +2 -2
  111. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +1 -1
  112. package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +19 -2
  113. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +1 -1
  114. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +1 -1
  115. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +1 -2
  116. package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +2 -2
  117. package/package/corpus/skills/cratis-arc-host-application/references/go.md +5 -1
  118. package/package/corpus/skills/cratis-arc-host-application/references/java.md +1 -1
  119. package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +1 -1
  120. package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +1 -1
  121. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +4 -7
  122. package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +1 -1
  123. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +4 -4
  124. package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +1 -1
  125. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +2 -2
  126. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +2 -2
  127. package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +1 -1
  128. package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +1 -1
  129. package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +1 -1
  130. package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +4 -2
  131. package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +6 -6
  132. package/package/corpus/skills/cratis-arc-page-query/SKILL.md +3 -3
  133. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +10 -6
  134. package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +2 -2
  135. package/package/corpus/skills/cratis-arc-page-query/references/java.md +1 -1
  136. package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +1 -1
  137. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +2 -2
  138. package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +1 -1
  139. package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +1 -1
  140. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +7 -3
  141. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +1 -1
  142. package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +2 -2
  143. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +2 -4
  144. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +2 -2
  145. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +1 -1
  146. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +2 -2
  147. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +1 -3
  148. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +13 -51
  149. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +9 -1
  150. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +40 -0
  151. package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +19 -64
  152. package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +62 -0
  153. package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +24 -55
  154. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +49 -0
  155. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +13 -31
  156. package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +25 -0
  157. package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +24 -62
  158. package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +51 -0
  159. package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +4 -4
  160. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +10 -12
  161. package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +16 -3
  162. package/package/corpus/skills/cratis-arc-validate-command/references/go.md +19 -2
  163. package/package/corpus/skills/cratis-arc-validate-command/references/java.md +20 -7
  164. package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +22 -2
  165. package/package/corpus/skills/cratis-arc-validate-command/references/python.md +8 -2
  166. package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +22 -2
  167. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +22 -248
  168. package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +55 -0
  169. package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +72 -0
  170. package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +86 -0
  171. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +27 -275
  172. package/package/corpus/skills/cratis-arc-validation-typescript/references/models-and-queries.md +63 -0
  173. package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +46 -0
  174. package/package/corpus/skills/cratis-arc-validation-typescript/references/server-decisions.md +114 -0
  175. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +15 -255
  176. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +13 -6
  177. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +75 -0
  178. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +78 -13
  179. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +16 -14
  180. package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +1 -1
  181. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +10 -6
  182. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +1 -1
  183. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +2 -2
  184. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +8 -8
  185. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +10 -8
  186. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +8 -4
  187. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +4 -4
  188. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +2 -2
  189. package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +21 -8
  190. package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +1 -1
  191. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +1 -1
  192. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +5 -7
  193. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +3 -3
  194. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +10 -80
  195. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +2 -2
  196. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -24
  197. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +10 -0
  198. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +2 -2
  199. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +7 -6
  200. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +2 -2
  201. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +6 -0
  202. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +6 -0
  203. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +6 -0
  204. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +11 -5
  205. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +2 -2
  206. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +4 -4
  207. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +2 -2
  208. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +3 -1
  209. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +1 -1
  210. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +1 -1
  211. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +1 -1
  212. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +51 -40
  213. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +1 -1
  214. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +1 -1
  215. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/{occurrences.md → csharp-occurrences.md} +2 -2
  216. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +5 -6
  217. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +1 -1
  218. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +1 -1
  219. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +1 -1
  220. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +1 -1
  221. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +21 -19
  222. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +3 -3
  223. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +1 -1
  224. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +3 -4
  225. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +3 -4
  226. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +2 -2
  227. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +1 -1
  228. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +7 -2
  229. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +1 -1
  230. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +4 -4
  231. package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +3 -3
  232. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +2 -6
  233. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +2 -2
  234. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +1 -1
  235. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +1 -5
  236. package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +3 -3
  237. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +2 -2
  238. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +12 -201
  239. package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +67 -0
  240. package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +88 -0
  241. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +8 -4
  242. package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +13 -11
  243. package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +2 -2
  244. package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -4
  245. package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +20 -61
  246. package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +1 -1
  247. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +15 -26
  248. package/package/corpus/skills/cratis-code-review/SKILL.md +7 -6
  249. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +1 -1
  250. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +1 -1
  251. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +14 -206
  252. package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +29 -0
  253. package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +8 -0
  254. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +7 -7
  255. package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +1 -1
  256. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +7 -8
  257. package/package/corpus/skills/cratis-components-choose-control/references/collections.md +2 -2
  258. package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +1 -1
  259. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +22 -27
  260. package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +5 -0
  261. package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +19 -25
  262. package/package/corpus/skills/cratis-components-display-list/SKILL.md +26 -19
  263. package/package/corpus/skills/cratis-components-display-list/references/server-query.md +3 -3
  264. package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +15 -12
  265. package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +3 -3
  266. package/package/corpus/skills/cratis-components-explore-data/SKILL.md +7 -7
  267. package/package/corpus/skills/cratis-components-host-chat/SKILL.md +7 -7
  268. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +9 -15
  269. package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +5 -5
  270. package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +3 -3
  271. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +7 -51
  272. package/package/corpus/skills/cratis-components-theme-application/references/palette.md +49 -0
  273. package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +4 -2
  274. package/package/corpus/skills/cratis-content-length/SKILL.md +34 -46
  275. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +26 -127
  276. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +15 -27
  277. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +3 -19
  278. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +29 -224
  279. package/package/corpus/skills/cratis-discoverability/SKILL.md +11 -4
  280. package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +2 -2
  281. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +4 -3
  282. package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +13 -129
  283. package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +132 -0
  284. package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +11 -100
  285. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +55 -40
  286. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +68 -0
  287. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +38 -0
  288. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +14 -65
  289. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +40 -174
  290. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +8 -52
  291. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +29 -0
  292. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +20 -0
  293. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +3 -4
  294. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +7 -12
  295. package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +5 -4
  296. package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +6 -40
  297. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +18 -151
  298. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +5 -21
  299. package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +19 -0
  300. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +3 -66
  301. package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +68 -0
  302. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +2 -84
  303. package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +87 -0
  304. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +15 -263
  305. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +3 -3
  306. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +28 -6
  307. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dotnet-nuget.md +18 -14
  308. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +231 -0
  309. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/other-environments.md +2 -3
  310. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +62 -77
  311. package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +6 -39
  312. package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +36 -0
  313. package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +4 -4
  314. package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +8 -134
  315. package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +139 -0
  316. package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +3 -100
  317. package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +109 -0
  318. package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +1 -5
  319. package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +1 -3
  320. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +11 -116
  321. package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +93 -0
  322. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +4 -15
  323. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +8 -8
  324. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +4 -4
  325. package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +1 -1
  326. package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +1 -1
  327. package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +5 -5
  328. package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +15 -2
  329. package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +1 -1
  330. package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +1 -1
  331. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +10 -27
  332. package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +16 -0
  333. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +26 -188
  334. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +14 -0
  335. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +7 -5
  336. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +23 -157
  337. package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +139 -0
  338. package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +7 -5
  339. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +2 -4
  340. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +7 -0
  341. package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +2 -2
  342. package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +1 -1
  343. package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +2 -2
  344. package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +2 -2
  345. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +5 -23
  346. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +20 -0
  347. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +3 -3
  348. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +8 -63
  349. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +52 -0
  350. package/package/corpus/skills/cratis-observability/SKILL.md +1 -1
  351. package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +9 -23
  352. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +3 -14
  353. package/package/corpus/skills/cratis-observability/references/csharp.md +4 -6
  354. package/package/corpus/skills/cratis-observability/references/elixir.md +1 -1
  355. package/package/corpus/skills/cratis-observability/references/troubleshooting.md +4 -5
  356. package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +1 -4
  357. package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +0 -3
  358. package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +0 -4
  359. package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +7 -49
  360. package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +22 -0
  361. package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +4 -4
  362. package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +1 -1
  363. package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +12 -0
  364. package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +12 -0
  365. package/package/corpus/skills/cratis-orchestration-lanes/references/worktrees.md +10 -0
  366. package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +14 -13
  367. package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +51 -26
  368. package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +8 -14
  369. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +9 -65
  370. package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +5 -0
  371. package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +11 -7
  372. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +1 -1
  373. package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +27 -0
  374. package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +35 -0
  375. package/package/corpus/skills/cratis-performance-review/SKILL.md +6 -76
  376. package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +79 -0
  377. package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +19 -16
  378. package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +2 -2
  379. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +5 -5
  380. package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +1 -1
  381. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +2 -3
  382. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +2 -2
  383. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +10 -8
  384. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +6 -6
  385. package/package/corpus/skills/cratis-platform-start-application/references/java.md +4 -4
  386. package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +4 -4
  387. package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +3 -3
  388. package/package/corpus/skills/cratis-release-notes/SKILL.md +9 -133
  389. package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -0
  390. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +64 -0
  391. package/package/corpus/skills/cratis-rtk/SKILL.md +12 -18
  392. package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +3 -3
  393. package/package/corpus/skills/cratis-screenplay-accept-model/references/capability-consumption.md +1 -1
  394. package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +1 -1
  395. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +25 -59
  396. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +11 -10
  397. package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +9 -6
  398. package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +3 -3
  399. package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +8 -0
  400. package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +20 -167
  401. package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +23 -47
  402. package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +9 -10
  403. package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +26 -23
  404. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +6 -14
  405. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +2 -2
  406. package/package/corpus/skills/cratis-screenplay-declare-slice/references/read-identity.md +1 -1
  407. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +7 -9
  408. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +1 -1
  409. package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +10 -14
  410. package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +1 -1
  411. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +1 -1
  412. package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +6 -31
  413. package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +22 -0
  414. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +5 -5
  415. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +5 -5
  416. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +4 -4
  417. package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +2 -2
  418. package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +2 -2
  419. package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
  420. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +4 -75
  421. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -2
  422. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +85 -1
  423. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +1 -1
  424. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +15 -133
  425. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
  426. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +4 -12
  427. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +28 -57
  428. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +4 -5
  429. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +13 -20
  430. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +1 -1
  431. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +1 -1
  432. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +3 -5
  433. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +2 -0
  434. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +5 -5
  435. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +82 -71
  436. package/package/corpus/skills/cratis-security-review/SKILL.md +4 -73
  437. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +24 -13
  438. package/package/corpus/skills/cratis-security-review/references/review-checklist.md +74 -0
  439. package/package/corpus/skills/cratis-session-handoff/SKILL.md +7 -32
  440. package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +2 -2
  441. package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +20 -0
  442. package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +9 -17
  443. package/package/corpus/skills/cratis-showrunner-herald/references/options.md +2 -2
  444. package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +16 -10
  445. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +9 -162
  446. package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +37 -0
  447. package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +40 -0
  448. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +39 -150
  449. package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +24 -0
  450. package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +23 -0
  451. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +5 -5
  452. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +2 -2
  453. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +13 -5
  454. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +7 -4
  455. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +1 -1
  456. package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +20 -4
  457. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +1 -1
  458. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +2 -2
  459. package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +5 -5
  460. package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +2 -2
  461. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +2 -2
  462. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +2 -2
  463. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +10 -9
  464. package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +3 -3
  465. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +7 -6
  466. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -6
  467. package/package/corpus/skills/cratis-technical-examples/SKILL.md +10 -106
  468. package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +1 -1
  469. package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +42 -0
  470. package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +2 -2
  471. package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +37 -0
  472. package/package/corpus/skills/cratis-ux-review/SKILL.md +8 -40
  473. package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +24 -0
  474. package/package/corpus/skills/cratis-ux-review/references/checklist.md +1 -1
  475. package/package/corpus/skills/cratis-ux-review/references/report-template.md +2 -1
  476. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +19 -132
  477. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +24 -97
  478. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +23 -0
  479. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +25 -0
  480. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +17 -0
  481. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +23 -0
  482. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +8 -29
  483. package/package.json +1 -1
  484. /package/package/corpus/skills/cratis-chronicle-protect-decision/references/{standalone.md → csharp-standalone.md} +0 -0
  485. /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/silent-backup-failure.md → silent-backup-failure.md} +0 -0
  486. /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/unintended-release-regression.md → unintended-release-regression.md} +0 -0
@@ -1,39 +1,47 @@
1
1
  ---
2
2
  name: cratis-components-display-list
3
- description: Use when a developer displays generated query results in a DataPage table with columns, selection or row actions. Not for custom markup around a query hook.
3
+ description: Use when displaying generated query results in a DataPage table with columns, selection or row actions. Not for custom query markup (use cratis-arc-react-bind-slice).
4
4
  compatibility: Requires @cratis/components and @cratis/arc.react.
5
5
  ---
6
6
 
7
7
  # List authors and open the selected row
8
8
 
9
- Present the state view using rows returned by the query, not values from the last submitted command. Default to a table alone.
9
+ Present the state view using rows returned by the query, not values from the last submitted command. Start with `DataPage`, `query`, `dataKey` and a `DataPage.Columns` declaration. Add a selection action only when users need it.
10
10
 
11
- - Pass `detailsComponent={AuthorDetails}` when users should inspect a selection alongside the table. Import `type { IDetailsComponentProps }` from `@cratis/components/DataPage` and define `const AuthorDetails = ({ item }: IDetailsComponentProps<Author>) => <h2>{item.name}</h2>;`. If loading related records, use `item.id`, not `item.name`.
12
- - Choose navigation, as below, when details need their own screen or won't fit in a pane. Keep Add independent of selection; do not set `disableOnUnselected` on it.
13
-
14
- 1. In `Features/Authors/Listing/Authors.tsx`, import `Author` and `AllAuthors` from the generated proxy tree (`cratis-arc-generate-proxies` in `cratis/arc/csharp`). Use the generated tree's actual import path, even if the screen and proxy share a filename; never import the query from the screen itself. Render the page under `Arc` and `CratisComponentsProvider`.
15
- 2. Pass the query constructor and a stable `dataKey`. Each column's `field` names a property of `Author`.
16
- 3. Check `selectionMode` and `selectedItem` before invoking a row action. Pass the selected row's key to the callback that opens its details, not its display label.
11
+ Import the generated `Author` and `AllAuthors` proxies using the paths in the app. Render the page under `Arc` and `CratisComponentsProvider`, in a container with a definite height. Pass the query constructor and a stable `dataKey`. Each column's `field` names a property of `Author`.
17
12
 
18
13
  ```tsx
19
14
  import { Column, DataPage } from '@cratis/components/DataPage';
20
- import { AllAuthors, type Author } from '../../../generated/Features/Authors/Listing/Author';
15
+ import { AllAuthors } from '../../../generated/Features/Authors/Listing/Author';
21
16
 
22
- export const Authors = ({ onOpen }: { onOpen: (id: Author['id']) => void }) => (
17
+ export const Authors = () => (
23
18
  <DataPage query={AllAuthors} title="Authors" dataKey="id" emptyMessage="No authors">
24
19
  <DataPage.Columns><Column field="name" header="Name" sortable /></DataPage.Columns>
25
- <DataPage.MenuItems>
26
- <DataPage.MenuItem<Author> label="Open" disableOnUnselected command={selection => {
27
- if (selection.selectionMode === 'single' && selection.selectedItem) onOpen(selection.selectedItem.id);
28
- }} />
29
- </DataPage.MenuItems>
30
20
  </DataPage>
31
21
  );
32
22
  ```
33
23
 
34
- `emptyMessage` describes a successful query with no rows. Use `loadingMessage`, `unauthorizedMessage` and `failureMessage` to customize the other states; don't convert a failed query to an empty array. For a one-off check in the existing story, switch between two rows with the same name and confirm that inspection follows the selected ID. Use [the UI observation skill](../cratis-specifications-observe-ui/SKILL.md) to exercise the interaction.
24
+ `emptyMessage` describes a successful query with no rows. Use `loadingMessage`, `unauthorizedMessage` and `failureMessage` to customize the other states; don't convert a failed query to an empty array.
25
+
26
+ Set `globalFilterFields={['name']}` to show the search box. Choose this when search, filters or sorting must cover the entire collection rather than the loaded page: use [server query configuration](references/server-query.md).
27
+
28
+ ## Choose this when inspection belongs beside the table
29
+
30
+ Pass `detailsComponent={AuthorDetails}`. Import `type { IDetailsComponentProps }` from `@cratis/components/DataPage` and define `const AuthorDetails = ({ item }: IDetailsComponentProps<Author>) => <h2>{item.name}</h2>;`. Here `Author` is the generated row type. Use `item.id` if the panel loads related records.
31
+
32
+ ## Choose this when opening a separate screen by selection
35
33
 
36
- By default, search and column filters match only the loaded page. Set `globalFilterFields={['name']}` to show the search box. When users need to find a row on any page, pass `serverQuery` with `toArguments` mapping the search text (`globalFilter`) and any active filters to the generated query's arguments. Apply those arguments in the query and return an `IQueryable` (or use MongoDB `Observe` for a live list) so Arc sorts and pages the filtered result.
34
+ Add the following inside `DataPage`. `onOpen` is the host's navigation callback and takes `Author['id']`; import the generated `Author` type. Keep global actions such as Add independent of selection.
35
+
36
+ ```tsx
37
+ <DataPage.MenuItems>
38
+ <DataPage.MenuItem<Author> label="Open" disableOnUnselected command={selection => {
39
+ if (selection.selectionMode === 'single' && selection.selectedItem) onOpen(selection.selectedItem.id);
40
+ }} />
41
+ </DataPage.MenuItems>
42
+ ```
43
+
44
+ Select two rows with the same name in turn. The action should follow the selected ID.
37
45
 
38
46
  ## Avoid
39
47
 
@@ -48,7 +56,6 @@ By default, search and column filters match only the loaded page. Set `globalFil
48
56
 
49
57
  - For custom markup around a query hook, see `cratis-arc-react-bind-slice` (in `cratis/arc/react`).
50
58
  - [Explore data](../cratis-components-explore-data/SKILL.md) when readers need to group records by category or browse dated versions of one record.
51
-
52
59
  - [Confirm a row action](../cratis-components-coordinate-feedback/SKILL.md)
53
60
 
54
- For server paging and selection, read [server-query.md](references/server-query.md).
61
+ For paging controls, controlled selection or custom filter matching, read [the table configuration reference](references/server-query.md).
@@ -1,12 +1,12 @@
1
1
  # Server paging and selection
2
2
 
3
- Pass the generated query class to DataPage, not an array fetched elsewhere. Without server query configuration, filtering and sorting the loaded page cannot answer questions about the entire collection. Translate the visible filters into server arguments, map sortable field names, and restart at the first page after a filter changes. Test with a matching row that begins outside the loaded page.
3
+ Pass the generated query class to DataPage, not an array fetched elsewhere. Without server query configuration, filtering and sorting the loaded page cannot answer questions about the entire collection. Set `serverQuery.toArguments` to map `globalFilter` and column filters into the generated arguments. Use `serverQuery.sortFields` if the UI field names differ from the server fields. Apply the filters on the server and return an `IQueryable` or use MongoDB `Observe` so Arc can sort and page the filtered result. Verify that changing filters takes the user back to the first page. Test with a matching row that begins outside the loaded page.
4
4
 
5
- Keep selection by stable `dataKey`. When the refreshed page arrives accept the replacement item (or `null`) from the controlled selection callback. Ignoring the proposal leaves the old author visible in details after removal. Clear old rows when arguments change; retain them during refresh only for the same arguments. A details refresh callback belongs to the host and does not by itself refetch the table; use an observable query for a live list.
5
+ Keep selection by stable `dataKey`. When the refreshed page arrives accept the replacement item (or `null`) from the controlled selection callback. Ignoring the proposal leaves the old author visible in details after removal. Verify that rows from old arguments are not shown as results for the new arguments. A details refresh callback belongs to the host and does not by itself refetch the table; pass an observable query constructor for a live list.
6
6
 
7
7
  ## Numbered pages and local matchers
8
8
 
9
- With Components 4.35.1 or newer, `pageLinks` is off by default; set it to `true` for numbered buttons or pass `{ siblings: 1, boundaries: 1 }` to set the window. Localize the accessible numbered-button name and visible range through `paginatorAriaLabels={{ page: pageLabel, range: rangeLabel }}` on `DataPage` (standalone `TablePaginator` uses `ariaLabels`). The callbacks receive one-based numbers. Set shared defaults in the Components provider's `messages.paginator`.
9
+ `pageLinks` is off by default. Set `pageLinks={true}` for the standard numbered buttons. If readers need to see two pages on each side of the current page, use `pageLinks={{ siblings: 2 }}`; the boundary count stays at its default. Localize the accessible numbered-button name and visible range through `paginatorAriaLabels={{ page: pageLabel, range: rangeLabel }}` on `DataPage` (standalone `TablePaginator` uses `ariaLabels`). The callbacks receive one-based numbers. Set shared defaults in the Components provider's `messages.paginator`.
10
10
 
11
11
  For custom client filtering, import `registerDataTableFilterMatcher` from `@cratis/components/DataTables`. Register before mounting the table and unregister on teardown; do not register from render. For example, where the host owns table startup and disposal:
12
12
 
@@ -1,14 +1,12 @@
1
1
  ---
2
2
  name: cratis-components-edit-schema-data
3
- description: Use when a developer lets users edit a runtime JSON schema with SchemaEditor or change one document's values with ObjectContentEditor. Not for known command fields (use cratis-components-submit-form).
3
+ description: Use when letting users edit a runtime JSON schema with SchemaEditor or changing one document's values with ObjectContentEditor. Not for known command fields (use cratis-components-submit-form).
4
4
  compatibility: Requires react and @cratis/components.
5
5
  ---
6
6
 
7
7
  # Edit a schema or a document
8
8
 
9
- These paths are for the Library example; in other apps, put the components in the owning slices.
10
-
11
- 1. Use `SchemaEditor` to change which properties exist. Put `SchemaDraft.tsx` in `Features/Schemas`, inside `CratisComponentsProvider` from `@cratis/components`. Pass the existing schema and the application's save operation.
9
+ 1. Use `SchemaEditor` to change which properties exist. Render it under `CratisComponentsProvider` from `@cratis/components`. Pass the existing schema and the application's save operation.
12
10
 
13
11
  ```tsx
14
12
  import { useState } from 'react';
@@ -28,13 +26,17 @@ export function SchemaDraft({ initial, save }: { initial: JsonSchema; save: (sch
28
26
  } catch { setFailed(true); }
29
27
  finally { setSaving(false); }
30
28
  }
31
- return <><SchemaEditor canEdit={!saving} schema={draft} onChange={setDraft}
29
+ return <><SchemaEditor canEdit={!saving && !failed} schema={saved} onChange={setDraft}
32
30
  onSave={persist} onCancel={() => { setDraft(saved); setFailed(false); }} />
33
- {failed && <p role="alert">Save failed. Choose Edit to retry or cancel.</p>}</>;
31
+ {failed && <div>
32
+ <p role="alert">Save failed.</p>
33
+ <button type="button" onClick={persist}>Retry save</button>
34
+ <button type="button" onClick={() => { setSaved({ ...saved }); setDraft(saved); setFailed(false); }}>Discard</button>
35
+ </div>}</>;
34
36
  }
35
37
  ```
36
38
 
37
- 2. Choose `ObjectContentEditor` instead when the user edits one document's values without changing its shape. Put `AuthorDocument.tsx` in `Features/Authors`. Keep the authoritative schema fixed. `ObjectContentEditor` reports a missing top-level optional field as an error if that field is included in its editor schema. For a surface that edits only existing optional values, omit absent optional fields from the editor schema, not from the authoritative validator. Here `penName` is optional and a document without it can still be saved.
39
+ 2. Choose this when editing one document's values without changing its shape: use `ObjectContentEditor`. Keep the authoritative schema fixed. `ObjectContentEditor` reports a missing top-level optional field as an error if that field is included in its editor schema. For a surface that edits only existing optional values, omit absent optional fields from the editor schema, not from the authoritative validator. Here `penName` is optional and a document without it can still be saved.
38
40
 
39
41
  ```tsx
40
42
  import { useState } from 'react';
@@ -46,12 +48,13 @@ const authorSchema: JsonSchema = {
46
48
  properties: { name: { type: 'string' }, penName: { type: 'string' } },
47
49
  };
48
50
 
51
+ const editorSchema: JsonSchema = {
52
+ type: 'object', properties: { name: { type: 'string' } },
53
+ };
54
+
49
55
  export function AuthorDocument({ validate, save }: { validate: (doc: Json, schema: JsonSchema) => boolean; save: (doc: Json) => void }) {
50
56
  const [author, setAuthor] = useState<Json>({ name: 'Aster' });
51
57
  const [hasErrors, setHasErrors] = useState(false);
52
- const editorSchema: JsonSchema = {
53
- type: 'object', properties: { name: { type: 'string' } },
54
- };
55
58
  const canSave = !hasErrors && validate(author, authorSchema);
56
59
  return <><ObjectContentEditor object={author} schema={editorSchema} editMode
57
60
  onChange={setAuthor} onValidationChange={setHasErrors} />
@@ -66,8 +69,8 @@ export function AuthorDocument({ validate, save }: { validate: (doc: Json, schem
66
69
 
67
70
  ## When it goes off the usual path
68
71
 
69
- - **Save stays disabled after editing a property:** check that its name matches `^[a-zA-Z_][a-zA-Z0-9_]*$`, is not `__proto__`, `constructor` or `prototype`, and is unique among siblings.
70
- - **Cancel leaves draft fields behind:** the default table editor tracks the `schema` prop, which may already include unsaved changes. Keep the last saved schema separate from the draft. The host's `save` must reject on failure. As a one-off check, save a change, edit again, then cancel: the first change should remain without another save.
72
+ - **The editor rejects a property name:** check that its name matches `^[a-zA-Z_][a-zA-Z0-9_]*$`, is not `__proto__`, `constructor` or `prototype`, and is unique among siblings.
73
+ - **Save fails:** the table exits edit mode without awaiting `onSave`. Keep the draft for retry and advance `schema` only after persistence succeeds. Verify by saving, editing again, and canceling: the first saved change remains without another write.
71
74
  - **An external schema uses richer keywords or shapes:** check that they fit the editor's JSON Schema subset before editing. For example, the editor cannot author tuple-valued `items`. Validate the saved result with the application's authoritative validator when external constraints matter.
72
75
 
73
76
  ## Related skills
@@ -1,8 +1,8 @@
1
- # Editing and cancelling a controlled schema
1
+ # Editing and canceling a controlled schema
2
2
 
3
- Keep a saved document distinct from the draft. The table’s `editMode` initializes its local state; a changed `schema` input replaces both working copy and baseline. Do not feed each draft change back as a newly saved schema. `onSave()` carries no document: commit the tracked draft. Cancel restores the baseline, sends `onChange` with source `reset` only if different, then calls `onCancel`.
3
+ Keep a saved document distinct from the draft. The table's `editMode` initializes its local state; a changed `schema` input replaces both working copy and baseline. Do not feed each draft change back as a newly saved schema. `onSave()` carries no document and is not awaited: persist the tracked draft, update the saved input only on success, and offer retry or discard on failure. Cancel restores the baseline, sends `onChange` with source `reset` only if different, then calls `onCancel`.
4
4
 
5
- The tree edits live. With controlled `properties`, supply each mutation callback whose operation should be offered. Convert with `jsonSchemaToProperties` and `propertiesToJsonSchema` rather than rebuilding name/type pairs: preserve keywords on both properties and array items and keep parent `required`. The editor supports a subset, not arbitrary reference resolution. For instance data, validate against the real schema separately; the root-scalar edit surface is not an external schema validator.
5
+ Choose this when edits should apply live, without the table's Edit, Save and Cancel workflow: use the tree presentation. With controlled `properties`, supply each mutation callback whose operation should be offered. Convert with `jsonSchemaToProperties` and `propertiesToJsonSchema` rather than rebuilding name/type pairs: preserve keywords on both properties and array items and keep parent `required`. The editor supports a subset, not arbitrary reference resolution. For instance data, validate against the real schema separately; the root-scalar edit surface is not an external schema validator.
6
6
 
7
7
  ## Validate object edits at the host boundary
8
8
 
@@ -1,14 +1,14 @@
1
1
  ---
2
2
  name: cratis-components-explore-data
3
- description: Use when a developer groups records into PivotViewer cards or lets readers browse dated snapshots of one record with TimeMachine. Not for a plain table (use cratis-components-display-list).
3
+ description: Use when grouping records into PivotViewer cards or letting readers browse dated snapshots of one record with TimeMachine. Not for a plain table (use cratis-components-display-list).
4
4
  compatibility: Requires react, @cratis/components and pixi.js for PivotViewer.
5
5
  ---
6
6
 
7
7
  # Group library books by genre
8
8
 
9
- Use `PivotViewer` to group current, already loaded records. Choose `TimeMachine` when comparing supplied snapshots over time of one record. Neither fetches history.
9
+ Use `PivotViewer` to group current, already loaded records. To compare supplied snapshots of one record, follow the TimeMachine path below. Neither fetches history.
10
10
 
11
- 1. In the Library example, put `BookExplorer.tsx` in `Features/Books` inside `CratisComponentsProvider` from `@cratis/components`. For `PivotViewer`, install its Pixi peer (`npm install pixi.js@8.20.0` for Components 4.63.1). Filter and bound a large catalog at the query before passing the loaded books to the viewer; the viewer is not a paging mechanism.
11
+ 1. Render the viewer inside `CratisComponentsProvider` from `@cratis/components`. For `PivotViewer`, install its Pixi peer (use the peer range declared by `@cratis/components`). Filter and bound a large catalog at the query before passing the loaded books to the viewer; the viewer is not a paging mechanism.
12
12
  2. Use a unique dimension `key` to identify the grouping choice. `getValue` returns the grouping value for each book. The dimension key does not have to be a book property.
13
13
  3. Keep the book ID independent of its genre. Two books in one group still have distinct cards.
14
14
 
@@ -25,11 +25,11 @@ export function BookExplorer({ books }: { books: Book[] }) {
25
25
  }
26
26
  ```
27
27
 
28
- Return structured text from `cardRenderer`. Put interactive React content in `detailRenderer={book => <button onClick={() => openBook(book.id)}>Open book</button>}`, where `openBook` is the host's navigation callback.
28
+ Return structured text from `cardRenderer`. Put interactive React content in `detailRenderer={book => <button type="button" onClick={() => openBook(book.id)}>Open book</button>}`, where `openBook` is the host's navigation callback.
29
29
 
30
- ## Show the versions of a book
30
+ ## Choose this when comparing versions of a book
31
31
 
32
- In `Features/Books/BookHistory.tsx`, accept snapshots oldest first. Build a version with a unique ID, `Date` timestamp, label and rendered content. Seed the initial index once; receive subsequent selections through `onVersionChange`.
32
+ Supply snapshots in the order users should browse them. This example takes them oldest first and starts on the newest. Build a version with a unique ID, `Date` timestamp, label and rendered content. Seed the initial index once; receive subsequent selections through `onVersionChange`.
33
33
 
34
34
  ```tsx
35
35
  import { TimeMachine } from '@cratis/components/TimeMachine';
@@ -42,7 +42,7 @@ export function BookHistory({ snapshots, select }: { snapshots: Snapshot[]; sele
42
42
  }
43
43
  ```
44
44
 
45
- Selecting a card should open that book even when another shares its genre. Selecting an older version should show the supplied snapshot without changing the current book.
45
+ With a detail renderer, selecting a card should open that book's details even when another shares its genre. Selecting an older version should show the supplied snapshot without changing the current book.
46
46
 
47
47
  ## Avoid
48
48
 
@@ -1,17 +1,17 @@
1
1
  ---
2
2
  name: cratis-components-host-chat
3
- description: Use when a developer connects a topic-based chat sidebar to generated live queries or to topics and messages already owned by the host. Not for confirmation or busy dialogs (use cratis-components-coordinate-feedback).
3
+ description: Use when connecting a topic-based chat sidebar to generated live queries or to topics and messages already owned by the host. Not for confirmation or busy dialogs (use cratis-components-coordinate-feedback).
4
4
  compatibility: Requires react, @cratis/components and @cratis/arc.react.
5
5
  ---
6
6
 
7
7
  # Show messages for the selected topic
8
8
 
9
- Default to `ChatSidebarForObservableQueries` when the screen has generated live queries and does not already own that state. For host-owned arrays and selection, import `{ ChatSidebar }` from `@cratis/components/Chat` and use `<ChatSidebar open={open} onClose={onClose} topics={topics} messages={messages} selectedTopicId={selectedTopicId} onTopicSelected={id => setSelectedTopicId(id ?? null)} onSendMessage={(id, body, mentions) => send(String(id), body, mentions)} />` instead of subscribing again. Both bindings send with the explicit topic ID.
9
+ Default to `ChatSidebarForObservableQueries` when the screen has generated live queries and does not already own that state. Choose this when the host already owns the arrays and selection: import `{ ChatSidebar }` from `@cratis/components/Chat` and use `<ChatSidebar open={open} onClose={onClose} topics={topics} messages={messages} selectedTopicId={selectedTopicId} onTopicSelected={id => setSelectedTopicId(id ?? null)} onSendMessage={(id, body, mentions) => send(String(id), body, mentions)} />` instead of subscribing again. Both bindings send with the explicit topic ID.
10
10
 
11
- 1. For this example’s existing `Features/` layout, place `TopicChat.tsx` in `Features/Conversations` under the application's `<Arc>` provider from `@cratis/arc.react`. This slice has generated observable query proxies `Topics` and `Messages` under `generated/Features/Conversations`. Don't copy them into the UI folder. `Messages` takes `{ topicId: string }`.
11
+ 1. Render the sidebar under the application's `<Arc>` provider from `@cratis/arc.react`. Import the generated observable query proxies `Topics` and `Messages` from the app's proxy tree. `Messages` takes `{ topicId: string }`.
12
12
  2. The `Topics` query returns rows with an `id` and optionally `name`. Each row returned by `Messages` must have `id`, `topicId`, `authorId`, `body: string` and `timestamp: Date`. Use string IDs or IDs that implement `toString()`. Here `authorId` identifies the message sender, not a catalog author.
13
13
  3. Pass the generated query classes themselves to `ChatSidebarForObservableQueries`, not their `.use()` results. The adapter subscribes to topics and changes the message subscription with the open topic. Render the sidebar even when it is closed. Toggle `open` instead of mounting it conditionally, so the topic list continues to receive updates. Return `undefined` from `messagesArguments` until a topic is open.
14
- 4. Supply the application's send operation. The example passes through the message body and mentions with the topic ID received by `onSendMessage`. The caller must handle errors from sending against that topic.
14
+ 4. Supply the application's send operation. The example passes through the message body and mentions with the topic ID received by `onSendMessage`. Handle errors in the host; the callback does not report send success back to the sidebar.
15
15
 
16
16
  ```tsx
17
17
  import { ChatSidebarForObservableQueries, type ChatMention } from '@cratis/components/Chat';
@@ -32,12 +32,12 @@ export function TopicChat({ open, onClose, send }: ChatProps) {
32
32
 
33
33
  Switch from one topic to another before the first topic's messages arrive. Only the selected topic's messages should appear. If messages are missing, check the argument name and the selected ID before changing the query.
34
34
 
35
- ## Enable optional topic actions
35
+ ## Choose this when the host adds topic or message actions
36
36
 
37
37
  Add these props only if the host supplies the corresponding operations:
38
38
 
39
39
  - `authorOf={id => ({ name: displayName(id), kind: ChatAuthorKind.User })}` resolves a sender. Import `{ ChatAuthorKind }` from `@cratis/components/Chat`; use `ChatAuthorKind.Agent` for an agent.
40
- - `onStartTopic={() => startTopic()}` opens the topic whose ID the host returns. `onRequestTopicName={(topic, body) => nameTopic(topic.id, body)}` names a new topic from its first message.
40
+ - `onStartTopic={() => startTopic()}` opens the topic whose ID the host returns. `onRequestTopicName={(topic, body) => nameTopic(topic.id, body)}` asks the host to name an existing unnamed topic from its first message.
41
41
  - `topicActions={[{ id: 'rename', label: 'Rename', onInvoke: topic => renameTopic(topic.id) }]}` acts on the topic. `actions={[{ id: 'copy', label: 'Copy', icon: <span aria-hidden="true">⧉</span>, onInvoke: message => copyMessage(message.body) }]}` acts on one message.
42
42
 
43
43
  ## When it goes off the usual path
@@ -48,4 +48,4 @@ Add these props only if the host supplies the corresponding operations:
48
48
 
49
49
  - If the host owns the subscriptions, use `cratis-arc-react-bind-slice` from the Arc React profile. Pass `topicsStatus` and `messagesStatus` to `ChatSidebar`; an access denial or failed query is not an empty conversation.
50
50
 
51
- Attach message actions with `actions` and host content with `renderMessageExtra`. Retain existing history through loading or failure; do not keep showing it when access is denied.
51
+ Attach message actions with `actions` and host content with `renderMessageExtra`. If keeping a cached history in the host during loading or failure, scope it to the active topic and discard access-denied data. Do not represent a failed or denied request as an empty conversation.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-components-submit-form
3
- description: Use when a developer binds typed fields to a generated command in a create or edit dialog and submits it on OK. Not for a yes/no confirmation (use cratis-components-coordinate-feedback).
3
+ description: Use when binding typed fields to a generated command in a create or edit dialog and submitting it on OK. Not for a yes/no confirmation (use cratis-components-coordinate-feedback).
4
4
  compatibility: Requires @cratis/components, @cratis/arc.react and @cratis/fundamentals.
5
5
  ---
6
6
 
@@ -8,7 +8,7 @@ compatibility: Requires @cratis/components, @cratis/arc.react and @cratis/fundam
8
8
 
9
9
  Default to one `CommandDialog` for a short submission. Bind the state change's input to the generated command. Submitting requests the change; it does not prove that an event committed.
10
10
 
11
- 1. In the Library example, under the app's `Arc` and `CratisComponentsProvider`, create `Features/Authors/Registration/AddAuthor.tsx`. Import the generated command from the private `generated/Features/Authors/Registration` folder. For the generated `id: Guid`, call `Guid.create()`. Use `initialValues` for the ID the reader doesn't type. Bind the Name field directly to the command property.
11
+ 1. Under the app's `Arc` and `CratisComponentsProvider`, use the generated command from the app's proxy tree. For the generated `id: Guid`, call `Guid.create()`. Use `initialValues` for the ID the reader doesn't type. Bind the Name field directly to the command property.
12
12
 
13
13
  ```tsx
14
14
  import { useState } from 'react';
@@ -26,29 +26,23 @@ export function AddAuthor() {
26
26
  }
27
27
  ```
28
28
 
29
- 2. Open that dialog from the Authors screen (`Features/Authors/Registration/AddAuthorButton.tsx`). Render the component returned by `useDialog` once, beside the button. `useDialog` supplies this custom dialog's context. To also offer the shared confirmation and busy dialogs, [register DialogComponents](../cratis-components-coordinate-feedback/SKILL.md) in `App.tsx`.
29
+ 2. Open that dialog from the owning screen. Render the component returned by `useDialog` once, beside the button. `useDialog` supplies this custom dialog's context. To also offer the shared confirmation and busy dialogs, [register DialogComponents](../cratis-components-coordinate-feedback/SKILL.md) in `App.tsx`.
30
30
 
31
31
  ```tsx
32
- import { useRef } from 'react';
33
32
  import { useDialog } from '@cratis/arc.react/dialogs';
34
33
  import { AddAuthor } from './AddAuthor';
35
34
 
36
35
  export function AddAuthorButton() {
37
- const button = useRef<HTMLButtonElement>(null);
38
36
  const [Dialog, show] = useDialog(AddAuthor);
39
- async function open() {
40
- await show();
41
- button.current?.focus();
42
- }
43
- return <><button ref={button} type="button" onClick={open}>Add author</button><Dialog /></>;
37
+ return <><button type="button" onClick={() => void show()}>Add author</button><Dialog /></>;
44
38
  }
45
39
  ```
46
40
 
47
- 3. Import `AddAuthorButton` from `../Registration/AddAuthorButton` in `Features/Authors/Listing/Authors.tsx` and render it beside the list, independent of row selection. Add no submit handler. OK runs the command. The dialog stays open on failure so the reader can correct the name; keep both field errors and the form summary visible.
41
+ 3. Render `AddAuthorButton` beside the list, independent of row selection. Add no submit handler. OK runs the command. The dialog stays open on failure so the reader can correct the name; keep both field errors and the form summary visible.
48
42
 
49
- Choose `StepperCommandDialog` when one command genuinely needs several stages. Import `{ StepperCommandDialog, StepperPanel }` from `@cratis/components/CommandDialog`. Replace both `CommandDialog` tags with `StepperCommandDialog`, and wrap each field group with `<StepperPanel header="Author details">…</StepperPanel>` using a distinct header per step. Next and Previous move between panels without executing; the final Submit runs the command only after validation across all steps. Verify that returning to fix a required field on an earlier step preserves the other inputs and enables one final submission.
43
+ Choose this when one command genuinely needs several stages: use `StepperCommandDialog`. Import `{ StepperCommandDialog, StepperPanel }` from `@cratis/components/CommandDialog`. Replace both `CommandDialog` tags with `StepperCommandDialog`, and wrap each field group with `<StepperPanel header="Author details">…</StepperPanel>` using a distinct header per step. Next and Previous move between panels without executing; the final Submit runs the command only after validation across all steps. Verify that returning to fix a required field on an earlier step preserves the other inputs and enables one final submission.
50
44
 
51
- For editing, pass the selected ID and name to `show({ id, name })`. In the edit dialog, capture that opening's snapshot with `const [initialValues] = useState(() => ({ id, name }));`. Pass it to `CommandDialog` as above. `useDialog` unmounts the dialog on close, so the next opening starts with its own values. Pass `validateOnInit` when the prefilled values may be invalid and errors should appear on open.
45
+ Choose this when editing a selected item: pass the selected ID and name to `show({ id, name })`. In the edit dialog component, which receives those values as props, capture that opening's snapshot with `const [initialValues] = useState(() => ({ id, name }));`. Pass it to `CommandDialog` as above. `useDialog` unmounts the dialog on close, so the next opening starts with its own values. Pass `validateOnInit` when the prefilled values may be invalid and errors should appear on open.
52
46
 
53
47
  Read the generated command type before choosing field accessors; use its property names, not the labels shown in the dialog. Put required values already known to the caller in `initialValues`, not `onBeforeExecute` (validation runs first). For a `Date` property, choose `CalendarField` from `@cratis/components/CommandForm`; set `showTime` when the time is required. Put caller-owned post-save effects in `onSuccess`, not in a click or close handler.
54
48
 
@@ -60,10 +54,10 @@ Read the generated command type before choosing field accessors; use its propert
60
54
  ## When it goes off the usual path
61
55
 
62
56
  - **The server owns translated field messages:** send the selected locale through `<Arc httpHeadersCallback={() => ({ 'Accept-Language': locale })}>` and configure the backend to honor it. Return user-facing rule messages with the affected member names so the form can place them beside the fields. The header does not translate client-side errors or dialog labels.
63
- - **Enter could activate confirmation on open:** import `{ DialogInitialFocus }` from `@cratis/components/Dialogs` and pass `initialFocus={DialogInitialFocus.Content}` to focus the title, then test that Enter there does not submit and Tab reaches the editable field.
57
+ - **Enter could activate confirmation on open:** use `cratis-components-accessibility` to choose the title or a safe action as the initial focus.
64
58
  - **The command is refused:** keep the dialog open. A field violation needs a correction; denied authorization needs a caller with permission, not a different field value.
65
59
 
66
- For a one-off check in the existing edit story, type a new name, rerender the parent without closing the dialog, then submit. The command should carry the typed name and the original ID. Use [the UI observation skill](../cratis-specifications-observe-ui/SKILL.md) to exercise the interaction.
60
+ In the edit flow, type a new name, rerender the parent without closing the dialog, then submit. Verify that the command carries the typed name and the original ID.
67
61
 
68
62
  ## Related skills
69
63
 
@@ -1,9 +1,9 @@
1
- # Confirming a command without double close
1
+ # Confirm before executing or control what closes
2
2
 
3
- Use a plain dialog for a noncommand response, a command dialog for one submission, and registered global feedback for a shared busy or confirmation presentation. Mount the wrapper returned by `useDialog` once. The caller awaits the dialog result and optional response; the content reads its request and close function from context. Avoid closing both from the host and again from the content.
3
+ Use `confirmBeforeExecute` when the user must approve a particular set of submitted values before the command runs. Return literal `true` only on approval. A refusal leaves the draft open and does not execute. Use `cratis-components-coordinate-feedback` for the shared confirmation UI and `cratis-components-accessibility` when the confirmation is destructive.
4
4
 
5
- A successful execution invokes `onSuccess` before the post-success close decision. Return a boolean on every close-validation path. When supplying a custom response through context, close once and suppress automatic close. On refusal leave the draft intact. Choose Cancel or content focus for destructive confirmations so an unintentional Enter cannot approve the action.
5
+ Leave the default close path in place for ordinary submissions. On success, `CommandDialog` calls `onSuccess(response)` before deciding whether to close. A supplied post-success `onConfirm` permits close only on literal `true`; without it, `onClose(DialogResult.Ok)` vetoes automatic close on `false`. A close veto does not undo the successful command. Do not use a post-success hook to ask permission to execute, and do not let a veto lead to a duplicate write.
6
6
 
7
- A field binding such as `value={c => c.name}` identifies a command property. A computed expression or unregistered raw input is not an equivalent binding. Use a registered field wrapper for custom controls and register a field provider before relying on auto-generation.
7
+ For a noncommand response, open a plain `Dialog` with `useDialog` from `@cratis/arc.react/dialogs`; mount its returned wrapper once and read the request and close function with `useDialogContext`. Choose this when a command caller needs a custom dialog response: close manually. Close once via the typed Arc dialog context and return `false` from the post-success close gate to suppress automatic close. Check that the caller awaiting `show()` receives the intended result and response. For a custom content-only dialog, `buttons={null}` omits the footer; choose an explicit close affordance because the default in that case disallows Escape, backdrop and header dismissal.
8
8
 
9
- Specifically, post-success `onConfirm` permits close only for literal `true`; without that handler, `onClose(DialogResult.Ok)` vetoes on `false`. `buttons={null}` leaves content only. Do not re-enable backdrop or Escape dismissal while the submission is busy.
9
+ Bind fields directly to command properties, such as `value={c => c.name}`. Wrap a custom control as a command field and mark it with `markAsCommandFormField`. Use `registerFieldTypeProvider` if auto-generation should select it; both helpers are exported from `@cratis/components/CommandForm`. Do not bypass the busy dismissal guard.
@@ -1,9 +1,9 @@
1
1
  # One submission across several steps
2
2
 
3
- Use `StepperCommandDialog`, `CommandStepper` and `StepperPanel` from `@cratis/components/CommandDialog`. Use the embedded stepper when no dialog chrome is needed. Bind every field to the same command instance, with each property on one named step. Otherwise the user can be blocked by a validation error with no identifiable step to fix.
3
+ Use `StepperCommandDialog`, `CommandStepper` and `StepperPanel` from `@cratis/components/CommandDialog`. Choose the embedded `CommandStepper` when no dialog chrome is needed. Bind every field to the same command instance, with each property on one named step. Otherwise the user can be blocked by a validation error with no identifiable step to fix.
4
4
 
5
- A linear header cannot jump. Invalid fields on the current step block forward progress, not Back. `onChangeStep({index})` describes an accepted move, not a request. Keep the built-in navigation when changing labels so that keyboard and click paths share the validation gate. The last-step submit remains rendered but disabled while invalid or busy.
5
+ A linear header cannot jump. Invalid fields on the current step block forward progress, not Back. `onChangeStep` receives `{ index }` and describes an accepted move, not a request. Keep the built-in navigation when changing labels so that keyboard and click paths share the validation gate. On the last step, `StepperCommandDialog` shows Submit in the dialog footer only when the form is valid; the button is disabled while busy. The embedded `CommandStepper` keeps its built-in Submit visible on the last step but disables it while invalid or busy.
6
6
 
7
- Set prerequisites in `initialValues`; apply late updates through `currentValues`. If `onBeforeExecute` transforms values, return them. `confirmBeforeExecute` must approve the submitted values with literal `true`; a stale approval is not approval for an edited draft. On refusal leave the draft available and do not bypass the busy dismissal guard. Style the outer dialog with `dialogPt` or `dialogClassName`, the stepper with `pt` or `className`.
7
+ Set prerequisites in `initialValues`; apply late updates through `currentValues`. If `onBeforeExecute` transforms values, return them. `confirmBeforeExecute` must approve the submitted values with literal `true`; a stale approval is not approval for an edited draft. On refusal leave the draft available and do not bypass the busy dismissal guard. Style the outer dialog with `dialogPt` or `dialogClassName`. On either component, style the stepper root with `pt={{ root: { className: 'book-wizard' } }}`.
8
8
 
9
9
  Give every step its own direct `StepperPanel` child. A fragment around multiple panels is one child, so it counts as one step; `{showDetails && <StepperPanel header="Details">…</StepperPanel>}` is fine. Use `validateOnInit` to show existing errors when opening an edit wizard on invalid values.
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  name: cratis-components-theme-application
3
- description: Use when a developer loads the baseline Components styles or overrides theme tokens for an application or panel. Not for choosing input controls (use cratis-components-choose-control).
3
+ description: Use when loading the baseline Components styles or overriding theme tokens for an application or panel. Not for keyboard or accessible semantics (use cratis-components-accessibility).
4
4
  compatibility: Requires @cratis/components and a CSS bundler that resolves package imports.
5
5
  ---
6
6
 
7
7
  # Load the theme and change one area's color
8
8
 
9
- Use a theme token for a color change, scoped to the smallest wrapper that should inherit it. Choose a named component part only when you need to style a specific piece of the component.
9
+ Use a theme token for a color change, scoped to the smallest wrapper that should inherit it.
10
10
 
11
11
  1. Add `host.css` beside `main.tsx` and import `./host.css` from that entry point. Keep the single `CratisComponentsProvider` from `@cratis/components` around the app; do not mount a second provider to change colors.
12
- 2. Load tokens, component styles and the baseline theme in that order. Put unlayered token overrides after the imports and match the theme selector's specificity. Set the token on the wrapper of the area that should change:
12
+ 2. Load tokens, component styles and the baseline theme in that order. For a plain scoped wrapper, set its inherited tokens in unlayered CSS after the imports:
13
13
 
14
14
  ```css
15
15
  @import '@cratis/components/tokens';
@@ -30,61 +30,17 @@ Use a theme token for a color change, scoped to the smallest wrapper that should
30
30
  @layer properties, theme, base, cratis-theme, cratis-components, cratis-utilities, components, utilities;
31
31
  ```
32
32
 
33
- 4. Put `className="author-admin"` on the authors section. Controls inside inherit the override; sibling sections keep the default.
34
- 5. For an app-wide palette instead, put these rules after the three imports, outside `@layer`. Match the baseline selectors so the later value wins on the root and in themed subtrees. Wrap all three rules in `@media (forced-colors: none)` to preserve system colors in forced-colors mode.
33
+ 4. Put `className="author-admin"` on the authors section. Inspect the computed token on a control inside and outside the wrapper; only the inside control should inherit the override.
35
34
 
36
- ```css
37
- @media (forced-colors: none) {
38
- :root, .cratis-theme, :root.cratis-light, :root.cratis-dark.cratis-light,
39
- :root.cratis-light .cratis-theme:not(.cratis-dark), .cratis-theme.cratis-light,
40
- .cratis-dark .cratis-theme.cratis-light {
41
- --cratis-primary-color: #0f766e;
42
- --cratis-primary-color-text: #fff;
43
- }
44
-
45
- :root.cratis-dark, .cratis-dark .cratis-theme, .cratis-theme.cratis-dark {
46
- --cratis-primary-color: #5eead4;
47
- --cratis-primary-color-text: #030712;
48
- }
49
-
50
- @media (prefers-color-scheme: dark) {
51
- :root:not(.cratis-light), .cratis-theme:not(.cratis-light) {
52
- --cratis-primary-color: #5eead4;
53
- --cratis-primary-color-text: #030712;
54
- }
55
- }
56
- }
57
- ```
58
-
59
- As a one-off check, inspect a control that uses both primary tokens, such as the chat topic start button. Switch between light and dark mode and check the computed text and background colors on the button itself. Normal-sized text should have at least 4.5:1 contrast in both modes.
60
-
61
- When the product design system owns the whole palette, keep the `tokens` and `styles` imports but omit `@cratis/components/theme`. Map the `--cratis-*` roles to product tokens in unlayered CSS after the imports. The product then supplies its own light, dark and forced-colors treatment; the baseline scheme classes no longer supply colors.
62
-
63
- ## Scope action colors to a themed panel
64
-
65
- Override the action tokens on the panel wrapper itself. Match the explicit-light selector when the panel is light inside a dark theme. Pair the action foreground with all three backgrounds; do not set ordinary panel `color` as a substitute.
66
-
67
- ```css
68
- @media (forced-colors: none) {
69
- .cratis-theme.cratis-light.author-admin,
70
- .cratis-dark .cratis-theme.cratis-light.author-admin {
71
- --cratis-action-background: #92400e;
72
- --cratis-action-background-hover: #78350f;
73
- --cratis-action-background-active: #451a03;
74
- --cratis-action-text: #fff;
75
- }
76
- }
77
- ```
78
-
79
- Apply `cratis-theme cratis-light author-admin` to the light panel, not the page root.
35
+ Choose [a palette override](references/palette.md) when colors must match across the app, a subtree forces a scheme, or the product owns the whole theme.
80
36
 
81
- ## Target a component part
37
+ ## Choose this when styling one part of a component
82
38
 
83
39
  Use `.author-admin [data-cratis-part='header-content'] { font-weight: 600; }` for the content inside a table header. Don't target private DOM nesting or internal vendor nodes.
84
40
 
85
41
  ## When it goes off the usual path
86
42
 
87
- - **Controls look unstyled after an upgrade:** verify that the entry stylesheet loads and the Components provider wraps the surface before adding a vendor theme. Remove legacy vendor CSS and packages only if the host no longer uses them directly.
43
+ - **Controls look unstyled:** verify that the entry stylesheet loads and the Components provider wraps the surface before adding a vendor theme. Remove legacy vendor CSS and packages only if the host no longer uses them directly.
88
44
  - **A ComboBox rule misses the listbox:** the popover is portalled outside the wrapper. Set `pt={{ popover: { className: 'author-options' } }}` on that ComboBox, then target `.author-options [data-cratis-part='optionLabel']` and `.author-options [data-cratis-part='optionDescription']` in `host.css`. Don't rely on the popover being a descendant of `.author-admin`.
89
45
  - **A palette override fights system colors:** keep the override within `@media (forced-colors: none)`.
90
46
 
@@ -0,0 +1,49 @@
1
+ # Override the baseline palette
2
+
3
+ Choose this when the same palette should apply across the app. Put these rules after the three imports, outside `@layer`. Match the baseline selectors so the later value wins on the root and in themed subtrees. Wrap all three rules in `@media (forced-colors: none)` to preserve system colors in forced-colors mode.
4
+
5
+ ```css
6
+ @media (forced-colors: none) {
7
+ :root, .cratis-theme, :root.cratis-light, :root.cratis-dark.cratis-light,
8
+ :root.cratis-light .cratis-theme:not(.cratis-dark), .cratis-theme.cratis-light,
9
+ .cratis-dark .cratis-theme.cratis-light {
10
+ --cratis-primary-color: #0f766e;
11
+ --cratis-primary-color-text: #fff;
12
+ }
13
+
14
+ :root.cratis-dark, .cratis-dark .cratis-theme, .cratis-theme.cratis-dark {
15
+ --cratis-primary-color: #5eead4;
16
+ --cratis-primary-color-text: #030712;
17
+ }
18
+
19
+ @media (prefers-color-scheme: dark) {
20
+ :root:not(.cratis-light), .cratis-theme:not(.cratis-light) {
21
+ --cratis-primary-color: #5eead4;
22
+ --cratis-primary-color-text: #030712;
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ Inspect a control that uses both primary tokens, such as the chat topic start button. Switch between light and dark mode and check the computed text and background colors on the button itself. Normal-sized text should have at least 4.5:1 contrast in both modes.
29
+
30
+ Choose this when the product design system owns the entire palette and scheme behavior: keep the `tokens` and `styles` imports but omit `@cratis/components/theme`. Map the `--cratis-*` roles to product tokens in unlayered CSS after the imports. The product then supplies its own light, dark and forced-colors treatment; the baseline scheme classes no longer supply colors.
31
+
32
+ ## Scope action colors to a themed panel
33
+
34
+ Override the action tokens on the panel wrapper itself. Match the explicit-light selector when the panel is light inside a dark theme. Pair the action foreground with all three backgrounds; do not set ordinary panel `color` as a substitute.
35
+
36
+ ```css
37
+ @media (forced-colors: none) {
38
+ .cratis-theme.cratis-light.author-admin,
39
+ .cratis-dark .cratis-theme.cratis-light.author-admin {
40
+ --cratis-action-background: #92400e;
41
+ --cratis-action-background-hover: #78350f;
42
+ --cratis-action-background-active: #451a03;
43
+ --cratis-action-text: #fff;
44
+ }
45
+ }
46
+ ```
47
+
48
+ Apply `cratis-theme cratis-light author-admin` to the light panel, not the page root. Inspect the computed action colors on a nested button in light, dark and forced-colors modes.
49
+
@@ -1,5 +1,7 @@
1
1
  # Select a renderer by its installed manifest
2
2
 
3
- Start with the Core component and its tokens. If the missing behavior belongs to a renderer, compare the installed adapter’s declared slots and peer dependencies with the host. Do not infer coverage from a vendor name or a fixed count. For example, MUI and Designsystemet can supply `dialogs.dialog`; selecting a dialog renderer does not replace the consumer-facing command dialog API.
3
+ Keep Core unless a required presentation belongs to a renderer. Compare the installed adapter's declared slots and peer dependencies with the host. Do not infer coverage from a vendor name or a fixed count. For example, MUI and Designsystemet can supply `dialogs.dialog`; selecting a dialog renderer does not replace the consumer-facing command dialog API.
4
4
 
5
- Keep configuration decisions separate: `libraryMode` checks what the host promises, `rendererFallback` governs an unresolved slot, and `overlayEnvironment` sets where overlays live. Keep secrets out of renderer setup. Test an actual dialog, including focus return, rather than treating successful provider construction as evidence that the intended renderer was used.
5
+ Pass the selected manifest as `library` on the existing `CratisComponentsProvider`; for MUI, import `muiUiLibrary` from `@cratis/components.mui` and set `library={muiUiLibrary}`. Follow the adapter's required setup. Leave slots outside its declared coverage on the built-in implementation unless stricter coverage is required.
6
+
7
+ Keep configuration decisions separate: `libraryMode` defines the required renderer coverage, `rendererFallback` governs an unresolved slot, and `overlayEnvironment` sets where overlays live. Keep secrets out of renderer setup. Test an actual dialog, including focus return, rather than treating successful provider construction as evidence that the intended renderer was used.