contentoh-components-library 21.5.99 → 21.6.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.
- package/dist/components/atoms/GeneralButton/styles.js +1 -1
- package/dist/components/atoms/GeneralInput/index.js +249 -54
- package/dist/components/atoms/GeneralInput/styles.js +7 -3
- package/dist/components/atoms/InputFormatter/index.js +223 -68
- package/dist/components/atoms/InputFormatter/styles.js +20 -4
- package/dist/components/molecules/StatusAsignationInfo/index.js +11 -1
- package/dist/components/molecules/TabsMenu/index.js +13 -1
- package/dist/components/molecules/TagAndInput/index.js +364 -24
- package/dist/components/molecules/TagAndInput/styles.js +2 -2
- package/dist/components/organisms/FullProductNameHeader/index.js +6 -22
- package/dist/components/organisms/InputGroup/index.js +22 -18
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +150 -337
- package/dist/components/pages/ProviderProductEdition/context/provider-product-edition.context.js +15 -15
- package/dist/components/pages/ProviderProductEdition/index.js +393 -352
- package/dist/components/pages/ProviderProductEdition/utils.js +1 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +125 -211
- package/dist/components/pages/RetailerProductEdition/index.js +1743 -2239
- package/dist/components/pages/RetailerProductEdition/styles.js +4 -2
- package/dist/components/pages/RetailerProductEdition/utils.js +251 -2
- package/package.json +4 -2
- package/src/ai/utils/compare-strings.js +45 -0
- package/src/assets/images/Icons/arrow.png +0 -0
- package/src/assets/images/Icons/cancel.png +0 -0
- package/src/assets/images/Icons/ia-icon.png +0 -0
- package/src/assets/images/Icons/loading.svg +5 -0
- package/src/assets/images/Icons/reload.png +0 -0
- package/src/components/atoms/GeneralButton/styles.js +4 -0
- package/src/components/atoms/GeneralInput/index.js +241 -60
- package/src/components/atoms/GeneralInput/styles.js +81 -0
- package/src/components/atoms/InputFormatter/index.js +200 -51
- package/src/components/atoms/InputFormatter/styles.js +284 -0
- package/src/components/atoms/RetailerSelector/RetailerSelector.stories.js +10 -0
- package/src/components/atoms/RetailerSelector/index.js +3 -0
- package/src/components/atoms/RetailerSelector/styles.js +0 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +9 -1
- package/src/components/molecules/TabsMenu/index.js +12 -0
- package/src/components/molecules/TagAndInput/index.js +294 -21
- package/src/components/molecules/TagAndInput/styles.js +59 -17
- package/src/components/organisms/ChangeStatusModal/index.jsx +488 -0
- package/src/components/organisms/ChangeStatusModal/styles.js +333 -0
- package/src/components/organisms/FullProductNameHeader/index.js +4 -28
- package/src/components/organisms/FullTabsMenu/index.js +1 -1
- package/src/components/organisms/InputGroup/index.js +12 -4
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +174 -202
- package/src/components/pages/ProviderProductEdition/context/provider-product-edition.context.jsx +14 -14
- package/src/components/pages/ProviderProductEdition/index.js +486 -417
- package/src/components/pages/ProviderProductEdition/utils.js +2 -2
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +136 -243
- package/src/components/pages/RetailerProductEdition/context/provider-product-edition.context.jsx +575 -0
- package/src/components/pages/RetailerProductEdition/context/provider-product-edition.reducer.js +62 -0
- package/src/components/pages/RetailerProductEdition/context/reducers/active-state.js +344 -0
- package/src/components/pages/RetailerProductEdition/context/reducers/inputs.js +155 -0
- package/src/components/pages/RetailerProductEdition/context/reducers/product.js +114 -0
- package/src/components/pages/RetailerProductEdition/context/reducers/system.js +60 -0
- package/src/components/pages/RetailerProductEdition/index.js +1580 -1719
- package/src/components/pages/RetailerProductEdition/index_old.js +1979 -0
- package/src/components/pages/RetailerProductEdition/stories/Auditor.stories.js +101 -0
- package/src/components/pages/RetailerProductEdition/stories/ImageEditor.stories.js +115 -0
- package/src/components/pages/RetailerProductEdition/stories/TextEditor.stories.js +174 -0
- package/src/components/pages/RetailerProductEdition/styles.js +67 -2
- package/src/components/pages/RetailerProductEdition/utils.js +240 -0
- package/src/contexts/AiProductEdition.jsx +347 -0
- package/src/global-files/statusDictionary.js +103 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { RetailerProductEdition } from "../index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/pages/RetailerProductEdition/Auditor",
|
|
5
|
+
component: RetailerProductEdition,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => <RetailerProductEdition {...args} />;
|
|
9
|
+
|
|
10
|
+
export const Auditor = Template.bind({});
|
|
11
|
+
|
|
12
|
+
Auditor.args = {
|
|
13
|
+
tabsSections: {
|
|
14
|
+
Descripción: true,
|
|
15
|
+
"Ficha técnica": true,
|
|
16
|
+
Imágenes: true,
|
|
17
|
+
},
|
|
18
|
+
token:
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyM2EzZjQ5Ni00ZTM4LTRlMTItOWJmNS03ZjkwYjc3YTJmMzUiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjIzYTNmNDk2LTRlMzgtNGUxMi05YmY1LTdmOTBiNzdhMmYzNSIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI1NjE0OGI2Mi0xMzAyLTQ2NzgtOTYxYS1jNzFlMDExZTUxZWUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTc2ODQ5NTM4NiwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTc2ODQ5ODk4NiwiaWF0IjoxNzY4NDk1Mzg2LCJlbWFpbCI6ImxhZGlib2g3ODVAbWkxNjYuY29tIn0.SxUO599SUtC7NrPaszjJ2YTFEOSLUrQ3bC8VCbM_jzBcVyfcT_gnEX9lqf_AIeMz8OTwx7SfFvXxia46chXp9pZAeaQ0tMexh04HI5S3IFOgTlaoQm7MT8V_lkgIMt_zN1F2xl5y5lcwyXw7DeCvkL606A_49Ho2gDN3Kiybrwld8OBneXhFiszt48HCV1o_0GPXECnbd7Mic2XCk6J6JPTW0n1N-PqRQqccMI9MYbVxxJOj27U9yQiivvIa68kvvJPmpFDN4ogjDCY45VDSPNixk_q4uPeXLx0S9zJ9LHtA-FGcLR0W2G5f858j2d5iF1yyyQghewBruZJhSRiXUA",
|
|
20
|
+
productSelected: {
|
|
21
|
+
orderId: 10365,
|
|
22
|
+
status: "AC",
|
|
23
|
+
datasheet_status: "AC",
|
|
24
|
+
prio: "none",
|
|
25
|
+
version: 3,
|
|
26
|
+
description_status: "AC",
|
|
27
|
+
images_status: "AC",
|
|
28
|
+
brand: null,
|
|
29
|
+
retailerOrder: 0,
|
|
30
|
+
missing: { datasheet: null, descriptions: null, images: null },
|
|
31
|
+
services: { datasheets: 1, descriptions: 1, images: 1 },
|
|
32
|
+
article: {
|
|
33
|
+
category: "Jardín|Macetas|Macetas de Plástico",
|
|
34
|
+
company_name: "",
|
|
35
|
+
country: "México",
|
|
36
|
+
id_category: "2194",
|
|
37
|
+
id_datasheet_especialist: 2928,
|
|
38
|
+
id_datasheet_facilitator: null,
|
|
39
|
+
id_description_especialist: 2928,
|
|
40
|
+
id_description_facilitator: null,
|
|
41
|
+
id_images_especialist: 3008,
|
|
42
|
+
id_images_facilitator: null,
|
|
43
|
+
id_order: 10365,
|
|
44
|
+
id_article: 144444,
|
|
45
|
+
id_auditor: 425,
|
|
46
|
+
name: "MACETA AURA NEGRO",
|
|
47
|
+
timestamp: "2025-10-20T21:30:17.000Z",
|
|
48
|
+
upc: "230750",
|
|
49
|
+
sku: "230750",
|
|
50
|
+
categoryRetailer: [
|
|
51
|
+
{
|
|
52
|
+
id_category: 2194,
|
|
53
|
+
id_retailer: 58,
|
|
54
|
+
category_name: "Jardín|Macetas|Macetas de Plástico",
|
|
55
|
+
retailer_name: "The Home Depot Golden",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
retailers: [{ id: 58, name: "The Home Depot Golden" }],
|
|
60
|
+
statusByRetailer: [
|
|
61
|
+
{ status: "AC", service: "datasheet", retailer_id: 58 },
|
|
62
|
+
{ status: "AC", service: "description", retailer_id: 58 },
|
|
63
|
+
{ status: "AC", service: "images", retailer_id: 58 },
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
user: {
|
|
67
|
+
id_user: 425,
|
|
68
|
+
name: "Auditor QA",
|
|
69
|
+
last_name: null,
|
|
70
|
+
email: "ladiboh785@mi166.com",
|
|
71
|
+
position: "Tester",
|
|
72
|
+
telephone: null,
|
|
73
|
+
country: null,
|
|
74
|
+
id_company: 254,
|
|
75
|
+
id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
|
|
76
|
+
birth_Date: null,
|
|
77
|
+
about_me: null,
|
|
78
|
+
zip_code: null,
|
|
79
|
+
address: null,
|
|
80
|
+
job: null,
|
|
81
|
+
id_stripe: null,
|
|
82
|
+
id_role: 6,
|
|
83
|
+
active: 1,
|
|
84
|
+
is_retailer: 0,
|
|
85
|
+
email_notify: null,
|
|
86
|
+
is_user_tech: null,
|
|
87
|
+
is_onboarding: 0,
|
|
88
|
+
membership: {
|
|
89
|
+
id: 750,
|
|
90
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
91
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
92
|
+
planID: 6,
|
|
93
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
94
|
+
name: "Plan Small",
|
|
95
|
+
user_limit: "10",
|
|
96
|
+
products_limit: "1000",
|
|
97
|
+
type: "Enterprise",
|
|
98
|
+
},
|
|
99
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1768495388525",
|
|
100
|
+
},
|
|
101
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { RetailerProductEdition } from "../index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/pages/RetailerProductEdition/ImageEditor",
|
|
5
|
+
component: RetailerProductEdition,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => <RetailerProductEdition {...args} />;
|
|
9
|
+
|
|
10
|
+
export const ImageEditor = Template.bind({});
|
|
11
|
+
|
|
12
|
+
ImageEditor.args = {
|
|
13
|
+
tabsSections: {
|
|
14
|
+
Descripción: false,
|
|
15
|
+
"Ficha técnica": false,
|
|
16
|
+
Imágenes: true,
|
|
17
|
+
},
|
|
18
|
+
token:
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjN2U1YTZhNC0yYjNmLTRkNTQtYWY5OC05ZTA5YTRjYmMwMWUiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6ImM3ZTVhNmE0LTJiM2YtNGQ1NC1hZjk4LTllMDlhNGNiYzAxZSIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI5Y2Y2NTNkMS1iOTA1LTQ5ODgtYmI1MC0wY2E5NTllMTJkNTMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTc2ODQ5Njg1MCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTc2ODUwMDQ1MCwiaWF0IjoxNzY4NDk2ODUwLCJlbWFpbCI6Imtpa2lqZTE0NjdAbXRsY3ouY29tIn0.kVyqMGAoe0ye3i882XuO_8xKf7vNzpPPse3852YP70aK4f9vq7o7NP0DhPTv5UnrcwC0Lcu_UOqoplyHxgPbIzrKF6e4Ket_T7KA2GHnO7-d30wmYl2GxMm_pSgb_qP_IZpVj5bmlST26LpEftZDHPAue3eQaZ0xRBwkI5dkVbVWncZz9iVdrUdz5FC5gXuAHyEQzn-669UsywrtlRN5y8EgcxsccNmsL_El5ctGZYiNMgn1mBeS-FvEikhNORoZqS0e8JKaYmL-e2jcrEuShpDE3mJMsm0E_KBUxt_t0FoB-tUlRDWlDkpIWHNidzTYAUfudc908ykQ15b3EdvFVw",
|
|
20
|
+
productSelected: {
|
|
21
|
+
orderId: 10421,
|
|
22
|
+
status: "RA",
|
|
23
|
+
datasheet_status: "RA",
|
|
24
|
+
prio: "none",
|
|
25
|
+
version: 3,
|
|
26
|
+
description_status: "RA",
|
|
27
|
+
images_status: "AC",
|
|
28
|
+
brand: null,
|
|
29
|
+
retailerOrder: 0,
|
|
30
|
+
missing: { datasheet: null, descriptions: null, images: null },
|
|
31
|
+
services: { datasheets: 1, descriptions: 1, images: 1 },
|
|
32
|
+
article: {
|
|
33
|
+
category:
|
|
34
|
+
"Belleza y Cuidado Personal|Cuidado de la Piel|Cremas e Hidratantes Corporales",
|
|
35
|
+
company_name: "Walmart SA de CV",
|
|
36
|
+
country: "México",
|
|
37
|
+
id_category: "3513",
|
|
38
|
+
id_datasheet_especialist: 426,
|
|
39
|
+
id_datasheet_facilitator: null,
|
|
40
|
+
id_description_especialist: 426,
|
|
41
|
+
id_description_facilitator: null,
|
|
42
|
+
id_images_especialist: 427,
|
|
43
|
+
id_images_facilitator: null,
|
|
44
|
+
id_order: 10421,
|
|
45
|
+
id_article: 144814,
|
|
46
|
+
id_auditor: 425,
|
|
47
|
+
name: "Producto 300080",
|
|
48
|
+
timestamp: "2025-11-14T22:40:40.000Z",
|
|
49
|
+
upc: "400080029609",
|
|
50
|
+
sku: "SKU-300080",
|
|
51
|
+
categoryRetailer: [
|
|
52
|
+
{
|
|
53
|
+
id_category: 3513,
|
|
54
|
+
id_retailer: 38,
|
|
55
|
+
category_name:
|
|
56
|
+
"Belleza y Cuidado Personal|Cuidado de la Piel|Cremas e Hidratantes Corporales",
|
|
57
|
+
retailer_name: "Del Sol",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id_category: 4872,
|
|
61
|
+
id_retailer: 36,
|
|
62
|
+
category_name: "Cuidado del bebé|Cuidado del bebé|Cuidado del bebé",
|
|
63
|
+
retailer_name: "Oxxo",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
retailers: [
|
|
68
|
+
{ id: 36, name: "Oxxo" },
|
|
69
|
+
{ id: 38, name: "Del Sol" },
|
|
70
|
+
],
|
|
71
|
+
statusByRetailer: [
|
|
72
|
+
{ status: "RA/AS", service: "datasheet", retailer_id: 36 },
|
|
73
|
+
{ status: "RA/AS", service: "description", retailer_id: 36 },
|
|
74
|
+
{ status: "AC", service: "images", retailer_id: 36 },
|
|
75
|
+
{ status: "RA/AS", service: "datasheet", retailer_id: 38 },
|
|
76
|
+
{ status: "RA/AS", service: "description", retailer_id: 38 },
|
|
77
|
+
{ status: "AC", service: "images", retailer_id: 38 },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
user: {
|
|
81
|
+
id_user: 427,
|
|
82
|
+
name: "Especialista Edición",
|
|
83
|
+
last_name: null,
|
|
84
|
+
email: "kikije1467@mtlcz.com",
|
|
85
|
+
position: "Tester",
|
|
86
|
+
telephone: null,
|
|
87
|
+
country: null,
|
|
88
|
+
id_company: 254,
|
|
89
|
+
id_cognito: "c7e5a6a4-2b3f-4d54-af98-9e09a4cbc01e",
|
|
90
|
+
birth_Date: null,
|
|
91
|
+
about_me: null,
|
|
92
|
+
zip_code: null,
|
|
93
|
+
address: null,
|
|
94
|
+
job: null,
|
|
95
|
+
id_stripe: null,
|
|
96
|
+
id_role: 8,
|
|
97
|
+
active: 1,
|
|
98
|
+
is_retailer: 0,
|
|
99
|
+
email_notify: null,
|
|
100
|
+
is_user_tech: null,
|
|
101
|
+
is_onboarding: 0,
|
|
102
|
+
membership: {
|
|
103
|
+
id: 750,
|
|
104
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
105
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
106
|
+
planID: 6,
|
|
107
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
108
|
+
name: "Plan Small",
|
|
109
|
+
user_limit: "10",
|
|
110
|
+
products_limit: "1000",
|
|
111
|
+
type: "Enterprise",
|
|
112
|
+
},
|
|
113
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-427/427.png?1768496850843",
|
|
114
|
+
},
|
|
115
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { RetailerProductEdition } from "../index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/pages/RetailerProductEdition/TextEditor",
|
|
5
|
+
component: RetailerProductEdition,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => <RetailerProductEdition {...args} />;
|
|
9
|
+
|
|
10
|
+
export const TextEditor = Template.bind({});
|
|
11
|
+
|
|
12
|
+
TextEditor.args = {
|
|
13
|
+
tabsSections: {
|
|
14
|
+
Descripción: true,
|
|
15
|
+
"Ficha técnica": false,
|
|
16
|
+
Imágenes: false,
|
|
17
|
+
},
|
|
18
|
+
token:
|
|
19
|
+
"eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI4ZDAxMDIxNC01YmZhLTQzYzMtOTZmYi1jNTU2ZGMwNTc3NGIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjhkMDEwMjE0LTViZmEtNDNjMy05NmZiLWM1NTZkYzA1Nzc0YiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIzYzc3Y2JjMC02ZTM0LTRhZDQtOGJjMy02MmJmNGRhOTYxMTUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTc2ODQ5NjU3NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTc2ODUwMDE3NywiaWF0IjoxNzY4NDk2NTc3LCJlbWFpbCI6ImthcmFmZTMyMThAbW9tMmtpZC5jb20ifQ.FhBvgESIAX90v1_2auyejto5NrMetq5qHoFxzh9lRr07UsYw2iKdDG29VyJLZ_bPStSUx-424U7FR1ctSD9mU831TKuwSyGyGKLz0mO70Ume7pgt8zfN0C_YWv5MFG4thcMrvMfEuyzfUhvQ944HBjXvqzyjcOdCjsFx9gVEnLh1bsXe1MJrUx8H1KN5gNrrkkTE7Qo3ybyr_WZF1002JsdMaoFg2UP3H5gzcbcuxgtjNuyhqaXGnoCBsPhu6SOAwWLEu1pZMty88OFteEWEdxJxCbzKaj8IomT8U4Tjiti4tshMkXRnxHBqAkGzLDu3ypbG4S31CR7RgDxRIVqntw",
|
|
20
|
+
productSelected: {
|
|
21
|
+
orderId: 10424,
|
|
22
|
+
status: "CA",
|
|
23
|
+
datasheet_status: "CA",
|
|
24
|
+
prio: "none",
|
|
25
|
+
version: 3,
|
|
26
|
+
description_status: "CA",
|
|
27
|
+
images_status: "CA",
|
|
28
|
+
brand: "Marca",
|
|
29
|
+
retailerOrder: 0,
|
|
30
|
+
missing: { datasheet: null, descriptions: null, images: null },
|
|
31
|
+
services: { datasheets: 1, descriptions: 1, images: 1 },
|
|
32
|
+
article: {
|
|
33
|
+
category:
|
|
34
|
+
"Categoría Genérica Rappi|Categoría Genérica|Categoría Genérica",
|
|
35
|
+
company_name: "Walmart SA de CV",
|
|
36
|
+
country: "México",
|
|
37
|
+
id_category: "4911",
|
|
38
|
+
id_datasheet_especialist: 426,
|
|
39
|
+
id_datasheet_facilitator: null,
|
|
40
|
+
id_description_especialist: 426,
|
|
41
|
+
id_description_facilitator: null,
|
|
42
|
+
id_images_especialist: 427,
|
|
43
|
+
id_images_facilitator: null,
|
|
44
|
+
id_order: 10424,
|
|
45
|
+
id_article: 144832,
|
|
46
|
+
id_auditor: 425,
|
|
47
|
+
name: "Copia prod cadenas 1",
|
|
48
|
+
timestamp: "2025-11-16T00:32:13.000Z",
|
|
49
|
+
upc: "100023",
|
|
50
|
+
sku: "900006",
|
|
51
|
+
categoryRetailer: [
|
|
52
|
+
{
|
|
53
|
+
id_category: 3431,
|
|
54
|
+
id_retailer: 24,
|
|
55
|
+
category_name:
|
|
56
|
+
"Abarrotes Básicos Alsuper|Abarrotes Básicos|Abarrotes Básicos",
|
|
57
|
+
retailer_name: "Alsuper",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id_category: 3435,
|
|
61
|
+
id_retailer: 21,
|
|
62
|
+
category_name:
|
|
63
|
+
"Bebés Cuidado e Higiene|Bebés Cuidado e Higiene|Bebés Cuidado e Higiene",
|
|
64
|
+
retailer_name: "Anicetos",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id_category: 3438,
|
|
68
|
+
id_retailer: 1008,
|
|
69
|
+
category_name:
|
|
70
|
+
"Categoría Genérica App Olímpica|Categoría Genérica|Categoría Genérica",
|
|
71
|
+
retailer_name: "App Olímpica",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id_category: 3439,
|
|
75
|
+
id_retailer: 2004,
|
|
76
|
+
category_name:
|
|
77
|
+
"Categoría Genérica Automercado|Categoría Genérica Automercado|Categoría Genérica Automercado",
|
|
78
|
+
retailer_name: "Automercado",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id_category: 4774,
|
|
82
|
+
id_retailer: 1032,
|
|
83
|
+
category_name:
|
|
84
|
+
"Categoría Genérica IMPIRA Colombia|Categoría Genérica|Categoría Genérica",
|
|
85
|
+
retailer_name: "IMPIRA Colombia",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id_category: 4911,
|
|
89
|
+
id_retailer: 16,
|
|
90
|
+
category_name:
|
|
91
|
+
"Categoría Genérica Rappi|Categoría Genérica|Categoría Genérica",
|
|
92
|
+
retailer_name: "Rappi",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id_category: 6103,
|
|
96
|
+
id_retailer: 9,
|
|
97
|
+
category_name: "Alimentos y Bebidas|Amazon Súper|Abarrotes",
|
|
98
|
+
retailer_name: "Amazon",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id_category: 6792,
|
|
102
|
+
id_retailer: 32,
|
|
103
|
+
category_name:
|
|
104
|
+
"Categoría Salud y Belleza Coppel|Categoría Salud y Belleza|Categoría Salud y Belleza",
|
|
105
|
+
retailer_name: "Coppel",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id_category: 7008,
|
|
109
|
+
id_retailer: 3,
|
|
110
|
+
category_name: "Bebés|Accesorios para Bebés|Accesorios para Bebés",
|
|
111
|
+
retailer_name: "Sam´s Club",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
retailers: [
|
|
116
|
+
{ id: 3, name: "Sam´s Club" },
|
|
117
|
+
{ id: 16, name: "Rappi" },
|
|
118
|
+
{ id: 32, name: "Coppel" },
|
|
119
|
+
{ id: 1008, name: "App Olímpica" },
|
|
120
|
+
],
|
|
121
|
+
statusByRetailer: [
|
|
122
|
+
{ status: "RA/AS", service: "datasheet", retailer_id: 3 },
|
|
123
|
+
{ status: "RA/AS", service: "description", retailer_id: 3 },
|
|
124
|
+
{ status: "AA", service: "images", retailer_id: 3 },
|
|
125
|
+
{ status: "AC", service: "datasheet", retailer_id: 16 },
|
|
126
|
+
{ status: "AC", service: "description", retailer_id: 16 },
|
|
127
|
+
{ status: "AC", service: "images", retailer_id: 16 },
|
|
128
|
+
{ status: "AC", service: "datasheet", retailer_id: 32 },
|
|
129
|
+
{ status: "AC", service: "description", retailer_id: 32 },
|
|
130
|
+
{ status: "AC", service: "images", retailer_id: 32 },
|
|
131
|
+
{ status: "PA", service: "datasheet", retailer_id: 1032 },
|
|
132
|
+
{ status: "PA", service: "description", retailer_id: 1032 },
|
|
133
|
+
{ status: "PA", service: "images", retailer_id: 1032 },
|
|
134
|
+
{ status: "PA", service: "datasheet", retailer_id: 2004 },
|
|
135
|
+
{ status: "PA", service: "description", retailer_id: 2004 },
|
|
136
|
+
{ status: "PA", service: "images", retailer_id: 2004 },
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
user: {
|
|
140
|
+
id_user: 426,
|
|
141
|
+
name: "Especialista Textos",
|
|
142
|
+
last_name: null,
|
|
143
|
+
email: "karafe3218@mom2kid.com",
|
|
144
|
+
position: "Tester",
|
|
145
|
+
telephone: null,
|
|
146
|
+
country: null,
|
|
147
|
+
id_company: 254,
|
|
148
|
+
id_cognito: "8d010214-5bfa-43c3-96fb-c556dc05774b",
|
|
149
|
+
birth_Date: null,
|
|
150
|
+
about_me: null,
|
|
151
|
+
zip_code: null,
|
|
152
|
+
address: null,
|
|
153
|
+
job: null,
|
|
154
|
+
id_stripe: null,
|
|
155
|
+
id_role: 7,
|
|
156
|
+
active: 1,
|
|
157
|
+
is_retailer: 0,
|
|
158
|
+
email_notify: null,
|
|
159
|
+
is_user_tech: null,
|
|
160
|
+
is_onboarding: 0,
|
|
161
|
+
membership: {
|
|
162
|
+
id: 750,
|
|
163
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
164
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
165
|
+
planID: 6,
|
|
166
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
167
|
+
name: "Plan Small",
|
|
168
|
+
user_limit: "10",
|
|
169
|
+
products_limit: "1000",
|
|
170
|
+
type: "Enterprise",
|
|
171
|
+
},
|
|
172
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-426/426.png?1768496578620",
|
|
173
|
+
},
|
|
174
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
+
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
2
3
|
|
|
3
4
|
export const Container = styled.div`
|
|
4
5
|
display: flex;
|
|
@@ -20,7 +21,8 @@ export const Container = styled.div`
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.product-information {
|
|
23
|
-
width:
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
24
26
|
display: flex;
|
|
25
27
|
flex-direction: column;
|
|
26
28
|
|
|
@@ -46,6 +48,12 @@ export const Container = styled.div`
|
|
|
46
48
|
padding: 10px;
|
|
47
49
|
padding-left: 0;
|
|
48
50
|
|
|
51
|
+
.action-buttons{
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
gap: 1rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
.commentary {
|
|
50
58
|
display: flex;
|
|
51
59
|
align-items: flex-end;
|
|
@@ -87,6 +95,23 @@ export const Container = styled.div`
|
|
|
87
95
|
.feedback-box {
|
|
88
96
|
display: flex;
|
|
89
97
|
}
|
|
98
|
+
|
|
99
|
+
.required-inputs-message {
|
|
100
|
+
font-family: ${FontFamily.AvenirNext};
|
|
101
|
+
font-size: 13px;
|
|
102
|
+
color: ${GlobalColors.color_gray};
|
|
103
|
+
padding: 10px;
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
|
|
107
|
+
p + * {
|
|
108
|
+
margin-top: 10px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
button {
|
|
112
|
+
min-width: fit-content;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
90
115
|
}
|
|
91
116
|
}
|
|
92
117
|
#modal-message-box {
|
|
@@ -95,10 +120,50 @@ export const Container = styled.div`
|
|
|
95
120
|
}
|
|
96
121
|
.container {
|
|
97
122
|
width: 100%;
|
|
98
|
-
height:
|
|
123
|
+
height: 90%;
|
|
99
124
|
.dropzone {
|
|
100
125
|
height: 100%;
|
|
101
126
|
width: 100%;
|
|
127
|
+
position: relative;
|
|
128
|
+
transition: all 0.5s ease;
|
|
129
|
+
|
|
130
|
+
&.drag-active {
|
|
131
|
+
background-color: rgba(${GlobalColors.rgb_color_pink}, 0.05);
|
|
132
|
+
border: 2px dashed ${GlobalColors.color_pink};
|
|
133
|
+
border-radius: 8px;
|
|
134
|
+
|
|
135
|
+
aside {
|
|
136
|
+
opacity: 0.3;
|
|
137
|
+
pointer-events: none;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.drag-overlay {
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: 0;
|
|
144
|
+
left: 0;
|
|
145
|
+
right: 0;
|
|
146
|
+
bottom: 0;
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
background-color: rgba(${GlobalColors.rgb_color_pink}, 0.1);
|
|
151
|
+
border-radius: 8px;
|
|
152
|
+
pointer-events: none;
|
|
153
|
+
z-index: 10;
|
|
154
|
+
|
|
155
|
+
p {
|
|
156
|
+
font-family: ${FontFamily.AvenirNext};
|
|
157
|
+
font-size: 24px;
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
color: ${GlobalColors.color_pink};
|
|
160
|
+
text-align: center;
|
|
161
|
+
padding: 20px;
|
|
162
|
+
background-color: ${GlobalColors.white};
|
|
163
|
+
border-radius: 8px;
|
|
164
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
102
167
|
}
|
|
103
168
|
}
|
|
104
169
|
`;
|