Skip to content

WEB-129 - #157

Merged
AbiT-246 merged 9 commits into
mainfrom
WEB-129
Jul 17, 2026
Merged

WEB-129#157
AbiT-246 merged 9 commits into
mainfrom
WEB-129

Conversation

@qwertatch

Copy link
Copy Markdown
Collaborator

Added fetching FAQS from the Contentful API.

@vercel

vercel Bot commented May 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
code-the-change-yyc-site Ready Ready Preview, Comment Jul 17, 2026 2:30am

@qwertatch qwertatch changed the title WEB-129-Fetch-FAQs-from-Contentful WEB-129 May 11, 2026
@AbiT-246

Copy link
Copy Markdown
Collaborator

Left some minor comments....very good job overall!

@AbiT-246
AbiT-246 self-requested a review May 25, 2026 22:30
<Image
alt={name}
src={`https:${logo.fields.file.url}`}
width={logo.fields.file.details.image.width}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Haven't look at the contentful entries yet, but make sure you either:

  • mark the fields as required in the Contentful content model, or
  • filter out broken entries in e.g. projects.filter(p => p?.logo?.fields?.file)
    depending on which ones are optional vs required

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

image Double checked, the fields are required in Contentful.

I will probably still add the filter in case someone adds a draft image as a logo (as that is, for some reason, allowed). Thank you.

Comment thread pages/who-we-are/index.js Outdated
import Heading from '../../components/Heading';
import Timeline from '../../components/Timeline';
import { FAQS } from '../../data/faq';
//import { FAQS } from '../../data/faq';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we can go ahead and delete these imports along with the data files themselves. Git history preserves the old version if we ever need it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I will do that, thank you.

Comment thread components/RolesCarousel.jsx Outdated
<Carousel navigation={{ prevEl: '.swiper-button-prev', nextEl: '.swiper-button-next', clickable: true }}>
{ROLE.map((role) => (
{roles.map((role) => (
<SwiperSlide key={role.name}>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fields like role.name rely on no duplicates, so make sure the fields are set to unique on contentful

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

image Double checked.

Also added filtering to data fetched and sent to Events.jsx, ProjectsSection.jsx, RolesCarousel.jsx
@AbiT-246

AbiT-246 commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

There's two objects in join.js (JOIN_ONE and JOIN_TWO), it would be nice if we could move those to contentful as well

We can also get rid of all the data files that are no longer in use

1. When checking validity of image (filtering), it now checks the url
2. JOIN_ONE and JOIN_TWO data has been migrated to Contentful
3. Redundant data in data folders has been deleted (images has not been deleted for fear of unaccounted for dependency)
@qwertatch

Copy link
Copy Markdown
Collaborator Author

Re-commenting the changes mentioned in the commit message:

3 changes have been made

  1. When checking the validity of an image (filtering), it now checks the URL.
  2. JOIN_ONE and JOIN_TWO data have been migrated to Contentful
  3. Redundant data in data folders has been deleted (images have not been deleted for fear of unaccounted-for dependency)

@AbiT-246
AbiT-246 merged commit 929d7d6 into main Jul 17, 2026
3 checks passed
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.

2 participants