@antelopejs/dms 0.25.8 → 0.25.9-next.1183.ga9db169

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 (477) hide show
  1. package/CHANGELOG.md +0 -48
  2. package/E2E.md +138 -0
  3. package/README.md +2 -2
  4. package/data/mockup-example/spec.json +13 -0
  5. package/data/mockup-spec.schema.json +399 -16
  6. package/dist/e2e/index.d.mts +2 -1
  7. package/dist/implementations/dms/live-pages.d.ts +6 -0
  8. package/dist/implementations/dms/live-pages.js +139 -0
  9. package/dist/implementations/dms/live-pages.js.map +1 -0
  10. package/dist/implementations/dms/page/notifications.js +2 -0
  11. package/dist/implementations/dms/page/notifications.js.map +1 -1
  12. package/dist/implementations/dms/page/registry.js +19 -4
  13. package/dist/implementations/dms/page/registry.js.map +1 -1
  14. package/dist/implementations/dms/registry-snapshot.d.ts +32 -0
  15. package/dist/implementations/dms/registry-snapshot.js +55 -0
  16. package/dist/implementations/dms/registry-snapshot.js.map +1 -0
  17. package/dist/implementations/dms/services.d.ts +2 -0
  18. package/dist/implementations/dms/services.js +2 -0
  19. package/dist/implementations/dms/services.js.map +1 -1
  20. package/dist/implementations/dms/tenant-access.d.ts +1 -0
  21. package/dist/implementations/dms/tenant-access.js +7 -0
  22. package/dist/implementations/dms/tenant-access.js.map +1 -1
  23. package/dist/implementations/dms-builder/engine/compose-page.js +1 -1
  24. package/dist/implementations/dms-builder/engine/compose-page.js.map +1 -1
  25. package/dist/implementations/dms-builder/engine/map-resources-pages.js +1 -1
  26. package/dist/implementations/dms-builder/engine/map-resources-pages.js.map +1 -1
  27. package/dist/implementations/dms-builder/engine/ops-blocks.d.ts +2 -1
  28. package/dist/implementations/dms-builder/engine/ops-blocks.js +12 -1
  29. package/dist/implementations/dms-builder/engine/ops-blocks.js.map +1 -1
  30. package/dist/implementations/dms-builder/engine/table-view-settings.js +9 -33
  31. package/dist/implementations/dms-builder/engine/table-view-settings.js.map +1 -1
  32. package/dist/index.js +2 -0
  33. package/dist/index.js.map +1 -1
  34. package/dist/mcp/index.d.ts +2 -0
  35. package/dist/mcp/index.js +9 -0
  36. package/dist/mcp/index.js.map +1 -1
  37. package/dist/mcp/mockup-export/capture.d.ts +19 -0
  38. package/dist/mcp/mockup-export/capture.js +99 -0
  39. package/dist/mcp/mockup-export/capture.js.map +1 -0
  40. package/dist/mcp/mockup-export/document.d.ts +4 -0
  41. package/dist/mcp/mockup-export/document.js +199 -0
  42. package/dist/mcp/mockup-export/document.js.map +1 -0
  43. package/dist/mcp/mockup-export/index.d.ts +20 -0
  44. package/dist/mcp/mockup-export/index.js +112 -0
  45. package/dist/mcp/mockup-export/index.js.map +1 -0
  46. package/dist/mcp/mockup-export/jobs.d.ts +32 -0
  47. package/dist/mcp/mockup-export/jobs.js +49 -0
  48. package/dist/mcp/mockup-export/jobs.js.map +1 -0
  49. package/dist/mcp/mockup-export/plan.d.ts +78 -0
  50. package/dist/mcp/mockup-export/plan.js +296 -0
  51. package/dist/mcp/mockup-export/plan.js.map +1 -0
  52. package/dist/mcp/mockup-export/route.d.ts +23 -0
  53. package/dist/mcp/mockup-export/route.js +91 -0
  54. package/dist/mcp/mockup-export/route.js.map +1 -0
  55. package/dist/mcp/page-verify/index.d.ts +15 -0
  56. package/dist/mcp/page-verify/index.js +16 -6
  57. package/dist/mcp/page-verify/index.js.map +1 -1
  58. package/dist/mcp/page-verify/mockup.d.ts +3 -1
  59. package/dist/mcp/page-verify/mockup.js +2 -0
  60. package/dist/mcp/page-verify/mockup.js.map +1 -1
  61. package/dist/mcp/page-verify/modules.d.ts +1 -0
  62. package/dist/mcp/page-verify/modules.js +22 -0
  63. package/dist/mcp/page-verify/modules.js.map +1 -0
  64. package/dist/mcp/page-verify/page-probe.d.ts +5 -0
  65. package/dist/mcp/page-verify/page-probe.js +2 -0
  66. package/dist/mcp/page-verify/page-probe.js.map +1 -1
  67. package/dist/mcp/page-verify/playwright.d.ts +22 -4
  68. package/dist/mcp/page-verify/playwright.js.map +1 -1
  69. package/dist/mcp/page-verify/report.d.ts +1 -0
  70. package/dist/mcp/tools/builder-compose.js +4 -1
  71. package/dist/mcp/tools/builder-compose.js.map +1 -1
  72. package/dist/mcp/tools/builder-pages.js +1 -1
  73. package/dist/mcp/tools/builder-pages.js.map +1 -1
  74. package/dist/mcp/tools/index.d.ts +2 -0
  75. package/dist/mcp/tools/index.js +6 -1
  76. package/dist/mcp/tools/index.js.map +1 -1
  77. package/dist/mcp/tools/mockup-export-pdf.d.ts +1 -0
  78. package/dist/mcp/tools/mockup-export-pdf.js +69 -0
  79. package/dist/mcp/tools/mockup-export-pdf.js.map +1 -0
  80. package/dist/mcp/tools/mockup-install-modules.d.ts +9 -0
  81. package/dist/mcp/tools/mockup-install-modules.js +122 -0
  82. package/dist/mcp/tools/mockup-install-modules.js.map +1 -0
  83. package/dist/mcp/tools/mockup-module-catalog.d.ts +3 -0
  84. package/dist/mcp/tools/mockup-module-catalog.js +52 -0
  85. package/dist/mcp/tools/mockup-module-catalog.js.map +1 -0
  86. package/dist/mcp/tools/mockup-patch-spec.js +1 -1
  87. package/dist/mcp/tools/mockup-patch-spec.js.map +1 -1
  88. package/dist/mcp/tools/mockup-read-spec.js +8 -6
  89. package/dist/mcp/tools/mockup-read-spec.js.map +1 -1
  90. package/dist/mcp/tools/mockup-support.js +18 -5
  91. package/dist/mcp/tools/mockup-support.js.map +1 -1
  92. package/dist/mcp/tools/mockup-write-spec.js +1 -1
  93. package/dist/mcp/tools/mockup-write-spec.js.map +1 -1
  94. package/dist/mcp/tools/mockup.js +6 -0
  95. package/dist/mcp/tools/mockup.js.map +1 -1
  96. package/dist/mcp/tools/page-verify.d.ts +1 -0
  97. package/dist/mcp/tools/page-verify.js +6 -2
  98. package/dist/mcp/tools/page-verify.js.map +1 -1
  99. package/dist/mcp/tools/pages.d.ts +1 -0
  100. package/dist/mcp/tools/pages.js +9 -3
  101. package/dist/mcp/tools/pages.js.map +1 -1
  102. package/dist/mockup/annotations.js +2 -2
  103. package/dist/mockup/annotations.js.map +1 -1
  104. package/dist/mockup/apply-notes.js +1 -1
  105. package/dist/mockup/apply-notes.js.map +1 -1
  106. package/dist/mockup/compile-layouts.d.ts +5 -0
  107. package/dist/mockup/compile-layouts.js +74 -0
  108. package/dist/mockup/compile-layouts.js.map +1 -0
  109. package/dist/mockup/compile-modules.d.ts +5 -0
  110. package/dist/mockup/compile-modules.js +40 -0
  111. package/dist/mockup/compile-modules.js.map +1 -0
  112. package/dist/mockup/compile-nodes.d.ts +11 -0
  113. package/dist/mockup/compile-nodes.js +119 -0
  114. package/dist/mockup/compile-nodes.js.map +1 -0
  115. package/dist/mockup/compile-pages.d.ts +20 -0
  116. package/dist/mockup/compile-pages.js +272 -0
  117. package/dist/mockup/compile-pages.js.map +1 -0
  118. package/dist/mockup/compile.d.ts +10 -12
  119. package/dist/mockup/compile.js +36 -292
  120. package/dist/mockup/compile.js.map +1 -1
  121. package/dist/mockup/controller-blocks.js +2 -0
  122. package/dist/mockup/controller-blocks.js.map +1 -1
  123. package/dist/mockup/create.d.ts +16 -0
  124. package/dist/mockup/create.js +78 -0
  125. package/dist/mockup/create.js.map +1 -0
  126. package/dist/mockup/created-watch.d.ts +18 -0
  127. package/dist/mockup/created-watch.js +110 -0
  128. package/dist/mockup/created-watch.js.map +1 -0
  129. package/dist/mockup/database-routes.d.ts +15 -0
  130. package/dist/mockup/database-routes.js +58 -0
  131. package/dist/mockup/database-routes.js.map +1 -0
  132. package/dist/mockup/database-schema.d.ts +17 -0
  133. package/dist/mockup/database-schema.js +41 -0
  134. package/dist/mockup/database-schema.js.map +1 -0
  135. package/dist/mockup/entities.d.ts +20 -0
  136. package/dist/mockup/entities.js +213 -0
  137. package/dist/mockup/entities.js.map +1 -0
  138. package/dist/mockup/etag.d.ts +1 -0
  139. package/dist/mockup/etag.js +10 -0
  140. package/dist/mockup/etag.js.map +1 -0
  141. package/dist/mockup/extensions.d.ts +34 -0
  142. package/dist/mockup/extensions.js +107 -0
  143. package/dist/mockup/extensions.js.map +1 -0
  144. package/dist/mockup/files.d.ts +2 -1
  145. package/dist/mockup/files.js +2 -1
  146. package/dist/mockup/files.js.map +1 -1
  147. package/dist/mockup/fixture-answers.d.ts +3 -2
  148. package/dist/mockup/fixture-answers.js +13 -4
  149. package/dist/mockup/fixture-answers.js.map +1 -1
  150. package/dist/mockup/fixture-batch.d.ts +21 -0
  151. package/dist/mockup/fixture-batch.js +111 -0
  152. package/dist/mockup/fixture-batch.js.map +1 -0
  153. package/dist/mockup/fixture-routes.d.ts +21 -0
  154. package/dist/mockup/fixture-routes.js +136 -0
  155. package/dist/mockup/fixture-routes.js.map +1 -0
  156. package/dist/mockup/fixtures.d.ts +2 -29
  157. package/dist/mockup/fixtures.js +0 -111
  158. package/dist/mockup/fixtures.js.map +1 -1
  159. package/dist/mockup/from-page.js +2 -9
  160. package/dist/mockup/from-page.js.map +1 -1
  161. package/dist/mockup/generate.js +4 -1
  162. package/dist/mockup/generate.js.map +1 -1
  163. package/dist/mockup/history-routes.d.ts +2 -4
  164. package/dist/mockup/history-routes.js +30 -39
  165. package/dist/mockup/history-routes.js.map +1 -1
  166. package/dist/mockup/history.js +7 -3
  167. package/dist/mockup/history.js.map +1 -1
  168. package/dist/mockup/index.d.ts +14 -0
  169. package/dist/mockup/index.js +14 -0
  170. package/dist/mockup/index.js.map +1 -1
  171. package/dist/mockup/json-schema-entities.d.ts +5 -0
  172. package/dist/mockup/json-schema-entities.js +141 -0
  173. package/dist/mockup/json-schema-entities.js.map +1 -0
  174. package/dist/mockup/json-schema-layout.d.ts +1 -0
  175. package/dist/mockup/json-schema-layout.js +95 -2
  176. package/dist/mockup/json-schema-layout.js.map +1 -1
  177. package/dist/mockup/json-schema.d.ts +1 -1
  178. package/dist/mockup/json-schema.js +41 -20
  179. package/dist/mockup/json-schema.js.map +1 -1
  180. package/dist/mockup/json.d.ts +8 -0
  181. package/dist/mockup/json.js +20 -0
  182. package/dist/mockup/json.js.map +1 -0
  183. package/dist/mockup/layout-model.d.ts +156 -0
  184. package/dist/mockup/layout-model.js +96 -0
  185. package/dist/mockup/layout-model.js.map +1 -0
  186. package/dist/mockup/layouts.d.ts +9 -0
  187. package/dist/mockup/layouts.js +40 -0
  188. package/dist/mockup/layouts.js.map +1 -0
  189. package/dist/mockup/manage-routes.d.ts +3 -1
  190. package/dist/mockup/manage-routes.js +38 -1
  191. package/dist/mockup/manage-routes.js.map +1 -1
  192. package/dist/mockup/manage.js +1 -1
  193. package/dist/mockup/manage.js.map +1 -1
  194. package/dist/mockup/model.d.ts +145 -99
  195. package/dist/mockup/model.js +101 -86
  196. package/dist/mockup/model.js.map +1 -1
  197. package/dist/mockup/module-context.d.ts +25 -0
  198. package/dist/mockup/module-context.js +83 -0
  199. package/dist/mockup/module-context.js.map +1 -0
  200. package/dist/mockup/module-install.d.ts +22 -0
  201. package/dist/mockup/module-install.js +71 -0
  202. package/dist/mockup/module-install.js.map +1 -0
  203. package/dist/mockup/module-states.d.ts +17 -0
  204. package/dist/mockup/module-states.js +167 -0
  205. package/dist/mockup/module-states.js.map +1 -0
  206. package/dist/mockup/modules-schema.d.ts +2 -0
  207. package/dist/mockup/modules-schema.js +38 -0
  208. package/dist/mockup/modules-schema.js.map +1 -0
  209. package/dist/mockup/modules.d.ts +9 -10
  210. package/dist/mockup/modules.js +104 -25
  211. package/dist/mockup/modules.js.map +1 -1
  212. package/dist/mockup/page-capture-routes.d.ts +19 -0
  213. package/dist/mockup/page-capture-routes.js +92 -0
  214. package/dist/mockup/page-capture-routes.js.map +1 -0
  215. package/dist/mockup/page-captures.d.ts +61 -0
  216. package/dist/mockup/page-captures.js +252 -0
  217. package/dist/mockup/page-captures.js.map +1 -0
  218. package/dist/mockup/page-descriptions.d.ts +2 -0
  219. package/dist/mockup/page-descriptions.js +18 -0
  220. package/dist/mockup/page-descriptions.js.map +1 -0
  221. package/dist/mockup/parse-spec.d.ts +10 -0
  222. package/dist/mockup/parse-spec.js +62 -0
  223. package/dist/mockup/parse-spec.js.map +1 -0
  224. package/dist/mockup/places.d.ts +17 -0
  225. package/dist/mockup/places.js +75 -0
  226. package/dist/mockup/places.js.map +1 -0
  227. package/dist/mockup/presence-board.js +1 -1
  228. package/dist/mockup/presence-board.js.map +1 -1
  229. package/dist/mockup/presence-routes.js +2 -2
  230. package/dist/mockup/presence-routes.js.map +1 -1
  231. package/dist/mockup/refusals.d.ts +6 -0
  232. package/dist/mockup/refusals.js +17 -0
  233. package/dist/mockup/refusals.js.map +1 -1
  234. package/dist/mockup/routes.d.ts +3 -5
  235. package/dist/mockup/routes.js +24 -163
  236. package/dist/mockup/routes.js.map +1 -1
  237. package/dist/mockup/sketch-limits.d.ts +1 -0
  238. package/dist/mockup/sketch-limits.js +2 -1
  239. package/dist/mockup/sketch-limits.js.map +1 -1
  240. package/dist/mockup/sketch.d.ts +2 -2
  241. package/dist/mockup/sketch.js +2 -1
  242. package/dist/mockup/sketch.js.map +1 -1
  243. package/dist/mockup/slug.d.ts +3 -0
  244. package/dist/mockup/slug.js +7 -0
  245. package/dist/mockup/slug.js.map +1 -0
  246. package/dist/mockup/source-routes.d.ts +5 -4
  247. package/dist/mockup/source-routes.js +26 -17
  248. package/dist/mockup/source-routes.js.map +1 -1
  249. package/dist/mockup/source.d.ts +3 -3
  250. package/dist/mockup/source.js +4 -3
  251. package/dist/mockup/source.js.map +1 -1
  252. package/dist/mockup/state-patch.d.ts +22 -0
  253. package/dist/mockup/state-patch.js +76 -0
  254. package/dist/mockup/state-patch.js.map +1 -0
  255. package/dist/mockup/state.d.ts +163 -0
  256. package/dist/mockup/state.js +24 -0
  257. package/dist/mockup/state.js.map +1 -0
  258. package/dist/mockup/store-list.d.ts +28 -0
  259. package/dist/mockup/store-list.js +89 -0
  260. package/dist/mockup/store-list.js.map +1 -0
  261. package/dist/mockup/store.d.ts +25 -38
  262. package/dist/mockup/store.js +126 -203
  263. package/dist/mockup/store.js.map +1 -1
  264. package/dist/mockup/table-archive.d.ts +0 -1
  265. package/dist/mockup/table-archive.js +0 -16
  266. package/dist/mockup/table-archive.js.map +1 -1
  267. package/dist/mockup/tenancy.d.ts +19 -0
  268. package/dist/mockup/tenancy.js +73 -0
  269. package/dist/mockup/tenancy.js.map +1 -0
  270. package/dist/mockup/tenant-rows.d.ts +4 -0
  271. package/dist/mockup/tenant-rows.js +19 -0
  272. package/dist/mockup/tenant-rows.js.map +1 -0
  273. package/dist/mockup/unknown-keys.d.ts +2 -2
  274. package/dist/mockup/unknown-keys.js +8 -4
  275. package/dist/mockup/unknown-keys.js.map +1 -1
  276. package/dist/mockup/validate.d.ts +2 -2
  277. package/dist/mockup/validate.js.map +1 -1
  278. package/dist/store/catalog.d.ts +5 -1
  279. package/dist/store/catalog.js +12 -1
  280. package/dist/store/catalog.js.map +1 -1
  281. package/dist/store/changes.d.ts +3 -0
  282. package/dist/store/changes.js +22 -0
  283. package/dist/store/changes.js.map +1 -0
  284. package/dist/store/index.d.ts +2 -0
  285. package/dist/store/index.js +2 -0
  286. package/dist/store/index.js.map +1 -1
  287. package/dist/store/listing.js +5 -5
  288. package/dist/store/listing.js.map +1 -1
  289. package/dist/store/operations.d.ts +8 -0
  290. package/dist/store/operations.js +27 -3
  291. package/dist/store/operations.js.map +1 -1
  292. package/dist/store/registry.d.ts +1 -0
  293. package/dist/store/registry.js +9 -0
  294. package/dist/store/registry.js.map +1 -1
  295. package/dist/store/types.d.ts +3 -0
  296. package/dist/types/index.d.ts +1 -0
  297. package/dist/types/index.js +1 -0
  298. package/dist/types/index.js.map +1 -1
  299. package/dist/types/live-pages.d.ts +41 -0
  300. package/dist/types/live-pages.js +3 -0
  301. package/dist/types/live-pages.js.map +1 -0
  302. package/dist/validation/store.schema.d.ts +1 -0
  303. package/dist/validation/store.schema.js +4 -4
  304. package/dist/validation/store.schema.js.map +1 -1
  305. package/e2e/index.mjs +3 -2
  306. package/frontend-vue/build/viewer-chunks.ts +181 -0
  307. package/frontend-vue/dms.frontend.build.ts +2 -1
  308. package/frontend-vue/dms.frontend.ts +7 -0
  309. package/frontend-vue/eslint-globals.generated.mjs +27 -24
  310. package/frontend-vue/layers/dms-core/app/build/utils/asyncDataScope.ts +3 -31
  311. package/frontend-vue/layers/dms-core/app/build/utils/previewFrame.ts +6 -1
  312. package/frontend-vue/layers/dms-core/app/composables/auth/useAuthFetch.ts +8 -2
  313. package/frontend-vue/layers/dms-core/app/utils/localFetchAnswers.ts +124 -0
  314. package/frontend-vue/layers/dms-core/app/utils/textDigest.ts +29 -0
  315. package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +4 -0
  316. package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +4 -0
  317. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +89 -31
  318. package/frontend-vue/layers/dms-layout/app/build/components/layout/MockupSidebarMenu.vue +21 -6
  319. package/frontend-vue/layers/dms-layout/app/build/components/layout/SidebarUserMenu.vue +61 -8
  320. package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupMenu.ts +79 -9
  321. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsNav.vue +57 -8
  322. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue +12 -0
  323. package/frontend-vue/layers/dms-layout/app/build/composables/settings/useSettingsNavigation.ts +42 -62
  324. package/frontend-vue/layers/dms-layout/app/build/mockups/created-mockups.ts +12 -2
  325. package/frontend-vue/layers/dms-layout/app/build/mockups/created-toast.ts +9 -1
  326. package/frontend-vue/layers/dms-layout/app/composables/page/useMockupStoreInstaller.ts +85 -0
  327. package/frontend-vue/layers/dms-layout/app/custom-layouts/MockupLayout.vue +0 -2
  328. package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +53 -6
  329. package/frontend-vue/layers/dms-layout/app/plugins/mockup-store-installer.ts +10 -0
  330. package/frontend-vue/layers/dms-layout/app/plugins/registered-sidebar-widgets.ts +10 -0
  331. package/frontend-vue/layers/dms-layout/app/plugins/seo.ts +7 -0
  332. package/frontend-vue/layers/dms-layout/app/theme/actions.ts +11 -7
  333. package/frontend-vue/layers/dms-onboarding/app/middleware/onboarding.global.ts +3 -3
  334. package/frontend-vue/layers/dms-onboarding/app/plugins/onboarding-preload.ts +5 -1
  335. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +31 -5
  336. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupCanvasChrome.vue +2 -2
  337. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabase.vue +204 -0
  338. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabaseData.vue +288 -0
  339. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabaseDiagram.vue +91 -0
  340. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabaseRelationEdge.vue +40 -0
  341. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabaseTableNode.vue +133 -0
  342. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEmptyState.vue +23 -0
  343. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModuleStore.vue +240 -0
  344. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +54 -33
  345. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSectionLabel.vue +52 -0
  346. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +65 -12
  347. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPagesList.vue +21 -0
  348. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinCard.vue +1 -1
  349. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinLayer.vue +1 -1
  350. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupReconnecting.vue +17 -0
  351. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTenantBanner.vue +48 -0
  352. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTitle.vue +24 -15
  353. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupToolbar.vue +196 -0
  354. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +200 -179
  355. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWarningsMenu.vue +59 -0
  356. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +152 -57
  357. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkspaceSwitcher.vue +142 -0
  358. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewAdmission.ts +20 -0
  359. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCapture.ts +71 -4
  360. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +44 -4
  361. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewSwapHold.ts +157 -0
  362. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/registeredSidebarWidgets.ts +20 -0
  363. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/storeModuleInstaller.ts +32 -0
  364. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockInspector.ts +14 -2
  365. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +309 -41
  366. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useFixtureBatches.ts +154 -0
  367. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupActivation.ts +182 -0
  368. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupConnectionTables.ts +80 -0
  369. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDatabase.ts +212 -0
  370. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupEditing.ts +13 -1
  371. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupFrameRender.ts +126 -0
  372. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupFrameSize.ts +10 -5
  373. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +50 -23
  374. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +103 -29
  375. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageZoom.ts +146 -0
  376. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPdfExport.ts +124 -0
  377. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPins.ts +1 -1
  378. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRealData.ts +11 -4
  379. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRoutePage.ts +60 -14
  380. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSession.ts +8 -3
  381. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +6 -2
  382. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupTenancy.ts +36 -0
  383. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupToolModes.ts +5 -7
  384. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerActivation.ts +59 -0
  385. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerExport.ts +46 -0
  386. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +44 -10
  387. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +13 -2
  388. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupWarningFocus.ts +145 -0
  389. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useOverviewCaptures.ts +39 -10
  390. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePersistedCaptures.ts +151 -0
  391. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +41 -0
  392. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +37 -3
  393. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCreateModal.vue +130 -0
  394. package/frontend-vue/layers/dms-ui/app/build/mockups/manage.ts +20 -1
  395. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +137 -78
  396. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewChannel.ts +1 -8
  397. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +165 -103
  398. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewNavigation.ts +321 -0
  399. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewRects.ts +22 -0
  400. package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +112 -175
  401. package/frontend-vue/layers/dms-ui/app/build/utils/mockupActivation.ts +120 -0
  402. package/frontend-vue/layers/dms-ui/app/build/utils/mockupAnnotations.ts +146 -0
  403. package/frontend-vue/layers/dms-ui/app/build/utils/mockupCaptures.ts +118 -9
  404. package/frontend-vue/layers/dms-ui/app/build/utils/mockupDiagram.ts +330 -0
  405. package/frontend-vue/layers/dms-ui/app/build/utils/mockupEntities.ts +80 -0
  406. package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +123 -8
  407. package/frontend-vue/layers/dms-ui/app/build/utils/mockupLinks.ts +11 -2
  408. package/frontend-vue/layers/dms-ui/app/build/utils/mockupModuleNavigation.ts +215 -0
  409. package/frontend-vue/layers/dms-ui/app/build/utils/mockupModules.ts +240 -0
  410. package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +21 -3
  411. package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverviewSections.ts +66 -0
  412. package/frontend-vue/layers/dms-ui/app/build/utils/mockupPageTree.ts +15 -0
  413. package/frontend-vue/layers/dms-ui/app/build/utils/mockupPins.ts +6 -8
  414. package/frontend-vue/layers/dms-ui/app/build/utils/mockupRealData.ts +23 -5
  415. package/frontend-vue/layers/dms-ui/app/build/utils/mockupRows.ts +83 -0
  416. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSchema.ts +173 -0
  417. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSettings.ts +218 -0
  418. package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +17 -6
  419. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +20 -0
  420. package/frontend-vue/layers/dms-ui/app/build/utils/mockupStatePatch.ts +180 -0
  421. package/frontend-vue/layers/dms-ui/app/build/utils/mockupStream.ts +17 -2
  422. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenancy.ts +148 -0
  423. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenants.ts +23 -0
  424. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTitles.ts +33 -0
  425. package/frontend-vue/layers/dms-ui/app/build/utils/mockupVersions.ts +2 -7
  426. package/frontend-vue/layers/dms-ui/app/build/utils/previewFixtureAnswers.ts +156 -0
  427. package/frontend-vue/layers/dms-ui/app/build/utils/previewFixturesOnly.ts +37 -19
  428. package/frontend-vue/layers/dms-ui/app/build/utils/previewOptionRules.ts +129 -0
  429. package/frontend-vue/layers/dms-ui/app/build/utils/previewPageLayout.ts +108 -6
  430. package/frontend-vue/layers/dms-ui/app/build/utils/previewPageQuery.ts +5 -1
  431. package/frontend-vue/layers/dms-ui/app/build/utils/previewRows.ts +400 -0
  432. package/frontend-vue/layers/dms-ui/app/build/utils/recordGuards.ts +15 -0
  433. package/frontend-vue/layers/dms-ui/app/build/utils/settingsGroups.ts +73 -0
  434. package/frontend-vue/layers/dms-ui/app/build/utils/sketch.ts +68 -12
  435. package/frontend-vue/layers/dms-ui/app/build/utils/urlVariables.ts +15 -0
  436. package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +61 -12
  437. package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +4 -1
  438. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupModuleStore.ts +2 -0
  439. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupTenantBanner.ts +2 -0
  440. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupWorkspaceSwitcher.ts +2 -0
  441. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/registeredSidebarWidgets.ts +1 -0
  442. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/storeModuleInstaller.ts +1 -0
  443. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useFixtureBatches.ts +1 -0
  444. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupActivation.ts +1 -0
  445. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupOverview.ts +1 -0
  446. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupPdfExport.ts +1 -0
  447. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupRoutePage.ts +1 -0
  448. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupSession.ts +1 -0
  449. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupTenancy.ts +1 -0
  450. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/usePersistedCaptures.ts +1 -0
  451. package/frontend-vue/layers/dms-ui/app/entries/utils/blockPreview.ts +1 -0
  452. package/frontend-vue/layers/dms-ui/app/entries/utils/json.ts +1 -0
  453. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupActivation.ts +1 -0
  454. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupAnnotations.ts +1 -0
  455. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupDiagram.ts +1 -0
  456. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupModuleNavigation.ts +1 -0
  457. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupOverviewSections.ts +1 -0
  458. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupRows.ts +1 -0
  459. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSchema.ts +1 -0
  460. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSettings.ts +1 -0
  461. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupStatePatch.ts +1 -0
  462. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenancy.ts +1 -0
  463. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenants.ts +1 -0
  464. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTitles.ts +1 -0
  465. package/frontend-vue/layers/dms-ui/app/entries/utils/previewFixtureAnswers.ts +1 -0
  466. package/frontend-vue/layers/dms-ui/app/entries/utils/previewRows.ts +1 -0
  467. package/frontend-vue/layers/dms-ui/app/entries/utils/settingsGroups.ts +1 -0
  468. package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +85 -7
  469. package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +85 -7
  470. package/frontend-vue/package.json +2 -2
  471. package/frontend-vue/scripts/test-dms-components.mjs +1 -1
  472. package/package.json +6 -5
  473. package/dist/mockup/row-filters.d.ts +0 -8
  474. package/dist/mockup/row-filters.js +0 -107
  475. package/dist/mockup/row-filters.js.map +0 -1
  476. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModules.vue +0 -47
  477. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewZoom.vue +0 -67
package/CHANGELOG.md CHANGED
@@ -1,53 +1,5 @@
1
1
  # Changelog
2
2
 
3
- ## v0.25.8
4
-
5
- [compare changes](https://github.com/AntelopeJS/dms/compare/v0.25.7...v0.25.8)
6
-
7
- ### 🚀 Enhancements
8
-
9
- - **mockup:** Drop the 50-page cap of a mockup spec ([#1359](https://github.com/AntelopeJS/dms/pull/1359))
10
- - **e2e:** Let a suite choose its workers with DMS_E2E_WORKERS ([#1366](https://github.com/AntelopeJS/dms/pull/1366))
11
-
12
- ### 🔥 Performance
13
-
14
- - **e2e:** Boot the first journey's standby backend while the run starts ([#1367](https://github.com/AntelopeJS/dms/pull/1367))
15
-
16
- ### 🩹 Fixes
17
-
18
- - **deps:** Land the non-major dependency updates of #1353 ([#1360](https://github.com/AntelopeJS/dms/pull/1360))
19
- - **frontend-vue:** Wrap the empty state of a horizontally scrolled table ([#1361](https://github.com/AntelopeJS/dms/pull/1361))
20
- - **builder:** Keep the grouped and kanban options ConfigureTableView does not set ([#1364](https://github.com/AntelopeJS/dms/pull/1364))
21
- - **mockup:** Carry a table's routeParamFilters between a mockup and its live page ([#1365](https://github.com/AntelopeJS/dms/pull/1365))
22
- - **e2e:** Retry a failed journey once on every event ([#1387](https://github.com/AntelopeJS/dms/pull/1387))
23
- - **builder:** Refuse ConfigureTableView over a display option written in code ([#1386](https://github.com/AntelopeJS/dms/pull/1386))
24
- - **playground:** Typecheck the playground Vue frontend in CI ([#1389](https://github.com/AntelopeJS/dms/pull/1389))
25
-
26
- ### 📖 Documentation
27
-
28
- - **mockup:** Name fr and en as the page locales of a mockup ([#1362](https://github.com/AntelopeJS/dms/pull/1362))
29
- - **e2e:** Document the e2e kit on the docs site and delete E2E.md ([#1391](https://github.com/AntelopeJS/dms/pull/1391))
30
-
31
- ### 📦 Build
32
-
33
- - **deps:** Update the AntelopeJS module locks ([#1385](https://github.com/AntelopeJS/dms/pull/1385))
34
-
35
- ### 🏡 Chore
36
-
37
- - **deps:** Update dependency chai to v6 ([#1375](https://github.com/AntelopeJS/dms/pull/1375))
38
- - **deps:** Update dependency globals to v17 ([#1376](https://github.com/AntelopeJS/dms/pull/1376))
39
- - **deps:** Update dependency release-it to v21 ([#1381](https://github.com/AntelopeJS/dms/pull/1381))
40
- - **deps:** Update dependency rethinkdb-ts to v3 ([#1382](https://github.com/AntelopeJS/dms/pull/1382))
41
-
42
- ### ✅ Tests
43
-
44
- - **mockup:** Wait for the state frame of the events stream ([#1363](https://github.com/AntelopeJS/dms/pull/1363))
45
-
46
- ### ❤️ Contributors
47
-
48
- - Maxime Westhoven
49
- - Antony Rizzitelli
50
-
51
3
  ## v0.25.7
52
4
 
53
5
  [compare changes](https://github.com/AntelopeJS/dms/compare/v0.25.6...v0.25.7)
package/E2E.md ADDED
@@ -0,0 +1,138 @@
1
+ # The e2e kit
2
+
3
+ `@antelopejs/dms/e2e` is a Playwright setup for a DMS repository. The global setup of its config prepares the playground and starts a run for each worker for the whole invocation: a copy of the playground on free ports, its own MongoDB, a mail sink and the built dashboard. It stops the runs after the last test. A spec is ordinary Playwright: it imports `test` and `expect` from the kit, and its fixtures give it a fresh database, an administrator and the run's dashboard as `baseURL`. `registerJourneys()` turns the journeys of `e2e/journeys/` into tests on the same fixtures.
4
+
5
+ ## Configure a suite
6
+
7
+ `e2e/playwright.config.ts`:
8
+
9
+ ```ts
10
+ import { e2eConfig } from "@antelopejs/dms/e2e";
11
+
12
+ export default e2eConfig();
13
+ ```
14
+
15
+ `e2e/zz-journeys.spec.ts`:
16
+
17
+ ```ts
18
+ import { registerJourneys } from "@antelopejs/dms/e2e";
19
+
20
+ await registerJourneys();
21
+ ```
22
+
23
+ `e2e/journeys.config.ts` declares the suite's run and its journeys:
24
+
25
+ ```ts
26
+ import type { JourneysConfig } from "@antelopejs/dms/e2e";
27
+
28
+ export default {
29
+ playground: "packages/dms/playground",
30
+ prepare: [
31
+ ["pnpm", "install", "--frozen-lockfile", "--prefer-offline", "--ignore-scripts"],
32
+ ["pnpm", "--dir", "packages/dms", "build"],
33
+ ["pnpm", "--dir", "packages/dms/playground", "build"],
34
+ ],
35
+ smoke: "smoke",
36
+ } satisfies JourneysConfig;
37
+ ```
38
+
39
+ - `playground`: the playground folder, relative to the repository root, or absolute for a playground in another checkout.
40
+ - `renderer`: the built `@antelopejs/dms-frontend` checkout the run serves, for the repository that is the renderer. Without it, the playground's installed one.
41
+ - `prepare`: the install and build commands the global setup runs before the run starts.
42
+ - `smoke`: the feature whose journeys run first.
43
+
44
+ Each `*.mjs` file of `e2e/journeys/` is a feature, named after the file, and exports its `journeys`. The helpers they import live in subfolders or outside `e2e/journeys/`.
45
+
46
+ `e2eConfig` and `startRun` of `@antelopejs/dms/e2e/run` take these options:
47
+
48
+ - `config`: a journeys config file relative to the repository root, whose journeys are the `*.mjs` files of `journeys/` beside it, for a second suite (`e2eConfig({ config: "e2e/builder/journeys.config.ts" })`). It defaults to `e2e/journeys.config.ts`.
49
+ - `frontend: "dev"`: the run serves the dashboard with `ajs dms dev`, and the suite runs only the journeys that set `frontend: "dev"`. A suite without it serves a build and leaves those journeys out. Its test output and report folders end in `-dev`.
50
+
51
+ `registerJourneys()` reads both from the config that loaded it.
52
+
53
+ A suite runs on two workers, or as many as `DMS_E2E_WORKERS` says. The global setup starts a run for each, with its own playground copy, ports, MongoDB, mail sink, backends and dashboard, and each worker runs its tests one at a time against its own run, taking the next test in order, the files in alphabetical order. Each test on a fresh database gets a backend that has served nothing else, booted ahead of it: the run boots the first one while its dashboard starts, and each test boots the next one while it runs, so only a test that follows one shorter than a backend boot waits for the rest of it. `--workers=N` starts N runs. With `DMS_E2E_RUN`, the suite runs on one worker. A config that starts a `webServer`, such as a mock of an outside API, shares it between the workers, so the global setup refuses more than one: set `workers: 1` with `defineConfig(e2eConfig(), { workers: 1, webServer })`. `registerJourneys()` registers the journeys of the config's `smoke` feature first, then the other features in alphabetical order, then every journey marked `last`, so `--grep @smoke` runs the `smoke` journey before the other journeys. Name the journeys file so that it sorts after the specs (`zz-journeys.spec.ts`): a journey marked `last` changes the playground of its worker's run for the backends that follow, and a spec that sorts after it on that worker cannot start its backend. `--shard=i/N` splits a suite across machines, each with a run of its own.
54
+
55
+ ## Write a spec
56
+
57
+ `e2e/members.spec.ts`:
58
+
59
+ ```ts
60
+ import { expect, test } from "@antelopejs/dms/e2e";
61
+
62
+ test("the administrator opens the members page", async ({ adminPage }) => {
63
+ await adminPage.goto("/settings/workspace/members");
64
+ await expect(adminPage.getByRole("heading", { name: "Members", exact: true })).toBeVisible();
65
+ });
66
+ ```
67
+
68
+ The fixtures:
69
+
70
+ - `run`: the run the global setup started for the worker, which only its tests drive: its `webUrl`, `apiUrl`, `accounts` and `evidence` folder.
71
+ - `baseURL`: the run's dashboard, so `page.goto("/settings")` opens it.
72
+ - `dms`: the test's journey context. Before the test, it prepares the run as a journey's run does: a fresh database with a backend of its own, and an onboarded administrator. The test drives the run through it: `dms.tab(account)`, `dms.api(label, request)`, `dms.mail(accept)`, `dms.email(name)`, `dms.unique(prefix)` and `dms.verify(label, checks)`. After the test, it closes the tabs, judges the `verify` steps, and replays them into the report. A failing step attaches its screenshot and ARIA snapshot, and a failed test attaches the backend's log. The evidence goes to `<run>/evidence/<feature>/<test>/`. A test whose preparation fails does not run.
73
+ - `adminPage`: a tab of `dms` that the administrator signed in on.
74
+ - `dmsOptions`: how `dms` prepares the test, with the fields of a journey: `test.use({ dmsOptions: { database: "shared", onboard: false, backend: "dev", standby: false, knownFailures: { … } } })`.
75
+
76
+ Playwright's own `page` opens the run's dashboard on the database the previous test left. A test that needs a fresh database uses `dms` or `adminPage`.
77
+
78
+ ## Journey fields for the suite
79
+
80
+ - `tag`: Playwright tags, such as `@smoke`.
81
+ - `knownFailures`: the name of each check that fails today, mapped to the finding that makes it fail. A listed check that fails does not fail the journey. A listed check that passes does.
82
+ - `last: true`: runs the journey after all others, for a journey that changes the run's playground for later backends.
83
+ - `frontend: "dev"`: the journey needs the development dashboard, for UI that only `import.meta.env.DEV` renders. A suite without `frontend: "dev"` leaves it out.
84
+ - `database`, `onboard`, `backend` and `standby`: how the run is prepared for the journey, as `dmsOptions` does for a spec.
85
+
86
+ ## Start a run from node:test
87
+
88
+ `@antelopejs/dms/e2e/run` starts the same run as the global setup, for a test runner without Playwright. It loads no `@playwright/test`. `startRun` takes the options of `e2eConfig` plus `prepare`, which runs the config's `prepare` commands unless `DMS_E2E_PREBUILT=1`. It returns the ready `run` and `stop`, which stops every process the run started. `onboard(run, {})` creates and signs in the administrator, and `apiRequest(run, { method, path, body, as })` calls the backend as `admin`, another account of `run.accounts`, or `anon`. Each request and its answer go to the run's `evidence/` folder.
89
+
90
+ `test/cli.test.mjs`:
91
+
92
+ ```js
93
+ import assert from "node:assert/strict";
94
+ import { after, before, test } from "node:test";
95
+ import { apiRequest, onboard, startRun } from "@antelopejs/dms/e2e/run";
96
+
97
+ /** @type {Awaited<ReturnType<typeof startRun>>} */
98
+ let started;
99
+ before(async () => {
100
+ started = await startRun();
101
+ await onboard(started.run, {});
102
+ });
103
+ after(() => started?.stop());
104
+
105
+ test("the administrator reads the onboarding state", async () => {
106
+ const answer = await apiRequest(started.run, {
107
+ method: "GET",
108
+ path: "/api/onboarding/informations",
109
+ as: "admin",
110
+ });
111
+ assert.deepEqual(answer.body, { has_onboarded: true });
112
+ });
113
+ ```
114
+
115
+ `run.apiUrl` and `run.webUrl` are the backend's and the dashboard's addresses, for a CLI or an HTTP client of the test's own.
116
+
117
+ ## Environment
118
+
119
+ - `DMS_E2E_PREBUILT=1`: the global setup and `startRun` skip the config's `prepare` commands (install and build), for a checkout an earlier run prepared.
120
+ - `DMS_E2E_RUN=<run folder>`: the tests drive that run, such as one `startRun` started, and the suite stops nothing. A run whose dashboard is not served the way the suite asks is refused.
121
+ - `DMS_E2E_RUNS`: the folder the run folders go to.
122
+ - `DMS_E2E_WORKERS=<n>`: the suite runs on `n` workers, each with a run of its own, in place of two. Raise it on a runner with the cores and memory for more runs; `--workers=N` and a config's `workers` still take precedence.
123
+ - `DMS_E2E_NO_STANDBY=1`: each fresh database's backend starts when the test needs it, rather than one ahead, the first test's included.
124
+ - `DMS_E2E_SHUFFLE=<seed>`: `registerJourneys()` registers the journeys not marked `last` in an order drawn from the seed, the same for the same seed, and the `last` ones after them. A suite that passes under several seeds holds no journey that depends on another's state.
125
+
126
+ ## Port recipe
127
+
128
+ 1. Pin `@antelopejs/dms` to the exact preview that `next` publishes (dist-tag `next`). A range such as `>=0.20.2 <0.21.0` does not match a prerelease. Add `@playwright/test` `~1.65.0` as a devDependency, on the line of the `playwright-core` that `@antelopejs/dms` resolves.
129
+ 2. Add the three files above, an `e2e/tsconfig.json` (`allowJs`, `noEmit`, `nodenext`), and the script `"e2e": "playwright test -c e2e"`.
130
+ 3. Move the skill's `journeys/` folder to `e2e/journeys/`, with the helpers it imports in subfolders or beside it in `e2e/`.
131
+ 4. Give each journey that needs the development dashboard `frontend: "dev"`, and add `e2e/playwright.dev.config.ts` with `e2eConfig({ frontend: "dev" })`. Run it with `playwright test -c e2e/playwright.dev.config.ts`.
132
+ 5. A journey that fails today because of a product finding gets `knownFailures`, never a skip. A journey that changes the run's playground for later backends gets `last: true`.
133
+ 6. Tag `@smoke` on about 5 fast journeys, the `smoke` journey first, none that needs `backend: "watch"`, `withBaseBackend`, `standby: false` or `frontend: "dev"`.
134
+ 7. Copy AntelopeJS/dms's `e2e.yml` reusable workflow, which holds the `e2e` and `e2e-report` jobs, and the `e2e` job of its `ci.yml` that calls it with the tier, along with the `e2e` line of its `ubuntu` gate. Nothing runs on a draft or the none tier. A pull request runs `--grep @smoke`. The merge queue, a manual run, a pull request labelled `ci:full` and the nightly schedule run the whole suite with `--shard=i/N --add-reporter=blob`, which keeps the config's reporters, with N chosen so that one shard stays under about 30 minutes, and `e2e-report` merges the shards' blob reports. A dev config runs in the same job, after the build config.
135
+
136
+ ## Move off verify.config.ts
137
+
138
+ The kit reads only `e2e/journeys.config.ts`, or the file `config` names. A suite whose config is still a verify skill's `verify.config.ts` moves before it upgrades: copy its `playground`, `renderer`, `prepare` and `smoke` into `e2e/journeys.config.ts`, move its journeys to `e2e/journeys/` and a playground that lives in the skill folder to `e2e/`, and drop `skill` from `e2eConfig`, which now refuses it.
package/README.md CHANGED
@@ -87,9 +87,9 @@ export class SalesPage extends PageController("sales", {
87
87
  | `@antelopejs/interface-database` | `>=0.4.5 <0.5.0` | `0.4.5` |
88
88
  | `@antelopejs/interface-database-catalog` | `>=0.1.1 <0.2.0` | `0.1.1` |
89
89
  | `@antelopejs/interface-database-decorators` | `>=0.5.4 <0.6.0` | `0.5.4` |
90
- | `@antelopejs/interface-dms` | `^0.17.5` | `0.17.5` |
90
+ | `@antelopejs/interface-dms` | `^0.17.4` | `0.17.4` |
91
91
  | `@antelopejs/interface-dms-automation` | `>=0.7.0 <0.8.0` | `0.7.2` |
92
- | `@antelopejs/interface-dms-builder` | `^0.6.5` | `0.6.5` |
92
+ | `@antelopejs/interface-dms-builder` | `^0.6.4` | `0.6.4` |
93
93
  | `@antelopejs/interface-email` | `>=0.2.2 <0.3.0` | `0.2.2` |
94
94
  | `@antelopejs/interface-file-storage` | `>=0.1.10 <0.2.0` | `0.1.10` |
95
95
  | `@antelopejs/interface-redis` | `>=0.0.9 <0.1.0` | `0.0.11` |
@@ -6,6 +6,7 @@
6
6
  {
7
7
  "id": "orders",
8
8
  "title": "Orders",
9
+ "description": "Revenue, orders and refunds over the period, and every order placed.",
9
10
  "options": { "theme": "light", "locale": "en" },
10
11
  "fixtures": {
11
12
  "revenue": {
@@ -40,6 +41,17 @@
40
41
  }
41
42
  },
42
43
  "tree": [
44
+ {
45
+ "id": "toolbar",
46
+ "type": "PageToolbar",
47
+ "children": [
48
+ {
49
+ "id": "period",
50
+ "type": "PeriodSelector",
51
+ "options": { "defaultPreset": "last-7-days" }
52
+ }
53
+ ]
54
+ },
43
55
  {
44
56
  "type": "Grid",
45
57
  "options": { "gap": "1rem", "minColumnWidth": "220px" },
@@ -139,6 +151,7 @@
139
151
  {
140
152
  "id": "customer",
141
153
  "title": "Customer",
154
+ "description": "One customer's account details.",
142
155
  "options": { "theme": "dark" },
143
156
  "tree": [
144
157
  {