Skip to content

Commit

Permalink
[DEV-1566]: rename textContent field on website (#811)
Browse files Browse the repository at this point in the history
* feat(DEV-1566): rename textContent field

* chore: add changeset

* chore: remove code

* chore: update changeset

Co-authored-by: Marco Ponchia <[email protected]>

* [DEV-1586] Add GOOGLE_OAUTH_REDIRECT_URI env (#813)

* [DEV-1517]: questions page reactiveness (#759)

* feat(DEV-1517): more reactiveness on questions page

* chore: add changeset

* feat(DEV-1517): fix PR comments

* feat(DEV-1517): increase refresh interval

* fix(DEV-1517): fix PR comments

---------

Co-authored-by: Marco Ponchia <[email protected]>

* Update CODEOWNERS (#807)

* [DPC-128] Add new tutorials for pagoPA (#809)

* chore: update changeset

* chore: remove unused files

---------

Co-authored-by: Marco Ponchia <[email protected]>
Co-authored-by: Jeremy Gordillo <[email protected]>
Co-authored-by: Marco Comi <[email protected]>
Co-authored-by: Monica Costantini <[email protected]>
Co-authored-by: marcobottaro <[email protected]>
  • Loading branch information
6 people authored Apr 9, 2024
1 parent 04c921f commit 59c69ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-years-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nextjs-website": minor
---

Rename webinar's field from textContent to bodyContent
6 changes: 3 additions & 3 deletions apps/nextjs-website/src/lib/strapi/__tests__/webinars.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ const makeStrapiResponseJson = () => ({
title: 'title',
description: 'description',
slug: 'slug-1',
textContent: [
bodyContent: [
{
type: 'paragraph',
children: [
{
type: 'text',
text: 'textContent',
text: 'bodyContent',
},
],
},
Expand Down Expand Up @@ -120,7 +120,7 @@ const makeStrapiResponseWithNullsJson = () => ({
title: 'title',
description: 'description',
slug: 'slug-1',
textContent: null,
bodyContent: null,
playerSrc: null,
startDatetime: null,
endDatetime: null,
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs-website/src/lib/strapi/webinars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const WebinarCodec = t.strict({
publishedAt: tt.DateFromISOString,
isVisibleInList: t.boolean,
coverImage: t.strict({ data: MediaCodec }),
textContent: t.union([NullToUndefinedCodec, BlocksContentCodec]),
bodyContent: t.union([NullToUndefinedCodec, BlocksContentCodec]),
playerSrc: t.union([NullToUndefinedCodec, t.string]),
startDatetime: t.union([NullToUndefinedCodec, tt.DateFromISOString]),
endDatetime: t.union([NullToUndefinedCodec, tt.DateFromISOString]),
Expand Down
1 change: 0 additions & 1 deletion apps/nextjs-website/src/lib/webinars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export function makeWebinarsProps(
...speaker.attributes,
avatar: speaker.attributes.avatar.data?.attributes,
})),
bodyContent: webinar.attributes.textContent,
startDateTime: webinar.attributes.startDatetime?.toISOString(),
endDateTime: webinar.attributes.endDatetime?.toISOString(),
subscribeCtaLabel: webinar.attributes.subscribeParagraphLabel,
Expand Down

0 comments on commit 59c69ed

Please sign in to comment.