@almadar/std 16.211.0 → 16.213.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 (145) hide show
  1. package/behaviors/lolo/agent/organisms/std-agent-rabit.lolo +1 -0
  2. package/behaviors/lolo/infra/atoms/std-approval-gate.lolo +3 -0
  3. package/behaviors/lolo/infra/atoms/std-cache-aside.lolo +6 -0
  4. package/behaviors/lolo/infra/atoms/std-calendar-sync.lolo +3 -0
  5. package/behaviors/lolo/infra/atoms/std-cascade-on-delete.lolo +1 -0
  6. package/behaviors/lolo/infra/atoms/std-circuit-breaker.lolo +2 -0
  7. package/behaviors/lolo/infra/atoms/std-cross-reference.lolo +2 -0
  8. package/behaviors/lolo/infra/atoms/std-data-erasure.lolo +3 -0
  9. package/behaviors/lolo/infra/atoms/std-lifecycle.lolo +2 -0
  10. package/behaviors/lolo/infra/atoms/std-migration-job.lolo +12 -0
  11. package/behaviors/lolo/infra/atoms/std-mod-queue.lolo +1 -0
  12. package/behaviors/lolo/infra/atoms/std-notification-center.lolo +21 -1
  13. package/behaviors/lolo/infra/atoms/std-notify-on-event.lolo +5 -0
  14. package/behaviors/lolo/infra/atoms/std-reminder-scheduler.lolo +2 -0
  15. package/behaviors/lolo/infra/atoms/std-status-lifecycle.lolo +1 -0
  16. package/behaviors/lolo/ml/atoms/std-ml-classify.lolo +1 -0
  17. package/behaviors/lolo/ml/atoms/std-ml-infer.lolo +1 -0
  18. package/behaviors/lolo/ui/core/atoms/std-board.lolo +6 -0
  19. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +6 -1
  20. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +6 -1
  21. package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +2 -0
  22. package/behaviors/lolo/ui/core/atoms/std-gallery.lolo +8 -1
  23. package/behaviors/lolo/ui/core/atoms/std-list.lolo +8 -1
  24. package/behaviors/lolo/ui/core/atoms/std-rating-review.lolo +214 -3
  25. package/behaviors/lolo/ui/core/atoms/std-selection.lolo +8 -1
  26. package/behaviors/lolo/ui/core/atoms/std-tag-strip.lolo +1 -0
  27. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +16 -0
  28. package/behaviors/lolo/ui/core/atoms/std-wizard.lolo +36 -0
  29. package/behaviors/lolo/ui/core/atoms/ui-badge.lolo +1 -1
  30. package/behaviors/lolo/ui/core/atoms/ui-button.lolo +1 -1
  31. package/behaviors/lolo/ui/core/atoms/ui-checkbox.lolo +22 -2
  32. package/behaviors/lolo/ui/core/atoms/ui-game-icon.lolo +1 -1
  33. package/behaviors/lolo/ui/core/atoms/ui-select.lolo +6 -2
  34. package/behaviors/lolo/ui/core/atoms/ui-textarea.lolo +3 -1
  35. package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +1 -1
  36. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +13 -0
  37. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +13 -0
  38. package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +1 -1
  39. package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +1 -1
  40. package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +1 -1
  41. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +13 -0
  42. package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +2 -2
  43. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +13 -0
  44. package/behaviors/lolo/ui/game/atoms/std-tutorial-overlay.lolo +6 -0
  45. package/behaviors/lolo/ui/game/atoms/ui-action-palette.lolo +1 -1
  46. package/behaviors/lolo/ui/game/atoms/ui-action-tile.lolo +1 -1
  47. package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +2 -2
  48. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +2 -2
  49. package/behaviors/lolo/ui/game/atoms/ui-choice-button.lolo +1 -1
  50. package/behaviors/lolo/ui/game/atoms/ui-control-button.lolo +1 -1
  51. package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +4 -4
  52. package/behaviors/lolo/ui/game/atoms/ui-dialogue-bubble.lolo +1 -1
  53. package/behaviors/lolo/ui/game/atoms/ui-draw-fx-layer.lolo +1 -1
  54. package/behaviors/lolo/ui/game/atoms/ui-draw-skinned-mesh.lolo +7 -2
  55. package/behaviors/lolo/ui/game/atoms/ui-draw-sprite-layer.lolo +1 -1
  56. package/behaviors/lolo/ui/game/atoms/ui-draw-sprite.lolo +1 -1
  57. package/behaviors/lolo/ui/game/atoms/ui-game-audio-toggle.lolo +2 -2
  58. package/behaviors/lolo/ui/game/atoms/ui-game-hud.lolo +5 -5
  59. package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +1 -1
  60. package/behaviors/lolo/ui/game/atoms/ui-health-bar.lolo +2 -2
  61. package/behaviors/lolo/ui/game/atoms/ui-score-display.lolo +1 -1
  62. package/behaviors/lolo/ui/game/atoms/ui-sequence-bar.lolo +2 -2
  63. package/behaviors/lolo/ui/game/atoms/ui-stat-badge.lolo +2 -2
  64. package/behaviors/lolo/ui/game/atoms/ui-trait-slot.lolo +4 -4
  65. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +2 -2
  66. package/behaviors/registry/agent/organisms/std-agent-rabit.orb +8 -0
  67. package/behaviors/registry/infra/atoms/std-approval-gate.orb +56 -18
  68. package/behaviors/registry/infra/atoms/std-cache-aside.orb +76 -32
  69. package/behaviors/registry/infra/atoms/std-calendar-sync.orb +46 -0
  70. package/behaviors/registry/infra/atoms/std-cascade-on-delete.orb +20 -0
  71. package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +40 -14
  72. package/behaviors/registry/infra/atoms/std-cross-reference.orb +41 -15
  73. package/behaviors/registry/infra/atoms/std-data-erasure.orb +52 -0
  74. package/behaviors/registry/infra/atoms/std-lifecycle.orb +36 -0
  75. package/behaviors/registry/infra/atoms/std-migration-job.orb +108 -0
  76. package/behaviors/registry/infra/atoms/std-mod-queue.orb +20 -0
  77. package/behaviors/registry/infra/atoms/std-notification-center.orb +208 -1
  78. package/behaviors/registry/infra/atoms/std-notify-on-event.orb +70 -0
  79. package/behaviors/registry/infra/atoms/std-reminder-scheduler.orb +36 -0
  80. package/behaviors/registry/infra/atoms/std-status-lifecycle.orb +20 -0
  81. package/behaviors/registry/ml/atoms/std-ml-classify.orb +18 -0
  82. package/behaviors/registry/ml/atoms/std-ml-infer.orb +18 -0
  83. package/behaviors/registry/ui/core/atoms/std-board.orb +58 -0
  84. package/behaviors/registry/ui/core/atoms/std-browse.orb +9 -1
  85. package/behaviors/registry/ui/core/atoms/std-calendar.orb +9 -1
  86. package/behaviors/registry/ui/core/atoms/std-event-log.orb +26 -0
  87. package/behaviors/registry/ui/core/atoms/std-gallery.orb +35 -1
  88. package/behaviors/registry/ui/core/atoms/std-list.orb +35 -1
  89. package/behaviors/registry/ui/core/atoms/std-rating-review.orb +443 -2
  90. package/behaviors/registry/ui/core/atoms/std-selection.orb +35 -1
  91. package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +20 -0
  92. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +56 -0
  93. package/behaviors/registry/ui/core/atoms/std-wizard.orb +77 -0
  94. package/behaviors/registry/ui/core/atoms/ui-badge.orb +4 -1
  95. package/behaviors/registry/ui/core/atoms/ui-button.orb +4 -1
  96. package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +78 -2
  97. package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +4 -1
  98. package/behaviors/registry/ui/core/atoms/ui-select.orb +28 -0
  99. package/behaviors/registry/ui/core/atoms/ui-textarea.orb +14 -0
  100. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +1 -28
  101. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +58 -0
  102. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +58 -0
  103. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +1 -20
  104. package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +1 -14
  105. package/behaviors/registry/ui/core/molecules/ui-menu.orb +1 -24
  106. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +58 -0
  107. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +8 -2
  108. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +58 -0
  109. package/behaviors/registry/ui/game/atoms/std-tutorial-overlay.orb +44 -0
  110. package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +4 -1
  111. package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +4 -1
  112. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +2 -2
  113. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +2 -2
  114. package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +4 -1
  115. package/behaviors/registry/ui/game/atoms/ui-control-button.orb +4 -1
  116. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +10 -4
  117. package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +4 -1
  118. package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +4 -1
  119. package/behaviors/registry/ui/game/atoms/ui-draw-skinned-mesh.orb +12 -2
  120. package/behaviors/registry/ui/game/atoms/ui-draw-sprite-layer.orb +4 -1
  121. package/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +4 -1
  122. package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +8 -2
  123. package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +20 -5
  124. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +4 -1
  125. package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +8 -2
  126. package/behaviors/registry/ui/game/atoms/ui-score-display.orb +4 -1
  127. package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +4 -1
  128. package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +8 -2
  129. package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +8 -2
  130. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +2 -2
  131. package/dist/behaviors/exports-reader.js +1813 -283
  132. package/dist/behaviors/functions/index.d.ts +64 -19
  133. package/dist/behaviors/functions/index.js +1811 -284
  134. package/dist/behaviors/index.d.ts +1 -1
  135. package/dist/behaviors/index.js +1814 -284
  136. package/dist/behaviors/query.js +1813 -283
  137. package/dist/behaviors-embeddings.hash.json +3 -3
  138. package/dist/behaviors-embeddings.json +15 -15
  139. package/dist/behaviors-registry.json +827 -490
  140. package/dist/index.d.ts +1 -1
  141. package/dist/index.js +1814 -284
  142. package/dist/knob-embeddings.hash.json +3 -3
  143. package/dist/knob-embeddings.json +1 -1
  144. package/dist/registry/factory-signatures.json +1 -1
  145. package/package.json +2 -2
@@ -172,6 +172,15 @@
172
172
  "parent": "trt_01KYEH1JHZFRWA4GSJPS78WGXK",
173
173
  "renames": []
174
174
  },
175
+ "evt_01M2AFR5W3YPQTCR6YVEQ368M5": {
176
+ "bakedName": "CLOSE",
177
+ "curName": "CLOSE",
178
+ "id": "evt_01M2AFR5W3YPQTCR6YVEQ368M5",
179
+ "kind": "event",
180
+ "owner": "workspace",
181
+ "parent": "trt_01KYEH1JHZFRWA4GSJPS78WGXK",
182
+ "renames": []
183
+ },
175
184
  "orb_01KYEH1JHZPWD4MVJ22QXP4X62": {
176
185
  "bakedName": "MigrationJobOrbital",
177
186
  "curName": "MigrationJobOrbital",
@@ -508,6 +517,10 @@
508
517
  "resolved": false,
509
518
  "resource": "@config.reviewSlot"
510
519
  },
520
+ {
521
+ "kind": "render-ui",
522
+ "resource": "toast"
523
+ },
511
524
  {
512
525
  "kind": "set",
513
526
  "resource": "@entity.createdAt"
@@ -1120,6 +1133,11 @@
1120
1133
  "synonyms": "preview ready, staging complete, review import",
1121
1134
  "tier": "domain"
1122
1135
  },
1136
+ {
1137
+ "id": "evt_01M2AFR5W3YPQTCR6YVEQ368M5",
1138
+ "key": "CLOSE",
1139
+ "name": "Close"
1140
+ },
1123
1141
  {
1124
1142
  "description": "migration.commit service result — committed count plus per-unit failures",
1125
1143
  "id": "evt_01KYEH1JHZMFZQV6JQ7BF49TGJ",
@@ -1386,6 +1404,20 @@
1386
1404
  {
1387
1405
  "error": "@entity.error"
1388
1406
  }
1407
+ ],
1408
+ [
1409
+ "render-ui",
1410
+ "toast",
1411
+ {
1412
+ "dismissible": true,
1413
+ "message": [
1414
+ "str/concat",
1415
+ "Couldn't list the source documents — ",
1416
+ "@payload.error"
1417
+ ],
1418
+ "type": "alert",
1419
+ "variant": "error"
1420
+ }
1389
1421
  ]
1390
1422
  ],
1391
1423
  "event": "MIGRATION_CALL_FAILED",
@@ -1580,6 +1612,20 @@
1580
1612
  {
1581
1613
  "error": "@entity.error"
1582
1614
  }
1615
+ ],
1616
+ [
1617
+ "render-ui",
1618
+ "toast",
1619
+ {
1620
+ "dismissible": true,
1621
+ "message": [
1622
+ "str/concat",
1623
+ "Couldn't fetch the document — ",
1624
+ "@payload.error"
1625
+ ],
1626
+ "type": "alert",
1627
+ "variant": "error"
1628
+ }
1583
1629
  ]
1584
1630
  ],
1585
1631
  "event": "MIGRATION_CALL_FAILED",
@@ -1696,6 +1742,54 @@
1696
1742
  "from": "reviewing",
1697
1743
  "to": "idle"
1698
1744
  },
1745
+ {
1746
+ "effects": [
1747
+ [
1748
+ "set",
1749
+ "@entity.status",
1750
+ "idle"
1751
+ ],
1752
+ [
1753
+ "set",
1754
+ "@entity.documents",
1755
+ []
1756
+ ],
1757
+ [
1758
+ "set",
1759
+ "@entity.document",
1760
+ {}
1761
+ ],
1762
+ [
1763
+ "set",
1764
+ "@entity.stats",
1765
+ {}
1766
+ ],
1767
+ [
1768
+ "set",
1769
+ "@entity.units",
1770
+ []
1771
+ ],
1772
+ [
1773
+ "set",
1774
+ "@entity.skipped",
1775
+ []
1776
+ ],
1777
+ [
1778
+ "set",
1779
+ "@entity.validationErrors",
1780
+ []
1781
+ ],
1782
+ [
1783
+ "render-ui",
1784
+ "@config.reviewSlot",
1785
+ null
1786
+ ]
1787
+ ],
1788
+ "event": "CLOSE",
1789
+ "eventId": "evt_01M2AFR5W3YPQTCR6YVEQ368M5",
1790
+ "from": "reviewing",
1791
+ "to": "idle"
1792
+ },
1699
1793
  {
1700
1794
  "effects": [
1701
1795
  [
@@ -1772,6 +1866,20 @@
1772
1866
  {
1773
1867
  "error": "@entity.error"
1774
1868
  }
1869
+ ],
1870
+ [
1871
+ "render-ui",
1872
+ "toast",
1873
+ {
1874
+ "dismissible": true,
1875
+ "message": [
1876
+ "str/concat",
1877
+ "Couldn't commit the import — ",
1878
+ "@payload.error"
1879
+ ],
1880
+ "type": "alert",
1881
+ "variant": "error"
1882
+ }
1775
1883
  ]
1776
1884
  ],
1777
1885
  "event": "MIGRATION_CALL_FAILED",
@@ -483,6 +483,10 @@
483
483
  "kind": "render-ui",
484
484
  "resolved": false,
485
485
  "resource": "@config.reviewSlot"
486
+ },
487
+ {
488
+ "kind": "render-ui",
489
+ "resource": "toast"
486
490
  }
487
491
  ],
488
492
  "emits": [
@@ -1264,6 +1268,22 @@
1264
1268
  "to": "idle"
1265
1269
  },
1266
1270
  {
1271
+ "effects": [
1272
+ [
1273
+ "render-ui",
1274
+ "toast",
1275
+ {
1276
+ "dismissible": true,
1277
+ "message": [
1278
+ "str/concat",
1279
+ "Couldn't load the moderation queue — ",
1280
+ "@payload.error"
1281
+ ],
1282
+ "type": "alert",
1283
+ "variant": "error"
1284
+ }
1285
+ ]
1286
+ ],
1267
1287
  "event": "ModQueueItemLoadFailed",
1268
1288
  "eventId": "evt_01KXG04FDR4RZJCC89Q17BPKHM",
1269
1289
  "from": "idle",
@@ -169,6 +169,33 @@
169
169
  "parent": "trt_01M0M65FFF9APPJEKH9Y561YA4",
170
170
  "renames": []
171
171
  },
172
+ "evt_01M2BBM09D1EGWWTFQ7KBXNCRQ": {
173
+ "bakedName": "INIT",
174
+ "curName": "INIT",
175
+ "id": "evt_01M2BBM09D1EGWWTFQ7KBXNCRQ",
176
+ "kind": "event",
177
+ "owner": "workspace",
178
+ "parent": "trt_01M0M65FFFH69MBB0G62CE4NHC",
179
+ "renames": []
180
+ },
181
+ "evt_01M2BBM09D80TYXT01NKWG60CV": {
182
+ "bakedName": "OPEN_DIGEST",
183
+ "curName": "OPEN_DIGEST",
184
+ "id": "evt_01M2BBM09D80TYXT01NKWG60CV",
185
+ "kind": "event",
186
+ "owner": "workspace",
187
+ "parent": "trt_01M0M65FFFH69MBB0G62CE4NHC",
188
+ "renames": []
189
+ },
190
+ "evt_01M2BBM09DTHEB42R4QPNGNXFN": {
191
+ "bakedName": "OPEN_SUBSCRIBE",
192
+ "curName": "OPEN_SUBSCRIBE",
193
+ "id": "evt_01M2BBM09DTHEB42R4QPNGNXFN",
194
+ "kind": "event",
195
+ "owner": "workspace",
196
+ "parent": "trt_01M0M65FFFH69MBB0G62CE4NHC",
197
+ "renames": []
198
+ },
172
199
  "orb_01M0M65FFF1A3816MJVC21AJN9": {
173
200
  "bakedName": "NotificationCenterOrbital",
174
201
  "curName": "NotificationCenterOrbital",
@@ -224,6 +251,22 @@
224
251
  "kind": "trait",
225
252
  "owner": "workspace",
226
253
  "renames": []
254
+ },
255
+ "trt_01M2BBM09DD6N4EZDAZRYTEGV8": {
256
+ "bakedName": "PreferenceEditorButtonDigest",
257
+ "curName": "PreferenceEditorButtonDigest",
258
+ "id": "trt_01M2BBM09DD6N4EZDAZRYTEGV8",
259
+ "kind": "trait",
260
+ "owner": "workspace",
261
+ "renames": []
262
+ },
263
+ "trt_01M2BBM09DW78BXQDGMHY05CJ3": {
264
+ "bakedName": "PreferenceEditorButtonSubscribe",
265
+ "curName": "PreferenceEditorButtonSubscribe",
266
+ "id": "trt_01M2BBM09DW78BXQDGMHY05CJ3",
267
+ "kind": "trait",
268
+ "owner": "workspace",
269
+ "renames": []
227
270
  }
228
271
  },
229
272
  "schemaVersion": 1
@@ -468,6 +511,14 @@
468
511
  {
469
512
  "ref": "PreferenceEditor",
470
513
  "refId": "trt_01M0M65FFFH69MBB0G62CE4NHC"
514
+ },
515
+ {
516
+ "ref": "PreferenceEditorButtonSubscribe",
517
+ "refId": "trt_01M2BBM09DW78BXQDGMHY05CJ3"
518
+ },
519
+ {
520
+ "ref": "PreferenceEditorButtonDigest",
521
+ "refId": "trt_01M2BBM09DD6N4EZDAZRYTEGV8"
471
522
  }
472
523
  ]
473
524
  },
@@ -776,13 +827,63 @@
776
827
  ]
777
828
  }
778
829
  },
830
+ {
831
+ "config": {
832
+ "action": {
833
+ "default": "OPEN_SUBSCRIBE",
834
+ "type": "unknown"
835
+ },
836
+ "label": {
837
+ "default": "Enable push notifications",
838
+ "type": "unknown"
839
+ }
840
+ },
841
+ "id": "trt_01M2BBM09DW78BXQDGMHY05CJ3",
842
+ "linkedEntity": "NotificationPreference",
843
+ "linkedEntityId": "ent_01M0M65FFF0G1ZEE15D76BK6XK",
844
+ "name": "PreferenceEditorButtonSubscribe",
845
+ "ref": "Button.traits.ButtonRender"
846
+ },
847
+ {
848
+ "config": {
849
+ "action": {
850
+ "default": "OPEN_DIGEST",
851
+ "type": "unknown"
852
+ },
853
+ "label": {
854
+ "default": "View notification digest",
855
+ "type": "unknown"
856
+ }
857
+ },
858
+ "id": "trt_01M2BBM09DD6N4EZDAZRYTEGV8",
859
+ "linkedEntity": "NotificationPreference",
860
+ "linkedEntityId": "ent_01M0M65FFF0G1ZEE15D76BK6XK",
861
+ "name": "PreferenceEditorButtonDigest",
862
+ "ref": "Button.traits.ButtonRender"
863
+ },
779
864
  {
780
865
  "category": "lifecycle",
781
866
  "effectRow": [
867
+ {
868
+ "kind": "fetch",
869
+ "resource": "NotificationPreference"
870
+ },
871
+ {
872
+ "kind": "navigate",
873
+ "resource": "/notifications/digest"
874
+ },
875
+ {
876
+ "kind": "navigate",
877
+ "resource": "/notifications/subscribe"
878
+ },
782
879
  {
783
880
  "kind": "persist",
784
881
  "resource": "NotificationPreference"
785
882
  },
883
+ {
884
+ "kind": "render-ui",
885
+ "resource": "main"
886
+ },
786
887
  {
787
888
  "kind": "render-ui",
788
889
  "resource": "toast"
@@ -839,6 +940,21 @@
839
940
  "scope": "instance",
840
941
  "stateMachine": {
841
942
  "events": [
943
+ {
944
+ "id": "evt_01M2BBM09D1EGWWTFQ7KBXNCRQ",
945
+ "key": "INIT",
946
+ "name": "Initialize"
947
+ },
948
+ {
949
+ "id": "evt_01M2BBM09DTHEB42R4QPNGNXFN",
950
+ "key": "OPEN_SUBSCRIBE",
951
+ "name": "Open Subscribe"
952
+ },
953
+ {
954
+ "id": "evt_01M2BBM09D80TYXT01NKWG60CV",
955
+ "key": "OPEN_DIGEST",
956
+ "name": "Open Digest"
957
+ },
842
958
  {
843
959
  "id": "evt_01M0M65FFFD1RTHPARJ5HZCKGZ",
844
960
  "key": "SAVE_PREFERENCE",
@@ -958,6 +1074,55 @@
958
1074
  }
959
1075
  ],
960
1076
  "transitions": [
1077
+ {
1078
+ "effects": [
1079
+ [
1080
+ "fetch",
1081
+ "NotificationPreference"
1082
+ ],
1083
+ [
1084
+ "render-ui",
1085
+ "main",
1086
+ {
1087
+ "children": [
1088
+ "@trait.PreferenceEditorButtonSubscribe",
1089
+ "@trait.PreferenceEditorButtonDigest"
1090
+ ],
1091
+ "direction": "vertical",
1092
+ "gap": "md",
1093
+ "type": "stack"
1094
+ }
1095
+ ]
1096
+ ],
1097
+ "event": "INIT",
1098
+ "eventId": "evt_01M2BBM09D1EGWWTFQ7KBXNCRQ",
1099
+ "from": "idle",
1100
+ "to": "idle"
1101
+ },
1102
+ {
1103
+ "effects": [
1104
+ [
1105
+ "navigate",
1106
+ "/notifications/subscribe"
1107
+ ]
1108
+ ],
1109
+ "event": "OPEN_SUBSCRIBE",
1110
+ "eventId": "evt_01M2BBM09DTHEB42R4QPNGNXFN",
1111
+ "from": "idle",
1112
+ "to": "idle"
1113
+ },
1114
+ {
1115
+ "effects": [
1116
+ [
1117
+ "navigate",
1118
+ "/notifications/digest"
1119
+ ]
1120
+ ],
1121
+ "event": "OPEN_DIGEST",
1122
+ "eventId": "evt_01M2BBM09D80TYXT01NKWG60CV",
1123
+ "from": "idle",
1124
+ "to": "idle"
1125
+ },
961
1126
  {
962
1127
  "effects": [
963
1128
  [
@@ -1087,6 +1252,10 @@
1087
1252
  "to": "idle"
1088
1253
  }
1089
1254
  ]
1255
+ },
1256
+ "traitEmbedIds": {
1257
+ "PreferenceEditorButtonDigest": "trt_01M2BBM09DD6N4EZDAZRYTEGV8",
1258
+ "PreferenceEditorButtonSubscribe": "trt_01M2BBM09DW78BXQDGMHY05CJ3"
1090
1259
  }
1091
1260
  },
1092
1261
  {
@@ -1135,6 +1304,10 @@
1135
1304
  "kind": "persist",
1136
1305
  "resource": "NotificationRecord"
1137
1306
  },
1307
+ {
1308
+ "kind": "render-ui",
1309
+ "resource": "toast"
1310
+ },
1138
1311
  {
1139
1312
  "kind": "set",
1140
1313
  "resource": "@entity.drainedCount"
@@ -1462,6 +1635,20 @@
1462
1635
  "set",
1463
1636
  "@entity.lastError",
1464
1637
  "@payload.error"
1638
+ ],
1639
+ [
1640
+ "render-ui",
1641
+ "toast",
1642
+ {
1643
+ "dismissible": true,
1644
+ "message": [
1645
+ "str/concat",
1646
+ "Couldn't send the notification digest — ",
1647
+ "@payload.error"
1648
+ ],
1649
+ "type": "alert",
1650
+ "variant": "error"
1651
+ }
1465
1652
  ]
1466
1653
  ],
1467
1654
  "event": "DIGEST_FAILED",
@@ -1658,6 +1845,20 @@
1658
1845
  "set",
1659
1846
  "@entity.lastError",
1660
1847
  "@payload.error"
1848
+ ],
1849
+ [
1850
+ "render-ui",
1851
+ "toast",
1852
+ {
1853
+ "dismissible": true,
1854
+ "message": [
1855
+ "str/concat",
1856
+ "Couldn't send the notification digest — ",
1857
+ "@payload.error"
1858
+ ],
1859
+ "type": "alert",
1860
+ "variant": "error"
1861
+ }
1661
1862
  ]
1662
1863
  ],
1663
1864
  "event": "DIGEST_FAILED",
@@ -1786,7 +1987,13 @@
1786
1987
  "type": "string"
1787
1988
  }
1788
1989
  ]
1789
- }
1990
+ },
1991
+ "uses": [
1992
+ {
1993
+ "as": "Button",
1994
+ "from": "std/behaviors/ui-button"
1995
+ }
1996
+ ]
1790
1997
  }
1791
1998
  ],
1792
1999
  "schemaVersion": 1,
@@ -2631,6 +2631,20 @@
2631
2631
  "recordedAt": "@now",
2632
2632
  "severity": "@entity.severity"
2633
2633
  }
2634
+ ],
2635
+ [
2636
+ "render-ui",
2637
+ "toast",
2638
+ {
2639
+ "dismissible": true,
2640
+ "message": [
2641
+ "str/concat",
2642
+ "Couldn't send the email notification — ",
2643
+ "@payload.error"
2644
+ ],
2645
+ "type": "alert",
2646
+ "variant": "error"
2647
+ }
2634
2648
  ]
2635
2649
  ],
2636
2650
  "event": "NOTIFY_EMAIL_FAILED",
@@ -2689,6 +2703,20 @@
2689
2703
  "recordedAt": "@now",
2690
2704
  "severity": "@entity.severity"
2691
2705
  }
2706
+ ],
2707
+ [
2708
+ "render-ui",
2709
+ "toast",
2710
+ {
2711
+ "dismissible": true,
2712
+ "message": [
2713
+ "str/concat",
2714
+ "Couldn't send the text message — ",
2715
+ "@payload.error"
2716
+ ],
2717
+ "type": "alert",
2718
+ "variant": "error"
2719
+ }
2692
2720
  ]
2693
2721
  ],
2694
2722
  "event": "NOTIFY_SMS_FAILED",
@@ -2747,6 +2775,20 @@
2747
2775
  "recordedAt": "@now",
2748
2776
  "severity": "@entity.severity"
2749
2777
  }
2778
+ ],
2779
+ [
2780
+ "render-ui",
2781
+ "toast",
2782
+ {
2783
+ "dismissible": true,
2784
+ "message": [
2785
+ "str/concat",
2786
+ "Couldn't send the webhook notification — ",
2787
+ "@payload.error"
2788
+ ],
2789
+ "type": "alert",
2790
+ "variant": "error"
2791
+ }
2750
2792
  ]
2751
2793
  ],
2752
2794
  "event": "NOTIFY_WEBHOOK_FAILED",
@@ -2805,6 +2847,20 @@
2805
2847
  "recordedAt": "@now",
2806
2848
  "severity": "@entity.severity"
2807
2849
  }
2850
+ ],
2851
+ [
2852
+ "render-ui",
2853
+ "toast",
2854
+ {
2855
+ "dismissible": true,
2856
+ "message": [
2857
+ "str/concat",
2858
+ "Couldn't send the push notification — ",
2859
+ "@payload.error"
2860
+ ],
2861
+ "type": "alert",
2862
+ "variant": "error"
2863
+ }
2808
2864
  ]
2809
2865
  ],
2810
2866
  "event": "NOTIFY_PUSH_FAILED",
@@ -2837,6 +2893,20 @@
2837
2893
  "recordedAt": "@now",
2838
2894
  "severity": "@entity.severity"
2839
2895
  }
2896
+ ],
2897
+ [
2898
+ "render-ui",
2899
+ "toast",
2900
+ {
2901
+ "dismissible": true,
2902
+ "message": [
2903
+ "str/concat",
2904
+ "Couldn't look up notification preferences — ",
2905
+ "@payload.error"
2906
+ ],
2907
+ "type": "alert",
2908
+ "variant": "error"
2909
+ }
2840
2910
  ]
2841
2911
  ],
2842
2912
  "event": "NOTIFY_LOOKUP_FAILED",
@@ -237,6 +237,10 @@
237
237
  "resolved": false,
238
238
  "resource": "@config.targetEntity"
239
239
  },
240
+ {
241
+ "kind": "render-ui",
242
+ "resource": "toast"
243
+ },
240
244
  {
241
245
  "kind": "set",
242
246
  "resource": "@entity.headId"
@@ -467,6 +471,22 @@
467
471
  "to": "idle"
468
472
  },
469
473
  {
474
+ "effects": [
475
+ [
476
+ "render-ui",
477
+ "toast",
478
+ {
479
+ "dismissible": true,
480
+ "message": [
481
+ "str/concat",
482
+ "Couldn't scan for reminders — ",
483
+ "@payload.error"
484
+ ],
485
+ "type": "alert",
486
+ "variant": "error"
487
+ }
488
+ ]
489
+ ],
470
490
  "event": "ScanFailed",
471
491
  "eventId": "evt_01KXG04FGHD8JW00QXQEBTTMH9",
472
492
  "from": "idle",
@@ -601,6 +621,22 @@
601
621
  "to": "idle"
602
622
  },
603
623
  {
624
+ "effects": [
625
+ [
626
+ "render-ui",
627
+ "toast",
628
+ {
629
+ "dismissible": true,
630
+ "message": [
631
+ "str/concat",
632
+ "Couldn't scan for reminders — ",
633
+ "@payload.error"
634
+ ],
635
+ "type": "alert",
636
+ "variant": "error"
637
+ }
638
+ ]
639
+ ],
604
640
  "event": "ScanFailed",
605
641
  "eventId": "evt_01KXG04FGHD8JW00QXQEBTTMH9",
606
642
  "from": "scanning",
@@ -218,6 +218,10 @@
218
218
  "kind": "persist",
219
219
  "resolved": false,
220
220
  "resource": "@config.targetEntity"
221
+ },
222
+ {
223
+ "kind": "render-ui",
224
+ "resource": "toast"
221
225
  }
222
226
  ],
223
227
  "emits": [
@@ -453,6 +457,22 @@
453
457
  "to": "idle"
454
458
  },
455
459
  {
460
+ "effects": [
461
+ [
462
+ "render-ui",
463
+ "toast",
464
+ {
465
+ "dismissible": true,
466
+ "message": [
467
+ "str/concat",
468
+ "Couldn't change the status — ",
469
+ "@payload.error"
470
+ ],
471
+ "type": "alert",
472
+ "variant": "error"
473
+ }
474
+ ]
475
+ ],
456
476
  "event": "StatusChangeFailed",
457
477
  "eventId": "evt_01KXG04FHB2WR4ZY4SV29CFF0D",
458
478
  "from": "idle",