@almadar/std 14.29.1 → 14.29.3

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-event-log",
3
- "version": "1.0.0",
4
- "description": "std-event-log — generic chronological event feed. Topology = loading / viewing / filtering / backfilling / error adds a backfilling state for retroactive entries that pure-CRUD atoms can't express. Renders a timeline of events with filter controls and a backfill form.",
3
+ "version": "2.1.0",
4
+ "description": "std-event-log — generic chronological event feed (Stripe activity log / GitHub PR timeline / Linear event feed style). Renders a vertical `timeline` with type-coded dots, a single horizontal chip-bar of kind filters (All + per-kind), reverse-chronological sort, and an inline form for logging events that weren't auto-captured. `config.kindOptions` maps each kind status/icon/label so consuming molecules/organisms get type-coded visuals without re-implementing topology. Topology = loading / viewing / backfilling / error.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "EventLogOrbital",
@@ -15,7 +15,33 @@
15
15
  "required": true
16
16
  },
17
17
  {
18
- "name": "entries",
18
+ "name": "title",
19
+ "type": "string",
20
+ "default": ""
21
+ },
22
+ {
23
+ "name": "description",
24
+ "type": "string",
25
+ "default": ""
26
+ },
27
+ {
28
+ "name": "kind",
29
+ "type": "string",
30
+ "default": "created",
31
+ "values": [
32
+ "created",
33
+ "updated",
34
+ "approved",
35
+ "rejected"
36
+ ]
37
+ },
38
+ {
39
+ "name": "date",
40
+ "type": "string",
41
+ "default": ""
42
+ },
43
+ {
44
+ "name": "allEntries",
19
45
  "type": "array",
20
46
  "default": [],
21
47
  "items": {
@@ -23,15 +49,29 @@
23
49
  "properties": {
24
50
  "kind": {
25
51
  "name": "kind",
52
+ "type": "string",
53
+ "values": [
54
+ "created",
55
+ "updated",
56
+ "approved",
57
+ "rejected"
58
+ ]
59
+ },
60
+ "title": {
61
+ "name": "title",
62
+ "type": "string"
63
+ },
64
+ "description": {
65
+ "name": "description",
26
66
  "type": "string"
27
67
  },
28
68
  "status": {
29
69
  "name": "status",
30
70
  "type": "string",
31
71
  "values": [
32
- "info",
33
- "success",
34
- "warning",
72
+ "complete",
73
+ "active",
74
+ "pending",
35
75
  "error"
36
76
  ]
37
77
  },
@@ -39,21 +79,77 @@
39
79
  "name": "id",
40
80
  "type": "string"
41
81
  },
42
- "icon": {
43
- "name": "icon",
82
+ "date": {
83
+ "name": "date",
44
84
  "type": "string"
45
- },
85
+ }
86
+ }
87
+ }
88
+ },
89
+ {
90
+ "name": "entries",
91
+ "type": "array",
92
+ "default": [],
93
+ "items": {
94
+ "type": "object",
95
+ "properties": {
46
96
  "date": {
47
97
  "name": "date",
48
98
  "type": "string"
49
99
  },
50
- "title": {
51
- "name": "title",
100
+ "id": {
101
+ "name": "id",
52
102
  "type": "string"
53
103
  },
104
+ "status": {
105
+ "name": "status",
106
+ "type": "string",
107
+ "values": [
108
+ "complete",
109
+ "active",
110
+ "pending",
111
+ "error"
112
+ ]
113
+ },
114
+ "kind": {
115
+ "name": "kind",
116
+ "type": "string",
117
+ "values": [
118
+ "created",
119
+ "updated",
120
+ "approved",
121
+ "rejected"
122
+ ]
123
+ },
54
124
  "description": {
55
125
  "name": "description",
56
126
  "type": "string"
127
+ },
128
+ "title": {
129
+ "name": "title",
130
+ "type": "string"
131
+ }
132
+ }
133
+ }
134
+ },
135
+ {
136
+ "name": "filterChips",
137
+ "type": "array",
138
+ "default": [],
139
+ "items": {
140
+ "type": "object",
141
+ "properties": {
142
+ "label": {
143
+ "name": "label",
144
+ "type": "string"
145
+ },
146
+ "id": {
147
+ "name": "id",
148
+ "type": "string"
149
+ },
150
+ "icon": {
151
+ "name": "icon",
152
+ "type": "string"
57
153
  }
58
154
  }
59
155
  }
@@ -96,23 +192,17 @@
96
192
  "category": "interaction",
97
193
  "linkedEntity": "EventLogView",
98
194
  "emits": [
99
- {
100
- "event": "OPEN_FILTER"
101
- },
102
- {
103
- "event": "OPEN_BACKFILL"
104
- },
105
195
  {
106
196
  "event": "APPLY_FILTER",
107
197
  "payloadSchema": [
108
198
  {
109
- "name": "filterKind",
199
+ "name": "tabId",
110
200
  "type": "string"
111
201
  }
112
202
  ]
113
203
  },
114
204
  {
115
- "event": "CLOSE_FILTER"
205
+ "event": "OPEN_BACKFILL"
116
206
  },
117
207
  {
118
208
  "event": "SAVE_BACKFILL",
@@ -147,6 +237,28 @@
147
237
  "type": "string"
148
238
  }
149
239
  ]
240
+ },
241
+ {
242
+ "event": "EventLogSaved",
243
+ "payloadSchema": [
244
+ {
245
+ "name": "row",
246
+ "type": "object"
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ "event": "EventLogSaveFailed",
252
+ "payloadSchema": [
253
+ {
254
+ "name": "error",
255
+ "type": "string"
256
+ },
257
+ {
258
+ "name": "code",
259
+ "type": "string"
260
+ }
261
+ ]
150
262
  }
151
263
  ],
152
264
  "stateMachine": {
@@ -158,9 +270,6 @@
158
270
  {
159
271
  "name": "viewing"
160
272
  },
161
- {
162
- "name": "filtering"
163
- },
164
273
  {
165
274
  "name": "backfilling"
166
275
  },
@@ -221,27 +330,19 @@
221
330
  }
222
331
  ]
223
332
  },
224
- {
225
- "key": "OPEN_FILTER",
226
- "name": "Open Filter"
227
- },
228
- {
229
- "key": "OPEN_BACKFILL",
230
- "name": "Open Backfill"
231
- },
232
333
  {
233
334
  "key": "APPLY_FILTER",
234
335
  "name": "Apply Filter",
235
336
  "payloadSchema": [
236
337
  {
237
- "name": "filterKind",
338
+ "name": "tabId",
238
339
  "type": "string"
239
340
  }
240
341
  ]
241
342
  },
242
343
  {
243
- "key": "CLOSE_FILTER",
244
- "name": "Close Filter"
344
+ "key": "OPEN_BACKFILL",
345
+ "name": "Open Backfill"
245
346
  },
246
347
  {
247
348
  "key": "SAVE_BACKFILL",
@@ -269,8 +370,8 @@
269
370
  "EventLogView",
270
371
  {
271
372
  "emit": {
272
- "success": "EventLogLoaded",
273
- "failure": "EventLogLoadFailed"
373
+ "failure": "EventLogLoadFailed",
374
+ "success": "EventLogLoaded"
274
375
  }
275
376
  }
276
377
  ],
@@ -289,159 +390,263 @@
289
390
  "to": "viewing",
290
391
  "event": "EventLogLoaded",
291
392
  "effects": [
393
+ [
394
+ "set",
395
+ "@entity.filterChips",
396
+ [
397
+ "array/prepend",
398
+ [
399
+ "array/map",
400
+ "@config.kindOptions",
401
+ [
402
+ "fn",
403
+ "k",
404
+ {
405
+ "icon": [
406
+ "object/get",
407
+ "@k",
408
+ "icon",
409
+ "circle"
410
+ ],
411
+ "id": [
412
+ "object/get",
413
+ "@k",
414
+ "key"
415
+ ],
416
+ "label": [
417
+ "object/get",
418
+ "@k",
419
+ "label"
420
+ ]
421
+ }
422
+ ]
423
+ ],
424
+ {
425
+ "icon": "list",
426
+ "label": "All",
427
+ "id": ""
428
+ }
429
+ ]
430
+ ],
431
+ [
432
+ "set",
433
+ "@entity.allEntries",
434
+ [
435
+ "array/sort",
436
+ [
437
+ "array/map",
438
+ "@payload.data",
439
+ [
440
+ "fn",
441
+ "row",
442
+ {
443
+ "date": [
444
+ "object/get",
445
+ "@row",
446
+ "createdAt",
447
+ [
448
+ "object/get",
449
+ "@row",
450
+ "date",
451
+ ""
452
+ ]
453
+ ],
454
+ "id": [
455
+ "object/get",
456
+ "@row",
457
+ "id",
458
+ ""
459
+ ],
460
+ "kind": [
461
+ "object/get",
462
+ "@row",
463
+ "kind",
464
+ ""
465
+ ],
466
+ "title": [
467
+ "object/get",
468
+ "@row",
469
+ "title",
470
+ ""
471
+ ],
472
+ "description": [
473
+ "object/get",
474
+ "@row",
475
+ "description",
476
+ ""
477
+ ],
478
+ "status": [
479
+ "object/get",
480
+ [
481
+ "or",
482
+ [
483
+ "array/find",
484
+ "@config.kindOptions",
485
+ [
486
+ "fn",
487
+ "k",
488
+ [
489
+ "=",
490
+ [
491
+ "object/get",
492
+ "@k",
493
+ "key"
494
+ ],
495
+ [
496
+ "object/get",
497
+ "@row",
498
+ "kind",
499
+ ""
500
+ ]
501
+ ]
502
+ ]
503
+ ],
504
+ {}
505
+ ],
506
+ "status",
507
+ "pending"
508
+ ]
509
+ }
510
+ ]
511
+ ],
512
+ "date",
513
+ "desc"
514
+ ]
515
+ ],
292
516
  [
293
517
  "set",
294
518
  "@entity.entries",
295
519
  [
296
- "array/map",
297
- "@payload.data",
520
+ "array/sort",
298
521
  [
299
- "fn",
300
- "row",
301
- {
302
- "status": "@config.itemStatus",
303
- "icon": "@config.itemIcon",
304
- "kind": [
305
- "object/get",
306
- "@row",
307
- "kind",
308
- ""
309
- ],
310
- "title": [
311
- "object/get",
312
- "@row",
313
- "title",
314
- ""
315
- ],
316
- "id": [
317
- "object/get",
318
- "@row",
319
- "id",
320
- ""
321
- ],
322
- "description": [
323
- "object/get",
324
- "@row",
325
- "description",
326
- ""
327
- ],
328
- "date": [
329
- "object/get",
330
- "@row",
331
- "createdAt",
332
- ""
333
- ]
334
- }
335
- ]
522
+ "array/map",
523
+ "@payload.data",
524
+ [
525
+ "fn",
526
+ "row",
527
+ {
528
+ "date": [
529
+ "object/get",
530
+ "@row",
531
+ "createdAt",
532
+ [
533
+ "object/get",
534
+ "@row",
535
+ "date",
536
+ ""
537
+ ]
538
+ ],
539
+ "description": [
540
+ "object/get",
541
+ "@row",
542
+ "description",
543
+ ""
544
+ ],
545
+ "id": [
546
+ "object/get",
547
+ "@row",
548
+ "id",
549
+ ""
550
+ ],
551
+ "title": [
552
+ "object/get",
553
+ "@row",
554
+ "title",
555
+ ""
556
+ ],
557
+ "status": [
558
+ "object/get",
559
+ [
560
+ "or",
561
+ [
562
+ "array/find",
563
+ "@config.kindOptions",
564
+ [
565
+ "fn",
566
+ "k",
567
+ [
568
+ "=",
569
+ [
570
+ "object/get",
571
+ "@k",
572
+ "key"
573
+ ],
574
+ [
575
+ "object/get",
576
+ "@row",
577
+ "kind",
578
+ ""
579
+ ]
580
+ ]
581
+ ]
582
+ ],
583
+ {}
584
+ ],
585
+ "status",
586
+ "pending"
587
+ ],
588
+ "kind": [
589
+ "object/get",
590
+ "@row",
591
+ "kind",
592
+ ""
593
+ ]
594
+ }
595
+ ]
596
+ ],
597
+ "date",
598
+ "desc"
336
599
  ]
337
600
  ],
338
601
  [
339
602
  "render-ui",
340
603
  "main",
341
604
  {
605
+ "direction": "vertical",
342
606
  "type": "stack",
607
+ "gap": "md",
343
608
  "children": [
344
609
  {
610
+ "direction": "horizontal",
345
611
  "align": "center",
612
+ "gap": "sm",
346
613
  "children": [
347
614
  {
348
- "type": "icon",
349
- "name": "history"
615
+ "name": "history",
616
+ "type": "icon"
350
617
  },
351
618
  {
352
619
  "variant": "h3",
353
- "content": "@config.title",
354
- "type": "typography"
620
+ "type": "typography",
621
+ "content": "@config.title"
622
+ },
623
+ {
624
+ "type": "button",
625
+ "label": "Log event",
626
+ "variant": "primary",
627
+ "action": "OPEN_BACKFILL",
628
+ "icon": "plus"
355
629
  }
356
630
  ],
357
- "gap": "sm",
358
- "direction": "horizontal",
359
631
  "type": "stack"
360
632
  },
361
633
  {
362
- "type": "divider"
634
+ "tabChangeEvent": "APPLY_FILTER",
635
+ "activeTab": "@entity.filterKind",
636
+ "type": "tabs",
637
+ "tabs": "@entity.filterChips"
363
638
  },
364
639
  {
365
640
  "entity": "@entity.entries",
366
- "fields": [],
367
- "renderItem": [
368
- "fn",
369
- "entry",
370
- {
371
- "type": "card",
372
- "children": [
373
- {
374
- "children": [
375
- {
376
- "type": "icon",
377
- "name": "@entry.icon"
378
- },
379
- {
380
- "children": [
381
- {
382
- "content": "@entry.title",
383
- "type": "typography",
384
- "variant": "h4"
385
- },
386
- {
387
- "content": "@entry.description",
388
- "type": "typography",
389
- "variant": "caption",
390
- "color": "muted"
391
- },
392
- {
393
- "variant": "caption",
394
- "content": "@entry.date",
395
- "color": "muted",
396
- "type": "typography"
397
- }
398
- ],
399
- "type": "stack",
400
- "direction": "vertical",
401
- "gap": "xs"
402
- },
403
- {
404
- "label": "@entry.kind",
405
- "type": "badge",
406
- "variant": "primary"
407
- }
408
- ],
409
- "align": "center",
410
- "gap": "sm",
411
- "type": "stack",
412
- "direction": "horizontal"
413
- }
414
- ]
415
- }
641
+ "fields": [
642
+ "title",
643
+ "description",
644
+ "date",
645
+ "status"
416
646
  ],
417
- "type": "data-list",
418
- "gap": "md"
419
- },
420
- {
421
- "type": "stack",
422
- "align": "center",
423
- "gap": "sm",
424
- "direction": "horizontal",
425
- "children": [
426
- {
427
- "label": "Filter",
428
- "action": "OPEN_FILTER",
429
- "variant": "secondary",
430
- "icon": "filter",
431
- "type": "button"
432
- },
433
- {
434
- "icon": "plus",
435
- "label": "Add Entry",
436
- "type": "button",
437
- "variant": "primary",
438
- "action": "OPEN_BACKFILL"
439
- }
440
- ]
647
+ "type": "timeline"
441
648
  }
442
- ],
443
- "gap": "md",
444
- "direction": "vertical"
649
+ ]
445
650
  }
446
651
  ]
447
652
  ]
@@ -469,15 +674,25 @@
469
674
  },
470
675
  {
471
676
  "from": "loading",
472
- "to": "viewing",
677
+ "to": "loading",
473
678
  "event": "EventLogSaved",
474
679
  "effects": [
680
+ [
681
+ "fetch",
682
+ "EventLogView",
683
+ {
684
+ "emit": {
685
+ "success": "EventLogLoaded",
686
+ "failure": "EventLogLoadFailed"
687
+ }
688
+ }
689
+ ],
475
690
  [
476
691
  "render-ui",
477
692
  "main",
478
693
  {
479
- "title": "Refreshing…",
480
- "type": "loading-state"
694
+ "type": "loading-state",
695
+ "title": "Refreshing…"
481
696
  }
482
697
  ]
483
698
  ]
@@ -496,64 +711,101 @@
496
711
  "render-ui",
497
712
  "main",
498
713
  {
714
+ "type": "error-state",
499
715
  "title": "Save failed",
500
- "message": "@entity.errorMessage",
501
- "type": "error-state"
716
+ "message": "@entity.errorMessage"
502
717
  }
503
718
  ]
504
719
  ]
505
720
  },
506
721
  {
507
722
  "from": "viewing",
508
- "to": "filtering",
509
- "event": "OPEN_FILTER",
723
+ "to": "viewing",
724
+ "event": "APPLY_FILTER",
510
725
  "effects": [
726
+ [
727
+ "set",
728
+ "@entity.filterKind",
729
+ "@payload.tabId"
730
+ ],
731
+ [
732
+ "set",
733
+ "@entity.entries",
734
+ [
735
+ "array/filter",
736
+ "@entity.allEntries",
737
+ [
738
+ "fn",
739
+ "e",
740
+ [
741
+ "or",
742
+ [
743
+ "=",
744
+ "@payload.tabId",
745
+ ""
746
+ ],
747
+ [
748
+ "=",
749
+ [
750
+ "object/get",
751
+ "@e",
752
+ "kind"
753
+ ],
754
+ "@payload.tabId"
755
+ ]
756
+ ]
757
+ ]
758
+ ]
759
+ ],
511
760
  [
512
761
  "render-ui",
513
762
  "main",
514
763
  {
515
764
  "direction": "vertical",
765
+ "gap": "md",
766
+ "type": "stack",
516
767
  "children": [
517
768
  {
518
769
  "direction": "horizontal",
519
- "gap": "sm",
520
- "type": "stack",
521
770
  "align": "center",
771
+ "type": "stack",
522
772
  "children": [
523
773
  {
524
- "variant": "ghost",
525
- "action": "CLOSE_FILTER",
526
- "label": "Back",
527
- "type": "button",
528
- "icon": "arrow-left"
774
+ "name": "history",
775
+ "type": "icon"
529
776
  },
530
777
  {
531
- "type": "icon",
532
- "name": "filter"
778
+ "content": "@config.title",
779
+ "type": "typography",
780
+ "variant": "h3"
533
781
  },
534
782
  {
535
- "content": "Filter Activity",
536
- "variant": "h3",
537
- "type": "typography"
783
+ "variant": "primary",
784
+ "action": "OPEN_BACKFILL",
785
+ "icon": "plus",
786
+ "label": "Log event",
787
+ "type": "button"
538
788
  }
539
- ]
789
+ ],
790
+ "gap": "sm"
540
791
  },
541
792
  {
542
- "type": "divider"
793
+ "tabs": "@entity.filterChips",
794
+ "tabChangeEvent": "APPLY_FILTER",
795
+ "type": "tabs",
796
+ "activeTab": "@entity.filterKind"
543
797
  },
544
798
  {
545
- "cancelEvent": "CLOSE_FILTER",
799
+ "type": "timeline",
800
+ "entity": "@entity.entries",
546
801
  "fields": [
547
- "filterKind"
548
- ],
549
- "mode": "edit",
550
- "submitEvent": "APPLY_FILTER",
551
- "type": "form-section",
552
- "entity": "@entity"
802
+ "title",
803
+ "description",
804
+ "date",
805
+ "status"
806
+ ]
553
807
  }
554
- ],
555
- "gap": "md",
556
- "type": "stack"
808
+ ]
557
809
  }
558
810
  ]
559
811
  ]
@@ -587,27 +839,30 @@
587
839
  "render-ui",
588
840
  "main",
589
841
  {
842
+ "type": "stack",
843
+ "gap": "md",
844
+ "direction": "vertical",
590
845
  "children": [
591
846
  {
847
+ "direction": "horizontal",
592
848
  "gap": "sm",
593
849
  "align": "center",
594
- "direction": "horizontal",
595
850
  "type": "stack",
596
851
  "children": [
597
852
  {
598
- "action": "CANCEL_BACKFILL",
853
+ "icon": "arrow-left",
599
854
  "variant": "ghost",
600
- "icon": "x",
855
+ "label": "Back",
601
856
  "type": "button",
602
- "label": "Cancel"
857
+ "action": "CANCEL_BACKFILL"
603
858
  },
604
859
  {
605
- "name": "plus",
606
- "type": "icon"
860
+ "type": "icon",
861
+ "name": "plus-circle"
607
862
  },
608
863
  {
609
- "content": "Add Retroactive Entry",
610
864
  "type": "typography",
865
+ "content": "Log event",
611
866
  "variant": "h3"
612
867
  }
613
868
  ]
@@ -616,61 +871,40 @@
616
871
  "type": "divider"
617
872
  },
618
873
  {
619
- "type": "form-section",
620
- "submitEvent": "SAVE_BACKFILL",
621
- "fields": "@config.formFields",
622
- "mode": "create",
623
- "entity": "@entity",
624
- "cancelEvent": "CANCEL_BACKFILL"
874
+ "type": "card",
875
+ "children": [
876
+ {
877
+ "type": "form-section",
878
+ "cancelEvent": "CANCEL_BACKFILL",
879
+ "fields": "@config.formFields",
880
+ "entity": "@entity",
881
+ "submitEvent": "SAVE_BACKFILL",
882
+ "mode": "create"
883
+ }
884
+ ]
625
885
  }
626
- ],
627
- "direction": "vertical",
628
- "gap": "md",
629
- "type": "stack"
886
+ ]
630
887
  }
631
888
  ]
632
889
  ]
633
890
  },
634
891
  {
635
- "from": "filtering",
892
+ "from": "backfilling",
636
893
  "to": "loading",
637
- "event": "APPLY_FILTER",
638
- "effects": [
639
- [
640
- "set",
641
- "@entity.filterKind",
642
- "@payload.filterKind"
643
- ],
644
- [
645
- "render-ui",
646
- "main",
647
- {
648
- "title": "Filtering…",
649
- "type": "loading-state"
650
- }
651
- ]
652
- ]
653
- },
654
- {
655
- "from": "filtering",
656
- "to": "viewing",
657
- "event": "CLOSE_FILTER",
894
+ "event": "SAVE_BACKFILL",
658
895
  "effects": [
659
896
  [
660
- "render-ui",
661
- "main",
897
+ "persist",
898
+ "create",
899
+ "EventLogView",
900
+ "@payload.data",
662
901
  {
663
- "type": "loading-state",
664
- "title": "Closing filter…"
902
+ "emit": {
903
+ "success": "EventLogSaved",
904
+ "failure": "EventLogSaveFailed"
905
+ }
665
906
  }
666
- ]
667
- ]
668
- },
669
- {
670
- "from": "backfilling",
671
- "to": "loading",
672
- "event": "SAVE_BACKFILL",
673
- "effects": [
907
+ ],
674
908
  [
675
909
  "render-ui",
676
910
  "main",
@@ -690,8 +924,51 @@
690
924
  "render-ui",
691
925
  "main",
692
926
  {
693
- "type": "loading-state",
694
- "title": "Cancelling…"
927
+ "direction": "vertical",
928
+ "type": "stack",
929
+ "children": [
930
+ {
931
+ "children": [
932
+ {
933
+ "name": "history",
934
+ "type": "icon"
935
+ },
936
+ {
937
+ "content": "@config.title",
938
+ "variant": "h3",
939
+ "type": "typography"
940
+ },
941
+ {
942
+ "label": "Log event",
943
+ "variant": "primary",
944
+ "icon": "plus",
945
+ "action": "OPEN_BACKFILL",
946
+ "type": "button"
947
+ }
948
+ ],
949
+ "gap": "sm",
950
+ "type": "stack",
951
+ "direction": "horizontal",
952
+ "align": "center"
953
+ },
954
+ {
955
+ "tabChangeEvent": "APPLY_FILTER",
956
+ "activeTab": "@entity.filterKind",
957
+ "type": "tabs",
958
+ "tabs": "@entity.filterChips"
959
+ },
960
+ {
961
+ "type": "timeline",
962
+ "entity": "@entity.entries",
963
+ "fields": [
964
+ "title",
965
+ "description",
966
+ "date",
967
+ "status"
968
+ ]
969
+ }
970
+ ],
971
+ "gap": "md"
695
972
  }
696
973
  ]
697
974
  ]
@@ -714,47 +991,46 @@
714
991
  ]
715
992
  },
716
993
  "config": {
717
- "title": {
718
- "type": "string",
719
- "default": "Activity"
720
- },
721
- "kindField": {
722
- "type": "string",
723
- "default": "kind"
724
- },
725
- "dateField": {
726
- "type": "string",
727
- "default": "createdAt"
728
- },
729
- "bodyField": {
730
- "type": "string",
731
- "default": "description"
732
- },
733
- "itemStatus": {
734
- "type": "string",
735
- "default": "info",
736
- "values": [
737
- "info",
738
- "success",
739
- "warning",
740
- "error"
994
+ "formFields": {
995
+ "type": "[string]",
996
+ "default": [
997
+ "backfillTitle",
998
+ "backfillDescription",
999
+ "backfillKind",
1000
+ "backfillDate"
741
1001
  ]
742
1002
  },
743
- "itemIcon": {
744
- "type": "string",
745
- "default": "activity"
746
- },
747
- "titleField": {
1003
+ "title": {
748
1004
  "type": "string",
749
- "default": "title"
1005
+ "default": "Activity"
750
1006
  },
751
- "formFields": {
752
- "type": "[string]",
1007
+ "kindOptions": {
1008
+ "type": "[object]",
753
1009
  "default": [
754
- "title",
755
- "description",
756
- "kind",
757
- "date"
1010
+ {
1011
+ "key": "created",
1012
+ "label": "Created",
1013
+ "status": "active",
1014
+ "icon": "plus-circle"
1015
+ },
1016
+ {
1017
+ "icon": "edit-3",
1018
+ "status": "pending",
1019
+ "key": "updated",
1020
+ "label": "Updated"
1021
+ },
1022
+ {
1023
+ "key": "approved",
1024
+ "label": "Approved",
1025
+ "icon": "check-circle",
1026
+ "status": "complete"
1027
+ },
1028
+ {
1029
+ "label": "Rejected",
1030
+ "key": "rejected",
1031
+ "status": "error",
1032
+ "icon": "x-circle"
1033
+ }
758
1034
  ]
759
1035
  }
760
1036
  },