Skip to content

Program pages#792

Merged
jeromehardaway merged 3 commits into
masterfrom
programPages
Jul 12, 2025
Merged

Program pages#792
jeromehardaway merged 3 commits into
masterfrom
programPages

Conversation

@jeromehardaway

Copy link
Copy Markdown
Contributor

This pull request introduces significant enhancements to the Programs section of the application, including new program pages, updates to dependencies, and improvements to styling. The changes focus on creating a structured and user-friendly experience for veterans exploring program offerings.

New Program Pages and Features:

  • Dynamic Program Listing: Added a new src/pages/programs.tsx file to dynamically list all programs with their descriptions and links to individual pages. This includes fetching program metadata using getStaticProps.
  • Individual Program Pages: Created dynamic pages for each program (src/pages/programs/[slug].tsx) to display detailed information. These pages use MDX for content rendering and getStaticPaths for dynamic routing. (src/pages/programs/[slug].tsxR1-R66)

Program Content:

  • Program MDX Files: Added MDX files for individual programs (core-curriculum.mdx, mentorship.mdx, mission-ready.mdx, studio.mdx) under src/data/programs. Each file contains structured content including an overview, outcomes, and application details. [1] [2] [3] [4]

Dependency Updates:

  • Added Dependencies: Updated package.json to include next-mdx-remote and @types/mdx for MDX support, enabling dynamic and rich content rendering. [1] [2]

Styling Enhancements:

  • Font-Awesome Updates: Fixed CSS filters in src/assets/css/font-awesome-pro.min.css for better compatibility with older browsers. [1] [2]

Program Overview Page:

  • Index Page Update: Added src/pages/programs/index.mdx to provide an overview of all programs with links to detailed pages. This serves as an entry point for exploring program offerings.

…-Ready, and Studio

- Created new MDX files for Core Curriculum, Mentorship Program, Mission-Ready Platform, and Studio.
- Implemented program overview, outcomes, and how it works sections in each program's MDX file.
- Developed a programs index page to display all programs with descriptions and links.
- Added dynamic routing for individual program pages using Next.js.
- Added @types/mdx version 2.0.13 to package.json.
- Cleaned up yarn.lock by removing unused @emotion dependencies and ensuring proper versioning for existing packages.
@jeromehardaway jeromehardaway self-assigned this Jul 12, 2025
@vercel

vercel Bot commented Jul 12, 2025

Copy link
Copy Markdown
Contributor

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 Jul 12, 2025 3:08am

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 pull request introduces a comprehensive program pages system for the Vets Who Code application, allowing veterans to explore and learn about available programs through dedicated pages. The implementation uses MDX for rich content rendering and Next.js static generation for optimal performance.

  • Dynamic program listing with metadata-driven content organization
  • Individual program detail pages with structured information including overviews, outcomes, and application processes
  • Enhanced CSS compatibility for Font Awesome icons with legacy browser support

Reviewed Changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/pages/programs.tsx Main programs listing page with dynamic content generation
src/pages/programs/[slug].tsx Dynamic routing for individual program pages using MDX
src/pages/programs/index.mdx Programs overview page with card-based layout
src/data/programs/*.mdx Content files for four programs with structured metadata
package.json Added MDX dependencies for content rendering
src/assets/css/font-awesome-pro.min.css Enhanced browser compatibility for CSS filters
Comments suppressed due to low confidence (2)

src/pages/programs/[slug].tsx:9

  • The function name 'getAllMediaPosts' is misleading when used to fetch program data. Consider renaming this function to something more generic like 'getAllMdxPosts' or 'getAllContentPosts' to better reflect its purpose across different content types.
import { getAllMediaPosts } from "../../lib/mdx-pages";

src/pages/programs.tsx:5

  • The function name 'getAllMediaPosts' is misleading when used to fetch program data. Consider renaming this function to something more generic like 'getAllMdxPosts' or 'getAllContentPosts' to better reflect its purpose across different content types.
import { getAllMediaPosts } from "../lib/mdx-pages";

Comment thread src/pages/programs/[slug].tsx
@github-actions

Copy link
Copy Markdown

🔍 Code Quality Score Breakdown:

  • 📖 Readability: 5/10
  • 📈 Scalability: 5/10
  • 🚀 Performance: 5/10
  • 🛠️ Maintainability: 8/10
  • ✅ Overall Score: 5.8/10

💡 Recommendations:

  • 🧹 Reduce ESLint warnings to improve readability.
  • 📦 Break up complex functions or components.
  • ⚙️ Consider splitting large files or lazy-loading.
  • 🔁 Refactor to increase your overall score next cycle.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

🔍 Code Quality Score Breakdown:

  • 📖 Readability: 5/10
  • 📈 Scalability: 5/10
  • 🚀 Performance: 5/10
  • 🛠️ Maintainability: 8/10
  • ✅ Overall Score: 5.8/10

💡 Recommendations:

  • 🧹 Reduce ESLint warnings to improve readability.
  • 📦 Break up complex functions or components.
  • ⚙️ Consider splitting large files or lazy-loading.
  • 🔁 Refactor to increase your overall score next cycle.

@jeromehardaway jeromehardaway merged commit 39d578b into master Jul 12, 2025
5 checks passed
@jeromehardaway jeromehardaway deleted the programPages branch July 12, 2025 04:32
jonulak added a commit that referenced this pull request Jul 13, 2025
commit ab9ba27
Author: Jerome Hardaway <jerome@vetswhocode.io>
Date:   Sat Jul 12 01:39:36 2025 -0400

    Feat/redesign programs page (#793)

    * Feat: Redesign programs page with new Hero, ProgramCard, and CTA components

    * feat: update Programs page layout with new HeroArea and ProgramCard integration

    ---------

    Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>

commit 39d578b
Author: Jerome Hardaway <jerome@vetswhocode.io>
Date:   Sat Jul 12 00:32:49 2025 -0400

    Program pages (#792)

    * Add core programs for veterans: Core Curriculum, Mentorship, Mission-Ready, and Studio

    - Created new MDX files for Core Curriculum, Mentorship Program, Mission-Ready Platform, and Studio.
    - Implemented program overview, outcomes, and how it works sections in each program's MDX file.
    - Developed a programs index page to display all programs with descriptions and links.
    - Added dynamic routing for individual program pages using Next.js.

    * chore: add @types/mdx dependency and update yarn.lock

    - Added @types/mdx version 2.0.13 to package.json.
    - Cleaned up yarn.lock by removing unused @emotion dependencies and ensuring proper versioning for existing packages.

    * Update src/pages/programs/[slug].tsx

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

    ---------

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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