-
-
Notifications
You must be signed in to change notification settings - Fork 4
(SP: 3) [SHOP] add public legal surfaces and align checkout consent with privacy flow #419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ba362d9
(SP: 3) [SHOP] add public legal surfaces and polish buyer-facing poli…
liudmylasovetovs 6eddc41
(SP: 1) [SHOP] apply formatting to WS8 legal/footer files
liudmylasovetovs fc1b333
(SP: 3) [SHOP] require explicit checkout consent and align privacy wo…
liudmylasovetovs 4d7b0b3
(SP: 1) [SHOP] fix review comments for legal consent and public legal…
liudmylasovetovs d084af6
(SP: 1) [SHOP] fix review feedback for legal copy and test helpers
liudmylasovetovs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import { getTranslations } from 'next-intl/server'; | ||
|
|
||
| import DeliveryPolicyContent, { | ||
| DELIVERY_POLICY_LAST_UPDATED, | ||
| } from '@/components/legal/DeliveryPolicyContent'; | ||
| import LegalPageShell from '@/components/legal/LegalPageShell'; | ||
|
|
||
| export async function generateMetadata({ | ||
| params, | ||
| }: { | ||
| params: Promise<{ locale: string }>; | ||
| }) { | ||
| const { locale } = await params; | ||
| const t = await getTranslations({ locale, namespace: 'legal.delivery' }); | ||
|
|
||
| return { | ||
| title: t('metaTitle'), | ||
| description: t('metaDescription'), | ||
| }; | ||
| } | ||
|
|
||
| export default async function DeliveryPolicyPage() { | ||
| const t = await getTranslations('legal.delivery'); | ||
|
|
||
| return ( | ||
| <LegalPageShell | ||
| title={t('title')} | ||
| lastUpdated={DELIVERY_POLICY_LAST_UPDATED} | ||
| > | ||
| <DeliveryPolicyContent /> | ||
| </LegalPageShell> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import { getTranslations } from 'next-intl/server'; | ||
|
|
||
| import LegalPageShell from '@/components/legal/LegalPageShell'; | ||
| import PaymentPolicyContent, { | ||
| PAYMENT_POLICY_LAST_UPDATED, | ||
| } from '@/components/legal/PaymentPolicyContent'; | ||
|
|
||
| export async function generateMetadata({ | ||
| params, | ||
| }: { | ||
| params: Promise<{ locale: string }>; | ||
| }) { | ||
| const { locale } = await params; | ||
| const t = await getTranslations({ locale, namespace: 'legal.payment' }); | ||
|
|
||
| return { | ||
| title: t('metaTitle'), | ||
| description: t('metaDescription'), | ||
| }; | ||
| } | ||
|
|
||
| export default async function PaymentPolicyPage() { | ||
| const t = await getTranslations('legal.payment'); | ||
|
|
||
| return ( | ||
| <LegalPageShell | ||
| title={t('title')} | ||
| lastUpdated={PAYMENT_POLICY_LAST_UPDATED} | ||
| > | ||
| <PaymentPolicyContent /> | ||
| </LegalPageShell> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import { getTranslations } from 'next-intl/server'; | ||
|
|
||
| import LegalPageShell from '@/components/legal/LegalPageShell'; | ||
| import ReturnsPolicyContent, { | ||
| RETURNS_POLICY_LAST_UPDATED, | ||
| } from '@/components/legal/ReturnsPolicyContent'; | ||
|
|
||
| export async function generateMetadata({ | ||
| params, | ||
| }: { | ||
| params: Promise<{ locale: string }>; | ||
| }) { | ||
| const { locale } = await params; | ||
| const t = await getTranslations({ locale, namespace: 'legal.returns' }); | ||
|
|
||
| return { | ||
| title: t('metaTitle'), | ||
| description: t('metaDescription'), | ||
| }; | ||
| } | ||
|
|
||
| export default async function ReturnsPolicyPage() { | ||
| const t = await getTranslations('legal.returns'); | ||
|
|
||
| return ( | ||
| <LegalPageShell | ||
| title={t('title')} | ||
| lastUpdated={RETURNS_POLICY_LAST_UPDATED} | ||
| > | ||
| <ReturnsPolicyContent /> | ||
| </LegalPageShell> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import { getTranslations } from 'next-intl/server'; | ||
|
|
||
| import LegalPageShell from '@/components/legal/LegalPageShell'; | ||
| import SellerInformationContent, { | ||
| SELLER_INFORMATION_LAST_UPDATED, | ||
| } from '@/components/legal/SellerInformationContent'; | ||
|
|
||
| export async function generateMetadata({ | ||
| params, | ||
| }: { | ||
| params: Promise<{ locale: string }>; | ||
| }) { | ||
| const { locale } = await params; | ||
| const t = await getTranslations({ locale, namespace: 'legal.seller' }); | ||
|
|
||
| return { | ||
| title: t('metaTitle'), | ||
| description: t('metaDescription'), | ||
| }; | ||
| } | ||
|
|
||
| export default async function SellerInformationPage() { | ||
| const t = await getTranslations('legal.seller'); | ||
|
|
||
| return ( | ||
| <LegalPageShell | ||
| title={t('title')} | ||
| lastUpdated={SELLER_INFORMATION_LAST_UPDATED} | ||
| > | ||
| <SellerInformationContent /> | ||
| </LegalPageShell> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.