contentoh-components-library 21.3.39 → 21.3.41
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/components/atoms/ButtonV2/styles.js +1 -1
- package/dist/components/atoms/Status/styles.js +1 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +18 -23
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
- package/dist/components/organisms/GlobalModal/styles.js +1 -1
- package/dist/components/organisms/TableResizable/index.js +6 -10
- package/dist/components/pages/Dashboard/Dashboard.stories.js +31 -50
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +138 -52
- package/dist/components/pages/ProviderProductEdition/index.js +191 -202
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +82 -118
- package/dist/components/pages/RetailerProductEdition/index.js +1 -1
- package/package.json +1 -1
- package/src/components/atoms/ButtonV2/styles.js +1 -1
- package/src/components/atoms/Status/styles.js +4 -0
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +18 -22
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +3 -4
- package/src/components/organisms/GlobalModal/styles.js +10 -0
- package/src/components/organisms/TableResizable/index.js +0 -2
- package/src/components/pages/Dashboard/Dashboard.stories.js +31 -55
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +157 -58
- package/src/components/pages/ProviderProductEdition/index.js +119 -121
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +87 -127
- package/src/components/pages/RetailerProductEdition/index.js +1 -1
|
@@ -12,142 +12,102 @@ export const RetailerProductEditionDefault = Template.bind({});
|
|
|
12
12
|
RetailerProductEditionDefault.args = {
|
|
13
13
|
tabsSections: {
|
|
14
14
|
Descripción: true,
|
|
15
|
-
"Ficha técnica":
|
|
16
|
-
Imágenes:
|
|
15
|
+
"Ficha técnica": false,
|
|
16
|
+
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
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3pQ_S1JrY_syYf88m_GtJKOywEnE6--Ef9lZhFBFKGtqRJ4H8JBa9Xb96uCjAKyEMCSURDlw37pk2RQdULlZPj17Zb6Xrqi2lwrhpI1ByptX3__UoTiZklnTXwIxM4JdU7yuhXLznaEH8NOSd2Jw-CV6FCUbYBHlnRYBQg7B5mwyVKtDQm6QpRgBTBPCvljJJpFjRKUcnon8WZiFXx1qVbkWPt2vCT1TZqqoSLdlP6lA",
|
|
20
20
|
productSelected: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
"orderId": 15160,
|
|
22
|
+
"status": "SAC",
|
|
23
|
+
"datasheet_status": "SAC",
|
|
24
|
+
"prio": "none",
|
|
25
|
+
"version": 7,
|
|
26
|
+
"description_status": "SAC",
|
|
27
|
+
"images_status": "SAC",
|
|
28
|
+
"brand": null,
|
|
29
|
+
"retailerOrder": 1,
|
|
30
|
+
"missing": {
|
|
31
|
+
"datasheet": null,
|
|
32
|
+
"descriptions": null,
|
|
33
|
+
"images": null
|
|
25
34
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
version: 3,
|
|
31
|
-
description_status: "CA",
|
|
32
|
-
images_status: "AS",
|
|
33
|
-
statusByRetailer: {
|
|
34
|
-
4: {
|
|
35
|
-
datasheet: "AC",
|
|
36
|
-
description: "CA",
|
|
37
|
-
images: "AS",
|
|
38
|
-
},
|
|
39
|
-
5: {
|
|
40
|
-
datasheet: "CA",
|
|
41
|
-
description: "CA",
|
|
42
|
-
images: "AS",
|
|
43
|
-
},
|
|
44
|
-
6: {
|
|
45
|
-
description: "CA",
|
|
46
|
-
images: "AS",
|
|
47
|
-
datasheet: "CA",
|
|
48
|
-
},
|
|
49
|
-
12: {
|
|
50
|
-
datasheet: "CA",
|
|
51
|
-
description: "CA",
|
|
52
|
-
images: "AS",
|
|
53
|
-
},
|
|
54
|
-
17: {
|
|
55
|
-
datasheet: "CA",
|
|
56
|
-
description: "AC",
|
|
57
|
-
images: "AS",
|
|
58
|
-
},
|
|
35
|
+
"services": {
|
|
36
|
+
"datasheets": 1,
|
|
37
|
+
"descriptions": 1,
|
|
38
|
+
"images": 1
|
|
59
39
|
},
|
|
60
|
-
article: {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
id_datasheet_especialist: 54,
|
|
78
|
-
id_datasheet_facilitator: 52,
|
|
79
|
-
id_description_especialist: 54,
|
|
80
|
-
id_description_facilitator: 52,
|
|
81
|
-
id_images_especialist: 55,
|
|
82
|
-
id_images_facilitator: 53,
|
|
83
|
-
id_auditor: 37,
|
|
84
|
-
id_recepcionist: null,
|
|
85
|
-
category:
|
|
86
|
-
"Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
87
|
-
missingAttributes: 0,
|
|
88
|
-
missingDescriptions: 0,
|
|
89
|
-
missingImages: 0,
|
|
40
|
+
"article": {
|
|
41
|
+
"category": "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
|
|
42
|
+
"company_name": "Demo",
|
|
43
|
+
"country": "México",
|
|
44
|
+
"id_category": "2366",
|
|
45
|
+
"id_datasheet_especialist": null,
|
|
46
|
+
"id_datasheet_facilitator": null,
|
|
47
|
+
"id_description_especialist": null,
|
|
48
|
+
"id_description_facilitator": null,
|
|
49
|
+
"id_images_especialist": null,
|
|
50
|
+
"id_images_facilitator": null,
|
|
51
|
+
"id_order": 15160,
|
|
52
|
+
"id_article": 39290,
|
|
53
|
+
"id_auditor": 37,
|
|
54
|
+
"name": "MOLDURA MARCO MODER 11X4X244 CM",
|
|
55
|
+
"timestamp": "2023-04-19T21:36:02.000Z",
|
|
56
|
+
"upc": "100030"
|
|
90
57
|
},
|
|
91
|
-
retailers: [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
{
|
|
101
|
-
id: 6,
|
|
102
|
-
name: "HEB",
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
id: 12,
|
|
106
|
-
name: "La Comer",
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
id: 17,
|
|
110
|
-
name: "Genérico",
|
|
111
|
-
},
|
|
58
|
+
"retailers": [
|
|
59
|
+
{
|
|
60
|
+
"id": 58,
|
|
61
|
+
"name": "The Home Depot Golden"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": 68,
|
|
65
|
+
"name": "The Home Depot Merchants"
|
|
66
|
+
}
|
|
112
67
|
],
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
68
|
+
"statusByRetailer": {
|
|
69
|
+
"58": {
|
|
70
|
+
"datasheet": "SAC",
|
|
71
|
+
"description": "SAC",
|
|
72
|
+
"images": "SAC"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
116
76
|
location: {
|
|
117
|
-
product: { articleId:
|
|
77
|
+
product: { articleId: 39290, versionId: 7 },
|
|
118
78
|
},
|
|
119
79
|
user: {
|
|
120
|
-
id_user: 51,
|
|
121
|
-
name: "ADMIN PRUEBA",
|
|
122
|
-
last_name: "",
|
|
123
|
-
email: "etc@contentoh.com",
|
|
124
|
-
position: "",
|
|
125
|
-
telephone: "",
|
|
126
|
-
country: "",
|
|
127
|
-
id_company: 2,
|
|
128
|
-
id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
|
|
129
|
-
birth_Date: null,
|
|
130
|
-
about_me: "",
|
|
131
|
-
zip_code: "",
|
|
132
|
-
address: "",
|
|
133
|
-
job: "",
|
|
134
|
-
id_stripe: "",
|
|
135
|
-
id_role: 1,
|
|
136
|
-
active: 1,
|
|
137
|
-
is_retailer: 0,
|
|
138
|
-
email_notify: 1,
|
|
139
|
-
is_user_tech: null,
|
|
140
|
-
membership: {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
80
|
+
"id_user": 51,
|
|
81
|
+
"name": "ADMIN PRUEBA",
|
|
82
|
+
"last_name": "",
|
|
83
|
+
"email": "etc@contentoh.com",
|
|
84
|
+
"position": "",
|
|
85
|
+
"telephone": "",
|
|
86
|
+
"country": "",
|
|
87
|
+
"id_company": 2,
|
|
88
|
+
"id_cognito": "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
|
|
89
|
+
"birth_Date": null,
|
|
90
|
+
"about_me": "",
|
|
91
|
+
"zip_code": "",
|
|
92
|
+
"address": "",
|
|
93
|
+
"job": "",
|
|
94
|
+
"id_stripe": "",
|
|
95
|
+
"id_role": 1,
|
|
96
|
+
"active": 1,
|
|
97
|
+
"is_retailer": 0,
|
|
98
|
+
"email_notify": 1,
|
|
99
|
+
"is_user_tech": null,
|
|
100
|
+
"membership": {
|
|
101
|
+
"id": 2,
|
|
102
|
+
"start_date": "2021-11-05T02:35:12.000Z",
|
|
103
|
+
"end_date": "2022-11-05T02:34:49.000Z",
|
|
104
|
+
"planID": 1,
|
|
105
|
+
"plan": "prod_KtkvuFFLpOdP6e",
|
|
106
|
+
"name": "Plan Free",
|
|
107
|
+
"user_limit": "1",
|
|
108
|
+
"products_limit": "3",
|
|
109
|
+
"type": "PyMES"
|
|
150
110
|
},
|
|
151
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?
|
|
152
|
-
|
|
111
|
+
"src": "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1682016291518"
|
|
112
|
+
},
|
|
153
113
|
};
|
|
@@ -752,7 +752,7 @@ export const RetailerProductEdition = ({
|
|
|
752
752
|
const adminFacilitatorCanEvaluate =
|
|
753
753
|
retailerStatus === "IE" && [1, 4, 5].includes(user.id_role);
|
|
754
754
|
const adminAuditorCanEvaluate =
|
|
755
|
-
["AC", "RP", "RCA"].includes(retailerStatus) &&
|
|
755
|
+
["AC", "RP", "RCA", "SAC"].includes(retailerStatus) &&
|
|
756
756
|
[1, 6].includes(user.id_role);
|
|
757
757
|
return adminFacilitatorCanEvaluate || adminAuditorCanEvaluate;
|
|
758
758
|
};
|