@steedos-labs/content-compliance 0.8.9 → 0.8.10
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.
- package/dist/index.js +1 -1
- package/lib/index.js +25 -0
- package/lib/index.js.map +1 -1
- package/lib/methods/__tests__/plsReview.test.js +311 -3
- package/lib/methods/__tests__/plsReview.test.js.map +1 -1
- package/lib/methods/pls.d.ts +6 -0
- package/lib/methods/pls.js +60 -9
- package/lib/methods/pls.js.map +1 -1
- package/lib/pages/__tests__/aiReviewCardStyles.test.js +7 -0
- package/lib/pages/__tests__/aiReviewCardStyles.test.js.map +1 -1
- package/lib/pages/__tests__/plsReviewPage.test.js +89 -0
- package/lib/pages/__tests__/plsReviewPage.test.js.map +1 -1
- package/main/default/objects/pepsico_ai_review/buttons/pepsico_adopt.button.yml +12 -0
- package/main/default/objects/pepsico_km_pls_file/listviews/lookup.listview.yml +1 -1
- package/main/default/objects/pepsico_material/listviews/all.listview.yml +0 -1
- package/main/default/objects/pepsico_material_approval/fields/handler_preqc.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/pre_qc_reviewer.field.yml +1 -1
- package/main/default/pages/pepsico_material_detail.page.amis.json +77 -13
- package/main/default/pages/pepsico_material_detail_mobile.page.amis.json +28 -8
- package/package.json +1 -1
- package/public/content-review/amis.css +6 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"type": "grid",
|
|
14
|
-
"className": "m-0 material-${extension_type}",
|
|
14
|
+
"className": "m-0 material-${extension_type} material-detail-no-comments",
|
|
15
15
|
"id": "u:9176c9e13ab5",
|
|
16
16
|
"editorState": "default",
|
|
17
17
|
"columns": [
|
|
@@ -19,10 +19,15 @@
|
|
|
19
19
|
"columnClassName": "px-0 max-h-full",
|
|
20
20
|
"body": [
|
|
21
21
|
{
|
|
22
|
-
"type": "
|
|
23
|
-
"className": "
|
|
24
|
-
"
|
|
22
|
+
"type": "service",
|
|
23
|
+
"className": "h-full material-review-permissions-service",
|
|
24
|
+
"api": "/api/pepsico-content/review-permissions/material/${recordId}",
|
|
25
|
+
"body": [
|
|
25
26
|
{
|
|
27
|
+
"type": "tabs",
|
|
28
|
+
"className": "steedos-record-tabs bg-white p-4 mx-4 sm:border sm:rounded",
|
|
29
|
+
"tabs": [
|
|
30
|
+
{
|
|
26
31
|
"title": "素材预览",
|
|
27
32
|
"className": "px-0 py-2",
|
|
28
33
|
"visibleOn": "extension_type !== 'doc' && extension_type !== 'docx' && extension_type !== 'ppt' && extension_type !== 'pptx'",
|
|
@@ -155,6 +160,7 @@
|
|
|
155
160
|
"id": "u:pepsico_adopt",
|
|
156
161
|
"confirmText": "确定要采纳这个AI意见吗?",
|
|
157
162
|
"className": "pepsico-adopt mr-4",
|
|
163
|
+
"visibleOn": "${canAdopt}",
|
|
158
164
|
"onEvent": {
|
|
159
165
|
"click": {
|
|
160
166
|
"weight": 0,
|
|
@@ -172,6 +178,17 @@
|
|
|
172
178
|
"messages": {}
|
|
173
179
|
}
|
|
174
180
|
},
|
|
181
|
+
{
|
|
182
|
+
"ignoreError": false,
|
|
183
|
+
"actionType": "toast",
|
|
184
|
+
"args": {
|
|
185
|
+
"msgType": "success",
|
|
186
|
+
"position": "top-right",
|
|
187
|
+
"closeButton": true,
|
|
188
|
+
"showIcon": true,
|
|
189
|
+
"msg": "意见已采纳到评论区,请确认"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
175
192
|
{
|
|
176
193
|
"ignoreError": true,
|
|
177
194
|
"actionType": "ajax",
|
|
@@ -207,6 +224,7 @@
|
|
|
207
224
|
},
|
|
208
225
|
{
|
|
209
226
|
"title": "PLS意见",
|
|
227
|
+
"visibleOn": "${hasPLSFile}",
|
|
210
228
|
"className": "px-0 py-4 pepsico-pls-review-tab-content",
|
|
211
229
|
"body": [
|
|
212
230
|
{
|
|
@@ -218,7 +236,7 @@
|
|
|
218
236
|
{
|
|
219
237
|
"type": "alert",
|
|
220
238
|
"level": "info",
|
|
221
|
-
"body": "
|
|
239
|
+
"body": "暂无PLS审核意见",
|
|
222
240
|
"visibleOn": "${!groups || groups.length === 0}"
|
|
223
241
|
},
|
|
224
242
|
{
|
|
@@ -446,6 +464,7 @@
|
|
|
446
464
|
"label": "采纳",
|
|
447
465
|
"confirmText": "确定要采纳这个AI意见吗?",
|
|
448
466
|
"className": "pepsico-adopt mr-4",
|
|
467
|
+
"visibleOn": "${canAdopt}",
|
|
449
468
|
"onEvent": {
|
|
450
469
|
"click": {
|
|
451
470
|
"weight": 0,
|
|
@@ -463,6 +482,17 @@
|
|
|
463
482
|
"messages": {}
|
|
464
483
|
}
|
|
465
484
|
},
|
|
485
|
+
{
|
|
486
|
+
"ignoreError": false,
|
|
487
|
+
"actionType": "toast",
|
|
488
|
+
"args": {
|
|
489
|
+
"msgType": "success",
|
|
490
|
+
"position": "top-right",
|
|
491
|
+
"closeButton": true,
|
|
492
|
+
"showIcon": true,
|
|
493
|
+
"msg": "意见已采纳到评论区,请确认"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
466
496
|
{
|
|
467
497
|
"ignoreError": true,
|
|
468
498
|
"actionType": "ajax",
|
|
@@ -519,8 +549,10 @@
|
|
|
519
549
|
"id": "u:26838ebced4a",
|
|
520
550
|
"className": "px-0 py-4"
|
|
521
551
|
}
|
|
522
|
-
|
|
523
|
-
|
|
552
|
+
],
|
|
553
|
+
"id": "u:2bda634e52ac"
|
|
554
|
+
}
|
|
555
|
+
]
|
|
524
556
|
}
|
|
525
557
|
],
|
|
526
558
|
"id": "u:332085f0f500"
|
|
@@ -536,10 +568,15 @@
|
|
|
536
568
|
"columnClassName": "px-0 max-h-full",
|
|
537
569
|
"body": [
|
|
538
570
|
{
|
|
539
|
-
"type": "
|
|
540
|
-
"className": "
|
|
541
|
-
"
|
|
571
|
+
"type": "service",
|
|
572
|
+
"className": "h-full material-review-permissions-service",
|
|
573
|
+
"api": "/api/pepsico-content/review-permissions/material/${recordId}",
|
|
574
|
+
"body": [
|
|
542
575
|
{
|
|
576
|
+
"type": "tabs",
|
|
577
|
+
"className": "steedos-record-tabs bg-white p-4 ml-4 sm:border sm:rounded",
|
|
578
|
+
"tabs": [
|
|
579
|
+
{
|
|
543
580
|
"title": "素材预览",
|
|
544
581
|
"className": "px-0 py-2",
|
|
545
582
|
"visibleOn": "extension_type !== 'doc' && extension_type !== 'docx' && extension_type !== 'ppt' && extension_type !== 'pptx'",
|
|
@@ -672,6 +709,7 @@
|
|
|
672
709
|
"id": "u:c9702afe3bc9",
|
|
673
710
|
"confirmText": "确定要采纳这个AI意见吗?",
|
|
674
711
|
"className": "pepsico-adopt mr-4",
|
|
712
|
+
"visibleOn": "${canAdopt}",
|
|
675
713
|
"onEvent": {
|
|
676
714
|
"click": {
|
|
677
715
|
"weight": 0,
|
|
@@ -689,6 +727,17 @@
|
|
|
689
727
|
"messages": {}
|
|
690
728
|
}
|
|
691
729
|
},
|
|
730
|
+
{
|
|
731
|
+
"ignoreError": false,
|
|
732
|
+
"actionType": "toast",
|
|
733
|
+
"args": {
|
|
734
|
+
"msgType": "success",
|
|
735
|
+
"position": "top-right",
|
|
736
|
+
"closeButton": true,
|
|
737
|
+
"showIcon": true,
|
|
738
|
+
"msg": "意见已采纳到评论区,请确认"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
692
741
|
{
|
|
693
742
|
"ignoreError": true,
|
|
694
743
|
"actionType": "ajax",
|
|
@@ -724,6 +773,7 @@
|
|
|
724
773
|
},
|
|
725
774
|
{
|
|
726
775
|
"title": "PLS意见",
|
|
776
|
+
"visibleOn": "${hasPLSFile}",
|
|
727
777
|
"className": "px-0 py-4 pepsico-pls-review-tab-content",
|
|
728
778
|
"body": [
|
|
729
779
|
{
|
|
@@ -735,7 +785,7 @@
|
|
|
735
785
|
{
|
|
736
786
|
"type": "alert",
|
|
737
787
|
"level": "info",
|
|
738
|
-
"body": "
|
|
788
|
+
"body": "暂无PLS审核意见",
|
|
739
789
|
"visibleOn": "${!groups || groups.length === 0}"
|
|
740
790
|
},
|
|
741
791
|
{
|
|
@@ -963,6 +1013,7 @@
|
|
|
963
1013
|
"label": "采纳",
|
|
964
1014
|
"confirmText": "确定要采纳这个AI意见吗?",
|
|
965
1015
|
"className": "pepsico-adopt mr-4",
|
|
1016
|
+
"visibleOn": "${canAdopt}",
|
|
966
1017
|
"onEvent": {
|
|
967
1018
|
"click": {
|
|
968
1019
|
"weight": 0,
|
|
@@ -980,6 +1031,17 @@
|
|
|
980
1031
|
"messages": {}
|
|
981
1032
|
}
|
|
982
1033
|
},
|
|
1034
|
+
{
|
|
1035
|
+
"ignoreError": false,
|
|
1036
|
+
"actionType": "toast",
|
|
1037
|
+
"args": {
|
|
1038
|
+
"msgType": "success",
|
|
1039
|
+
"position": "top-right",
|
|
1040
|
+
"closeButton": true,
|
|
1041
|
+
"showIcon": true,
|
|
1042
|
+
"msg": "意见已采纳到评论区,请确认"
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
983
1045
|
{
|
|
984
1046
|
"ignoreError": true,
|
|
985
1047
|
"actionType": "ajax",
|
|
@@ -1053,8 +1115,10 @@
|
|
|
1053
1115
|
"id": "u:9ea488b63710",
|
|
1054
1116
|
"reload": true
|
|
1055
1117
|
}
|
|
1056
|
-
|
|
1057
|
-
|
|
1118
|
+
],
|
|
1119
|
+
"id": "u:ae655ee6c4b4"
|
|
1120
|
+
}
|
|
1121
|
+
]
|
|
1058
1122
|
}
|
|
1059
1123
|
],
|
|
1060
1124
|
"id": "u:f65ca7cd907b"
|
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
"id": "u:ae4a6d994b65"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"type": "
|
|
14
|
-
"className": "
|
|
15
|
-
"
|
|
13
|
+
"type": "service",
|
|
14
|
+
"className": "h-full material-review-permissions-service",
|
|
15
|
+
"api": "/api/pepsico-content/review-permissions/material/${recordId}",
|
|
16
|
+
"body": [
|
|
16
17
|
{
|
|
18
|
+
"type": "tabs",
|
|
19
|
+
"className": "steedos-record-tabs bg-white p-4 sm:border sm:rounded",
|
|
20
|
+
"tabs": [
|
|
21
|
+
{
|
|
17
22
|
"title": "素材预览",
|
|
18
23
|
"className": "px-0 py-2",
|
|
19
24
|
"visibleOn": "extension_type !== 'doc' && extension_type !== 'docx' && extension_type !== 'ppt' && extension_type !== 'pptx'",
|
|
@@ -100,6 +105,7 @@
|
|
|
100
105
|
},
|
|
101
106
|
{
|
|
102
107
|
"title": "PLS意见",
|
|
108
|
+
"visibleOn": "${hasPLSFile}",
|
|
103
109
|
"className": "px-0 py-4 pepsico-pls-review-tab-content",
|
|
104
110
|
"body": [
|
|
105
111
|
{
|
|
@@ -111,7 +117,7 @@
|
|
|
111
117
|
{
|
|
112
118
|
"type": "alert",
|
|
113
119
|
"level": "info",
|
|
114
|
-
"body": "
|
|
120
|
+
"body": "暂无PLS审核意见",
|
|
115
121
|
"visibleOn": "${!groups || groups.length === 0}"
|
|
116
122
|
},
|
|
117
123
|
{
|
|
@@ -339,6 +345,7 @@
|
|
|
339
345
|
"label": "采纳",
|
|
340
346
|
"confirmText": "确定要采纳这个AI意见吗?",
|
|
341
347
|
"className": "pepsico-adopt mr-4",
|
|
348
|
+
"visibleOn": "${canAdopt}",
|
|
342
349
|
"onEvent": {
|
|
343
350
|
"click": {
|
|
344
351
|
"weight": 0,
|
|
@@ -355,8 +362,19 @@
|
|
|
355
362
|
"adaptor": "return {}",
|
|
356
363
|
"messages": {}
|
|
357
364
|
}
|
|
358
|
-
|
|
359
|
-
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"ignoreError": false,
|
|
368
|
+
"actionType": "toast",
|
|
369
|
+
"args": {
|
|
370
|
+
"msgType": "success",
|
|
371
|
+
"position": "top-right",
|
|
372
|
+
"closeButton": true,
|
|
373
|
+
"showIcon": true,
|
|
374
|
+
"msg": "意见已采纳到评论区,请确认"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
360
378
|
"ignoreError": true,
|
|
361
379
|
"actionType": "ajax",
|
|
362
380
|
"outputVar": "responseResult2",
|
|
@@ -412,8 +430,10 @@
|
|
|
412
430
|
"id": "u:26838ebced4a",
|
|
413
431
|
"className": "px-0 py-4"
|
|
414
432
|
}
|
|
415
|
-
|
|
416
|
-
|
|
433
|
+
],
|
|
434
|
+
"id": "u:2bda634e52ac"
|
|
435
|
+
}
|
|
436
|
+
]
|
|
417
437
|
}
|
|
418
438
|
],
|
|
419
439
|
"regions": [
|
package/package.json
CHANGED
|
@@ -143,6 +143,11 @@
|
|
|
143
143
|
position: fixed;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
+
.antd-Drawer-body .material-detail-no-comments .pepsico_ai_review-tab-content {
|
|
147
|
+
width: 100%;
|
|
148
|
+
position: initial;
|
|
149
|
+
}
|
|
150
|
+
|
|
146
151
|
.antd-Drawer-body .pepsico_ai_review-tab-content .steedos-record-related-list{
|
|
147
152
|
height: calc(100% - 175px);
|
|
148
153
|
}
|
|
@@ -323,7 +328,7 @@
|
|
|
323
328
|
}
|
|
324
329
|
|
|
325
330
|
.antd-Drawer .steedos-object-table.steedos-crud-mode-cards .antd-Crud .antd-Cards .antd-Cards-body .antd-Card .antd-Card-body .antd-Card-field .antd-Card-fieldValue .antd-TplField{
|
|
326
|
-
max-width:
|
|
331
|
+
max-width: none;
|
|
327
332
|
}
|
|
328
333
|
|
|
329
334
|
.pepsico_ai_review-tab-content .antd-Image--thumb{
|