Skip to content

FEATURE: Create individual lesson detail pages #63

Open
ShouzhiWang wants to merge 10 commits intostagingfrom
feature/lesson-detail
Open

FEATURE: Create individual lesson detail pages #63
ShouzhiWang wants to merge 10 commits intostagingfrom
feature/lesson-detail

Conversation

@ShouzhiWang
Copy link

Closes #28

  • Updated LessonCard to wrap content in an anchor tag for direct navigation to lesson details.
  • Introduced a new Astro page for lesson details, including static paths generation and metadata formatting.
  • Enhanced lesson metadata handling and related lessons logic for improved user experience.

…page layouts, navigation, and configuration to support them.
- Added TypeScript and @astrojs/check as devDependencies in package.json.
- Enhanced the GitHub Actions workflow by streamlining validation steps and removing unnecessary checks.
- Updated Folder and UnifiedNav components for better type safety and code readability.
- Refactored pathway page to improve lesson filtering and grouping logic.
- Changed the schema for lessons to include new fields: author, license, timeRequired, and inLanguage.
- Updated existing lesson JSON files to populate the new fields and ensure backward compatibility with the previous schema.
- Normalized keywords to a string format for consistency.
- Refactored the lesson retrieval logic to accommodate the new structure and maintain compatibility with the UI.
- Updated PathwayCard, Layout, home-new, and index pages to use import.meta.env.BASE_URL for generating URLs.
- Adjusted keystatic.config.ts to change the condition for using GitHub storage based on environment variables.
…Google Sheet

- Introduced new fields in keystatic.config.ts for enhanced lesson metadata, including topic, sortingId, dependsOn, learningObjectives, and more.
- Updated the lesson migration script to normalize and populate these new fields from existing lesson data.
- Enhanced lesson JSON files to include the new metadata fields, ensuring consistency and improved data structure for lessons.
- Updated LessonCard to wrap content in an anchor tag for direct navigation to lesson details.
- Introduced a new Astro page for lesson details, including static paths generation and metadata formatting.
- Enhanced lesson metadata handling and related lessons logic for improved user experience.
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

❌ PR checks failed

One or more validation checks failed. Please review the workflow logs to see what went wrong.

Common issues:

  • 📊 Data validation: Google Sheets CSV is unreachable or has invalid data
  • 🔍 TypeScript check: Type errors in code
  • 🏗️ Build: Build process failed
  • 📄 Critical pages: Missing required pages (index, lessons, pathways)
  • 🔗 Internal links: Broken links detected

1 similar comment
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

❌ PR checks failed

One or more validation checks failed. Please review the workflow logs to see what went wrong.

Common issues:

  • 📊 Data validation: Google Sheets CSV is unreachable or has invalid data
  • 🔍 TypeScript check: Type errors in code
  • 🏗️ Build: Build process failed
  • 📄 Critical pages: Missing required pages (index, lessons, pathways)
  • 🔗 Internal links: Broken links detected

@jt14den jt14den added the team: internal Work being handled by internal student developers label Feb 7, 2026
@jt14den
Copy link
Collaborator

jt14den commented Feb 7, 2026

Hi @ShouzhiWang, we've just completed a major cleanup and stabilization of the main branch, including fixing several global TypeScript errors. Could you please rebase this PR on the latest main? This should resolve your current merge conflicts and likely fix the remaining type errors in your checks. Thanks!

jt14den and others added 2 commits February 7, 2026 13:43
chore: add CODEOWNERS and auto-labeling workflow
…corporate accessibility tooling

- Keep Keystatic CMS, content collections, lessons.ts as primary data source
- Add main's audit:a11y script and accessibility devDependencies
- Merge pr-check workflow: validate-data, validate-build, check-links
- Use BASE_URL for all internal links (dev/prod compatibility)
- Update LessonFilter to use Lesson type for content collection data
- Accept deletion of getSheetData.js (replaced by getSheetData.ts)
- Regenerate package-lock.json

Co-authored-by: Cursor <cursoragent@cursor.com>
@ShouzhiWang ShouzhiWang changed the base branch from main to staging February 13, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team: internal Work being handled by internal student developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FEATURE: Create individual lesson detail pages

2 participants