@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-telematics-event",
3
3
  "version": "1.0.0",
4
- "description": "std-telematics-event — read-only per-vehicle telemetry stream from GPS/OBD-II devices with acknowledge and severity/type filtering.",
4
+ "description": "std-telematics-event — read-only per-vehicle telemetry stream from GPS/OBD-II devices. Lists events in `browsing`; opens event detail in `viewing_single` with Acknowledge action.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "TelematicsEventOrbital",
@@ -88,7 +88,7 @@
88
88
  "linkedEntity": "TelematicsEvent",
89
89
  "emits": [
90
90
  {
91
- "event": "VIEW",
91
+ "event": "OPEN_EVENT",
92
92
  "payloadSchema": [
93
93
  {
94
94
  "name": "id",
@@ -143,6 +143,9 @@
143
143
  }
144
144
  ]
145
145
  },
146
+ {
147
+ "event": "CLOSE_VIEW"
148
+ },
146
149
  {
147
150
  "event": "ACKNOWLEDGE",
148
151
  "payloadSchema": [
@@ -150,52 +153,6 @@
150
153
  "name": "id",
151
154
  "type": "string",
152
155
  "required": true
153
- },
154
- {
155
- "name": "row.id",
156
- "type": "string",
157
- "required": true
158
- },
159
- {
160
- "name": "row.vehicleId",
161
- "type": "string",
162
- "required": true
163
- },
164
- {
165
- "name": "row.eventType",
166
- "type": "string"
167
- },
168
- {
169
- "name": "row.severity",
170
- "type": "string"
171
- },
172
- {
173
- "name": "row.speed",
174
- "type": "number"
175
- },
176
- {
177
- "name": "row.locationLat",
178
- "type": "number"
179
- },
180
- {
181
- "name": "row.locationLng",
182
- "type": "number"
183
- },
184
- {
185
- "name": "row.occurredAt",
186
- "type": "string"
187
- },
188
- {
189
- "name": "row.acknowledged",
190
- "type": "boolean"
191
- },
192
- {
193
- "name": "row.acknowledgedBy",
194
- "type": "string"
195
- },
196
- {
197
- "name": "row.acknowledgedAt",
198
- "type": "string"
199
156
  }
200
157
  ]
201
158
  },
@@ -233,7 +190,10 @@
233
190
  "isInitial": true
234
191
  },
235
192
  {
236
- "name": "viewing"
193
+ "name": "browsing"
194
+ },
195
+ {
196
+ "name": "viewing_single"
237
197
  },
238
198
  {
239
199
  "name": "error"
@@ -273,52 +233,34 @@
273
233
  ]
274
234
  },
275
235
  {
276
- "key": "ACKNOWLEDGE",
277
- "name": "Acknowledge",
236
+ "key": "OPEN_EVENT",
237
+ "name": "Open Event",
278
238
  "payloadSchema": [
279
239
  {
280
240
  "name": "id",
281
241
  "type": "string",
282
242
  "required": true
283
- }
284
- ]
285
- },
286
- {
287
- "key": "VIEW",
288
- "name": "View",
289
- "payloadSchema": [
243
+ },
290
244
  {
291
- "name": "id",
292
- "type": "string",
293
- "required": true
245
+ "name": "row",
246
+ "type": "TelematicsEvent"
294
247
  }
295
248
  ]
296
249
  },
297
250
  {
298
- "key": "REFRESH",
299
- "name": "Refresh"
300
- },
301
- {
302
- "key": "FILTER_SEVERITY",
303
- "name": "Filter Severity",
251
+ "key": "ACKNOWLEDGE",
252
+ "name": "Acknowledge",
304
253
  "payloadSchema": [
305
254
  {
306
- "name": "severity",
255
+ "name": "id",
307
256
  "type": "string",
308
257
  "required": true
309
258
  }
310
259
  ]
311
260
  },
312
261
  {
313
- "key": "FILTER_TYPE",
314
- "name": "Filter Type",
315
- "payloadSchema": [
316
- {
317
- "name": "eventType",
318
- "type": "string",
319
- "required": true
320
- }
321
- ]
262
+ "key": "CLOSE_VIEW",
263
+ "name": "Close View"
322
264
  }
323
265
  ],
324
266
  "transitions": [
@@ -332,8 +274,8 @@
332
274
  "TelematicsEvent",
333
275
  {
334
276
  "emit": {
335
- "failure": "TelematicsEventLoadFailed",
336
- "success": "TelematicsEventLoaded"
277
+ "success": "TelematicsEventLoaded",
278
+ "failure": "TelematicsEventLoadFailed"
337
279
  }
338
280
  }
339
281
  ],
@@ -341,158 +283,115 @@
341
283
  "render-ui",
342
284
  "main",
343
285
  {
344
- "type": "stack",
345
286
  "children": [
346
287
  {
347
288
  "type": "spinner"
348
289
  },
349
290
  {
350
- "color": "muted",
351
291
  "content": "Loading telematics events…",
352
292
  "type": "typography",
353
- "variant": "caption"
293
+ "variant": "caption",
294
+ "color": "muted"
354
295
  }
355
296
  ],
356
- "direction": "vertical",
297
+ "type": "stack",
357
298
  "gap": "md",
358
299
  "align": "center",
359
- "className": "py-12"
300
+ "className": "py-12",
301
+ "direction": "vertical"
360
302
  }
361
303
  ]
362
304
  ]
363
305
  },
364
306
  {
365
307
  "from": "loading",
366
- "to": "viewing",
308
+ "to": "browsing",
367
309
  "event": "TelematicsEventLoaded",
368
310
  "effects": [
369
311
  [
370
312
  "render-ui",
371
313
  "main",
372
314
  {
373
- "direction": "vertical",
374
- "type": "stack",
315
+ "gap": "md",
375
316
  "children": [
376
317
  {
377
318
  "children": [
378
319
  {
379
- "name": "activity",
380
- "type": "icon"
320
+ "type": "icon",
321
+ "name": "activity"
381
322
  },
382
323
  {
324
+ "content": "@config.title",
383
325
  "variant": "h3",
384
- "type": "typography",
385
- "content": "@config.title"
326
+ "type": "typography"
386
327
  }
387
328
  ],
388
- "direction": "horizontal",
389
329
  "gap": "sm",
330
+ "direction": "horizontal",
390
331
  "type": "stack",
391
332
  "align": "center"
392
333
  },
393
334
  {
394
- "type": "divider"
395
- },
396
- {
397
- "direction": "horizontal",
398
- "type": "stack",
399
- "gap": "md",
400
- "align": "center",
335
+ "type": "simple-grid",
336
+ "cols": 4.0,
401
337
  "children": [
402
338
  {
403
- "variant": "radial",
404
- "unit": "%",
405
- "type": "meter",
406
- "label": "Engine Health",
407
- "thresholds": [
408
- {
409
- "color": "danger",
410
- "value": 30.0
411
- },
412
- {
413
- "value": 70.0,
414
- "color": "warning"
415
- }
416
- ],
417
- "max": 100.0,
418
- "value": 72.0,
419
- "min": 0.0
339
+ "icon": "activity",
340
+ "label": "Events 24h",
341
+ "type": "stat-display",
342
+ "value": "@payload.data.length"
343
+ },
344
+ {
345
+ "value": "3",
346
+ "icon": "alert-triangle",
347
+ "label": "Critical",
348
+ "type": "stat-display"
349
+ },
350
+ {
351
+ "icon": "bell",
352
+ "value": "12",
353
+ "type": "stat-display",
354
+ "label": "Unacked"
420
355
  },
421
356
  {
422
- "type": "range-slider",
423
- "value": 80.0,
424
- "showTooltip": true,
425
- "action": "FILTER_SEVERITY",
426
- "max": 200.0,
427
- "step": 5.0,
428
- "min": 0.0
357
+ "icon": "gauge",
358
+ "type": "stat-display",
359
+ "label": "Most common",
360
+ "value": "speeding"
429
361
  }
430
362
  ]
431
363
  },
432
364
  {
433
- "maxRadius": 40.0,
434
- "type": "svg-pulse",
435
- "cx": 60.0,
436
- "rings": 3.0,
437
- "cy": 60.0,
438
- "color": "warning",
439
- "animated": true
440
- },
441
- {
442
- "from": {
443
- "x": 40.0,
444
- "y": 80.0
445
- },
446
- "eventLabel": "hard-brake",
447
- "type": "transition-arrow",
448
- "guardHint": "severity >= warning",
449
- "isActive": true,
450
- "to": {
451
- "x": 220.0,
452
- "y": 80.0
453
- }
454
- },
455
- {
456
- "fields": [
457
- "eventType",
458
- "occurredAt",
459
- "severity"
460
- ],
461
- "entity": "@payload.data",
462
- "type": "timeline"
463
- },
464
- {
465
- "maxHeight": 240.0,
466
- "type": "event-log",
467
- "label": "Live Event Stream",
468
- "entries": []
365
+ "type": "divider"
469
366
  },
470
367
  {
368
+ "gap": "sm",
369
+ "type": "data-grid",
471
370
  "fields": [
472
371
  {
372
+ "variant": "caption",
473
373
  "name": "vehicleId",
474
- "label": "Vehicle",
475
- "variant": "caption"
374
+ "label": "Vehicle"
476
375
  },
477
376
  {
478
- "label": "Type",
479
377
  "name": "eventType",
378
+ "label": "Type",
480
379
  "variant": "badge"
481
380
  },
482
381
  {
382
+ "name": "severity",
483
383
  "label": "Severity",
484
- "variant": "badge",
485
- "name": "severity"
384
+ "variant": "badge"
486
385
  },
487
386
  {
488
- "name": "speed",
387
+ "variant": "caption",
489
388
  "label": "Speed",
490
- "variant": "caption"
389
+ "name": "speed"
491
390
  },
492
391
  {
493
- "variant": "caption",
392
+ "label": "Occurred",
494
393
  "name": "occurredAt",
495
- "label": "Occurred"
394
+ "variant": "caption"
496
395
  },
497
396
  {
498
397
  "label": "Ack",
@@ -501,24 +400,24 @@
501
400
  }
502
401
  ],
503
402
  "entity": "@payload.data",
504
- "gap": "sm",
505
- "type": "data-grid",
506
403
  "cols": 1.0,
507
404
  "itemActions": [
508
405
  {
509
- "event": "ACKNOWLEDGE",
406
+ "icon": "arrow-right",
407
+ "label": "Open",
510
408
  "variant": "primary",
511
- "label": "Acknowledge"
409
+ "event": "OPEN_EVENT"
512
410
  },
513
411
  {
514
- "event": "VIEW",
515
412
  "variant": "secondary",
516
- "label": "View"
413
+ "label": "Acknowledge",
414
+ "event": "ACKNOWLEDGE"
517
415
  }
518
416
  ]
519
417
  }
520
418
  ],
521
- "gap": "md"
419
+ "direction": "vertical",
420
+ "type": "stack"
522
421
  }
523
422
  ]
524
423
  ]
@@ -532,60 +431,209 @@
532
431
  "render-ui",
533
432
  "main",
534
433
  {
535
- "variant": "error",
536
434
  "message": "@payload.error",
537
- "type": "alert"
435
+ "type": "alert",
436
+ "variant": "error"
538
437
  }
539
438
  ]
540
439
  ]
541
440
  },
542
441
  {
543
- "from": "viewing",
544
- "to": "viewing",
545
- "event": "ACKNOWLEDGE",
442
+ "from": "browsing",
443
+ "to": "viewing_single",
444
+ "event": "OPEN_EVENT",
546
445
  "effects": [
547
446
  [
548
447
  "set",
549
448
  "@entity.id",
550
- "@payload.id"
449
+ "@payload.row.id"
551
450
  ],
552
451
  [
553
- "render-ui",
554
- "main",
555
- {
556
- "type": "alert",
557
- "message": "Event acknowledged",
558
- "variant": "success"
559
- }
560
- ]
561
- ]
562
- },
563
- {
564
- "from": "viewing",
565
- "to": "viewing",
566
- "event": "VIEW",
567
- "effects": [
452
+ "set",
453
+ "@entity.vehicleId",
454
+ "@payload.row.vehicleId"
455
+ ],
568
456
  [
569
457
  "set",
570
- "@entity.id",
571
- "@payload.id"
458
+ "@entity.eventType",
459
+ "@payload.row.eventType"
460
+ ],
461
+ [
462
+ "set",
463
+ "@entity.severity",
464
+ "@payload.row.severity"
465
+ ],
466
+ [
467
+ "set",
468
+ "@entity.speed",
469
+ "@payload.row.speed"
470
+ ],
471
+ [
472
+ "set",
473
+ "@entity.locationLat",
474
+ "@payload.row.locationLat"
475
+ ],
476
+ [
477
+ "set",
478
+ "@entity.locationLng",
479
+ "@payload.row.locationLng"
480
+ ],
481
+ [
482
+ "set",
483
+ "@entity.occurredAt",
484
+ "@payload.row.occurredAt"
485
+ ],
486
+ [
487
+ "set",
488
+ "@entity.acknowledgedBy",
489
+ "@payload.row.acknowledgedBy"
490
+ ],
491
+ [
492
+ "set",
493
+ "@entity.acknowledgedAt",
494
+ "@payload.row.acknowledgedAt"
572
495
  ],
573
496
  [
574
497
  "render-ui",
575
498
  "main",
576
499
  {
577
- "type": "alert",
578
- "variant": "info",
579
- "message": "Viewing event"
500
+ "gap": "md",
501
+ "type": "stack",
502
+ "direction": "vertical",
503
+ "children": [
504
+ {
505
+ "children": [
506
+ {
507
+ "type": "button",
508
+ "variant": "ghost",
509
+ "action": "CLOSE_VIEW",
510
+ "label": "Back"
511
+ },
512
+ {
513
+ "type": "icon",
514
+ "name": "activity"
515
+ },
516
+ {
517
+ "type": "typography",
518
+ "content": "@entity.eventType",
519
+ "variant": "h3"
520
+ },
521
+ {
522
+ "type": "badge",
523
+ "variant": "default",
524
+ "label": "@entity.severity"
525
+ }
526
+ ],
527
+ "align": "center",
528
+ "type": "stack",
529
+ "gap": "sm",
530
+ "direction": "horizontal"
531
+ },
532
+ {
533
+ "type": "divider"
534
+ },
535
+ {
536
+ "direction": "vertical",
537
+ "gap": "sm",
538
+ "children": [
539
+ {
540
+ "gap": "md",
541
+ "children": [
542
+ {
543
+ "type": "typography",
544
+ "content": "Vehicle",
545
+ "variant": "caption",
546
+ "color": "muted"
547
+ },
548
+ {
549
+ "type": "typography",
550
+ "variant": "body",
551
+ "content": "@entity.vehicleId"
552
+ }
553
+ ],
554
+ "type": "stack",
555
+ "direction": "horizontal"
556
+ },
557
+ {
558
+ "gap": "md",
559
+ "type": "stack",
560
+ "direction": "horizontal",
561
+ "children": [
562
+ {
563
+ "type": "typography",
564
+ "color": "muted",
565
+ "variant": "caption",
566
+ "content": "Acknowledged by"
567
+ },
568
+ {
569
+ "content": "@entity.acknowledgedBy",
570
+ "variant": "body",
571
+ "type": "typography"
572
+ }
573
+ ]
574
+ }
575
+ ],
576
+ "type": "stack"
577
+ },
578
+ {
579
+ "type": "divider"
580
+ },
581
+ {
582
+ "children": [
583
+ {
584
+ "label": "Speed",
585
+ "type": "stat-display",
586
+ "icon": "gauge",
587
+ "value": "@entity.speed"
588
+ },
589
+ {
590
+ "type": "stat-display",
591
+ "icon": "map-pin",
592
+ "value": "@entity.locationLat",
593
+ "label": "Lat"
594
+ },
595
+ {
596
+ "value": "@entity.locationLng",
597
+ "type": "stat-display",
598
+ "icon": "map-pin",
599
+ "label": "Lng"
600
+ }
601
+ ],
602
+ "type": "simple-grid",
603
+ "cols": 3.0
604
+ },
605
+ {
606
+ "gap": "sm",
607
+ "direction": "horizontal",
608
+ "children": [
609
+ {
610
+ "variant": "primary",
611
+ "actionPayload": {
612
+ "id": "@entity.id"
613
+ },
614
+ "label": "Acknowledge",
615
+ "type": "button",
616
+ "action": "ACKNOWLEDGE"
617
+ }
618
+ ],
619
+ "align": "center",
620
+ "type": "stack"
621
+ }
622
+ ]
580
623
  }
581
624
  ]
582
625
  ]
583
626
  },
584
627
  {
585
- "from": "viewing",
628
+ "from": "browsing",
586
629
  "to": "loading",
587
- "event": "REFRESH",
630
+ "event": "ACKNOWLEDGE",
588
631
  "effects": [
632
+ [
633
+ "set",
634
+ "@entity.id",
635
+ "@payload.id"
636
+ ],
589
637
  [
590
638
  "fetch",
591
639
  "TelematicsEvent",
@@ -600,16 +648,30 @@
600
648
  "render-ui",
601
649
  "main",
602
650
  {
603
- "type": "spinner",
604
- "size": "sm"
651
+ "type": "stack",
652
+ "gap": "md",
653
+ "align": "center",
654
+ "direction": "vertical",
655
+ "className": "py-12",
656
+ "children": [
657
+ {
658
+ "type": "spinner"
659
+ },
660
+ {
661
+ "content": "Acknowledging event…",
662
+ "type": "typography",
663
+ "variant": "caption",
664
+ "color": "muted"
665
+ }
666
+ ]
605
667
  }
606
668
  ]
607
669
  ]
608
670
  },
609
671
  {
610
- "from": "viewing",
672
+ "from": "viewing_single",
611
673
  "to": "loading",
612
- "event": "FILTER_SEVERITY",
674
+ "event": "CLOSE_VIEW",
613
675
  "effects": [
614
676
  [
615
677
  "fetch",
@@ -625,17 +687,36 @@
625
687
  "render-ui",
626
688
  "main",
627
689
  {
628
- "size": "sm",
629
- "type": "spinner"
690
+ "type": "stack",
691
+ "className": "py-12",
692
+ "children": [
693
+ {
694
+ "type": "spinner"
695
+ },
696
+ {
697
+ "variant": "caption",
698
+ "type": "typography",
699
+ "color": "muted",
700
+ "content": "Loading events…"
701
+ }
702
+ ],
703
+ "gap": "md",
704
+ "direction": "vertical",
705
+ "align": "center"
630
706
  }
631
707
  ]
632
708
  ]
633
709
  },
634
710
  {
635
- "from": "viewing",
711
+ "from": "viewing_single",
636
712
  "to": "loading",
637
- "event": "FILTER_TYPE",
713
+ "event": "ACKNOWLEDGE",
638
714
  "effects": [
715
+ [
716
+ "set",
717
+ "@entity.id",
718
+ "@payload.id"
719
+ ],
639
720
  [
640
721
  "fetch",
641
722
  "TelematicsEvent",
@@ -650,8 +731,22 @@
650
731
  "render-ui",
651
732
  "main",
652
733
  {
653
- "type": "spinner",
654
- "size": "sm"
734
+ "align": "center",
735
+ "children": [
736
+ {
737
+ "type": "spinner"
738
+ },
739
+ {
740
+ "color": "muted",
741
+ "type": "typography",
742
+ "content": "Acknowledging event…",
743
+ "variant": "caption"
744
+ }
745
+ ],
746
+ "className": "py-12",
747
+ "type": "stack",
748
+ "direction": "vertical",
749
+ "gap": "md"
655
750
  }
656
751
  ]
657
752
  ]
@@ -675,8 +770,8 @@
675
770
  "render-ui",
676
771
  "main",
677
772
  {
678
- "size": "sm",
679
- "type": "spinner"
773
+ "type": "spinner",
774
+ "size": "sm"
680
775
  }
681
776
  ]
682
777
  ]