Skip to content

fix(payments-next): Update layout/page metadata#18861

Merged
elizabeth-ilina merged 1 commit intomainfrom
FXA-11389
May 20, 2025
Merged

fix(payments-next): Update layout/page metadata#18861
elizabeth-ilina merged 1 commit intomainfrom
FXA-11389

Conversation

@elizabeth-ilina
Copy link
Copy Markdown
Contributor

@elizabeth-ilina elizabeth-ilina commented May 13, 2025

Because:

  • All page titles and descriptions are currently hard-coded, and metadata isn't localized. This commit:

  • Adds localization to layout/page metadata.

  • Adds product name from CMS to the metadata title.

  • Includes openGraph

Closes #FXA-11389

Because

This pull request

Issue that this pull request solves

Closes: (issue number)

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11389 branch 8 times, most recently from 23602fc to c34a076 Compare May 16, 2025 15:59
@elizabeth-ilina elizabeth-ilina marked this pull request as ready for review May 16, 2025 15:59
@elizabeth-ilina elizabeth-ilina requested a review from a team as a code owner May 16, 2025 15:59
Comment thread apps/payments/next/lib/utils/pageMetadata.ts Outdated
Comment thread apps/payments/next/lib/utils/pageMetadata.ts Outdated
Comment thread libs/shared/cms/src/__generated__/gql.ts Outdated
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11389 branch 2 times, most recently from c041a9d to 2ee0ca4 Compare May 16, 2025 19:24
Comment thread libs/payments/ui/src/lib/utils/pageMetadata.ts Outdated
Copy link
Copy Markdown
Contributor

@david1alvarez david1alvarez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for all the changes

Comment thread libs/shared/cms/src/__generated__/gql.ts Outdated
Comment on lines +41 to +44
'Error',
'There was an error processing your subscription. If this problem persists, please contact support.',
'error',
'checkout',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these need to be localized, or are they localized elsewhere?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, good catch. This totally skipped my mind, even though it is the first requirement in the ticket. Sorry about that.

Do we have a follow up ticket for this @elizabeth-ilina

Comment thread libs/payments/ui/src/lib/utils/pageMetadata.ts
Because:

* All page titles and descriptions are currently hard-coded, and  metadata isn't localized.
This commit:

* Adds localization to layout/page metadata.
* Adds product name from CMS to the metadata title.
* Includes openGraph

Closes #FXA-11389
@elizabeth-ilina elizabeth-ilina merged commit 05cee69 into main May 20, 2025
19 checks passed
@elizabeth-ilina elizabeth-ilina deleted the FXA-11389 branch May 20, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants