Skip to content

[DO NOT MERGE] Partner pack#309

Merged
abbycabs merged 8 commits into
mainfrom
partner-pack
May 1, 2025
Merged

[DO NOT MERGE] Partner pack#309
abbycabs merged 8 commits into
mainfrom
partner-pack

Conversation

@ashleywolf

@ashleywolf ashleywolf commented May 1, 2025

Copy link
Copy Markdown
Contributor

DO NOT MERGE

Updating the site with the partner pack for Maintainer Month

Copilot AI review requested due to automatic review settings May 1, 2025 13:17

Copilot AI left a comment

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.

Pull Request Overview

This PR adds a new “Partner Pack” section for Maintainer Month 2025, including content, navigation, and UI components.

  • Introduce markdown files for each partner offer and related partner‐pack pages
  • Add styles and React components to render the offers grid and integrate “Partner Pack” into the hero and header
  • Update site navigation (commons.json & routes) and remove outdated event content

Reviewed Changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
content/partner-pack/offers/*.md Added individual partner offer definitions
content/partner-pack/index.md Created Partner Pack overview page
content/partner-pack/additional-sections.md Added supporting sections (Want More, Our Partners)
content/home/4-2-get-involved-partners.md Updated “Get Involved” copy to reference partner pack
content/home/4-1-get-involved-maintainers.md Updated maintainer guidance to include partner pack
content/events/2025-05-01-Welcome.md Removed obsolete welcome event
content/commons.json Added “Partner Pack” to site navigation
common/routes.js Defined PARTNER_PACK route
components/partner-pack/offers/offers.scss Styles for offers grid and cards
components/partner-pack/offers/Offers.jsx Render partner offers and additional sections
components/home/hero/hero.scss Added styling for hero button group
components/home/hero/Hero.jsx Added “Get the partner pack” call‐to‐action in hero
components/header/Header.jsx Inserted Partner Pack link into header nav
Comments suppressed due to low confidence (1)

components/partner-pack/offers/offers.scss:1

  • There's no styling for .offers-grid-container, yet it's used in the Offers JSX; consider adding styles or removing the unused wrapper.
// Override the section-divider styling for the partner pack page

<div className="hero__buttons">
<ButtonLink href={buttonLink}>{buttonText}</ButtonLink>

<ButtonLink href={ROUTES.PARTNER_PACK.path}>Get the partner pack</ButtonLink>

Copilot AI May 1, 2025

Copy link

Choose a reason for hiding this comment

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

Use ROUTES.PARTNER_PACK.getPath(year) instead of ROUTES.PARTNER_PACK.path to ensure the link includes the current year prefix.

Suggested change
<ButtonLink href={ROUTES.PARTNER_PACK.path}>Get the partner pack</ButtonLink>
<ButtonLink href={ROUTES.PARTNER_PACK.getPath(currentYear)}>Get the partner pack</ButtonLink>

Copilot uses AI. Check for mistakes.
Comment on lines +49 to +50
wantMoreLinkText,
wantMoreLinkUrl,

Copilot AI May 1, 2025

Copy link

Choose a reason for hiding this comment

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

The wantMoreLinkText and wantMoreLinkUrl properties are destructured but never used; consider removing them to clean up the code.

Suggested change
wantMoreLinkText,
wantMoreLinkUrl,

Copilot uses AI. Check for mistakes.
Comment on lines +69 to +70
{publicOffers.map((offer, index) => (
<OfferCard key={index} offer={offer} />

Copilot AI May 1, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] Using the array index as the key can lead to rendering issues; consider using a unique identifier like offer.name instead.

Suggested change
{publicOffers.map((offer, index) => (
<OfferCard key={index} offer={offer} />
{publicOffers.map((offer) => (
<OfferCard key={offer.name} offer={offer} />

Copilot uses AI. Check for mistakes.
@abbycabs abbycabs changed the title Partner pack [DO NOT MERGE] Partner pack May 1, 2025
@abbycabs abbycabs merged commit 73c226d into main May 1, 2025
4 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.

3 participants