@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-applicant",
3
3
  "version": "1.0.0",
4
- "description": "std-applicant — job applicant primitive tracking a person who applied to a job, their current pipeline stage, and basic info.",
4
+ "description": "std-applicant — job applicant primitive tracking a person who applied to a job, their pipeline stage, and basic info. Lists applicants in `browsing`; opens applicant detail in `viewing_single` with Advance / Reject actions.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "ApplicantOrbital",
@@ -71,6 +71,57 @@
71
71
  "category": "interaction",
72
72
  "linkedEntity": "Applicant",
73
73
  "emits": [
74
+ {
75
+ "event": "OPEN_APPLICANT",
76
+ "payloadSchema": [
77
+ {
78
+ "name": "id",
79
+ "type": "string",
80
+ "required": true
81
+ },
82
+ {
83
+ "name": "row.id",
84
+ "type": "string",
85
+ "required": true
86
+ },
87
+ {
88
+ "name": "row.name",
89
+ "type": "string",
90
+ "required": true
91
+ },
92
+ {
93
+ "name": "row.email",
94
+ "type": "string"
95
+ },
96
+ {
97
+ "name": "row.phone",
98
+ "type": "string"
99
+ },
100
+ {
101
+ "name": "row.jobId",
102
+ "type": "string"
103
+ },
104
+ {
105
+ "name": "row.resumeUrl",
106
+ "type": "string"
107
+ },
108
+ {
109
+ "name": "row.stage",
110
+ "type": "string"
111
+ },
112
+ {
113
+ "name": "row.notes",
114
+ "type": "string"
115
+ },
116
+ {
117
+ "name": "row.appliedAt",
118
+ "type": "string"
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ "event": "CLOSE_VIEW"
124
+ },
74
125
  {
75
126
  "event": "ADVANCE_STAGE",
76
127
  "payloadSchema": [
@@ -199,6 +250,9 @@
199
250
  {
200
251
  "name": "browsing"
201
252
  },
253
+ {
254
+ "name": "viewing_single"
255
+ },
202
256
  {
203
257
  "name": "error"
204
258
  }
@@ -233,13 +287,17 @@
233
287
  ]
234
288
  },
235
289
  {
236
- "key": "ADVANCE_STAGE",
237
- "name": "Advance Stage",
290
+ "key": "OPEN_APPLICANT",
291
+ "name": "Open Applicant",
238
292
  "payloadSchema": [
239
293
  {
240
294
  "name": "id",
241
295
  "type": "string",
242
296
  "required": true
297
+ },
298
+ {
299
+ "name": "row",
300
+ "type": "Applicant"
243
301
  }
244
302
  ]
245
303
  },
@@ -253,6 +311,21 @@
253
311
  "required": true
254
312
  }
255
313
  ]
314
+ },
315
+ {
316
+ "key": "CLOSE_VIEW",
317
+ "name": "Close View"
318
+ },
319
+ {
320
+ "key": "ADVANCE_STAGE",
321
+ "name": "Advance Stage",
322
+ "payloadSchema": [
323
+ {
324
+ "name": "id",
325
+ "type": "string",
326
+ "required": true
327
+ }
328
+ ]
256
329
  }
257
330
  ],
258
331
  "transitions": [
@@ -266,8 +339,8 @@
266
339
  "Applicant",
267
340
  {
268
341
  "emit": {
269
- "failure": "ApplicantLoadFailed",
270
- "success": "ApplicantLoaded"
342
+ "success": "ApplicantLoaded",
343
+ "failure": "ApplicantLoadFailed"
271
344
  }
272
345
  }
273
346
  ],
@@ -275,21 +348,21 @@
275
348
  "render-ui",
276
349
  "main",
277
350
  {
351
+ "gap": "md",
278
352
  "type": "stack",
279
353
  "direction": "vertical",
354
+ "className": "py-12",
280
355
  "children": [
281
356
  {
282
357
  "type": "spinner"
283
358
  },
284
359
  {
285
- "color": "muted",
286
- "content": "Loading applicants…",
287
360
  "variant": "caption",
288
- "type": "typography"
361
+ "color": "muted",
362
+ "type": "typography",
363
+ "content": "Loading applicants…"
289
364
  }
290
365
  ],
291
- "className": "py-12",
292
- "gap": "md",
293
366
  "align": "center"
294
367
  }
295
368
  ]
@@ -304,22 +377,53 @@
304
377
  "render-ui",
305
378
  "main",
306
379
  {
307
- "direction": "vertical",
380
+ "gap": "md",
308
381
  "type": "stack",
309
382
  "children": [
310
383
  {
311
- "type": "stack",
312
- "gap": "sm",
313
384
  "direction": "horizontal",
385
+ "align": "center",
314
386
  "children": [
315
387
  {
316
388
  "name": "users",
317
389
  "type": "icon"
318
390
  },
319
391
  {
320
- "variant": "h3",
321
392
  "type": "typography",
322
- "content": "@config.title"
393
+ "content": "@config.title",
394
+ "variant": "h3"
395
+ }
396
+ ],
397
+ "gap": "sm",
398
+ "type": "stack"
399
+ },
400
+ {
401
+ "type": "simple-grid",
402
+ "cols": 4.0,
403
+ "children": [
404
+ {
405
+ "type": "stat-display",
406
+ "value": "@payload.data.length",
407
+ "label": "Total applicants",
408
+ "icon": "users"
409
+ },
410
+ {
411
+ "icon": "message-square",
412
+ "value": "18",
413
+ "type": "stat-display",
414
+ "label": "In interview"
415
+ },
416
+ {
417
+ "type": "stat-display",
418
+ "value": "5",
419
+ "label": "Offers out",
420
+ "icon": "send"
421
+ },
422
+ {
423
+ "type": "stat-display",
424
+ "label": "Hired this month",
425
+ "value": "9",
426
+ "icon": "check-circle"
323
427
  }
324
428
  ]
325
429
  },
@@ -327,27 +431,28 @@
327
431
  "type": "divider"
328
432
  },
329
433
  {
330
- "cols": 1.0,
331
434
  "gap": "sm",
435
+ "type": "data-grid",
436
+ "cols": 1.0,
332
437
  "itemActions": [
333
438
  {
334
- "label": "Advance",
335
- "event": "ADVANCE_STAGE",
439
+ "label": "Open",
440
+ "icon": "arrow-right",
441
+ "event": "OPEN_APPLICANT",
336
442
  "variant": "primary"
337
443
  },
338
444
  {
339
- "label": "Reject",
340
445
  "event": "REJECT_APPLICANT",
446
+ "label": "Reject",
341
447
  "variant": "danger"
342
448
  }
343
449
  ],
344
- "type": "data-grid",
345
450
  "entity": "@payload.data",
346
451
  "fields": [
347
452
  {
348
- "variant": "caption",
453
+ "label": "Name",
349
454
  "name": "name",
350
- "label": "Name"
455
+ "variant": "caption"
351
456
  },
352
457
  {
353
458
  "variant": "caption",
@@ -356,23 +461,23 @@
356
461
  },
357
462
  {
358
463
  "name": "jobId",
359
- "variant": "caption",
360
- "label": "Job"
464
+ "label": "Job",
465
+ "variant": "caption"
361
466
  },
362
467
  {
468
+ "label": "Stage",
363
469
  "variant": "badge",
364
- "name": "stage",
365
- "label": "Stage"
470
+ "name": "stage"
366
471
  },
367
472
  {
473
+ "name": "appliedAt",
368
474
  "label": "Applied",
369
- "variant": "caption",
370
- "name": "appliedAt"
475
+ "variant": "caption"
371
476
  }
372
477
  ]
373
478
  }
374
479
  ],
375
- "gap": "md"
480
+ "direction": "vertical"
376
481
  }
377
482
  ]
378
483
  ]
@@ -386,16 +491,319 @@
386
491
  "render-ui",
387
492
  "main",
388
493
  {
494
+ "message": "@payload.error",
389
495
  "variant": "error",
390
- "type": "alert",
391
- "message": "@payload.error"
496
+ "type": "alert"
392
497
  }
393
498
  ]
394
499
  ]
395
500
  },
396
501
  {
397
502
  "from": "browsing",
398
- "to": "browsing",
503
+ "to": "viewing_single",
504
+ "event": "OPEN_APPLICANT",
505
+ "effects": [
506
+ [
507
+ "set",
508
+ "@entity.id",
509
+ "@payload.row.id"
510
+ ],
511
+ [
512
+ "set",
513
+ "@entity.name",
514
+ "@payload.row.name"
515
+ ],
516
+ [
517
+ "set",
518
+ "@entity.email",
519
+ "@payload.row.email"
520
+ ],
521
+ [
522
+ "set",
523
+ "@entity.phone",
524
+ "@payload.row.phone"
525
+ ],
526
+ [
527
+ "set",
528
+ "@entity.jobId",
529
+ "@payload.row.jobId"
530
+ ],
531
+ [
532
+ "set",
533
+ "@entity.resumeUrl",
534
+ "@payload.row.resumeUrl"
535
+ ],
536
+ [
537
+ "set",
538
+ "@entity.stage",
539
+ "@payload.row.stage"
540
+ ],
541
+ [
542
+ "set",
543
+ "@entity.notes",
544
+ "@payload.row.notes"
545
+ ],
546
+ [
547
+ "set",
548
+ "@entity.appliedAt",
549
+ "@payload.row.appliedAt"
550
+ ],
551
+ [
552
+ "render-ui",
553
+ "main",
554
+ {
555
+ "type": "stack",
556
+ "gap": "md",
557
+ "children": [
558
+ {
559
+ "direction": "horizontal",
560
+ "gap": "sm",
561
+ "type": "stack",
562
+ "children": [
563
+ {
564
+ "action": "CLOSE_VIEW",
565
+ "variant": "ghost",
566
+ "type": "button",
567
+ "label": "Back"
568
+ },
569
+ {
570
+ "type": "icon",
571
+ "name": "user"
572
+ },
573
+ {
574
+ "variant": "h3",
575
+ "type": "typography",
576
+ "content": "@entity.name"
577
+ },
578
+ {
579
+ "type": "badge",
580
+ "label": "@entity.stage",
581
+ "variant": "primary"
582
+ }
583
+ ],
584
+ "align": "center"
585
+ },
586
+ {
587
+ "type": "divider"
588
+ },
589
+ {
590
+ "children": [
591
+ {
592
+ "type": "stack",
593
+ "direction": "horizontal",
594
+ "children": [
595
+ {
596
+ "type": "typography",
597
+ "color": "muted",
598
+ "content": "Email",
599
+ "variant": "caption"
600
+ },
601
+ {
602
+ "variant": "body",
603
+ "content": "@entity.email",
604
+ "type": "typography"
605
+ }
606
+ ],
607
+ "gap": "md"
608
+ },
609
+ {
610
+ "type": "stack",
611
+ "children": [
612
+ {
613
+ "content": "Phone",
614
+ "color": "muted",
615
+ "variant": "caption",
616
+ "type": "typography"
617
+ },
618
+ {
619
+ "type": "typography",
620
+ "variant": "body",
621
+ "content": "@entity.phone"
622
+ }
623
+ ],
624
+ "direction": "horizontal",
625
+ "gap": "md"
626
+ },
627
+ {
628
+ "type": "stack",
629
+ "children": [
630
+ {
631
+ "type": "typography",
632
+ "color": "muted",
633
+ "variant": "caption",
634
+ "content": "Job"
635
+ },
636
+ {
637
+ "content": "@entity.jobId",
638
+ "type": "typography",
639
+ "variant": "body"
640
+ }
641
+ ],
642
+ "gap": "md",
643
+ "direction": "horizontal"
644
+ },
645
+ {
646
+ "direction": "horizontal",
647
+ "gap": "md",
648
+ "children": [
649
+ {
650
+ "type": "typography",
651
+ "content": "Notes",
652
+ "color": "muted",
653
+ "variant": "caption"
654
+ },
655
+ {
656
+ "variant": "body",
657
+ "type": "typography",
658
+ "content": "@entity.notes"
659
+ }
660
+ ],
661
+ "type": "stack"
662
+ }
663
+ ],
664
+ "gap": "sm",
665
+ "direction": "vertical",
666
+ "type": "stack"
667
+ },
668
+ {
669
+ "type": "divider"
670
+ },
671
+ {
672
+ "type": "simple-grid",
673
+ "children": [
674
+ {
675
+ "type": "stat-display",
676
+ "label": "Applied",
677
+ "icon": "calendar",
678
+ "value": "@entity.appliedAt"
679
+ },
680
+ {
681
+ "type": "stat-display",
682
+ "value": "@entity.resumeUrl",
683
+ "icon": "file-text",
684
+ "label": "Resume"
685
+ }
686
+ ],
687
+ "cols": 2.0
688
+ },
689
+ {
690
+ "type": "stack",
691
+ "align": "center",
692
+ "gap": "sm",
693
+ "direction": "horizontal",
694
+ "children": [
695
+ {
696
+ "type": "button",
697
+ "actionPayload": {
698
+ "id": "@entity.id"
699
+ },
700
+ "variant": "primary",
701
+ "action": "ADVANCE_STAGE",
702
+ "label": "Advance Stage"
703
+ },
704
+ {
705
+ "action": "REJECT_APPLICANT",
706
+ "label": "Reject",
707
+ "variant": "danger",
708
+ "type": "button",
709
+ "actionPayload": {
710
+ "id": "@entity.id"
711
+ }
712
+ }
713
+ ]
714
+ }
715
+ ],
716
+ "direction": "vertical"
717
+ }
718
+ ]
719
+ ]
720
+ },
721
+ {
722
+ "from": "browsing",
723
+ "to": "loading",
724
+ "event": "REJECT_APPLICANT",
725
+ "effects": [
726
+ [
727
+ "set",
728
+ "@entity.id",
729
+ "@payload.id"
730
+ ],
731
+ [
732
+ "fetch",
733
+ "Applicant",
734
+ {
735
+ "emit": {
736
+ "failure": "ApplicantLoadFailed",
737
+ "success": "ApplicantLoaded"
738
+ }
739
+ }
740
+ ],
741
+ [
742
+ "render-ui",
743
+ "main",
744
+ {
745
+ "children": [
746
+ {
747
+ "type": "spinner"
748
+ },
749
+ {
750
+ "variant": "caption",
751
+ "content": "Rejecting applicant…",
752
+ "type": "typography",
753
+ "color": "muted"
754
+ }
755
+ ],
756
+ "className": "py-12",
757
+ "align": "center",
758
+ "direction": "vertical",
759
+ "gap": "md",
760
+ "type": "stack"
761
+ }
762
+ ]
763
+ ]
764
+ },
765
+ {
766
+ "from": "viewing_single",
767
+ "to": "loading",
768
+ "event": "CLOSE_VIEW",
769
+ "effects": [
770
+ [
771
+ "fetch",
772
+ "Applicant",
773
+ {
774
+ "emit": {
775
+ "success": "ApplicantLoaded",
776
+ "failure": "ApplicantLoadFailed"
777
+ }
778
+ }
779
+ ],
780
+ [
781
+ "render-ui",
782
+ "main",
783
+ {
784
+ "children": [
785
+ {
786
+ "type": "spinner"
787
+ },
788
+ {
789
+ "content": "Loading applicants…",
790
+ "color": "muted",
791
+ "type": "typography",
792
+ "variant": "caption"
793
+ }
794
+ ],
795
+ "className": "py-12",
796
+ "type": "stack",
797
+ "gap": "md",
798
+ "direction": "vertical",
799
+ "align": "center"
800
+ }
801
+ ]
802
+ ]
803
+ },
804
+ {
805
+ "from": "viewing_single",
806
+ "to": "loading",
399
807
  "event": "ADVANCE_STAGE",
400
808
  "effects": [
401
809
  [
@@ -403,20 +811,43 @@
403
811
  "@entity.id",
404
812
  "@payload.id"
405
813
  ],
814
+ [
815
+ "fetch",
816
+ "Applicant",
817
+ {
818
+ "emit": {
819
+ "success": "ApplicantLoaded",
820
+ "failure": "ApplicantLoadFailed"
821
+ }
822
+ }
823
+ ],
406
824
  [
407
825
  "render-ui",
408
826
  "main",
409
827
  {
410
- "message": "Applicant advanced",
411
- "type": "alert",
412
- "variant": "success"
828
+ "direction": "vertical",
829
+ "gap": "md",
830
+ "className": "py-12",
831
+ "children": [
832
+ {
833
+ "type": "spinner"
834
+ },
835
+ {
836
+ "variant": "caption",
837
+ "type": "typography",
838
+ "content": "Advancing applicant…",
839
+ "color": "muted"
840
+ }
841
+ ],
842
+ "align": "center",
843
+ "type": "stack"
413
844
  }
414
845
  ]
415
846
  ]
416
847
  },
417
848
  {
418
- "from": "browsing",
419
- "to": "browsing",
849
+ "from": "viewing_single",
850
+ "to": "loading",
420
851
  "event": "REJECT_APPLICANT",
421
852
  "effects": [
422
853
  [
@@ -424,13 +855,36 @@
424
855
  "@entity.id",
425
856
  "@payload.id"
426
857
  ],
858
+ [
859
+ "fetch",
860
+ "Applicant",
861
+ {
862
+ "emit": {
863
+ "failure": "ApplicantLoadFailed",
864
+ "success": "ApplicantLoaded"
865
+ }
866
+ }
867
+ ],
427
868
  [
428
869
  "render-ui",
429
870
  "main",
430
871
  {
431
- "variant": "info",
432
- "type": "alert",
433
- "message": "Applicant rejected"
872
+ "direction": "vertical",
873
+ "type": "stack",
874
+ "gap": "md",
875
+ "children": [
876
+ {
877
+ "type": "spinner"
878
+ },
879
+ {
880
+ "type": "typography",
881
+ "content": "Rejecting applicant…",
882
+ "color": "muted",
883
+ "variant": "caption"
884
+ }
885
+ ],
886
+ "align": "center",
887
+ "className": "py-12"
434
888
  }
435
889
  ]
436
890
  ]
@@ -454,8 +908,8 @@
454
908
  "render-ui",
455
909
  "main",
456
910
  {
457
- "size": "sm",
458
- "type": "spinner"
911
+ "type": "spinner",
912
+ "size": "sm"
459
913
  }
460
914
  ]
461
915
  ]