@almadar/std 14.9.0 → 14.10.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 (35) hide show
  1. package/behaviors/registry/app/organisms/std-api-gateway.orb +419 -171
  2. package/behaviors/registry/app/organisms/std-booking-system.orb +760 -620
  3. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +477 -229
  4. package/behaviors/registry/app/organisms/std-cms.orb +433 -298
  5. package/behaviors/registry/app/organisms/std-crm.orb +355 -215
  6. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +504 -369
  7. package/behaviors/registry/app/organisms/std-finance-tracker.orb +271 -189
  8. package/behaviors/registry/app/organisms/std-healthcare.orb +676 -468
  9. package/behaviors/registry/app/organisms/std-helpdesk.orb +246 -166
  10. package/behaviors/registry/app/organisms/std-hr-portal.orb +534 -399
  11. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +420 -340
  12. package/behaviors/registry/app/organisms/std-lms.orb +462 -378
  13. package/behaviors/registry/app/organisms/std-project-manager.orb +282 -200
  14. package/behaviors/registry/app/organisms/std-realtime-chat.orb +317 -235
  15. package/behaviors/registry/app/organisms/std-social-feed.orb +256 -137
  16. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +342 -218
  17. package/behaviors/registry/core/molecules/std-app-layout.orb +90 -21
  18. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +419 -171
  19. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +760 -620
  20. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +477 -229
  21. package/dist/behaviors/registry/app/organisms/std-cms.orb +433 -298
  22. package/dist/behaviors/registry/app/organisms/std-crm.orb +355 -215
  23. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +504 -369
  24. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +271 -189
  25. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +676 -468
  26. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +246 -166
  27. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +534 -399
  28. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +420 -340
  29. package/dist/behaviors/registry/app/organisms/std-lms.orb +462 -378
  30. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +282 -200
  31. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +317 -235
  32. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +256 -137
  33. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +342 -218
  34. package/dist/behaviors/registry/core/molecules/std-app-layout.orb +90 -21
  35. package/package.json +1 -1
@@ -89,25 +89,25 @@
89
89
  "config": {
90
90
  "navItems": [
91
91
  {
92
- "icon": "rss",
93
92
  "label": "Feed",
94
- "href": "/feed"
93
+ "href": "/feed",
94
+ "icon": "rss"
95
95
  },
96
96
  {
97
- "icon": "message-circle",
98
97
  "label": "Comments",
99
- "href": "/comments"
98
+ "href": "/comments",
99
+ "icon": "message-circle"
100
100
  }
101
101
  ],
102
102
  "contentTrait": "@trait.FeedCatalog",
103
- "searchEvent": "POST_SEARCH",
104
103
  "appName": "SocialFeed",
104
+ "searchEvent": "POST_SEARCH",
105
105
  "notifications": [],
106
106
  "notificationClickEvent": "POST_NOTIFICATIONS_OPEN"
107
107
  },
108
108
  "events": {
109
- "NOTIFY_CLICK": "POST_NOTIFICATIONS_OPEN",
110
- "SEARCH": "POST_SEARCH"
109
+ "SEARCH": "POST_SEARCH",
110
+ "NOTIFY_CLICK": "POST_NOTIFICATIONS_OPEN"
111
111
  }
112
112
  },
113
113
  {
@@ -190,14 +190,13 @@
190
190
  "render-ui",
191
191
  "main",
192
192
  {
193
- "gap": "lg",
194
193
  "children": [
195
194
  {
195
+ "type": "stack",
196
+ "align": "center",
196
197
  "direction": "horizontal",
197
- "gap": "md",
198
198
  "justify": "between",
199
- "align": "center",
200
- "type": "stack",
199
+ "gap": "md",
201
200
  "children": [
202
201
  {
203
202
  "children": [
@@ -206,29 +205,29 @@
206
205
  "type": "icon"
207
206
  },
208
207
  {
209
- "type": "typography",
210
208
  "content": "Feed",
211
- "variant": "h2"
209
+ "variant": "h2",
210
+ "type": "typography"
212
211
  }
213
212
  ],
214
213
  "direction": "horizontal",
215
- "align": "center",
216
214
  "type": "stack",
217
- "gap": "sm"
215
+ "gap": "sm",
216
+ "align": "center"
218
217
  },
219
218
  {
220
- "direction": "horizontal",
221
219
  "gap": "sm",
222
220
  "children": [
223
221
  {
224
- "icon": "plus",
222
+ "action": "CREATE",
225
223
  "type": "button",
226
- "label": "New Post",
227
224
  "variant": "primary",
228
- "action": "CREATE"
225
+ "label": "New Post",
226
+ "icon": "plus"
229
227
  }
230
228
  ],
231
- "type": "stack"
229
+ "type": "stack",
230
+ "direction": "horizontal"
232
231
  }
233
232
  ]
234
233
  },
@@ -237,12 +236,12 @@
237
236
  },
238
237
  {
239
238
  "gap": "md",
239
+ "type": "stack",
240
240
  "children": [
241
241
  "@trait.PostSearch"
242
242
  ],
243
- "type": "stack",
244
- "align": "center",
245
- "direction": "horizontal"
243
+ "direction": "horizontal",
244
+ "align": "center"
246
245
  },
247
246
  "@trait.PostStats",
248
247
  {
@@ -250,8 +249,9 @@
250
249
  },
251
250
  "@trait.PostBrowseList"
252
251
  ],
252
+ "type": "stack",
253
253
  "direction": "vertical",
254
- "type": "stack"
254
+ "gap": "lg"
255
255
  }
256
256
  ]
257
257
  ]
@@ -270,14 +270,14 @@
270
270
  "render-ui",
271
271
  "main",
272
272
  {
273
- "direction": "vertical",
274
273
  "align": "center",
274
+ "direction": "vertical",
275
+ "gap": "md",
275
276
  "className": "py-8",
276
- "type": "stack",
277
277
  "children": [
278
278
  {
279
- "name": "bell",
280
- "type": "icon"
279
+ "type": "icon",
280
+ "name": "bell"
281
281
  },
282
282
  {
283
283
  "variant": "h3",
@@ -285,19 +285,19 @@
285
285
  "type": "typography"
286
286
  },
287
287
  {
288
- "variant": "caption",
288
+ "color": "muted",
289
289
  "type": "typography",
290
- "content": "You're all caught up.",
291
- "color": "muted"
290
+ "variant": "caption",
291
+ "content": "You're all caught up."
292
292
  },
293
293
  {
294
- "type": "button",
295
294
  "action": "INIT",
296
295
  "label": "Back to feed",
296
+ "type": "button",
297
297
  "variant": "ghost"
298
298
  }
299
299
  ],
300
- "gap": "md"
300
+ "type": "stack"
301
301
  }
302
302
  ]
303
303
  ]
@@ -318,15 +318,18 @@
318
318
  "ref": "Stats.traits.StatsItemStats",
319
319
  "name": "PostStats",
320
320
  "config": {
321
+ "title": "Feed",
321
322
  "metrics": [
322
323
  {
323
324
  "aggregation": "count",
324
- "format": "number",
325
- "icon": "rss",
326
325
  "label": "Total Posts",
326
+ "icon": "rss",
327
+ "format": "number",
327
328
  "variant": "primary"
328
329
  },
329
330
  {
331
+ "format": "number",
332
+ "aggregation": "count",
330
333
  "filter": [
331
334
  "fn",
332
335
  "row",
@@ -336,30 +339,27 @@
336
339
  "today"
337
340
  ]
338
341
  ],
339
- "aggregation": "count",
340
- "variant": "info",
341
- "format": "number",
342
342
  "label": "Today",
343
- "icon": "calendar"
343
+ "icon": "calendar",
344
+ "variant": "info"
344
345
  },
345
346
  {
346
347
  "aggregation": "mode",
347
348
  "label": "Top Author",
348
- "variant": "default",
349
- "format": "text",
349
+ "icon": "user",
350
350
  "field": "author",
351
- "icon": "user"
351
+ "format": "text",
352
+ "variant": "default"
352
353
  },
353
354
  {
354
355
  "field": "tag",
356
+ "aggregation": "mode",
355
357
  "icon": "hash",
356
358
  "variant": "warning",
357
- "aggregation": "mode",
358
359
  "label": "Top Tag",
359
360
  "format": "text"
360
361
  }
361
- ],
362
- "title": "Feed"
362
+ ]
363
363
  },
364
364
  "listens": [
365
365
  {
@@ -379,45 +379,45 @@
379
379
  "config": {
380
380
  "fields": [
381
381
  {
382
- "name": "author",
383
382
  "variant": "h4",
384
- "icon": "user"
383
+ "icon": "user",
384
+ "name": "author"
385
385
  },
386
386
  {
387
387
  "variant": "body",
388
388
  "name": "content"
389
389
  },
390
390
  {
391
- "variant": "caption",
391
+ "format": "date",
392
392
  "name": "timestamp",
393
- "format": "date"
393
+ "variant": "caption"
394
394
  },
395
395
  {
396
396
  "variant": "badge",
397
- "name": "likes",
398
- "format": "number"
397
+ "format": "number",
398
+ "name": "likes"
399
399
  }
400
400
  ],
401
401
  "imageField": "image",
402
+ "cols": 1.0,
403
+ "gap": "md",
402
404
  "itemActions": [
403
405
  {
404
- "variant": "ghost",
405
406
  "label": "View",
406
- "event": "VIEW"
407
+ "event": "VIEW",
408
+ "variant": "ghost"
407
409
  },
408
410
  {
409
411
  "event": "EDIT",
410
- "variant": "ghost",
411
- "label": "Edit"
412
+ "label": "Edit",
413
+ "variant": "ghost"
412
414
  },
413
415
  {
416
+ "event": "DELETE",
414
417
  "variant": "danger",
415
- "label": "Delete",
416
- "event": "DELETE"
418
+ "label": "Delete"
417
419
  }
418
420
  ],
419
- "cols": 1.0,
420
- "gap": "md",
421
421
  "variant": "card"
422
422
  },
423
423
  "listens": [
@@ -460,15 +460,15 @@
460
460
  "name": "PostCreate",
461
461
  "linkedEntity": "Post",
462
462
  "config": {
463
- "icon": "plus-circle",
464
463
  "mode": "create",
464
+ "title": "New Post",
465
465
  "fields": [
466
466
  "author",
467
467
  "content",
468
468
  "image",
469
469
  "tag"
470
470
  ],
471
- "title": "New Post"
471
+ "icon": "plus-circle"
472
472
  },
473
473
  "events": {
474
474
  "OPEN": "CREATE"
@@ -489,15 +489,15 @@
489
489
  "name": "PostEdit",
490
490
  "linkedEntity": "Post",
491
491
  "config": {
492
- "icon": "edit",
493
- "title": "Edit Post",
494
- "mode": "edit",
495
492
  "fields": [
496
493
  "author",
497
494
  "content",
498
495
  "image",
499
496
  "tag"
500
- ]
497
+ ],
498
+ "icon": "edit",
499
+ "title": "Edit Post",
500
+ "mode": "edit"
501
501
  },
502
502
  "events": {
503
503
  "OPEN": "EDIT"
@@ -518,16 +518,16 @@
518
518
  "name": "PostView",
519
519
  "linkedEntity": "Post",
520
520
  "config": {
521
- "icon": "eye",
522
- "title": "View Post",
523
521
  "mode": "edit",
522
+ "icon": "eye",
524
523
  "fields": [
525
524
  "author",
526
525
  "content",
527
526
  "image",
528
527
  "tag",
529
528
  "likes"
530
- ]
529
+ ],
530
+ "title": "View Post"
531
531
  },
532
532
  "events": {
533
533
  "OPEN": "VIEW"
@@ -548,14 +548,14 @@
548
548
  "name": "PostDeleteConfirm",
549
549
  "linkedEntity": "Post",
550
550
  "config": {
551
+ "title": "Delete Post",
551
552
  "icon": "alert-triangle",
552
- "alertMessage": "This action cannot be undone.",
553
553
  "confirmLabel": "Delete",
554
- "title": "Delete Post"
554
+ "alertMessage": "This action cannot be undone."
555
555
  },
556
556
  "events": {
557
- "CONFIRM": "CONFIRM_DELETE",
558
- "REQUEST": "DELETE"
557
+ "REQUEST": "DELETE",
558
+ "CONFIRM": "CONFIRM_DELETE"
559
559
  },
560
560
  "listens": [
561
561
  {
@@ -572,10 +572,10 @@
572
572
  "ref": "Storage.traits.ServiceStorageStorage",
573
573
  "name": "PostImageUpload",
574
574
  "config": {
575
- "acl": "public",
576
575
  "uiTrait": "@trait.PostImageUploadForm",
577
- "bucket": "social-feed-images",
576
+ "acl": "public",
578
577
  "maxSize": 10485760.0,
578
+ "bucket": "social-feed-images",
579
579
  "allowedMimeTypes": [
580
580
  "image/png",
581
581
  "image/jpeg",
@@ -630,28 +630,28 @@
630
630
  "render-ui",
631
631
  "main",
632
632
  {
633
- "type": "stack",
634
633
  "children": [
635
634
  {
636
635
  "type": "typography",
637
- "content": "Attach an image",
638
- "variant": "caption"
636
+ "variant": "caption",
637
+ "content": "Attach an image"
639
638
  },
640
639
  {
641
640
  "inputType": "text",
642
- "placeholder": "Choose image…",
643
- "type": "input"
641
+ "type": "input",
642
+ "placeholder": "Choose image…"
644
643
  },
645
644
  {
645
+ "icon": "upload",
646
646
  "type": "button",
647
647
  "action": "UPLOAD",
648
- "variant": "ghost",
649
- "icon": "upload",
650
- "label": "Upload"
648
+ "label": "Upload",
649
+ "variant": "ghost"
651
650
  }
652
651
  ],
653
- "gap": "md",
654
- "direction": "vertical"
652
+ "type": "stack",
653
+ "direction": "vertical",
654
+ "gap": "md"
655
655
  }
656
656
  ]
657
657
  ]
@@ -919,24 +919,24 @@
919
919
  "render-ui",
920
920
  "main",
921
921
  {
922
- "type": "stack",
923
- "gap": "sm",
924
- "direction": "horizontal",
925
- "align": "center",
926
922
  "children": [
927
923
  {
928
924
  "icon": "heart",
929
- "action": "LIKE",
930
925
  "type": "button",
931
- "label": "Like",
932
- "variant": "ghost"
926
+ "action": "LIKE",
927
+ "variant": "ghost",
928
+ "label": "Like"
933
929
  },
934
930
  {
935
931
  "variant": "caption",
936
932
  "content": "@entity.likes",
937
933
  "type": "typography"
938
934
  }
939
- ]
935
+ ],
936
+ "direction": "horizontal",
937
+ "align": "center",
938
+ "gap": "sm",
939
+ "type": "stack"
940
940
  }
941
941
  ]
942
942
  ]
@@ -1016,6 +1016,10 @@
1016
1016
  {
1017
1017
  "name": "CommentOrbital",
1018
1018
  "uses": [
1019
+ {
1020
+ "from": "std/behaviors/std-app-layout",
1021
+ "as": "AppShell"
1022
+ },
1019
1023
  {
1020
1024
  "from": "std/behaviors/std-modal",
1021
1025
  "as": "Modal"
@@ -1067,6 +1071,34 @@
1067
1071
  ]
1068
1072
  },
1069
1073
  "traits": [
1074
+ {
1075
+ "ref": "AppShell.traits.AppLayout",
1076
+ "name": "CommentAppLayout",
1077
+ "linkedEntity": "Comment",
1078
+ "config": {
1079
+ "contentTrait": "@trait.CommentDisplay",
1080
+ "appName": "SocialFeed",
1081
+ "notifications": [],
1082
+ "notificationClickEvent": "COMMENT_NOTIFICATIONS_OPEN",
1083
+ "navItems": [
1084
+ {
1085
+ "icon": "rss",
1086
+ "label": "Feed",
1087
+ "href": "/feed"
1088
+ },
1089
+ {
1090
+ "icon": "message-circle",
1091
+ "href": "/comments",
1092
+ "label": "Comments"
1093
+ }
1094
+ ],
1095
+ "searchEvent": "COMMENT_SEARCH"
1096
+ },
1097
+ "events": {
1098
+ "SEARCH": "COMMENT_SEARCH",
1099
+ "NOTIFY_CLICK": "COMMENT_NOTIFICATIONS_OPEN"
1100
+ }
1101
+ },
1070
1102
  {
1071
1103
  "name": "CommentDisplay",
1072
1104
  "category": "interaction",
@@ -1082,6 +1114,24 @@
1082
1114
  ]
1083
1115
  }
1084
1116
  ],
1117
+ "listens": [
1118
+ {
1119
+ "event": "COMMENT_SEARCH",
1120
+ "triggers": "COMMENT_SEARCH",
1121
+ "source": {
1122
+ "kind": "trait",
1123
+ "trait": "CommentAppLayout"
1124
+ }
1125
+ },
1126
+ {
1127
+ "event": "COMMENT_NOTIFICATIONS_OPEN",
1128
+ "triggers": "COMMENT_NOTIFICATIONS_OPEN",
1129
+ "source": {
1130
+ "kind": "trait",
1131
+ "trait": "CommentAppLayout"
1132
+ }
1133
+ }
1134
+ ],
1085
1135
  "stateMachine": {
1086
1136
  "states": [
1087
1137
  {
@@ -1094,6 +1144,26 @@
1094
1144
  "key": "INIT",
1095
1145
  "name": "Initialize"
1096
1146
  },
1147
+ {
1148
+ "key": "COMMENT_SEARCH",
1149
+ "name": "Comment Search",
1150
+ "payloadSchema": [
1151
+ {
1152
+ "name": "value",
1153
+ "type": "string"
1154
+ }
1155
+ ]
1156
+ },
1157
+ {
1158
+ "key": "COMMENT_NOTIFICATIONS_OPEN",
1159
+ "name": "Comment Notifications Open",
1160
+ "payloadSchema": [
1161
+ {
1162
+ "name": "id",
1163
+ "type": "string"
1164
+ }
1165
+ ]
1166
+ },
1097
1167
  {
1098
1168
  "key": "CREATE",
1099
1169
  "name": "Create"
@@ -1111,12 +1181,16 @@
1111
1181
  {
1112
1182
  "direction": "vertical",
1113
1183
  "className": "max-w-5xl mx-auto w-full",
1184
+ "type": "stack",
1185
+ "gap": "lg",
1114
1186
  "children": [
1115
1187
  {
1116
- "type": "stack",
1188
+ "justify": "between",
1189
+ "align": "center",
1190
+ "gap": "md",
1117
1191
  "children": [
1118
1192
  {
1119
- "gap": "sm",
1193
+ "type": "stack",
1120
1194
  "direction": "horizontal",
1121
1195
  "align": "center",
1122
1196
  "children": [
@@ -1125,40 +1199,82 @@
1125
1199
  "name": "message-circle"
1126
1200
  },
1127
1201
  {
1128
- "content": "Comments",
1202
+ "variant": "h2",
1129
1203
  "type": "typography",
1130
- "variant": "h2"
1204
+ "content": "Comments"
1131
1205
  }
1132
1206
  ],
1133
- "type": "stack"
1207
+ "gap": "sm"
1134
1208
  },
1135
1209
  {
1136
- "gap": "sm",
1210
+ "type": "stack",
1137
1211
  "children": [
1138
1212
  {
1139
- "icon": "edit",
1213
+ "action": "CREATE",
1140
1214
  "type": "button",
1215
+ "icon": "edit",
1141
1216
  "label": "New Comment",
1142
- "action": "CREATE",
1143
1217
  "variant": "primary"
1144
1218
  }
1145
1219
  ],
1146
1220
  "direction": "horizontal",
1147
- "type": "stack"
1221
+ "gap": "sm"
1148
1222
  }
1149
1223
  ],
1150
- "direction": "horizontal",
1151
- "gap": "md",
1152
- "justify": "between",
1153
- "align": "center"
1224
+ "type": "stack",
1225
+ "direction": "horizontal"
1154
1226
  },
1155
1227
  {
1156
1228
  "type": "divider"
1157
1229
  },
1158
1230
  "@trait.CommentBrowseList"
1231
+ ]
1232
+ }
1233
+ ]
1234
+ ]
1235
+ },
1236
+ {
1237
+ "from": "composing",
1238
+ "to": "composing",
1239
+ "event": "COMMENT_SEARCH"
1240
+ },
1241
+ {
1242
+ "from": "composing",
1243
+ "to": "composing",
1244
+ "event": "COMMENT_NOTIFICATIONS_OPEN",
1245
+ "effects": [
1246
+ [
1247
+ "render-ui",
1248
+ "main",
1249
+ {
1250
+ "className": "py-8",
1251
+ "children": [
1252
+ {
1253
+ "name": "bell",
1254
+ "type": "icon"
1255
+ },
1256
+ {
1257
+ "type": "typography",
1258
+ "content": "No notifications",
1259
+ "variant": "h3"
1260
+ },
1261
+ {
1262
+ "color": "muted",
1263
+ "type": "typography",
1264
+ "variant": "caption",
1265
+ "content": "You're all caught up."
1266
+ },
1267
+ {
1268
+ "variant": "ghost",
1269
+ "label": "Back to comments",
1270
+ "type": "button",
1271
+ "action": "INIT"
1272
+ }
1159
1273
  ],
1160
- "gap": "lg",
1161
- "type": "stack"
1274
+ "gap": "md",
1275
+ "direction": "vertical",
1276
+ "type": "stack",
1277
+ "align": "center"
1162
1278
  }
1163
1279
  ]
1164
1280
  ]
@@ -1172,39 +1288,39 @@
1172
1288
  "name": "CommentBrowseList",
1173
1289
  "linkedEntity": "Comment",
1174
1290
  "config": {
1175
- "fields": [
1291
+ "itemActions": [
1176
1292
  {
1177
- "variant": "h4",
1178
- "icon": "user",
1179
- "name": "author"
1293
+ "event": "VIEW",
1294
+ "label": "View",
1295
+ "variant": "ghost"
1180
1296
  },
1181
1297
  {
1182
- "name": "body",
1183
- "variant": "body"
1298
+ "event": "EDIT",
1299
+ "label": "Edit",
1300
+ "variant": "ghost"
1184
1301
  },
1185
1302
  {
1186
- "variant": "caption",
1187
- "format": "date",
1188
- "name": "createdAt"
1303
+ "event": "DELETE",
1304
+ "label": "Delete",
1305
+ "variant": "danger"
1189
1306
  }
1190
1307
  ],
1191
1308
  "cols": 1.0,
1192
1309
  "gap": "sm",
1193
- "itemActions": [
1310
+ "fields": [
1194
1311
  {
1195
- "variant": "ghost",
1196
- "event": "VIEW",
1197
- "label": "View"
1312
+ "variant": "h4",
1313
+ "name": "author",
1314
+ "icon": "user"
1198
1315
  },
1199
1316
  {
1200
- "label": "Edit",
1201
- "variant": "ghost",
1202
- "event": "EDIT"
1317
+ "name": "body",
1318
+ "variant": "body"
1203
1319
  },
1204
1320
  {
1205
- "event": "DELETE",
1206
- "variant": "danger",
1207
- "label": "Delete"
1321
+ "variant": "caption",
1322
+ "format": "date",
1323
+ "name": "createdAt"
1208
1324
  }
1209
1325
  ],
1210
1326
  "variant": "card"
@@ -1242,13 +1358,13 @@
1242
1358
  "linkedEntity": "Comment",
1243
1359
  "config": {
1244
1360
  "icon": "plus-circle",
1245
- "title": "New Comment",
1246
1361
  "fields": [
1247
1362
  "postId",
1248
1363
  "author",
1249
1364
  "body"
1250
1365
  ],
1251
- "mode": "create"
1366
+ "mode": "create",
1367
+ "title": "New Comment"
1252
1368
  },
1253
1369
  "events": {
1254
1370
  "OPEN": "CREATE"
@@ -1269,14 +1385,14 @@
1269
1385
  "name": "CommentEdit",
1270
1386
  "linkedEntity": "Comment",
1271
1387
  "config": {
1272
- "icon": "edit",
1273
1388
  "mode": "edit",
1274
- "title": "Edit Comment",
1275
1389
  "fields": [
1276
1390
  "postId",
1277
1391
  "author",
1278
1392
  "body"
1279
- ]
1393
+ ],
1394
+ "icon": "edit",
1395
+ "title": "Edit Comment"
1280
1396
  },
1281
1397
  "events": {
1282
1398
  "OPEN": "EDIT"
@@ -1297,15 +1413,15 @@
1297
1413
  "name": "CommentView",
1298
1414
  "linkedEntity": "Comment",
1299
1415
  "config": {
1300
- "mode": "edit",
1301
1416
  "title": "View Comment",
1302
- "icon": "eye",
1417
+ "mode": "edit",
1303
1418
  "fields": [
1304
1419
  "postId",
1305
1420
  "author",
1306
1421
  "body",
1307
1422
  "createdAt"
1308
- ]
1423
+ ],
1424
+ "icon": "eye"
1309
1425
  },
1310
1426
  "events": {
1311
1427
  "OPEN": "VIEW"
@@ -1326,10 +1442,10 @@
1326
1442
  "name": "CommentDeleteConfirm",
1327
1443
  "linkedEntity": "Comment",
1328
1444
  "config": {
1329
- "title": "Delete Comment",
1330
- "icon": "alert-triangle",
1331
1445
  "alertMessage": "This action cannot be undone.",
1332
- "confirmLabel": "Delete"
1446
+ "confirmLabel": "Delete",
1447
+ "title": "Delete Comment",
1448
+ "icon": "alert-triangle"
1333
1449
  },
1334
1450
  "events": {
1335
1451
  "CONFIRM": "CONFIRM_DELETE",
@@ -1535,6 +1651,9 @@
1535
1651
  "name": "Comments",
1536
1652
  "path": "/comments",
1537
1653
  "traits": [
1654
+ {
1655
+ "ref": "CommentAppLayout"
1656
+ },
1538
1657
  {
1539
1658
  "ref": "CommentDisplay"
1540
1659
  },