Skip to content

feat: add Theory of Change page and enhance About Us with a link to it #735

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 1 commit into from
Jun 5, 2025

Conversation

jeromehardaway
Copy link
Contributor

This pull request introduces significant updates to the "About Us" page and adds a new "Theory of Change" page to the project. The changes enhance content structure, improve user engagement, and extend functionality. Below is a breakdown of the most important updates grouped by theme:

Content Updates

  • Refactored the "About Us" page's call-to-action (CTA) content to simplify and focus messaging, replacing a lengthy description with concise and impactful text.
  • Added a new JSON data file (theory-of-change.json) to define the content structure for the "Theory of Change" page, including sections for core beliefs, inputs, activities, outputs, outcomes, and long-term impact.

Functional Enhancements

  • Introduced a new TheoryOfChange page (theory-of-change.tsx) that dynamically renders content based on the new JSON data file, including support for headings, text, and lists.
  • Added a link on the "About Us" page to navigate to the "Theory of Change" page, improving discoverability of the new content.

Code Structure and Typing Improvements

  • Updated the PageContent interface in about-us.tsx to support new content fields like section_title, items, and buttons, ensuring consistent data handling across pages.
  • Added the Link component from next/link to the "About Us" page to enable navigation to the new page.

These changes collectively improve the user experience by providing clearer messaging, adding valuable new content, and enhancing navigation between related pages.

@jeromehardaway jeromehardaway requested a review from Copilot June 5, 2025 23:44
@jeromehardaway jeromehardaway self-assigned this Jun 5, 2025
Copy link

vercel bot commented Jun 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vets-who-code-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 11:45pm

Copy link
Contributor

@Copilot Copilot AI left a comment

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 "Theory of Change" page and enhances the "About Us" page by integrating a link to the new page while updating content structures and data interfaces.

  • Adds a new Theory of Change page that dynamically renders content from a JSON data file.
  • Updates the About Us page to include a prominent link to the Theory of Change page.
  • Refactors JSON content for both pages, updating CTA area structures and content definitions.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/pages/theory-of-change.tsx Introduces a new page using JSON-based content and modern layout patterns.
src/pages/about-us.tsx Enhances the page with a new Theory of Change link and updates SEO title.
src/data/innerpages/theory-of-change.json Defines the content structure for the new Theory of Change page.
src/data/innerpages/about-us.json Updates the CTA area content, replacing the previous buttons key with items.
Comments suppressed due to low confidence (1)

src/data/innerpages/about-us.json:209

  • The CTA area structure has been updated from using a 'buttons' field to an 'items' array with headings and texts. Please ensure the consuming CTA component is updated to handle this new structure consistently.
},      {

@jeromehardaway jeromehardaway merged commit 3be8b83 into master Jun 5, 2025
4 checks passed
@jeromehardaway jeromehardaway deleted the AboutPageTransformation branch June 5, 2025 23:50
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.

1 participant