@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-court-deadline",
3
3
  "version": "1.0.0",
4
- "description": "std-court-deadline — statutory filing deadline tied to a legal matter. Browses deadlines in a data-grid with Complete / Extend row actions.",
4
+ "description": "std-court-deadline — statutory filing deadline tied to a legal matter. Lists deadlines in `browsing`; opens detail in `viewing_single` with Complete / Extend actions.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "CourtDeadlineOrbital",
@@ -82,6 +82,63 @@
82
82
  "category": "interaction",
83
83
  "linkedEntity": "CourtDeadline",
84
84
  "emits": [
85
+ {
86
+ "event": "OPEN_DEADLINE",
87
+ "payloadSchema": [
88
+ {
89
+ "name": "id",
90
+ "type": "string",
91
+ "required": true
92
+ },
93
+ {
94
+ "name": "row.id",
95
+ "type": "string",
96
+ "required": true
97
+ },
98
+ {
99
+ "name": "row.matterId",
100
+ "type": "string",
101
+ "required": true
102
+ },
103
+ {
104
+ "name": "row.title",
105
+ "type": "string",
106
+ "required": true
107
+ },
108
+ {
109
+ "name": "row.deadlineType",
110
+ "type": "string"
111
+ },
112
+ {
113
+ "name": "row.dueAt",
114
+ "type": "string",
115
+ "required": true
116
+ },
117
+ {
118
+ "name": "row.jurisdiction",
119
+ "type": "string"
120
+ },
121
+ {
122
+ "name": "row.assignedTo",
123
+ "type": "string"
124
+ },
125
+ {
126
+ "name": "row.status",
127
+ "type": "string"
128
+ },
129
+ {
130
+ "name": "row.reminderSent",
131
+ "type": "boolean"
132
+ },
133
+ {
134
+ "name": "row.notes",
135
+ "type": "string"
136
+ }
137
+ ]
138
+ },
139
+ {
140
+ "event": "CLOSE_VIEW"
141
+ },
85
142
  {
86
143
  "event": "MARK_COMPLETED",
87
144
  "payloadSchema": [
@@ -134,6 +191,9 @@
134
191
  {
135
192
  "name": "browsing"
136
193
  },
194
+ {
195
+ "name": "viewing_single"
196
+ },
137
197
  {
138
198
  "name": "error"
139
199
  }
@@ -167,6 +227,21 @@
167
227
  }
168
228
  ]
169
229
  },
230
+ {
231
+ "key": "OPEN_DEADLINE",
232
+ "name": "Open Deadline",
233
+ "payloadSchema": [
234
+ {
235
+ "name": "id",
236
+ "type": "string",
237
+ "required": true
238
+ },
239
+ {
240
+ "name": "row",
241
+ "type": "CourtDeadline"
242
+ }
243
+ ]
244
+ },
170
245
  {
171
246
  "key": "MARK_COMPLETED",
172
247
  "name": "Mark Completed",
@@ -178,6 +253,10 @@
178
253
  }
179
254
  ]
180
255
  },
256
+ {
257
+ "key": "CLOSE_VIEW",
258
+ "name": "Close View"
259
+ },
181
260
  {
182
261
  "key": "EXTEND_DEADLINE",
183
262
  "name": "Extend Deadline",
@@ -210,7 +289,22 @@
210
289
  "render-ui",
211
290
  "main",
212
291
  {
213
- "type": "spinner"
292
+ "gap": "md",
293
+ "direction": "vertical",
294
+ "className": "py-12",
295
+ "type": "stack",
296
+ "align": "center",
297
+ "children": [
298
+ {
299
+ "type": "spinner"
300
+ },
301
+ {
302
+ "content": "Loading deadlines…",
303
+ "type": "typography",
304
+ "variant": "caption",
305
+ "color": "muted"
306
+ }
307
+ ]
214
308
  }
215
309
  ]
216
310
  ]
@@ -226,128 +320,110 @@
226
320
  {
227
321
  "children": [
228
322
  {
229
- "options": [
230
- {
231
- "value": "this-week",
232
- "label": "This Week"
233
- },
234
- {
235
- "label": "This Month",
236
- "value": "this-month"
237
- },
323
+ "children": [
238
324
  {
239
- "value": "this-quarter",
240
- "label": "This Quarter"
325
+ "type": "icon",
326
+ "name": "calendar-clock"
241
327
  },
242
328
  {
243
- "value": "this-year",
244
- "label": "This Year"
329
+ "variant": "h3",
330
+ "type": "typography",
331
+ "content": "@config.title"
245
332
  }
246
333
  ],
247
- "selected": "this-month",
248
- "type": "date-range-selector"
334
+ "direction": "horizontal",
335
+ "gap": "sm",
336
+ "align": "center",
337
+ "type": "stack"
249
338
  },
250
339
  {
251
- "fields": [
252
- "title",
253
- "date",
254
- "status",
255
- "description"
256
- ],
257
- "items": [
258
- {
259
- "status": "complete",
260
- "id": "filing",
261
- "title": "Filing",
262
- "description": "Initial filing submitted",
263
- "date": "2026-01-15"
264
- },
340
+ "type": "simple-grid",
341
+ "children": [
265
342
  {
266
- "description": "Defendant response due",
267
- "id": "response",
268
- "date": "2026-02-20",
269
- "status": "active",
270
- "title": "Response"
343
+ "type": "stat-display",
344
+ "label": "Total deadlines",
345
+ "value": "@payload.data.length",
346
+ "icon": "calendar-clock"
271
347
  },
272
348
  {
273
- "title": "Discovery",
274
- "date": "2026-04-10",
275
- "id": "discovery",
276
- "status": "pending",
277
- "description": "Discovery cutoff"
349
+ "type": "stat-display",
350
+ "value": "7",
351
+ "icon": "alert-triangle",
352
+ "label": "Due this week"
278
353
  },
279
354
  {
280
- "title": "Hearing",
281
- "status": "pending",
282
- "description": "Pretrial hearing",
283
- "id": "hearing",
284
- "date": "2026-06-15"
355
+ "label": "Completed",
356
+ "icon": "check-circle",
357
+ "value": "84%",
358
+ "type": "stat-display"
285
359
  },
286
360
  {
287
- "id": "trial",
288
- "title": "Trial",
289
- "date": "2026-09-01",
290
- "status": "pending",
291
- "description": "Trial date"
361
+ "value": "2",
362
+ "type": "stat-display",
363
+ "label": "Missed YTD",
364
+ "icon": "x-circle"
292
365
  }
293
366
  ],
294
- "type": "timeline",
295
- "title": "Deadline Chronology"
367
+ "cols": 4.0
368
+ },
369
+ {
370
+ "type": "divider"
296
371
  },
297
372
  {
298
373
  "itemActions": [
299
374
  {
300
375
  "variant": "primary",
301
- "label": "Complete",
302
- "event": "MARK_COMPLETED"
376
+ "icon": "arrow-right",
377
+ "label": "Open",
378
+ "event": "OPEN_DEADLINE"
303
379
  },
304
380
  {
305
- "variant": "ghost",
306
- "label": "Extend",
307
- "event": "EXTEND_DEADLINE"
381
+ "event": "MARK_COMPLETED",
382
+ "label": "Complete",
383
+ "variant": "danger"
308
384
  }
309
385
  ],
310
386
  "gap": "sm",
387
+ "type": "data-grid",
311
388
  "fields": [
312
389
  {
313
390
  "variant": "caption",
314
- "label": "Title",
315
- "name": "title"
391
+ "name": "title",
392
+ "label": "Title"
316
393
  },
317
394
  {
318
- "label": "Type",
319
395
  "variant": "badge",
320
- "name": "deadlineType"
396
+ "name": "deadlineType",
397
+ "label": "Type"
321
398
  },
322
399
  {
400
+ "label": "Due",
323
401
  "variant": "caption",
324
- "name": "dueAt",
325
- "label": "Due"
402
+ "name": "dueAt"
326
403
  },
327
404
  {
328
405
  "name": "jurisdiction",
329
- "label": "Jurisdiction",
330
- "variant": "caption"
406
+ "variant": "caption",
407
+ "label": "Jurisdiction"
331
408
  },
332
409
  {
333
- "label": "Assigned",
410
+ "variant": "caption",
334
411
  "name": "assignedTo",
335
- "variant": "caption"
412
+ "label": "Assigned"
336
413
  },
337
414
  {
415
+ "name": "status",
338
416
  "label": "Status",
339
- "variant": "badge",
340
- "name": "status"
417
+ "variant": "badge"
341
418
  }
342
419
  ],
343
- "type": "data-grid",
344
- "cols": 1.0,
345
- "entity": "@payload.data"
420
+ "entity": "@payload.data",
421
+ "cols": 1.0
346
422
  }
347
423
  ],
348
424
  "type": "stack",
349
- "gap": "md",
350
- "direction": "vertical"
425
+ "direction": "vertical",
426
+ "gap": "md"
351
427
  }
352
428
  ]
353
429
  ]
@@ -362,15 +438,240 @@
362
438
  "main",
363
439
  {
364
440
  "type": "alert",
365
- "variant": "error",
366
- "message": "@payload.error"
441
+ "message": "@payload.error",
442
+ "variant": "error"
367
443
  }
368
444
  ]
369
445
  ]
370
446
  },
371
447
  {
372
448
  "from": "browsing",
373
- "to": "browsing",
449
+ "to": "viewing_single",
450
+ "event": "OPEN_DEADLINE",
451
+ "effects": [
452
+ [
453
+ "set",
454
+ "@entity.id",
455
+ "@payload.row.id"
456
+ ],
457
+ [
458
+ "set",
459
+ "@entity.matterId",
460
+ "@payload.row.matterId"
461
+ ],
462
+ [
463
+ "set",
464
+ "@entity.title",
465
+ "@payload.row.title"
466
+ ],
467
+ [
468
+ "set",
469
+ "@entity.deadlineType",
470
+ "@payload.row.deadlineType"
471
+ ],
472
+ [
473
+ "set",
474
+ "@entity.dueAt",
475
+ "@payload.row.dueAt"
476
+ ],
477
+ [
478
+ "set",
479
+ "@entity.jurisdiction",
480
+ "@payload.row.jurisdiction"
481
+ ],
482
+ [
483
+ "set",
484
+ "@entity.assignedTo",
485
+ "@payload.row.assignedTo"
486
+ ],
487
+ [
488
+ "set",
489
+ "@entity.status",
490
+ "@payload.row.status"
491
+ ],
492
+ [
493
+ "set",
494
+ "@entity.notes",
495
+ "@payload.row.notes"
496
+ ],
497
+ [
498
+ "render-ui",
499
+ "main",
500
+ {
501
+ "children": [
502
+ {
503
+ "type": "stack",
504
+ "gap": "sm",
505
+ "align": "center",
506
+ "direction": "horizontal",
507
+ "children": [
508
+ {
509
+ "type": "button",
510
+ "variant": "ghost",
511
+ "action": "CLOSE_VIEW",
512
+ "label": "Back"
513
+ },
514
+ {
515
+ "type": "icon",
516
+ "name": "calendar-clock"
517
+ },
518
+ {
519
+ "variant": "h3",
520
+ "type": "typography",
521
+ "content": "@entity.title"
522
+ },
523
+ {
524
+ "label": "@entity.deadlineType",
525
+ "variant": "primary",
526
+ "type": "badge"
527
+ },
528
+ {
529
+ "label": "@entity.status",
530
+ "variant": "default",
531
+ "type": "badge"
532
+ }
533
+ ]
534
+ },
535
+ {
536
+ "type": "divider"
537
+ },
538
+ {
539
+ "type": "stack",
540
+ "direction": "vertical",
541
+ "children": [
542
+ {
543
+ "children": [
544
+ {
545
+ "color": "muted",
546
+ "variant": "caption",
547
+ "type": "typography",
548
+ "content": "Matter"
549
+ },
550
+ {
551
+ "type": "typography",
552
+ "content": "@entity.matterId",
553
+ "variant": "body"
554
+ }
555
+ ],
556
+ "type": "stack",
557
+ "direction": "horizontal",
558
+ "gap": "md"
559
+ },
560
+ {
561
+ "gap": "md",
562
+ "type": "stack",
563
+ "direction": "horizontal",
564
+ "children": [
565
+ {
566
+ "color": "muted",
567
+ "variant": "caption",
568
+ "content": "Jurisdiction",
569
+ "type": "typography"
570
+ },
571
+ {
572
+ "variant": "body",
573
+ "type": "typography",
574
+ "content": "@entity.jurisdiction"
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ "direction": "horizontal",
580
+ "children": [
581
+ {
582
+ "content": "Assigned to",
583
+ "type": "typography",
584
+ "variant": "caption",
585
+ "color": "muted"
586
+ },
587
+ {
588
+ "type": "typography",
589
+ "variant": "body",
590
+ "content": "@entity.assignedTo"
591
+ }
592
+ ],
593
+ "type": "stack",
594
+ "gap": "md"
595
+ },
596
+ {
597
+ "gap": "md",
598
+ "type": "stack",
599
+ "children": [
600
+ {
601
+ "color": "muted",
602
+ "type": "typography",
603
+ "content": "Notes",
604
+ "variant": "caption"
605
+ },
606
+ {
607
+ "content": "@entity.notes",
608
+ "type": "typography",
609
+ "variant": "body"
610
+ }
611
+ ],
612
+ "direction": "horizontal"
613
+ }
614
+ ],
615
+ "gap": "sm"
616
+ },
617
+ {
618
+ "type": "divider"
619
+ },
620
+ {
621
+ "type": "simple-grid",
622
+ "cols": 2.0,
623
+ "children": [
624
+ {
625
+ "type": "stat-display",
626
+ "label": "Due",
627
+ "icon": "calendar",
628
+ "value": "@entity.dueAt"
629
+ },
630
+ {
631
+ "type": "stat-display",
632
+ "icon": "tag",
633
+ "label": "Status",
634
+ "value": "@entity.status"
635
+ }
636
+ ]
637
+ },
638
+ {
639
+ "type": "stack",
640
+ "align": "center",
641
+ "direction": "horizontal",
642
+ "children": [
643
+ {
644
+ "variant": "primary",
645
+ "action": "MARK_COMPLETED",
646
+ "type": "button",
647
+ "actionPayload": {
648
+ "id": "@entity.id"
649
+ },
650
+ "label": "Mark Complete"
651
+ },
652
+ {
653
+ "actionPayload": {
654
+ "id": "@entity.id"
655
+ },
656
+ "action": "EXTEND_DEADLINE",
657
+ "label": "Extend",
658
+ "variant": "secondary",
659
+ "type": "button"
660
+ }
661
+ ],
662
+ "gap": "sm"
663
+ }
664
+ ],
665
+ "gap": "md",
666
+ "type": "stack",
667
+ "direction": "vertical"
668
+ }
669
+ ]
670
+ ]
671
+ },
672
+ {
673
+ "from": "browsing",
674
+ "to": "loading",
374
675
  "event": "MARK_COMPLETED",
375
676
  "effects": [
376
677
  [
@@ -378,20 +679,126 @@
378
679
  "@entity.id",
379
680
  "@payload.id"
380
681
  ],
682
+ [
683
+ "fetch",
684
+ "CourtDeadline",
685
+ {
686
+ "emit": {
687
+ "success": "CourtDeadlineLoaded",
688
+ "failure": "CourtDeadlineLoadFailed"
689
+ }
690
+ }
691
+ ],
381
692
  [
382
693
  "render-ui",
383
694
  "main",
384
695
  {
385
- "message": "Deadline completed",
386
- "type": "alert",
387
- "variant": "success"
696
+ "type": "stack",
697
+ "align": "center",
698
+ "children": [
699
+ {
700
+ "type": "spinner"
701
+ },
702
+ {
703
+ "type": "typography",
704
+ "content": "Completing deadline…",
705
+ "color": "muted",
706
+ "variant": "caption"
707
+ }
708
+ ],
709
+ "className": "py-12",
710
+ "direction": "vertical",
711
+ "gap": "md"
388
712
  }
389
713
  ]
390
714
  ]
391
715
  },
392
716
  {
393
- "from": "browsing",
394
- "to": "browsing",
717
+ "from": "viewing_single",
718
+ "to": "loading",
719
+ "event": "CLOSE_VIEW",
720
+ "effects": [
721
+ [
722
+ "fetch",
723
+ "CourtDeadline",
724
+ {
725
+ "emit": {
726
+ "failure": "CourtDeadlineLoadFailed",
727
+ "success": "CourtDeadlineLoaded"
728
+ }
729
+ }
730
+ ],
731
+ [
732
+ "render-ui",
733
+ "main",
734
+ {
735
+ "className": "py-12",
736
+ "direction": "vertical",
737
+ "gap": "md",
738
+ "align": "center",
739
+ "children": [
740
+ {
741
+ "type": "spinner"
742
+ },
743
+ {
744
+ "type": "typography",
745
+ "content": "Loading deadlines…",
746
+ "variant": "caption",
747
+ "color": "muted"
748
+ }
749
+ ],
750
+ "type": "stack"
751
+ }
752
+ ]
753
+ ]
754
+ },
755
+ {
756
+ "from": "viewing_single",
757
+ "to": "loading",
758
+ "event": "MARK_COMPLETED",
759
+ "effects": [
760
+ [
761
+ "set",
762
+ "@entity.id",
763
+ "@payload.id"
764
+ ],
765
+ [
766
+ "fetch",
767
+ "CourtDeadline",
768
+ {
769
+ "emit": {
770
+ "success": "CourtDeadlineLoaded",
771
+ "failure": "CourtDeadlineLoadFailed"
772
+ }
773
+ }
774
+ ],
775
+ [
776
+ "render-ui",
777
+ "main",
778
+ {
779
+ "className": "py-12",
780
+ "children": [
781
+ {
782
+ "type": "spinner"
783
+ },
784
+ {
785
+ "type": "typography",
786
+ "color": "muted",
787
+ "variant": "caption",
788
+ "content": "Completing deadline…"
789
+ }
790
+ ],
791
+ "type": "stack",
792
+ "gap": "md",
793
+ "direction": "vertical",
794
+ "align": "center"
795
+ }
796
+ ]
797
+ ]
798
+ },
799
+ {
800
+ "from": "viewing_single",
801
+ "to": "loading",
395
802
  "event": "EXTEND_DEADLINE",
396
803
  "effects": [
397
804
  [
@@ -399,13 +806,36 @@
399
806
  "@entity.id",
400
807
  "@payload.id"
401
808
  ],
809
+ [
810
+ "fetch",
811
+ "CourtDeadline",
812
+ {
813
+ "emit": {
814
+ "failure": "CourtDeadlineLoadFailed",
815
+ "success": "CourtDeadlineLoaded"
816
+ }
817
+ }
818
+ ],
402
819
  [
403
820
  "render-ui",
404
821
  "main",
405
822
  {
406
- "variant": "info",
407
- "type": "alert",
408
- "message": "Deadline extended"
823
+ "align": "center",
824
+ "direction": "vertical",
825
+ "gap": "md",
826
+ "children": [
827
+ {
828
+ "type": "spinner"
829
+ },
830
+ {
831
+ "type": "typography",
832
+ "variant": "caption",
833
+ "content": "Extending deadline…",
834
+ "color": "muted"
835
+ }
836
+ ],
837
+ "className": "py-12",
838
+ "type": "stack"
409
839
  }
410
840
  ]
411
841
  ]
@@ -420,8 +850,8 @@
420
850
  "CourtDeadline",
421
851
  {
422
852
  "emit": {
423
- "success": "CourtDeadlineLoaded",
424
- "failure": "CourtDeadlineLoadFailed"
853
+ "failure": "CourtDeadlineLoadFailed",
854
+ "success": "CourtDeadlineLoaded"
425
855
  }
426
856
  }
427
857
  ],
@@ -429,6 +859,7 @@
429
859
  "render-ui",
430
860
  "main",
431
861
  {
862
+ "size": "sm",
432
863
  "type": "spinner"
433
864
  }
434
865
  ]