Skip to content

feat: homepage TOC, Music for Life URL, and loading polish#91

Merged
kaiiiichen merged 2 commits into
mainfrom
perf/loading-phase-1
Jul 5, 2026
Merged

feat: homepage TOC, Music for Life URL, and loading polish#91
kaiiiichen merged 2 commits into
mainfrom
perf/loading-phase-1

Conversation

@kaiiiichen

Copy link
Copy Markdown
Owner

Summary

This PR bundles the homepage/Music for Life UX work from the latest session plus loading-performance polish on the same branch.

Page table of contents (PageToc)

  • Enable the fixed right-side TOC rail on / (previously excluded)
  • Home sections: Kai Thomas Chen, Greeting, Contact, Listening, Location, Projects
  • Identity row uses md:flex-row-reverse + mobile order-* so TOC order matches reading order without grid row-height gaps
  • /music-for-life: Music for Life + each playlist name (level={1})
  • /music-for-life/[id]: playlist title + Tracks only — not per-song entries
  • New components: page-toc.tsx, toc-section.tsx

Music for Life URL

  • Public routes moved from /playlists/music-for-life
  • MUSIC_FOR_LIFE_BASE constant in lib/spotify-playlists.ts
  • 301 redirects for legacy /playlists and /playlists/* in next.config.ts
  • Sitemap, internal links, hover hints, and tests updated

Loading / performance

  • Nunito via app/fonts.ts (next/font/google); removed @fontsource from client bundle
  • Berkeley weather SSR on home (app/lib/weather.ts + WeatherCard initialWeather)
  • Dynamic Mapbox import (playlist-map-loader.tsx)
  • GitHub contributions prefetch on /projects (app/lib/github-contributions.ts)
  • Route loading.tsx for Music for Life index + detail
  • Scoped CSS transitions (removed global * { transition }); SiteFooter back to Server Component

Hover polish

  • Trailing destination hint on hover links mirrors leading arrow animation

Docs

  • README aligned (EN + 中文): routes, PageToc, redirects, repo tree
  • AGENTS.md: new “Site patterns” section (Music for Life routes, PageToc rules, loading notes)
  • CLAUDE.md: architecture snapshot updated

Test plan

  • npm run lint && npm run typecheck && npm run test && npm run build
  • Home / — PageToc rail + panel; scroll to Kai Thomas Chen, Greeting, Contact, Listening, Location, Projects
  • /music-for-life — TOC lists Music for Life + playlist names
  • /music-for-life/[id] — TOC = playlist name + Tracks (no per-song dots)
  • /playlists and /playlists/[id] redirect to /music-for-life/*
  • /music-for-life/map — no PageToc; map still fullscreen
  • Home Listening chip links to /music-for-life

Made with Cursor

Add PageToc to the home page and Music for Life routes (title-level
sections only on playlist detail). Rename public URLs from /playlists to
/music-for-life with permanent redirects. Improve initial load via Nunito
next/font, weather SSR, dynamic Mapbox, GitHub prefetch, and route
loading states. Update README, AGENTS.md, and CLAUDE.md.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
kaichen.dev Ready Ready Preview, Comment Jul 5, 2026 5:15am

@coderabbitai

coderabbitai Bot commented Jul 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@kaiiiichen, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 31 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: eaa137c4-58d2-45e5-a7d3-593cd818add7

📥 Commits

Reviewing files that changed from the base of the PR and between 5896c98 and a95cb78.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (56)
  • .env.example
  • AGENTS.md
  • CLAUDE.md
  • README.md
  • app/about/page.tsx
  • app/api/github/contributions/route.ts
  • app/api/weather/route.ts
  • app/components/GitHubActivity.tsx
  • app/components/hover-link-hint.tsx
  • app/components/hover-tip.tsx
  • app/components/listening-card.tsx
  • app/components/listening-last-month-top.tsx
  • app/components/listening-track-row.tsx
  • app/components/nav.tsx
  • app/components/oxford-dul/course-project-link.tsx
  • app/components/oxford-dul/disclaimer.tsx
  • app/components/oxford-dul/image-gallery.tsx
  • app/components/oxford-dul/learning-path.tsx
  • app/components/oxford-dul/project-card.tsx
  • app/components/oxford-dul/project-sections.tsx
  • app/components/oxford-dul/projects-split.tsx
  • app/components/page-toc.tsx
  • app/components/pinned-project-link.tsx
  • app/components/playlist-description.tsx
  • app/components/playlist-map-loader.tsx
  • app/components/playlist-map.tsx
  • app/components/project-stars.tsx
  • app/components/site-footer.tsx
  • app/components/subpage-enter.tsx
  • app/components/weather-card.tsx
  • app/fonts.ts
  • app/globals.css
  • app/layout.tsx
  • app/lib/github-contributions.ts
  • app/lib/spotify-playlists.ts
  • app/lib/weather.ts
  • app/misc/page.tsx
  • app/music-for-life/[id]/loading.tsx
  • app/music-for-life/[id]/page.tsx
  • app/music-for-life/loading.tsx
  • app/music-for-life/map/layout.tsx
  • app/music-for-life/map/map-viewport-lock.tsx
  • app/music-for-life/map/page.tsx
  • app/music-for-life/opengraph-image.tsx
  • app/music-for-life/page.tsx
  • app/page.tsx
  • app/playlists/[id]/page.tsx
  • app/projects/oxford-dul-2025/[slug]/page.tsx
  • app/projects/oxford-dul-2025/page.tsx
  • app/projects/page.tsx
  • app/sitemap.ts
  • lib/mapbox-playlist-map.ts
  • lib/spotify-playlists.test.ts
  • lib/spotify-playlists.ts
  • next.config.ts
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch perf/loading-phase-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kaiiiichen kaiiiichen merged commit 3a57dc5 into main Jul 5, 2026
5 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