@almadar/std 14.26.0 → 14.27.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 (151) hide show
  1. package/behaviors/registry/app/atoms/std-applicant.orb +496 -42
  2. package/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
  3. package/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
  4. package/behaviors/registry/app/atoms/std-change-order.orb +565 -307
  5. package/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
  6. package/behaviors/registry/app/atoms/std-checkin.orb +434 -270
  7. package/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
  8. package/behaviors/registry/app/atoms/std-class-session.orb +485 -104
  9. package/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
  10. package/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
  11. package/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
  12. package/behaviors/registry/app/atoms/std-donor.orb +445 -135
  13. package/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
  14. package/behaviors/registry/app/atoms/std-driver.orb +465 -480
  15. package/behaviors/registry/app/atoms/std-dunning.orb +450 -512
  16. package/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
  17. package/behaviors/registry/app/atoms/std-event.orb +465 -667
  18. package/behaviors/registry/app/atoms/std-health-score.orb +368 -371
  19. package/behaviors/registry/app/atoms/std-help-article.orb +373 -506
  20. package/behaviors/registry/app/atoms/std-help-category.orb +344 -359
  21. package/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
  22. package/behaviors/registry/app/atoms/std-invoice.orb +494 -291
  23. package/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
  24. package/behaviors/registry/app/atoms/std-lease.orb +506 -190
  25. package/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
  26. package/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
  27. package/behaviors/registry/app/atoms/std-matter.orb +486 -318
  28. package/behaviors/registry/app/atoms/std-membership.orb +512 -102
  29. package/behaviors/registry/app/atoms/std-menu.orb +775 -183
  30. package/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
  31. package/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
  32. package/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
  33. package/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
  34. package/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
  35. package/behaviors/registry/app/atoms/std-receipt.orb +553 -44
  36. package/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
  37. package/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
  38. package/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
  39. package/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
  40. package/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
  41. package/behaviors/registry/app/atoms/std-rfi.orb +502 -461
  42. package/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  43. package/behaviors/registry/app/atoms/std-segment.orb +360 -98
  44. package/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  45. package/behaviors/registry/app/atoms/std-submittal.orb +538 -526
  46. package/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  47. package/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
  48. package/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
  49. package/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
  50. package/behaviors/registry/app/atoms/std-tenant.orb +525 -66
  51. package/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
  52. package/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
  53. package/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
  54. package/behaviors/registry/app/atoms/std-trial.orb +410 -317
  55. package/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
  56. package/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  57. package/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
  58. package/behaviors/registry/app/atoms/std-work-order.orb +628 -240
  59. package/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
  60. package/behaviors/registry/app/molecules/std-application.orb +178 -263
  61. package/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
  62. package/behaviors/registry/app/molecules/std-cart.orb +78 -72
  63. package/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
  64. package/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
  65. package/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
  66. package/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
  67. package/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
  68. package/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
  69. package/behaviors/registry/core/atoms/std-file-store.orb +534 -164
  70. package/behaviors/registry/core/atoms/std-gallery.orb +118 -101
  71. package/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
  72. package/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
  73. package/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
  74. package/behaviors/registry/core/atoms/std-version-history.orb +454 -430
  75. package/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
  76. package/dist/behaviors/registry/app/atoms/std-applicant.orb +496 -42
  77. package/dist/behaviors/registry/app/atoms/std-approval-request.orb +433 -593
  78. package/dist/behaviors/registry/app/atoms/std-campaign-goal.orb +438 -228
  79. package/dist/behaviors/registry/app/atoms/std-change-order.orb +565 -307
  80. package/dist/behaviors/registry/app/atoms/std-chart-of-accounts.orb +434 -97
  81. package/dist/behaviors/registry/app/atoms/std-checkin.orb +434 -270
  82. package/dist/behaviors/registry/app/atoms/std-class-roster.orb +495 -61
  83. package/dist/behaviors/registry/app/atoms/std-class-session.orb +485 -104
  84. package/dist/behaviors/registry/app/atoms/std-court-deadline.orb +519 -88
  85. package/dist/behaviors/registry/app/atoms/std-customer-account.orb +577 -97
  86. package/dist/behaviors/registry/app/atoms/std-donation-receipt.orb +498 -55
  87. package/dist/behaviors/registry/app/atoms/std-donor.orb +445 -135
  88. package/dist/behaviors/registry/app/atoms/std-drip-sequence.orb +445 -62
  89. package/dist/behaviors/registry/app/atoms/std-driver.orb +465 -480
  90. package/dist/behaviors/registry/app/atoms/std-dunning.orb +450 -512
  91. package/dist/behaviors/registry/app/atoms/std-email-broadcast.orb +517 -64
  92. package/dist/behaviors/registry/app/atoms/std-event.orb +465 -667
  93. package/dist/behaviors/registry/app/atoms/std-health-score.orb +368 -371
  94. package/dist/behaviors/registry/app/atoms/std-help-article.orb +373 -506
  95. package/dist/behaviors/registry/app/atoms/std-help-category.orb +344 -359
  96. package/dist/behaviors/registry/app/atoms/std-interview-slot.orb +490 -48
  97. package/dist/behaviors/registry/app/atoms/std-invoice.orb +494 -291
  98. package/dist/behaviors/registry/app/atoms/std-kitchen-display.orb +588 -96
  99. package/dist/behaviors/registry/app/atoms/std-lease.orb +506 -190
  100. package/dist/behaviors/registry/app/atoms/std-ledger-entry.orb +483 -154
  101. package/dist/behaviors/registry/app/atoms/std-maintenance-request.orb +642 -192
  102. package/dist/behaviors/registry/app/atoms/std-matter.orb +486 -318
  103. package/dist/behaviors/registry/app/atoms/std-membership.orb +512 -102
  104. package/dist/behaviors/registry/app/atoms/std-menu.orb +775 -183
  105. package/dist/behaviors/registry/app/atoms/std-modifier-group.orb +522 -104
  106. package/dist/behaviors/registry/app/atoms/std-nps-survey.orb +319 -327
  107. package/dist/behaviors/registry/app/atoms/std-offer-letter.orb +497 -47
  108. package/dist/behaviors/registry/app/atoms/std-payout-ledger.orb +378 -362
  109. package/dist/behaviors/registry/app/atoms/std-question-bank.orb +379 -346
  110. package/dist/behaviors/registry/app/atoms/std-receipt.orb +553 -44
  111. package/dist/behaviors/registry/app/atoms/std-recurring-charge.orb +419 -832
  112. package/dist/behaviors/registry/app/atoms/std-renewal-risk.orb +370 -421
  113. package/dist/behaviors/registry/app/atoms/std-rent-charge.orb +657 -55
  114. package/dist/behaviors/registry/app/atoms/std-reorder-rule.orb +510 -59
  115. package/dist/behaviors/registry/app/atoms/std-response-collector.orb +451 -144
  116. package/dist/behaviors/registry/app/atoms/std-rfi.orb +502 -461
  117. package/dist/behaviors/registry/app/atoms/std-route-optimize.orb +448 -158
  118. package/dist/behaviors/registry/app/atoms/std-segment.orb +360 -98
  119. package/dist/behaviors/registry/app/atoms/std-stock-level.orb +486 -103
  120. package/dist/behaviors/registry/app/atoms/std-submittal.orb +538 -526
  121. package/dist/behaviors/registry/app/atoms/std-table-map.orb +88 -51
  122. package/dist/behaviors/registry/app/atoms/std-technician-dispatch.orb +653 -71
  123. package/dist/behaviors/registry/app/atoms/std-telematics-event.orb +310 -215
  124. package/dist/behaviors/registry/app/atoms/std-template-editor.orb +513 -90
  125. package/dist/behaviors/registry/app/atoms/std-tenant.orb +525 -66
  126. package/dist/behaviors/registry/app/atoms/std-ticket-tier.orb +472 -460
  127. package/dist/behaviors/registry/app/atoms/std-time-entry.orb +354 -317
  128. package/dist/behaviors/registry/app/atoms/std-timesheet.orb +551 -284
  129. package/dist/behaviors/registry/app/atoms/std-trial.orb +410 -317
  130. package/dist/behaviors/registry/app/atoms/std-vehicle.orb +398 -563
  131. package/dist/behaviors/registry/app/atoms/std-waitlist.orb +372 -283
  132. package/dist/behaviors/registry/app/atoms/std-warehouse.orb +273 -214
  133. package/dist/behaviors/registry/app/atoms/std-work-order.orb +628 -240
  134. package/dist/behaviors/registry/app/molecules/std-applicant-form.orb +89 -83
  135. package/dist/behaviors/registry/app/molecules/std-application.orb +178 -263
  136. package/dist/behaviors/registry/app/molecules/std-broadcast-builder.orb +67 -176
  137. package/dist/behaviors/registry/app/molecules/std-cart.orb +78 -72
  138. package/dist/behaviors/registry/app/molecules/std-form-builder.orb +437 -176
  139. package/dist/behaviors/registry/app/molecules/std-ledger-entry-form.orb +608 -89
  140. package/dist/behaviors/registry/app/molecules/std-stock-adjustment.orb +501 -102
  141. package/dist/behaviors/registry/app/molecules/std-vendor-onboarding.orb +383 -469
  142. package/dist/behaviors/registry/core/atoms/std-billable-hour.orb +495 -91
  143. package/dist/behaviors/registry/core/atoms/std-branching-logic.orb +271 -600
  144. package/dist/behaviors/registry/core/atoms/std-file-store.orb +534 -164
  145. package/dist/behaviors/registry/core/atoms/std-gallery.orb +118 -101
  146. package/dist/behaviors/registry/core/atoms/std-image-upload-multi.orb +87 -57
  147. package/dist/behaviors/registry/core/atoms/std-page-tree.orb +342 -484
  148. package/dist/behaviors/registry/core/atoms/std-rich-editor.orb +288 -416
  149. package/dist/behaviors/registry/core/atoms/std-version-history.orb +454 -430
  150. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +222 -147
  151. package/package.json +1 -1
@@ -100,58 +100,7 @@
100
100
  "linkedEntity": "HelpArticle",
101
101
  "emits": [
102
102
  {
103
- "event": "VIEW",
104
- "payloadSchema": [
105
- {
106
- "name": "id",
107
- "type": "string",
108
- "required": true
109
- },
110
- {
111
- "name": "source",
112
- "type": "string"
113
- }
114
- ]
115
- },
116
- {
117
- "event": "EDIT",
118
- "payloadSchema": [
119
- {
120
- "name": "id",
121
- "type": "string",
122
- "required": true
123
- },
124
- {
125
- "name": "source",
126
- "type": "string"
127
- }
128
- ]
129
- },
130
- {
131
- "event": "CREATE",
132
- "payloadSchema": [
133
- {
134
- "name": "source",
135
- "type": "string"
136
- }
137
- ]
138
- },
139
- {
140
- "event": "REQUEST_DELETE",
141
- "payloadSchema": [
142
- {
143
- "name": "id",
144
- "type": "string",
145
- "required": true
146
- },
147
- {
148
- "name": "source",
149
- "type": "string"
150
- }
151
- ]
152
- },
153
- {
154
- "event": "PUBLISH",
103
+ "event": "OPEN_ARTICLE",
155
104
  "payloadSchema": [
156
105
  {
157
106
  "name": "id",
@@ -224,75 +173,25 @@
224
173
  ]
225
174
  },
226
175
  {
227
- "event": "ARCHIVE",
176
+ "event": "CLOSE_VIEW"
177
+ },
178
+ {
179
+ "event": "PUBLISH",
228
180
  "payloadSchema": [
229
181
  {
230
182
  "name": "id",
231
183
  "type": "string",
232
184
  "required": true
233
- },
234
- {
235
- "name": "row.id",
236
- "type": "string",
237
- "required": true
238
- },
239
- {
240
- "name": "row.title",
241
- "type": "string",
242
- "required": true
243
- },
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "event": "ARCHIVE",
190
+ "payloadSchema": [
244
191
  {
245
- "name": "row.slug",
192
+ "name": "id",
246
193
  "type": "string",
247
194
  "required": true
248
- },
249
- {
250
- "name": "row.body",
251
- "type": "string"
252
- },
253
- {
254
- "name": "row.summary",
255
- "type": "string"
256
- },
257
- {
258
- "name": "row.categoryId",
259
- "type": "string"
260
- },
261
- {
262
- "name": "row.categoryName",
263
- "type": "string"
264
- },
265
- {
266
- "name": "row.author",
267
- "type": "string"
268
- },
269
- {
270
- "name": "row.status",
271
- "type": "string"
272
- },
273
- {
274
- "name": "row.viewCount",
275
- "type": "number"
276
- },
277
- {
278
- "name": "row.helpfulCount",
279
- "type": "number"
280
- },
281
- {
282
- "name": "row.notHelpfulCount",
283
- "type": "number"
284
- },
285
- {
286
- "name": "row.publishedAt",
287
- "type": "string"
288
- },
289
- {
290
- "name": "row.updatedAt",
291
- "type": "string"
292
- },
293
- {
294
- "name": "row.pendingId",
295
- "type": "string"
296
195
  }
297
196
  ]
298
197
  },
@@ -326,7 +225,10 @@
326
225
  "isInitial": true
327
226
  },
328
227
  {
329
- "name": "viewing"
228
+ "name": "browsing"
229
+ },
230
+ {
231
+ "name": "viewing_single"
330
232
  },
331
233
  {
332
234
  "name": "error"
@@ -362,85 +264,17 @@
362
264
  ]
363
265
  },
364
266
  {
365
- "key": "REFRESH",
366
- "name": "Refresh",
367
- "payloadSchema": [
368
- {
369
- "name": "source",
370
- "type": "string"
371
- }
372
- ]
373
- },
374
- {
375
- "key": "SEARCH",
376
- "name": "Search",
377
- "payloadSchema": [
378
- {
379
- "name": "query",
380
- "type": "string"
381
- }
382
- ]
383
- },
384
- {
385
- "key": "FILTER_STATUS",
386
- "name": "Filter Status",
387
- "payloadSchema": [
388
- {
389
- "name": "status",
390
- "type": "string"
391
- }
392
- ]
393
- },
394
- {
395
- "key": "FILTER_CATEGORY",
396
- "name": "Filter Category",
397
- "payloadSchema": [
398
- {
399
- "name": "categoryId",
400
- "type": "string"
401
- }
402
- ]
403
- },
404
- {
405
- "key": "CREATE",
406
- "name": "Create",
407
- "payloadSchema": [
408
- {
409
- "name": "source",
410
- "type": "string"
411
- }
412
- ]
413
- },
414
- {
415
- "key": "VIEW",
416
- "name": "View",
417
- "payloadSchema": [
418
- {
419
- "name": "id",
420
- "type": "string",
421
- "required": true
422
- }
423
- ]
424
- },
425
- {
426
- "key": "EDIT",
427
- "name": "Edit",
267
+ "key": "OPEN_ARTICLE",
268
+ "name": "Open Article",
428
269
  "payloadSchema": [
429
270
  {
430
271
  "name": "id",
431
272
  "type": "string",
432
273
  "required": true
433
- }
434
- ]
435
- },
436
- {
437
- "key": "PUBLISH",
438
- "name": "Publish",
439
- "payloadSchema": [
274
+ },
440
275
  {
441
- "name": "id",
442
- "type": "string",
443
- "required": true
276
+ "name": "row",
277
+ "type": "HelpArticle"
444
278
  }
445
279
  ]
446
280
  },
@@ -456,8 +290,12 @@
456
290
  ]
457
291
  },
458
292
  {
459
- "key": "REQUEST_DELETE",
460
- "name": "Request Delete",
293
+ "key": "CLOSE_VIEW",
294
+ "name": "Close View"
295
+ },
296
+ {
297
+ "key": "PUBLISH",
298
+ "name": "Publish",
461
299
  "payloadSchema": [
462
300
  {
463
301
  "name": "id",
@@ -478,8 +316,8 @@
478
316
  "HelpArticle",
479
317
  {
480
318
  "emit": {
481
- "failure": "HelpArticleLoadFailed",
482
- "success": "HelpArticleLoaded"
319
+ "success": "HelpArticleLoaded",
320
+ "failure": "HelpArticleLoadFailed"
483
321
  }
484
322
  }
485
323
  ],
@@ -488,28 +326,28 @@
488
326
  "main",
489
327
  {
490
328
  "className": "py-12",
491
- "gap": "md",
492
- "align": "center",
493
329
  "children": [
494
330
  {
495
331
  "type": "spinner"
496
332
  },
497
333
  {
498
- "content": "Loading help articles…",
499
334
  "color": "muted",
500
335
  "variant": "caption",
336
+ "content": "Loading help articles…",
501
337
  "type": "typography"
502
338
  }
503
339
  ],
340
+ "direction": "vertical",
504
341
  "type": "stack",
505
- "direction": "vertical"
342
+ "align": "center",
343
+ "gap": "md"
506
344
  }
507
345
  ]
508
346
  ]
509
347
  },
510
348
  {
511
349
  "from": "loading",
512
- "to": "viewing",
350
+ "to": "browsing",
513
351
  "event": "HelpArticleLoaded",
514
352
  "effects": [
515
353
  [
@@ -517,203 +355,96 @@
517
355
  "main",
518
356
  {
519
357
  "type": "stack",
520
- "direction": "vertical",
358
+ "gap": "md",
521
359
  "children": [
522
360
  {
523
- "align": "center",
524
- "direction": "horizontal",
525
361
  "type": "stack",
362
+ "align": "center",
526
363
  "children": [
527
364
  {
528
365
  "type": "icon",
529
366
  "name": "book-open"
530
367
  },
531
368
  {
532
- "type": "typography",
369
+ "variant": "h3",
533
370
  "content": "@config.title",
534
- "variant": "h3"
535
- },
536
- {
537
- "variant": "primary",
538
- "action": "CREATE",
539
- "type": "button",
540
- "label": "New Article"
371
+ "type": "typography"
541
372
  }
542
373
  ],
543
- "gap": "sm"
374
+ "gap": "sm",
375
+ "direction": "horizontal"
544
376
  },
545
377
  {
546
- "items": [
378
+ "children": [
547
379
  {
548
- "label": "Help Center"
380
+ "icon": "book-open",
381
+ "type": "stat-display",
382
+ "value": "@payload.data.length",
383
+ "label": "Total articles"
549
384
  },
550
385
  {
551
- "label": "Articles"
386
+ "value": "184",
387
+ "label": "Published",
388
+ "icon": "check-circle",
389
+ "type": "stat-display"
552
390
  },
553
391
  {
554
- "label": "@config.title"
555
- }
556
- ],
557
- "type": "doc-breadcrumb"
558
- },
559
- {
560
- "type": "doc-search",
561
- "placeholder": "Search articles…"
562
- },
563
- {
564
- "type": "stack",
565
- "children": [
566
- {
567
- "items": [
568
- {
569
- "label": "Getting Started",
570
- "href": "#getting-started"
571
- },
572
- {
573
- "label": "Billing",
574
- "href": "#billing"
575
- },
576
- {
577
- "label": "API Reference",
578
- "href": "#api"
579
- },
580
- {
581
- "href": "#troubleshooting",
582
- "label": "Troubleshooting"
583
- }
584
- ],
585
- "type": "doc-sidebar"
392
+ "type": "stat-display",
393
+ "label": "Drafts",
394
+ "value": "12",
395
+ "icon": "edit"
586
396
  },
587
397
  {
588
- "direction": "vertical",
589
- "gap": "md",
590
- "type": "stack",
591
- "children": [
592
- {
593
- "children": [
594
- {
595
- "direction": "ltr",
596
- "content": "These articles cover everything from setup to advanced workflows.",
597
- "type": "content-renderer"
598
- }
599
- ],
600
- "title": "Overview",
601
- "type": "article-section"
602
- },
603
- {
604
- "tabs": [
605
- {
606
- "id": "popular",
607
- "label": "Popular",
608
- "content": "Most-viewed help articles this week."
609
- },
610
- {
611
- "label": "Recently Updated",
612
- "id": "recent",
613
- "content": "Freshly revised guidance."
614
- },
615
- {
616
- "label": "Drafts",
617
- "content": "Articles still in review.",
618
- "id": "drafts"
619
- }
620
- ],
621
- "type": "tabbed-container",
622
- "defaultTab": "popular"
623
- },
624
- {
625
- "type": "book-viewer",
626
- "entity": "@payload.data"
627
- },
628
- {
629
- "description": "A walkthrough of the self-serve content strategy that cut inbound tickets.",
630
- "category": "Customer Story",
631
- "href": "/help-articles/case-study-acme",
632
- "type": "case-study-card",
633
- "title": "How Acme reduced support volume 40%",
634
- "linkLabel": "Read case study"
635
- },
636
- {
637
- "features": [
638
- {
639
- "type": "feature",
640
- "id": "search",
641
- "label": "Smart Search"
642
- },
643
- {
644
- "type": "feature",
645
- "id": "tags",
646
- "label": "Tag Index"
647
- },
648
- {
649
- "type": "feature",
650
- "label": "Helpfulness Voting",
651
- "id": "feedback"
652
- }
653
- ],
654
- "type": "feature-renderer-3d"
655
- }
656
- ]
398
+ "icon": "thumbs-up",
399
+ "value": "87%",
400
+ "type": "stat-display",
401
+ "label": "Avg helpful rate"
657
402
  }
658
403
  ],
659
- "direction": "horizontal",
660
- "gap": "md"
404
+ "cols": 4.0,
405
+ "type": "simple-grid"
661
406
  },
662
407
  {
663
408
  "type": "divider"
664
409
  },
665
410
  {
411
+ "type": "data-grid",
666
412
  "entity": "@payload.data",
667
413
  "itemActions": [
668
414
  {
669
- "variant": "secondary",
670
- "event": "VIEW",
671
- "label": "View"
672
- },
673
- {
674
- "label": "Edit",
675
- "event": "EDIT",
676
- "variant": "secondary"
677
- },
678
- {
679
- "event": "PUBLISH",
680
- "variant": "primary",
681
- "label": "Publish"
415
+ "label": "Open",
416
+ "icon": "arrow-right",
417
+ "event": "OPEN_ARTICLE",
418
+ "variant": "primary"
682
419
  },
683
420
  {
684
- "variant": "ghost",
421
+ "label": "Archive",
685
422
  "event": "ARCHIVE",
686
- "label": "Archive"
687
- },
688
- {
689
- "label": "Delete",
690
- "event": "REQUEST_DELETE",
691
423
  "variant": "danger"
692
424
  }
693
425
  ],
694
- "gap": "sm",
695
426
  "cols": 1.0,
696
- "type": "data-grid",
427
+ "gap": "sm",
697
428
  "fields": [
698
429
  {
699
- "name": "title",
700
430
  "label": "Title",
701
- "variant": "caption"
431
+ "variant": "caption",
432
+ "name": "title"
702
433
  },
703
434
  {
704
- "label": "Slug",
705
435
  "variant": "caption",
436
+ "label": "Slug",
706
437
  "name": "slug"
707
438
  },
708
439
  {
709
- "name": "categoryName",
710
440
  "label": "Category",
711
- "variant": "caption"
441
+ "variant": "caption",
442
+ "name": "categoryName"
712
443
  },
713
444
  {
714
- "label": "Author",
715
445
  "name": "author",
716
- "variant": "caption"
446
+ "variant": "caption",
447
+ "label": "Author"
717
448
  },
718
449
  {
719
450
  "name": "status",
@@ -721,24 +452,19 @@
721
452
  "variant": "badge"
722
453
  },
723
454
  {
724
- "variant": "caption",
725
455
  "name": "viewCount",
456
+ "variant": "caption",
726
457
  "label": "Views"
727
458
  },
728
459
  {
729
460
  "variant": "caption",
730
- "name": "helpfulCount",
731
- "label": "Helpful"
732
- },
733
- {
734
- "label": "Published",
735
- "variant": "caption",
736
- "name": "publishedAt"
461
+ "name": "publishedAt",
462
+ "label": "Published"
737
463
  }
738
464
  ]
739
465
  }
740
466
  ],
741
- "gap": "md"
467
+ "direction": "vertical"
742
468
  }
743
469
  ]
744
470
  ]
@@ -752,46 +478,254 @@
752
478
  "render-ui",
753
479
  "main",
754
480
  {
755
- "type": "alert",
756
481
  "message": "@payload.message",
482
+ "type": "alert",
757
483
  "variant": "error"
758
484
  }
759
485
  ]
760
486
  ]
761
487
  },
762
488
  {
763
- "from": "viewing",
764
- "to": "loading",
765
- "event": "REFRESH",
489
+ "from": "browsing",
490
+ "to": "viewing_single",
491
+ "event": "OPEN_ARTICLE",
766
492
  "effects": [
767
493
  [
768
- "fetch",
769
- "HelpArticle",
770
- {
771
- "emit": {
772
- "failure": "HelpArticleLoadFailed",
773
- "success": "HelpArticleLoaded"
774
- }
775
- }
494
+ "set",
495
+ "@entity.id",
496
+ "@payload.row.id"
497
+ ],
498
+ [
499
+ "set",
500
+ "@entity.title",
501
+ "@payload.row.title"
502
+ ],
503
+ [
504
+ "set",
505
+ "@entity.slug",
506
+ "@payload.row.slug"
507
+ ],
508
+ [
509
+ "set",
510
+ "@entity.summary",
511
+ "@payload.row.summary"
512
+ ],
513
+ [
514
+ "set",
515
+ "@entity.categoryName",
516
+ "@payload.row.categoryName"
517
+ ],
518
+ [
519
+ "set",
520
+ "@entity.author",
521
+ "@payload.row.author"
522
+ ],
523
+ [
524
+ "set",
525
+ "@entity.status",
526
+ "@payload.row.status"
527
+ ],
528
+ [
529
+ "set",
530
+ "@entity.viewCount",
531
+ "@payload.row.viewCount"
532
+ ],
533
+ [
534
+ "set",
535
+ "@entity.helpfulCount",
536
+ "@payload.row.helpfulCount"
537
+ ],
538
+ [
539
+ "set",
540
+ "@entity.notHelpfulCount",
541
+ "@payload.row.notHelpfulCount"
542
+ ],
543
+ [
544
+ "set",
545
+ "@entity.publishedAt",
546
+ "@payload.row.publishedAt"
547
+ ],
548
+ [
549
+ "set",
550
+ "@entity.updatedAt",
551
+ "@payload.row.updatedAt"
776
552
  ],
777
553
  [
778
554
  "render-ui",
779
555
  "main",
780
556
  {
781
557
  "direction": "vertical",
782
- "align": "center",
783
- "className": "py-12",
784
- "type": "stack",
785
558
  "gap": "md",
559
+ "type": "stack",
786
560
  "children": [
787
561
  {
788
- "type": "spinner"
562
+ "direction": "horizontal",
563
+ "align": "center",
564
+ "gap": "sm",
565
+ "type": "stack",
566
+ "children": [
567
+ {
568
+ "action": "CLOSE_VIEW",
569
+ "type": "button",
570
+ "label": "Back",
571
+ "variant": "ghost"
572
+ },
573
+ {
574
+ "type": "icon",
575
+ "name": "book-open"
576
+ },
577
+ {
578
+ "type": "typography",
579
+ "content": "@entity.title",
580
+ "variant": "h3"
581
+ },
582
+ {
583
+ "type": "badge",
584
+ "label": "@entity.status",
585
+ "variant": "default"
586
+ }
587
+ ]
789
588
  },
790
589
  {
791
- "variant": "caption",
792
- "color": "muted",
793
- "type": "typography",
794
- "content": "Refreshing help articles…"
590
+ "type": "divider"
591
+ },
592
+ {
593
+ "type": "stack",
594
+ "children": [
595
+ {
596
+ "direction": "horizontal",
597
+ "type": "stack",
598
+ "gap": "md",
599
+ "children": [
600
+ {
601
+ "color": "muted",
602
+ "content": "Slug",
603
+ "variant": "caption",
604
+ "type": "typography"
605
+ },
606
+ {
607
+ "variant": "body",
608
+ "content": "@entity.slug",
609
+ "type": "typography"
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "direction": "horizontal",
615
+ "gap": "md",
616
+ "children": [
617
+ {
618
+ "variant": "caption",
619
+ "type": "typography",
620
+ "color": "muted",
621
+ "content": "Category"
622
+ },
623
+ {
624
+ "type": "typography",
625
+ "variant": "body",
626
+ "content": "@entity.categoryName"
627
+ }
628
+ ],
629
+ "type": "stack"
630
+ },
631
+ {
632
+ "direction": "horizontal",
633
+ "type": "stack",
634
+ "children": [
635
+ {
636
+ "type": "typography",
637
+ "color": "muted",
638
+ "content": "Author",
639
+ "variant": "caption"
640
+ },
641
+ {
642
+ "content": "@entity.author",
643
+ "type": "typography",
644
+ "variant": "body"
645
+ }
646
+ ],
647
+ "gap": "md"
648
+ },
649
+ {
650
+ "type": "stack",
651
+ "direction": "horizontal",
652
+ "gap": "md",
653
+ "children": [
654
+ {
655
+ "variant": "caption",
656
+ "type": "typography",
657
+ "color": "muted",
658
+ "content": "Summary"
659
+ },
660
+ {
661
+ "variant": "body",
662
+ "content": "@entity.summary",
663
+ "type": "typography"
664
+ }
665
+ ]
666
+ }
667
+ ],
668
+ "gap": "sm",
669
+ "direction": "vertical"
670
+ },
671
+ {
672
+ "type": "divider"
673
+ },
674
+ {
675
+ "type": "simple-grid",
676
+ "cols": 4.0,
677
+ "children": [
678
+ {
679
+ "value": "@entity.viewCount",
680
+ "label": "Views",
681
+ "type": "stat-display",
682
+ "icon": "eye"
683
+ },
684
+ {
685
+ "value": "@entity.helpfulCount",
686
+ "type": "stat-display",
687
+ "label": "Helpful",
688
+ "icon": "thumbs-up"
689
+ },
690
+ {
691
+ "label": "Not helpful",
692
+ "icon": "thumbs-down",
693
+ "type": "stat-display",
694
+ "value": "@entity.notHelpfulCount"
695
+ },
696
+ {
697
+ "label": "Published",
698
+ "icon": "calendar",
699
+ "type": "stat-display",
700
+ "value": "@entity.publishedAt"
701
+ }
702
+ ]
703
+ },
704
+ {
705
+ "type": "stack",
706
+ "align": "center",
707
+ "children": [
708
+ {
709
+ "actionPayload": {
710
+ "id": "@entity.id"
711
+ },
712
+ "variant": "primary",
713
+ "action": "PUBLISH",
714
+ "label": "Publish",
715
+ "type": "button"
716
+ },
717
+ {
718
+ "variant": "danger",
719
+ "action": "ARCHIVE",
720
+ "actionPayload": {
721
+ "id": "@entity.id"
722
+ },
723
+ "label": "Archive",
724
+ "type": "button"
725
+ }
726
+ ],
727
+ "gap": "sm",
728
+ "direction": "horizontal"
795
729
  }
796
730
  ]
797
731
  }
@@ -799,10 +733,15 @@
799
733
  ]
800
734
  },
801
735
  {
802
- "from": "viewing",
736
+ "from": "browsing",
803
737
  "to": "loading",
804
- "event": "SEARCH",
738
+ "event": "ARCHIVE",
805
739
  "effects": [
740
+ [
741
+ "set",
742
+ "@entity.id",
743
+ "@payload.id"
744
+ ],
806
745
  [
807
746
  "fetch",
808
747
  "HelpArticle",
@@ -817,30 +756,30 @@
817
756
  "render-ui",
818
757
  "main",
819
758
  {
820
- "gap": "md",
821
- "type": "stack",
822
- "direction": "vertical",
823
- "align": "center",
824
- "className": "py-12",
825
759
  "children": [
826
760
  {
827
761
  "type": "spinner"
828
762
  },
829
763
  {
830
- "variant": "caption",
831
- "content": "Searching help articles…",
764
+ "type": "typography",
832
765
  "color": "muted",
833
- "type": "typography"
766
+ "variant": "caption",
767
+ "content": "Archiving article…"
834
768
  }
835
- ]
769
+ ],
770
+ "className": "py-12",
771
+ "type": "stack",
772
+ "direction": "vertical",
773
+ "gap": "md",
774
+ "align": "center"
836
775
  }
837
776
  ]
838
777
  ]
839
778
  },
840
779
  {
841
- "from": "viewing",
780
+ "from": "viewing_single",
842
781
  "to": "loading",
843
- "event": "FILTER_STATUS",
782
+ "event": "CLOSE_VIEW",
844
783
  "effects": [
845
784
  [
846
785
  "fetch",
@@ -856,38 +795,43 @@
856
795
  "render-ui",
857
796
  "main",
858
797
  {
859
- "type": "stack",
860
- "className": "py-12",
861
- "gap": "md",
862
- "direction": "vertical",
863
798
  "children": [
864
799
  {
865
800
  "type": "spinner"
866
801
  },
867
802
  {
868
803
  "variant": "caption",
869
- "content": "Filtering help articles…",
870
804
  "color": "muted",
805
+ "content": "Loading help articles…",
871
806
  "type": "typography"
872
807
  }
873
808
  ],
874
- "align": "center"
809
+ "direction": "vertical",
810
+ "type": "stack",
811
+ "align": "center",
812
+ "className": "py-12",
813
+ "gap": "md"
875
814
  }
876
815
  ]
877
816
  ]
878
817
  },
879
818
  {
880
- "from": "viewing",
819
+ "from": "viewing_single",
881
820
  "to": "loading",
882
- "event": "FILTER_CATEGORY",
821
+ "event": "PUBLISH",
883
822
  "effects": [
823
+ [
824
+ "set",
825
+ "@entity.id",
826
+ "@payload.id"
827
+ ],
884
828
  [
885
829
  "fetch",
886
830
  "HelpArticle",
887
831
  {
888
832
  "emit": {
889
- "success": "HelpArticleLoaded",
890
- "failure": "HelpArticleLoadFailed"
833
+ "failure": "HelpArticleLoadFailed",
834
+ "success": "HelpArticleLoaded"
891
835
  }
892
836
  }
893
837
  ],
@@ -895,108 +839,29 @@
895
839
  "render-ui",
896
840
  "main",
897
841
  {
842
+ "type": "stack",
843
+ "gap": "md",
844
+ "align": "center",
845
+ "className": "py-12",
898
846
  "children": [
899
847
  {
900
848
  "type": "spinner"
901
849
  },
902
850
  {
903
- "color": "muted",
851
+ "type": "typography",
904
852
  "variant": "caption",
905
- "content": "Filtering help articles…",
906
- "type": "typography"
853
+ "content": "Publishing article…",
854
+ "color": "muted"
907
855
  }
908
856
  ],
909
- "type": "stack",
910
- "gap": "md",
911
- "className": "py-12",
912
- "align": "center",
913
857
  "direction": "vertical"
914
858
  }
915
859
  ]
916
860
  ]
917
861
  },
918
862
  {
919
- "from": "viewing",
920
- "to": "viewing",
921
- "event": "CREATE",
922
- "effects": [
923
- [
924
- "render-ui",
925
- "main",
926
- {
927
- "variant": "info",
928
- "message": "Creating new help article",
929
- "type": "alert"
930
- }
931
- ]
932
- ]
933
- },
934
- {
935
- "from": "viewing",
936
- "to": "viewing",
937
- "event": "VIEW",
938
- "effects": [
939
- [
940
- "set",
941
- "@entity.id",
942
- "@payload.id"
943
- ],
944
- [
945
- "render-ui",
946
- "main",
947
- {
948
- "variant": "info",
949
- "type": "alert",
950
- "message": "Viewing help article"
951
- }
952
- ]
953
- ]
954
- },
955
- {
956
- "from": "viewing",
957
- "to": "viewing",
958
- "event": "EDIT",
959
- "effects": [
960
- [
961
- "set",
962
- "@entity.id",
963
- "@payload.id"
964
- ],
965
- [
966
- "render-ui",
967
- "main",
968
- {
969
- "type": "alert",
970
- "variant": "info",
971
- "message": "Editing help article"
972
- }
973
- ]
974
- ]
975
- },
976
- {
977
- "from": "viewing",
978
- "to": "viewing",
979
- "event": "PUBLISH",
980
- "effects": [
981
- [
982
- "set",
983
- "@entity.id",
984
- "@payload.id"
985
- ],
986
- [
987
- "render-ui",
988
- "main",
989
- {
990
- "variant": "success",
991
- "message": "Article published",
992
- "type": "alert"
993
- }
994
- ]
995
- ]
996
- },
997
- {
998
- "from": "viewing",
999
- "to": "viewing",
863
+ "from": "viewing_single",
864
+ "to": "loading",
1000
865
  "event": "ARCHIVE",
1001
866
  "effects": [
1002
867
  [
@@ -1005,33 +870,35 @@
1005
870
  "@payload.id"
1006
871
  ],
1007
872
  [
1008
- "render-ui",
1009
- "main",
873
+ "fetch",
874
+ "HelpArticle",
1010
875
  {
1011
- "variant": "info",
1012
- "message": "Article archived",
1013
- "type": "alert"
876
+ "emit": {
877
+ "failure": "HelpArticleLoadFailed",
878
+ "success": "HelpArticleLoaded"
879
+ }
1014
880
  }
1015
- ]
1016
- ]
1017
- },
1018
- {
1019
- "from": "viewing",
1020
- "to": "viewing",
1021
- "event": "REQUEST_DELETE",
1022
- "effects": [
1023
- [
1024
- "set",
1025
- "@entity.id",
1026
- "@payload.id"
1027
881
  ],
1028
882
  [
1029
883
  "render-ui",
1030
884
  "main",
1031
885
  {
1032
- "type": "alert",
1033
- "message": "Delete requested",
1034
- "variant": "warning"
886
+ "className": "py-12",
887
+ "direction": "vertical",
888
+ "type": "stack",
889
+ "align": "center",
890
+ "children": [
891
+ {
892
+ "type": "spinner"
893
+ },
894
+ {
895
+ "variant": "caption",
896
+ "type": "typography",
897
+ "content": "Archiving article…",
898
+ "color": "muted"
899
+ }
900
+ ],
901
+ "gap": "md"
1035
902
  }
1036
903
  ]
1037
904
  ]
@@ -1046,8 +913,8 @@
1046
913
  "HelpArticle",
1047
914
  {
1048
915
  "emit": {
1049
- "failure": "HelpArticleLoadFailed",
1050
- "success": "HelpArticleLoaded"
916
+ "success": "HelpArticleLoaded",
917
+ "failure": "HelpArticleLoadFailed"
1051
918
  }
1052
919
  }
1053
920
  ],
@@ -1055,8 +922,8 @@
1055
922
  "render-ui",
1056
923
  "main",
1057
924
  {
1058
- "size": "sm",
1059
- "type": "spinner"
925
+ "type": "spinner",
926
+ "size": "sm"
1060
927
  }
1061
928
  ]
1062
929
  ]