Skip to content

feat: GitHub pinned repos, notes expansion, README sync#36

Merged
kaiiiichen merged 1 commit intomainfrom
feat/notes-pinned-github-readme
Apr 19, 2026
Merged

feat: GitHub pinned repos, notes expansion, README sync#36
kaiiiichen merged 1 commit intomainfrom
feat/notes-pinned-github-readme

Conversation

@kaiiiichen
Copy link
Copy Markdown
Owner

Summary

This PR bundles the current working-tree changes (43 files) into one merge-ready branch.

GitHub & home

  • Pinned repositories on the home page via app/lib/github-pinned.ts (GraphQL) with a static fallback when GITHUB_TOKEN is missing.
  • .env.example: document optional GITHUB_LOGIN for forks / alternate accounts.
  • Nav: add News → news.kaichen.dev; home links to News and Berkeley library hours.
  • API / UI: adjustments in app/api/github/contributions, app/api/github/stars, app/components/project-stars.tsx, app/projects/page.tsx, app/page.tsx.

Notes

  • /notes index: expanded course list (CS217, Data 100, MA121–MA337, CS61A).
  • New course hubs + MDX note stubs under app/notes/**.
  • Static assets: PDFs and zips under public/notes/** (linked from notes).

Other pages

  • README.md: sync with Berkeley libraries API, pins, env, routes, fork checklist.
  • Layout / admin / gallery / auth callback / berkeley-libraries: minor copy or metadata updates.

Tooling / lint

  • nav.tsx: defer setMounted with queueMicrotask to satisfy react-hooks/set-state-in-effect.
  • ma337 hub: escape apostrophes for react/no-unescaped-entities.

CI

Local parity with GitHub Actions: npm run lint && npm run typecheck && npm run test && npm run build — all green.

Note on large files

GitHub warned that several PDFs exceed the 50 MB recommendation (push still succeeded). Consider Git LFS or hosting large binaries elsewhere if this becomes an issue.


Co-authored-by: Claude noreply@anthropic.com

Made with Cursor

- Add app/lib/github-pinned.ts: GraphQL pinned repos for home with fallback list; document GITHUB_LOGIN in .env.example
- Home & nav: News link, Berkeley libraries link, pinned-project cards; streamline projects page
- Notes: /notes index for CS217, Data 100, MA121–MA337; course hubs + MDX stubs; static PDFs/zips under public/notes
- GitHub API routes, project-stars, layout, admin, gallery, auth callback, berkeley-libraries copy tweaks
- README: Berkeley + ucb-libraries API, pins, env, course matrix, fork checklist
- Fix ESLint: defer nav mounted state; escape quotes on ma337 hub

Co-authored-by: Claude <noreply@anthropic.com>
Made-with: Cursor
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 19, 2026

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

Project Deployment Actions Updated (UTC)
kaichen.dev Ready Ready Preview, Comment Apr 19, 2026 1:10pm

@kaiiiichen kaiiiichen enabled auto-merge April 19, 2026 13:10
@kaiiiichen kaiiiichen merged commit 340b344 into main Apr 19, 2026
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.

1 participant