@almadar/std 14.26.0 → 14.28.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 (175) hide show
  1. package/behaviors/registry/app/atoms/std-applicant.orb +496 -42
  2. package/behaviors/registry/app/atoms/std-approval-chain.orb +106 -0
  3. package/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
  4. package/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
  5. package/behaviors/registry/app/atoms/std-change-order.orb +565 -307
  6. package/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
  7. package/behaviors/registry/app/atoms/std-checkin.orb +434 -270
  8. package/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
  9. package/behaviors/registry/app/atoms/std-class-session.orb +485 -104
  10. package/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
  11. package/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
  12. package/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
  13. package/behaviors/registry/app/atoms/std-donor.orb +445 -135
  14. package/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
  15. package/behaviors/registry/app/atoms/std-driver.orb +465 -480
  16. package/behaviors/registry/app/atoms/std-dunning.orb +450 -512
  17. package/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
  18. package/behaviors/registry/app/atoms/std-event.orb +465 -667
  19. package/behaviors/registry/app/atoms/std-health-score.orb +368 -371
  20. package/behaviors/registry/app/atoms/std-help-article.orb +373 -506
  21. package/behaviors/registry/app/atoms/std-help-category.orb +344 -359
  22. package/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
  23. package/behaviors/registry/app/atoms/std-invoice.orb +494 -291
  24. package/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
  25. package/behaviors/registry/app/atoms/std-lease.orb +506 -190
  26. package/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
  27. package/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
  28. package/behaviors/registry/app/atoms/std-matter.orb +486 -318
  29. package/behaviors/registry/app/atoms/std-membership.orb +512 -102
  30. package/behaviors/registry/app/atoms/std-menu.orb +775 -183
  31. package/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
  32. package/behaviors/registry/app/atoms/std-multi-party-transaction.orb +130 -0
  33. package/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
  34. package/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
  35. package/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
  36. package/behaviors/registry/app/atoms/std-pipeline.orb +139 -0
  37. package/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
  38. package/behaviors/registry/app/atoms/std-receipt.orb +553 -44
  39. package/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
  40. package/behaviors/registry/app/atoms/std-recurring-schedule.orb +94 -0
  41. package/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
  42. package/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
  43. package/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
  44. package/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
  45. package/behaviors/registry/app/atoms/std-rfi.orb +502 -461
  46. package/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  47. package/behaviors/registry/app/atoms/std-segment.orb +360 -98
  48. package/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  49. package/behaviors/registry/app/atoms/std-submittal.orb +538 -526
  50. package/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  51. package/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
  52. package/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
  53. package/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
  54. package/behaviors/registry/app/atoms/std-tenant.orb +525 -66
  55. package/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
  56. package/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
  57. package/behaviors/registry/app/atoms/std-timeline.orb +108 -0
  58. package/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
  59. package/behaviors/registry/app/atoms/std-trial.orb +410 -317
  60. package/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
  61. package/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  62. package/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
  63. package/behaviors/registry/app/atoms/std-wizard-branching.orb +129 -0
  64. package/behaviors/registry/app/atoms/std-work-order.orb +628 -240
  65. package/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
  66. package/behaviors/registry/app/molecules/std-application.orb +178 -263
  67. package/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
  68. package/behaviors/registry/app/molecules/std-cart.orb +78 -72
  69. package/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
  70. package/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
  71. package/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
  72. package/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
  73. package/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
  74. package/behaviors/registry/core/atoms/std-board.orb +1367 -0
  75. package/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
  76. package/behaviors/registry/core/atoms/std-event-log.orb +777 -0
  77. package/behaviors/registry/core/atoms/std-file-store.orb +534 -164
  78. package/behaviors/registry/core/atoms/std-gallery.orb +118 -101
  79. package/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
  80. package/behaviors/registry/core/atoms/std-multi-party-flow.orb +1313 -0
  81. package/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
  82. package/behaviors/registry/core/atoms/std-recurrence.orb +937 -0
  83. package/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
  84. package/behaviors/registry/core/atoms/std-step-flow.orb +1155 -0
  85. package/behaviors/registry/core/atoms/std-version-history.orb +454 -430
  86. package/behaviors/registry/core/atoms/std-wizard.orb +1085 -0
  87. package/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
  88. package/dist/behaviors/registry/app/atoms/std-applicant.orb +496 -42
  89. package/dist/behaviors/registry/app/atoms/std-approval-chain.orb +106 -0
  90. package/dist/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
  91. package/dist/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
  92. package/dist/behaviors/registry/app/atoms/std-change-order.orb +565 -307
  93. package/dist/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
  94. package/dist/behaviors/registry/app/atoms/std-checkin.orb +434 -270
  95. package/dist/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
  96. package/dist/behaviors/registry/app/atoms/std-class-session.orb +485 -104
  97. package/dist/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
  98. package/dist/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
  99. package/dist/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
  100. package/dist/behaviors/registry/app/atoms/std-donor.orb +445 -135
  101. package/dist/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
  102. package/dist/behaviors/registry/app/atoms/std-driver.orb +465 -480
  103. package/dist/behaviors/registry/app/atoms/std-dunning.orb +450 -512
  104. package/dist/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
  105. package/dist/behaviors/registry/app/atoms/std-event.orb +465 -667
  106. package/dist/behaviors/registry/app/atoms/std-health-score.orb +368 -371
  107. package/dist/behaviors/registry/app/atoms/std-help-article.orb +373 -506
  108. package/dist/behaviors/registry/app/atoms/std-help-category.orb +344 -359
  109. package/dist/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
  110. package/dist/behaviors/registry/app/atoms/std-invoice.orb +494 -291
  111. package/dist/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
  112. package/dist/behaviors/registry/app/atoms/std-lease.orb +506 -190
  113. package/dist/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
  114. package/dist/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
  115. package/dist/behaviors/registry/app/atoms/std-matter.orb +486 -318
  116. package/dist/behaviors/registry/app/atoms/std-membership.orb +512 -102
  117. package/dist/behaviors/registry/app/atoms/std-menu.orb +775 -183
  118. package/dist/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
  119. package/dist/behaviors/registry/app/atoms/std-multi-party-transaction.orb +130 -0
  120. package/dist/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
  121. package/dist/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
  122. package/dist/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
  123. package/dist/behaviors/registry/app/atoms/std-pipeline.orb +139 -0
  124. package/dist/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
  125. package/dist/behaviors/registry/app/atoms/std-receipt.orb +553 -44
  126. package/dist/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
  127. package/dist/behaviors/registry/app/atoms/std-recurring-schedule.orb +94 -0
  128. package/dist/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
  129. package/dist/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
  130. package/dist/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
  131. package/dist/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
  132. package/dist/behaviors/registry/app/atoms/std-rfi.orb +502 -461
  133. package/dist/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  134. package/dist/behaviors/registry/app/atoms/std-segment.orb +360 -98
  135. package/dist/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  136. package/dist/behaviors/registry/app/atoms/std-submittal.orb +538 -526
  137. package/dist/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  138. package/dist/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
  139. package/dist/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
  140. package/dist/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
  141. package/dist/behaviors/registry/app/atoms/std-tenant.orb +525 -66
  142. package/dist/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
  143. package/dist/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
  144. package/dist/behaviors/registry/app/atoms/std-timeline.orb +108 -0
  145. package/dist/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
  146. package/dist/behaviors/registry/app/atoms/std-trial.orb +410 -317
  147. package/dist/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
  148. package/dist/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  149. package/dist/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
  150. package/dist/behaviors/registry/app/atoms/std-wizard-branching.orb +129 -0
  151. package/dist/behaviors/registry/app/atoms/std-work-order.orb +628 -240
  152. package/dist/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
  153. package/dist/behaviors/registry/app/molecules/std-application.orb +178 -263
  154. package/dist/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
  155. package/dist/behaviors/registry/app/molecules/std-cart.orb +78 -72
  156. package/dist/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
  157. package/dist/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
  158. package/dist/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
  159. package/dist/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
  160. package/dist/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
  161. package/dist/behaviors/registry/core/atoms/std-board.orb +1367 -0
  162. package/dist/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
  163. package/dist/behaviors/registry/core/atoms/std-event-log.orb +777 -0
  164. package/dist/behaviors/registry/core/atoms/std-file-store.orb +534 -164
  165. package/dist/behaviors/registry/core/atoms/std-gallery.orb +118 -101
  166. package/dist/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
  167. package/dist/behaviors/registry/core/atoms/std-multi-party-flow.orb +1313 -0
  168. package/dist/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
  169. package/dist/behaviors/registry/core/atoms/std-recurrence.orb +937 -0
  170. package/dist/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
  171. package/dist/behaviors/registry/core/atoms/std-step-flow.orb +1155 -0
  172. package/dist/behaviors/registry/core/atoms/std-version-history.orb +454 -430
  173. package/dist/behaviors/registry/core/atoms/std-wizard.orb +1085 -0
  174. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
  175. package/package.json +1 -1
@@ -74,58 +74,7 @@
74
74
  "linkedEntity": "HelpCategory",
75
75
  "emits": [
76
76
  {
77
- "event": "VIEW",
78
- "payloadSchema": [
79
- {
80
- "name": "id",
81
- "type": "string",
82
- "required": true
83
- },
84
- {
85
- "name": "source",
86
- "type": "string"
87
- }
88
- ]
89
- },
90
- {
91
- "event": "EDIT",
92
- "payloadSchema": [
93
- {
94
- "name": "id",
95
- "type": "string",
96
- "required": true
97
- },
98
- {
99
- "name": "source",
100
- "type": "string"
101
- }
102
- ]
103
- },
104
- {
105
- "event": "CREATE",
106
- "payloadSchema": [
107
- {
108
- "name": "source",
109
- "type": "string"
110
- }
111
- ]
112
- },
113
- {
114
- "event": "REQUEST_DELETE",
115
- "payloadSchema": [
116
- {
117
- "name": "id",
118
- "type": "string",
119
- "required": true
120
- },
121
- {
122
- "name": "source",
123
- "type": "string"
124
- }
125
- ]
126
- },
127
- {
128
- "event": "PUBLISH",
77
+ "event": "OPEN_CATEGORY",
129
78
  "payloadSchema": [
130
79
  {
131
80
  "name": "id",
@@ -178,55 +127,25 @@
178
127
  ]
179
128
  },
180
129
  {
181
- "event": "ARCHIVE",
130
+ "event": "CLOSE_VIEW"
131
+ },
132
+ {
133
+ "event": "PUBLISH",
182
134
  "payloadSchema": [
183
135
  {
184
136
  "name": "id",
185
137
  "type": "string",
186
138
  "required": true
187
- },
188
- {
189
- "name": "row.id",
190
- "type": "string",
191
- "required": true
192
- },
193
- {
194
- "name": "row.name",
195
- "type": "string",
196
- "required": true
197
- },
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "event": "ARCHIVE",
144
+ "payloadSchema": [
198
145
  {
199
- "name": "row.slug",
146
+ "name": "id",
200
147
  "type": "string",
201
148
  "required": true
202
- },
203
- {
204
- "name": "row.description",
205
- "type": "string"
206
- },
207
- {
208
- "name": "row.icon",
209
- "type": "string"
210
- },
211
- {
212
- "name": "row.sortOrder",
213
- "type": "number"
214
- },
215
- {
216
- "name": "row.articleCount",
217
- "type": "number"
218
- },
219
- {
220
- "name": "row.status",
221
- "type": "string"
222
- },
223
- {
224
- "name": "row.updatedAt",
225
- "type": "string"
226
- },
227
- {
228
- "name": "row.pendingId",
229
- "type": "string"
230
149
  }
231
150
  ]
232
151
  },
@@ -260,7 +179,10 @@
260
179
  "isInitial": true
261
180
  },
262
181
  {
263
- "name": "viewing"
182
+ "name": "browsing"
183
+ },
184
+ {
185
+ "name": "viewing_single"
264
186
  },
265
187
  {
266
188
  "name": "error"
@@ -296,75 +218,17 @@
296
218
  ]
297
219
  },
298
220
  {
299
- "key": "REFRESH",
300
- "name": "Refresh",
301
- "payloadSchema": [
302
- {
303
- "name": "source",
304
- "type": "string"
305
- }
306
- ]
307
- },
308
- {
309
- "key": "SEARCH",
310
- "name": "Search",
311
- "payloadSchema": [
312
- {
313
- "name": "query",
314
- "type": "string"
315
- }
316
- ]
317
- },
318
- {
319
- "key": "FILTER_STATUS",
320
- "name": "Filter Status",
321
- "payloadSchema": [
322
- {
323
- "name": "status",
324
- "type": "string"
325
- }
326
- ]
327
- },
328
- {
329
- "key": "CREATE",
330
- "name": "Create",
331
- "payloadSchema": [
332
- {
333
- "name": "source",
334
- "type": "string"
335
- }
336
- ]
337
- },
338
- {
339
- "key": "VIEW",
340
- "name": "View",
341
- "payloadSchema": [
342
- {
343
- "name": "id",
344
- "type": "string",
345
- "required": true
346
- }
347
- ]
348
- },
349
- {
350
- "key": "EDIT",
351
- "name": "Edit",
221
+ "key": "OPEN_CATEGORY",
222
+ "name": "Open Category",
352
223
  "payloadSchema": [
353
224
  {
354
225
  "name": "id",
355
226
  "type": "string",
356
227
  "required": true
357
- }
358
- ]
359
- },
360
- {
361
- "key": "PUBLISH",
362
- "name": "Publish",
363
- "payloadSchema": [
228
+ },
364
229
  {
365
- "name": "id",
366
- "type": "string",
367
- "required": true
230
+ "name": "row",
231
+ "type": "HelpCategory"
368
232
  }
369
233
  ]
370
234
  },
@@ -380,8 +244,12 @@
380
244
  ]
381
245
  },
382
246
  {
383
- "key": "REQUEST_DELETE",
384
- "name": "Request Delete",
247
+ "key": "CLOSE_VIEW",
248
+ "name": "Close View"
249
+ },
250
+ {
251
+ "key": "PUBLISH",
252
+ "name": "Publish",
385
253
  "payloadSchema": [
386
254
  {
387
255
  "name": "id",
@@ -411,101 +279,87 @@
411
279
  "render-ui",
412
280
  "main",
413
281
  {
414
- "direction": "vertical",
415
- "align": "center",
416
282
  "className": "py-12",
283
+ "gap": "md",
284
+ "type": "stack",
285
+ "direction": "vertical",
417
286
  "children": [
418
287
  {
419
288
  "type": "spinner"
420
289
  },
421
290
  {
422
291
  "type": "typography",
292
+ "variant": "caption",
423
293
  "color": "muted",
424
- "content": "Loading help categories…",
425
- "variant": "caption"
294
+ "content": "Loading help categories…"
426
295
  }
427
296
  ],
428
- "type": "stack",
429
- "gap": "md"
297
+ "align": "center"
430
298
  }
431
299
  ]
432
300
  ]
433
301
  },
434
302
  {
435
303
  "from": "loading",
436
- "to": "viewing",
304
+ "to": "browsing",
437
305
  "event": "HelpCategoryLoaded",
438
306
  "effects": [
439
307
  [
440
308
  "render-ui",
441
309
  "main",
442
310
  {
443
- "direction": "vertical",
444
- "gap": "md",
445
- "type": "stack",
446
311
  "children": [
447
312
  {
448
- "type": "stack",
449
313
  "gap": "sm",
450
314
  "align": "center",
315
+ "type": "stack",
451
316
  "children": [
452
317
  {
453
318
  "type": "icon",
454
319
  "name": "folder"
455
320
  },
456
321
  {
457
- "type": "typography",
458
322
  "content": "@config.title",
323
+ "type": "typography",
459
324
  "variant": "h3"
460
- },
461
- {
462
- "children": {
463
- "type": "icon",
464
- "name": "info"
465
- },
466
- "trigger": "click",
467
- "type": "popover",
468
- "content": {
469
- "type": "typography",
470
- "content": "Categories group related help articles into navigable sections."
471
- },
472
- "position": "bottom"
473
- },
474
- {
475
- "action": "CREATE",
476
- "variant": "primary",
477
- "type": "button",
478
- "label": "New Category"
479
325
  }
480
326
  ],
481
327
  "direction": "horizontal"
482
328
  },
483
329
  {
484
- "columns": 3.0,
485
- "type": "feature-grid",
486
- "items": [
330
+ "cols": 4.0,
331
+ "children": [
487
332
  {
488
- "description": "Onboarding and first-day setup",
489
- "icon": "rocket",
490
- "title": "Getting Started"
333
+ "type": "stat-display",
334
+ "label": "Total categories",
335
+ "icon": "folder",
336
+ "value": "@payload.data.length"
491
337
  },
492
338
  {
493
- "description": "Pricing, invoices, and renewals",
494
- "icon": "credit-card",
495
- "title": "Billing & Plans"
339
+ "type": "stat-display",
340
+ "icon": "check-circle",
341
+ "value": "18",
342
+ "label": "Published"
496
343
  },
497
344
  {
498
- "icon": "code",
499
- "title": "API Reference",
500
- "description": "Endpoints, auth, and webhooks"
345
+ "type": "stat-display",
346
+ "value": "246",
347
+ "icon": "book-open",
348
+ "label": "Articles"
349
+ },
350
+ {
351
+ "value": "13",
352
+ "label": "Avg per category",
353
+ "icon": "bar-chart",
354
+ "type": "stat-display"
501
355
  }
502
- ]
356
+ ],
357
+ "type": "simple-grid"
503
358
  },
504
359
  {
505
360
  "type": "divider"
506
361
  },
507
362
  {
508
- "gap": "sm",
509
363
  "fields": [
510
364
  {
511
365
  "name": "name",
@@ -523,53 +377,43 @@
523
377
  "variant": "caption"
524
378
  },
525
379
  {
526
- "name": "sortOrder",
527
380
  "variant": "caption",
528
- "label": "Order"
381
+ "label": "Order",
382
+ "name": "sortOrder"
529
383
  },
530
384
  {
531
- "label": "Status",
385
+ "variant": "badge",
532
386
  "name": "status",
533
- "variant": "badge"
387
+ "label": "Status"
534
388
  },
535
389
  {
390
+ "label": "Updated",
536
391
  "name": "updatedAt",
537
- "variant": "caption",
538
- "label": "Updated"
392
+ "variant": "caption"
539
393
  }
540
394
  ],
541
395
  "cols": 1.0,
396
+ "entity": "@payload.data",
397
+ "gap": "sm",
398
+ "type": "data-grid",
542
399
  "itemActions": [
543
400
  {
544
- "label": "View",
545
- "variant": "secondary",
546
- "event": "VIEW"
547
- },
548
- {
549
- "event": "EDIT",
550
- "label": "Edit",
551
- "variant": "secondary"
552
- },
553
- {
554
- "event": "PUBLISH",
555
- "label": "Publish",
556
- "variant": "primary"
401
+ "event": "OPEN_CATEGORY",
402
+ "variant": "primary",
403
+ "label": "Open",
404
+ "icon": "arrow-right"
557
405
  },
558
406
  {
559
- "variant": "ghost",
560
407
  "label": "Archive",
561
- "event": "ARCHIVE"
562
- },
563
- {
564
- "variant": "danger",
565
- "label": "Delete",
566
- "event": "REQUEST_DELETE"
408
+ "event": "ARCHIVE",
409
+ "variant": "danger"
567
410
  }
568
- ],
569
- "type": "data-grid",
570
- "entity": "@payload.data"
411
+ ]
571
412
  }
572
- ]
413
+ ],
414
+ "gap": "md",
415
+ "direction": "vertical",
416
+ "type": "stack"
573
417
  }
574
418
  ]
575
419
  ]
@@ -583,64 +427,238 @@
583
427
  "render-ui",
584
428
  "main",
585
429
  {
430
+ "type": "alert",
586
431
  "variant": "error",
587
- "message": "@payload.message",
588
- "type": "alert"
432
+ "message": "@payload.message"
589
433
  }
590
434
  ]
591
435
  ]
592
436
  },
593
437
  {
594
- "from": "viewing",
595
- "to": "loading",
596
- "event": "REFRESH",
438
+ "from": "browsing",
439
+ "to": "viewing_single",
440
+ "event": "OPEN_CATEGORY",
597
441
  "effects": [
598
442
  [
599
- "fetch",
600
- "HelpCategory",
601
- {
602
- "emit": {
603
- "failure": "HelpCategoryLoadFailed",
604
- "success": "HelpCategoryLoaded"
605
- }
606
- }
443
+ "set",
444
+ "@entity.id",
445
+ "@payload.row.id"
446
+ ],
447
+ [
448
+ "set",
449
+ "@entity.name",
450
+ "@payload.row.name"
451
+ ],
452
+ [
453
+ "set",
454
+ "@entity.slug",
455
+ "@payload.row.slug"
456
+ ],
457
+ [
458
+ "set",
459
+ "@entity.description",
460
+ "@payload.row.description"
461
+ ],
462
+ [
463
+ "set",
464
+ "@entity.icon",
465
+ "@payload.row.icon"
466
+ ],
467
+ [
468
+ "set",
469
+ "@entity.sortOrder",
470
+ "@payload.row.sortOrder"
471
+ ],
472
+ [
473
+ "set",
474
+ "@entity.articleCount",
475
+ "@payload.row.articleCount"
476
+ ],
477
+ [
478
+ "set",
479
+ "@entity.status",
480
+ "@payload.row.status"
481
+ ],
482
+ [
483
+ "set",
484
+ "@entity.updatedAt",
485
+ "@payload.row.updatedAt"
607
486
  ],
608
487
  [
609
488
  "render-ui",
610
489
  "main",
611
490
  {
612
- "direction": "vertical",
613
491
  "gap": "md",
614
- "align": "center",
492
+ "type": "stack",
493
+ "direction": "vertical",
615
494
  "children": [
616
495
  {
617
- "type": "spinner"
496
+ "type": "stack",
497
+ "gap": "sm",
498
+ "children": [
499
+ {
500
+ "variant": "ghost",
501
+ "label": "Back",
502
+ "type": "button",
503
+ "action": "CLOSE_VIEW"
504
+ },
505
+ {
506
+ "type": "icon",
507
+ "name": "folder"
508
+ },
509
+ {
510
+ "type": "typography",
511
+ "content": "@entity.name",
512
+ "variant": "h3"
513
+ },
514
+ {
515
+ "label": "@entity.status",
516
+ "type": "badge",
517
+ "variant": "default"
518
+ }
519
+ ],
520
+ "direction": "horizontal",
521
+ "align": "center"
618
522
  },
619
523
  {
620
- "type": "typography",
621
- "content": "Refreshing help categories…",
622
- "variant": "caption",
623
- "color": "muted"
524
+ "type": "divider"
525
+ },
526
+ {
527
+ "gap": "sm",
528
+ "children": [
529
+ {
530
+ "type": "stack",
531
+ "gap": "md",
532
+ "direction": "horizontal",
533
+ "children": [
534
+ {
535
+ "content": "Slug",
536
+ "type": "typography",
537
+ "variant": "caption",
538
+ "color": "muted"
539
+ },
540
+ {
541
+ "type": "typography",
542
+ "variant": "body",
543
+ "content": "@entity.slug"
544
+ }
545
+ ]
546
+ },
547
+ {
548
+ "gap": "md",
549
+ "direction": "horizontal",
550
+ "children": [
551
+ {
552
+ "variant": "caption",
553
+ "color": "muted",
554
+ "type": "typography",
555
+ "content": "Description"
556
+ },
557
+ {
558
+ "variant": "body",
559
+ "type": "typography",
560
+ "content": "@entity.description"
561
+ }
562
+ ],
563
+ "type": "stack"
564
+ },
565
+ {
566
+ "type": "stack",
567
+ "direction": "horizontal",
568
+ "children": [
569
+ {
570
+ "variant": "caption",
571
+ "content": "Icon",
572
+ "type": "typography",
573
+ "color": "muted"
574
+ },
575
+ {
576
+ "content": "@entity.icon",
577
+ "type": "typography",
578
+ "variant": "body"
579
+ }
580
+ ],
581
+ "gap": "md"
582
+ }
583
+ ],
584
+ "direction": "vertical",
585
+ "type": "stack"
586
+ },
587
+ {
588
+ "type": "divider"
589
+ },
590
+ {
591
+ "children": [
592
+ {
593
+ "icon": "book-open",
594
+ "type": "stat-display",
595
+ "label": "Articles",
596
+ "value": "@entity.articleCount"
597
+ },
598
+ {
599
+ "icon": "list-ordered",
600
+ "label": "Sort order",
601
+ "type": "stat-display",
602
+ "value": "@entity.sortOrder"
603
+ },
604
+ {
605
+ "label": "Updated",
606
+ "type": "stat-display",
607
+ "icon": "calendar",
608
+ "value": "@entity.updatedAt"
609
+ }
610
+ ],
611
+ "type": "simple-grid",
612
+ "cols": 3.0
613
+ },
614
+ {
615
+ "type": "stack",
616
+ "align": "center",
617
+ "direction": "horizontal",
618
+ "gap": "sm",
619
+ "children": [
620
+ {
621
+ "variant": "primary",
622
+ "actionPayload": {
623
+ "id": "@entity.id"
624
+ },
625
+ "type": "button",
626
+ "label": "Publish",
627
+ "action": "PUBLISH"
628
+ },
629
+ {
630
+ "action": "ARCHIVE",
631
+ "type": "button",
632
+ "label": "Archive",
633
+ "variant": "danger",
634
+ "actionPayload": {
635
+ "id": "@entity.id"
636
+ }
637
+ }
638
+ ]
624
639
  }
625
- ],
626
- "type": "stack",
627
- "className": "py-12"
640
+ ]
628
641
  }
629
642
  ]
630
643
  ]
631
644
  },
632
645
  {
633
- "from": "viewing",
646
+ "from": "browsing",
634
647
  "to": "loading",
635
- "event": "SEARCH",
648
+ "event": "ARCHIVE",
636
649
  "effects": [
650
+ [
651
+ "set",
652
+ "@entity.id",
653
+ "@payload.id"
654
+ ],
637
655
  [
638
656
  "fetch",
639
657
  "HelpCategory",
640
658
  {
641
659
  "emit": {
642
- "success": "HelpCategoryLoaded",
643
- "failure": "HelpCategoryLoadFailed"
660
+ "failure": "HelpCategoryLoadFailed",
661
+ "success": "HelpCategoryLoaded"
644
662
  }
645
663
  }
646
664
  ],
@@ -648,30 +666,30 @@
648
666
  "render-ui",
649
667
  "main",
650
668
  {
651
- "direction": "vertical",
669
+ "align": "center",
670
+ "gap": "md",
671
+ "className": "py-12",
652
672
  "children": [
653
673
  {
654
674
  "type": "spinner"
655
675
  },
656
676
  {
657
677
  "type": "typography",
678
+ "content": "Archiving category…",
658
679
  "variant": "caption",
659
- "content": "Searching help categories…",
660
680
  "color": "muted"
661
681
  }
662
682
  ],
663
- "className": "py-12",
664
- "align": "center",
665
- "gap": "md",
666
- "type": "stack"
683
+ "type": "stack",
684
+ "direction": "vertical"
667
685
  }
668
686
  ]
669
687
  ]
670
688
  },
671
689
  {
672
- "from": "viewing",
690
+ "from": "viewing_single",
673
691
  "to": "loading",
674
- "event": "FILTER_STATUS",
692
+ "event": "CLOSE_VIEW",
675
693
  "effects": [
676
694
  [
677
695
  "fetch",
@@ -687,46 +705,30 @@
687
705
  "render-ui",
688
706
  "main",
689
707
  {
690
- "type": "stack",
691
708
  "gap": "md",
709
+ "align": "center",
692
710
  "className": "py-12",
711
+ "type": "stack",
712
+ "direction": "vertical",
693
713
  "children": [
694
714
  {
695
715
  "type": "spinner"
696
716
  },
697
717
  {
698
- "variant": "caption",
699
718
  "color": "muted",
719
+ "content": "Loading help categories…",
700
720
  "type": "typography",
701
- "content": "Filtering help categories…"
721
+ "variant": "caption"
702
722
  }
703
- ],
704
- "direction": "vertical",
705
- "align": "center"
706
- }
707
- ]
708
- ]
709
- },
710
- {
711
- "from": "viewing",
712
- "to": "viewing",
713
- "event": "CREATE",
714
- "effects": [
715
- [
716
- "render-ui",
717
- "main",
718
- {
719
- "variant": "info",
720
- "message": "Creating new help category",
721
- "type": "alert"
723
+ ]
722
724
  }
723
725
  ]
724
726
  ]
725
727
  },
726
728
  {
727
- "from": "viewing",
728
- "to": "viewing",
729
- "event": "VIEW",
729
+ "from": "viewing_single",
730
+ "to": "loading",
731
+ "event": "PUBLISH",
730
732
  "effects": [
731
733
  [
732
734
  "set",
@@ -734,61 +736,42 @@
734
736
  "@payload.id"
735
737
  ],
736
738
  [
737
- "render-ui",
738
- "main",
739
+ "fetch",
740
+ "HelpCategory",
739
741
  {
740
- "message": "Viewing help category",
741
- "type": "alert",
742
- "variant": "info"
742
+ "emit": {
743
+ "failure": "HelpCategoryLoadFailed",
744
+ "success": "HelpCategoryLoaded"
745
+ }
743
746
  }
744
- ]
745
- ]
746
- },
747
- {
748
- "from": "viewing",
749
- "to": "viewing",
750
- "event": "EDIT",
751
- "effects": [
752
- [
753
- "set",
754
- "@entity.id",
755
- "@payload.id"
756
747
  ],
757
748
  [
758
749
  "render-ui",
759
750
  "main",
760
751
  {
761
- "variant": "info",
762
- "message": "Editing help category",
763
- "type": "alert"
764
- }
765
- ]
766
- ]
767
- },
768
- {
769
- "from": "viewing",
770
- "to": "viewing",
771
- "event": "PUBLISH",
772
- "effects": [
773
- [
774
- "set",
775
- "@entity.id",
776
- "@payload.id"
777
- ],
778
- [
779
- "render-ui",
780
- "main",
781
- {
782
- "message": "Help category published",
783
- "type": "alert",
784
- "variant": "success"
752
+ "type": "stack",
753
+ "direction": "vertical",
754
+ "className": "py-12",
755
+ "children": [
756
+ {
757
+ "type": "spinner"
758
+ },
759
+ {
760
+ "type": "typography",
761
+ "variant": "caption",
762
+ "content": "Publishing category…",
763
+ "color": "muted"
764
+ }
765
+ ],
766
+ "align": "center",
767
+ "gap": "md"
785
768
  }
786
769
  ]
787
770
  ]
788
771
  },
789
772
  {
790
- "from": "viewing",
791
- "to": "viewing",
773
+ "from": "viewing_single",
774
+ "to": "loading",
792
775
  "event": "ARCHIVE",
793
776
  "effects": [
794
777
  [
@@ -797,33 +780,35 @@
797
780
  "@payload.id"
798
781
  ],
799
782
  [
800
- "render-ui",
801
- "main",
783
+ "fetch",
784
+ "HelpCategory",
802
785
  {
803
- "variant": "info",
804
- "type": "alert",
805
- "message": "Help category archived"
786
+ "emit": {
787
+ "success": "HelpCategoryLoaded",
788
+ "failure": "HelpCategoryLoadFailed"
789
+ }
806
790
  }
807
- ]
808
- ]
809
- },
810
- {
811
- "from": "viewing",
812
- "to": "viewing",
813
- "event": "REQUEST_DELETE",
814
- "effects": [
815
- [
816
- "set",
817
- "@entity.id",
818
- "@payload.id"
819
791
  ],
820
792
  [
821
793
  "render-ui",
822
794
  "main",
823
795
  {
824
- "variant": "warning",
825
- "message": "Delete requested",
826
- "type": "alert"
796
+ "children": [
797
+ {
798
+ "type": "spinner"
799
+ },
800
+ {
801
+ "variant": "caption",
802
+ "content": "Archiving category…",
803
+ "color": "muted",
804
+ "type": "typography"
805
+ }
806
+ ],
807
+ "align": "center",
808
+ "direction": "vertical",
809
+ "className": "py-12",
810
+ "gap": "md",
811
+ "type": "stack"
827
812
  }
828
813
  ]
829
814
  ]
@@ -847,8 +832,8 @@
847
832
  "render-ui",
848
833
  "main",
849
834
  {
850
- "size": "sm",
851
- "type": "spinner"
835
+ "type": "spinner",
836
+ "size": "sm"
852
837
  }
853
838
  ]
854
839
  ]