From d11cf259cf00f435285e2481b1b6180b09027769 Mon Sep 17 00:00:00 2001 From: Jang ho Jung Date: Wed, 22 Jan 2025 12:12:18 -0800 Subject: [PATCH 1/3] change text --- .../template-retail-react-app/app/hooks/use-dnt-notification.js | 2 +- .../app/static/translations/compiled/en-GB.json | 2 +- .../app/static/translations/compiled/en-US.json | 2 +- .../app/static/translations/compiled/en-XA.json | 2 +- packages/template-retail-react-app/translations/en-GB.json | 2 +- packages/template-retail-react-app/translations/en-US.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/template-retail-react-app/app/hooks/use-dnt-notification.js b/packages/template-retail-react-app/app/hooks/use-dnt-notification.js index 5a89881702..a33cbb3f17 100644 --- a/packages/template-retail-react-app/app/hooks/use-dnt-notification.js +++ b/packages/template-retail-react-app/app/hooks/use-dnt-notification.js @@ -82,7 +82,7 @@ export const DntNotification = ({isOpen, onOpen, onClose}) => { const description = ( diff --git a/packages/template-retail-react-app/app/static/translations/compiled/en-GB.json b/packages/template-retail-react-app/app/static/translations/compiled/en-GB.json index 24a43bb743..c024e49133 100644 --- a/packages/template-retail-react-app/app/static/translations/compiled/en-GB.json +++ b/packages/template-retail-react-app/app/static/translations/compiled/en-GB.json @@ -1152,7 +1152,7 @@ "dnt_notification.description": [ { "type": 0, - "value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." + "value": "This form is for demonstration purposes only. By clicking \"Accept,\" you consent to our use of cookies and similar tracking technologies to enhance site functionality, personalize content, and analyze site usage. These technologies may collect data such as your device information, browsing behavior, and preferences to provide a better, more customized experience." } ], "dnt_notification.title": [ diff --git a/packages/template-retail-react-app/app/static/translations/compiled/en-US.json b/packages/template-retail-react-app/app/static/translations/compiled/en-US.json index 24a43bb743..c024e49133 100644 --- a/packages/template-retail-react-app/app/static/translations/compiled/en-US.json +++ b/packages/template-retail-react-app/app/static/translations/compiled/en-US.json @@ -1152,7 +1152,7 @@ "dnt_notification.description": [ { "type": 0, - "value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." + "value": "This form is for demonstration purposes only. By clicking \"Accept,\" you consent to our use of cookies and similar tracking technologies to enhance site functionality, personalize content, and analyze site usage. These technologies may collect data such as your device information, browsing behavior, and preferences to provide a better, more customized experience." } ], "dnt_notification.title": [ diff --git a/packages/template-retail-react-app/app/static/translations/compiled/en-XA.json b/packages/template-retail-react-app/app/static/translations/compiled/en-XA.json index 0c06c2e3ae..c5b12e6028 100644 --- a/packages/template-retail-react-app/app/static/translations/compiled/en-XA.json +++ b/packages/template-retail-react-app/app/static/translations/compiled/en-XA.json @@ -2380,7 +2380,7 @@ }, { "type": 0, - "value": "Ŀǿǿřḗḗḿ īƥşŭŭḿ ḓǿǿŀǿǿř şīŧ ȧȧḿḗḗŧ, ƈǿǿƞşḗḗƈŧḗḗŧŭŭř ȧȧḓīƥīşƈīƞɠ ḗḗŀīŧ, şḗḗḓ ḓǿǿ ḗḗīŭŭşḿǿǿḓ ŧḗḗḿƥǿǿř īƞƈīḓīḓŭŭƞŧ ŭŭŧ ŀȧȧƀǿǿřḗḗ ḗḗŧ ḓǿǿŀǿǿřḗḗ ḿȧȧɠƞȧȧ ȧȧŀīɋŭŭȧȧ. Ŭŧ ḗḗƞīḿ ȧȧḓ ḿīƞīḿ ṽḗḗƞīȧȧḿ, ɋŭŭīş ƞǿǿşŧřŭŭḓ ḗḗẋḗḗřƈīŧȧȧŧīǿǿƞ ŭŭŀŀȧȧḿƈǿǿ ŀȧȧƀǿǿřīş ƞīşī ŭŭŧ ȧȧŀīɋŭŭīƥ ḗḗẋ ḗḗȧȧ ƈǿǿḿḿǿǿḓǿǿ ƈǿǿƞşḗḗɋŭŭȧȧŧ. Ḓŭŭīş ȧȧŭŭŧḗḗ īřŭŭřḗḗ ḓǿǿŀǿǿř īƞ řḗḗƥřḗḗħḗḗƞḓḗḗřīŧ īƞ ṽǿǿŀŭŭƥŧȧȧŧḗḗ ṽḗḗŀīŧ ḗḗşşḗḗ ƈīŀŀŭŭḿ ḓǿǿŀǿǿřḗḗ ḗḗŭŭ ƒŭŭɠīȧȧŧ ƞŭŭŀŀȧȧ ƥȧȧřīȧȧŧŭŭř." + "value": "Ŧħīş ƒǿǿřḿ īş ƒǿǿř ḓḗḗḿǿǿƞşŧřȧȧŧīǿǿƞ ƥŭŭřƥǿǿşḗḗş ǿǿƞŀẏ. Ɓẏ ƈŀīƈķīƞɠ \"Ȧƈƈḗḗƥŧ,\" ẏǿǿŭŭ ƈǿǿƞşḗḗƞŧ ŧǿǿ ǿǿŭŭř ŭŭşḗḗ ǿǿƒ ƈǿǿǿǿķīḗḗş ȧȧƞḓ şīḿīŀȧȧř ŧřȧȧƈķīƞɠ ŧḗḗƈħƞǿǿŀǿǿɠīḗḗş ŧǿǿ ḗḗƞħȧȧƞƈḗḗ şīŧḗḗ ƒŭŭƞƈŧīǿǿƞȧȧŀīŧẏ, ƥḗḗřşǿǿƞȧȧŀīẑḗḗ ƈǿǿƞŧḗḗƞŧ, ȧȧƞḓ ȧȧƞȧȧŀẏẑḗḗ şīŧḗḗ ŭŭşȧȧɠḗḗ. Ŧħḗḗşḗḗ ŧḗḗƈħƞǿǿŀǿǿɠīḗḗş ḿȧȧẏ ƈǿǿŀŀḗḗƈŧ ḓȧȧŧȧȧ şŭŭƈħ ȧȧş ẏǿǿŭŭř ḓḗḗṽīƈḗḗ īƞƒǿǿřḿȧȧŧīǿǿƞ, ƀřǿǿẇşīƞɠ ƀḗḗħȧȧṽīǿǿř, ȧȧƞḓ ƥřḗḗƒḗḗřḗḗƞƈḗḗş ŧǿǿ ƥřǿǿṽīḓḗḗ ȧȧ ƀḗḗŧŧḗḗř, ḿǿǿřḗḗ ƈŭŭşŧǿǿḿīẑḗḗḓ ḗḗẋƥḗḗřīḗḗƞƈḗḗ." }, { "type": 0, diff --git a/packages/template-retail-react-app/translations/en-GB.json b/packages/template-retail-react-app/translations/en-GB.json index 38dc12ed05..4a13faa9a4 100644 --- a/packages/template-retail-react-app/translations/en-GB.json +++ b/packages/template-retail-react-app/translations/en-GB.json @@ -463,7 +463,7 @@ "defaultMessage": "Decline" }, "dnt_notification.description": { - "defaultMessage": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." + "defaultMessage": "This form is for demonstration purposes only. By clicking \"Accept,\" you consent to our use of cookies and similar tracking technologies to enhance site functionality, personalize content, and analyze site usage. These technologies may collect data such as your device information, browsing behavior, and preferences to provide a better, more customized experience." }, "dnt_notification.title": { "defaultMessage": "Tracking Consent" diff --git a/packages/template-retail-react-app/translations/en-US.json b/packages/template-retail-react-app/translations/en-US.json index 38dc12ed05..4a13faa9a4 100644 --- a/packages/template-retail-react-app/translations/en-US.json +++ b/packages/template-retail-react-app/translations/en-US.json @@ -463,7 +463,7 @@ "defaultMessage": "Decline" }, "dnt_notification.description": { - "defaultMessage": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." + "defaultMessage": "This form is for demonstration purposes only. By clicking \"Accept,\" you consent to our use of cookies and similar tracking technologies to enhance site functionality, personalize content, and analyze site usage. These technologies may collect data such as your device information, browsing behavior, and preferences to provide a better, more customized experience." }, "dnt_notification.title": { "defaultMessage": "Tracking Consent" From 4c3231441e99506600dc018ed3d97db376276fee Mon Sep 17 00:00:00 2001 From: Jang ho Jung Date: Wed, 22 Jan 2025 13:35:02 -0800 Subject: [PATCH 2/3] Fix failing test --- .../app/pages/product-detail/index.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/template-retail-react-app/app/pages/product-detail/index.test.js b/packages/template-retail-react-app/app/pages/product-detail/index.test.js index 4e76e8f63b..2699837c24 100644 --- a/packages/template-retail-react-app/app/pages/product-detail/index.test.js +++ b/packages/template-retail-react-app/app/pages/product-detail/index.test.js @@ -47,6 +47,14 @@ jest.mock('@salesforce/commerce-sdk-react', () => { } }) +jest.mock('@salesforce/retail-react-app/app/constants', () => { + const originalModule = jest.requireActual('@salesforce/retail-react-app/app/constants') + return { + ...originalModule, + DEFAULT_DNT_STATE: false + } +}) + const MockedComponent = () => { return ( From 2377443c01cb86a43b9fb6a84a5fb33278ddf32e Mon Sep 17 00:00:00 2001 From: Jang ho Jung Date: Wed, 22 Jan 2025 14:06:38 -0800 Subject: [PATCH 3/3] Revert "change text" This reverts commit d11cf259cf00f435285e2481b1b6180b09027769. --- .../template-retail-react-app/app/hooks/use-dnt-notification.js | 2 +- .../app/static/translations/compiled/en-GB.json | 2 +- .../app/static/translations/compiled/en-US.json | 2 +- .../app/static/translations/compiled/en-XA.json | 2 +- packages/template-retail-react-app/translations/en-GB.json | 2 +- packages/template-retail-react-app/translations/en-US.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/template-retail-react-app/app/hooks/use-dnt-notification.js b/packages/template-retail-react-app/app/hooks/use-dnt-notification.js index a33cbb3f17..5a89881702 100644 --- a/packages/template-retail-react-app/app/hooks/use-dnt-notification.js +++ b/packages/template-retail-react-app/app/hooks/use-dnt-notification.js @@ -82,7 +82,7 @@ export const DntNotification = ({isOpen, onOpen, onClose}) => { const description = ( diff --git a/packages/template-retail-react-app/app/static/translations/compiled/en-GB.json b/packages/template-retail-react-app/app/static/translations/compiled/en-GB.json index c024e49133..24a43bb743 100644 --- a/packages/template-retail-react-app/app/static/translations/compiled/en-GB.json +++ b/packages/template-retail-react-app/app/static/translations/compiled/en-GB.json @@ -1152,7 +1152,7 @@ "dnt_notification.description": [ { "type": 0, - "value": "This form is for demonstration purposes only. By clicking \"Accept,\" you consent to our use of cookies and similar tracking technologies to enhance site functionality, personalize content, and analyze site usage. These technologies may collect data such as your device information, browsing behavior, and preferences to provide a better, more customized experience." + "value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." } ], "dnt_notification.title": [ diff --git a/packages/template-retail-react-app/app/static/translations/compiled/en-US.json b/packages/template-retail-react-app/app/static/translations/compiled/en-US.json index c024e49133..24a43bb743 100644 --- a/packages/template-retail-react-app/app/static/translations/compiled/en-US.json +++ b/packages/template-retail-react-app/app/static/translations/compiled/en-US.json @@ -1152,7 +1152,7 @@ "dnt_notification.description": [ { "type": 0, - "value": "This form is for demonstration purposes only. By clicking \"Accept,\" you consent to our use of cookies and similar tracking technologies to enhance site functionality, personalize content, and analyze site usage. These technologies may collect data such as your device information, browsing behavior, and preferences to provide a better, more customized experience." + "value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." } ], "dnt_notification.title": [ diff --git a/packages/template-retail-react-app/app/static/translations/compiled/en-XA.json b/packages/template-retail-react-app/app/static/translations/compiled/en-XA.json index c5b12e6028..0c06c2e3ae 100644 --- a/packages/template-retail-react-app/app/static/translations/compiled/en-XA.json +++ b/packages/template-retail-react-app/app/static/translations/compiled/en-XA.json @@ -2380,7 +2380,7 @@ }, { "type": 0, - "value": "Ŧħīş ƒǿǿřḿ īş ƒǿǿř ḓḗḗḿǿǿƞşŧřȧȧŧīǿǿƞ ƥŭŭřƥǿǿşḗḗş ǿǿƞŀẏ. Ɓẏ ƈŀīƈķīƞɠ \"Ȧƈƈḗḗƥŧ,\" ẏǿǿŭŭ ƈǿǿƞşḗḗƞŧ ŧǿǿ ǿǿŭŭř ŭŭşḗḗ ǿǿƒ ƈǿǿǿǿķīḗḗş ȧȧƞḓ şīḿīŀȧȧř ŧřȧȧƈķīƞɠ ŧḗḗƈħƞǿǿŀǿǿɠīḗḗş ŧǿǿ ḗḗƞħȧȧƞƈḗḗ şīŧḗḗ ƒŭŭƞƈŧīǿǿƞȧȧŀīŧẏ, ƥḗḗřşǿǿƞȧȧŀīẑḗḗ ƈǿǿƞŧḗḗƞŧ, ȧȧƞḓ ȧȧƞȧȧŀẏẑḗḗ şīŧḗḗ ŭŭşȧȧɠḗḗ. Ŧħḗḗşḗḗ ŧḗḗƈħƞǿǿŀǿǿɠīḗḗş ḿȧȧẏ ƈǿǿŀŀḗḗƈŧ ḓȧȧŧȧȧ şŭŭƈħ ȧȧş ẏǿǿŭŭř ḓḗḗṽīƈḗḗ īƞƒǿǿřḿȧȧŧīǿǿƞ, ƀřǿǿẇşīƞɠ ƀḗḗħȧȧṽīǿǿř, ȧȧƞḓ ƥřḗḗƒḗḗřḗḗƞƈḗḗş ŧǿǿ ƥřǿǿṽīḓḗḗ ȧȧ ƀḗḗŧŧḗḗř, ḿǿǿřḗḗ ƈŭŭşŧǿǿḿīẑḗḗḓ ḗḗẋƥḗḗřīḗḗƞƈḗḗ." + "value": "Ŀǿǿřḗḗḿ īƥşŭŭḿ ḓǿǿŀǿǿř şīŧ ȧȧḿḗḗŧ, ƈǿǿƞşḗḗƈŧḗḗŧŭŭř ȧȧḓīƥīşƈīƞɠ ḗḗŀīŧ, şḗḗḓ ḓǿǿ ḗḗīŭŭşḿǿǿḓ ŧḗḗḿƥǿǿř īƞƈīḓīḓŭŭƞŧ ŭŭŧ ŀȧȧƀǿǿřḗḗ ḗḗŧ ḓǿǿŀǿǿřḗḗ ḿȧȧɠƞȧȧ ȧȧŀīɋŭŭȧȧ. Ŭŧ ḗḗƞīḿ ȧȧḓ ḿīƞīḿ ṽḗḗƞīȧȧḿ, ɋŭŭīş ƞǿǿşŧřŭŭḓ ḗḗẋḗḗřƈīŧȧȧŧīǿǿƞ ŭŭŀŀȧȧḿƈǿǿ ŀȧȧƀǿǿřīş ƞīşī ŭŭŧ ȧȧŀīɋŭŭīƥ ḗḗẋ ḗḗȧȧ ƈǿǿḿḿǿǿḓǿǿ ƈǿǿƞşḗḗɋŭŭȧȧŧ. Ḓŭŭīş ȧȧŭŭŧḗḗ īřŭŭřḗḗ ḓǿǿŀǿǿř īƞ řḗḗƥřḗḗħḗḗƞḓḗḗřīŧ īƞ ṽǿǿŀŭŭƥŧȧȧŧḗḗ ṽḗḗŀīŧ ḗḗşşḗḗ ƈīŀŀŭŭḿ ḓǿǿŀǿǿřḗḗ ḗḗŭŭ ƒŭŭɠīȧȧŧ ƞŭŭŀŀȧȧ ƥȧȧřīȧȧŧŭŭř." }, { "type": 0, diff --git a/packages/template-retail-react-app/translations/en-GB.json b/packages/template-retail-react-app/translations/en-GB.json index 4a13faa9a4..38dc12ed05 100644 --- a/packages/template-retail-react-app/translations/en-GB.json +++ b/packages/template-retail-react-app/translations/en-GB.json @@ -463,7 +463,7 @@ "defaultMessage": "Decline" }, "dnt_notification.description": { - "defaultMessage": "This form is for demonstration purposes only. By clicking \"Accept,\" you consent to our use of cookies and similar tracking technologies to enhance site functionality, personalize content, and analyze site usage. These technologies may collect data such as your device information, browsing behavior, and preferences to provide a better, more customized experience." + "defaultMessage": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." }, "dnt_notification.title": { "defaultMessage": "Tracking Consent" diff --git a/packages/template-retail-react-app/translations/en-US.json b/packages/template-retail-react-app/translations/en-US.json index 4a13faa9a4..38dc12ed05 100644 --- a/packages/template-retail-react-app/translations/en-US.json +++ b/packages/template-retail-react-app/translations/en-US.json @@ -463,7 +463,7 @@ "defaultMessage": "Decline" }, "dnt_notification.description": { - "defaultMessage": "This form is for demonstration purposes only. By clicking \"Accept,\" you consent to our use of cookies and similar tracking technologies to enhance site functionality, personalize content, and analyze site usage. These technologies may collect data such as your device information, browsing behavior, and preferences to provide a better, more customized experience." + "defaultMessage": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." }, "dnt_notification.title": { "defaultMessage": "Tracking Consent"