Skip to content

Merge the AI Engineer course into the site: one design, a section per course - #19

Merged
devmtnaing merged 4 commits into
mainfrom
merge-ai-engineer
Oct 8, 2026
Merged

devmtnaing merged 4 commits into
mainfrom
merge-ai-engineer

Conversation

@devmtnaing

Copy link
Copy Markdown
Owner

Brings the AI Engineer course into this site as a second section, under one design system, with navigation that scales to more courses.

What changes for a reader

  • / is now a hub: "Jump back in" (the last LeetCode problem opened, the next AI Engineer step, most recent first) and a card per section.
  • /leetcode is the problem list (it was at /). Lesson URLs (/leetcode/two-sum) are unchanged.
  • /ai-engineer is the course: tracks, module guides and lesson steps (concepts, resources, builds, quiz, checkpoint), flashcards, a paper reading list and portfolio projects. It is built from the markdown in course/.
  • /profile: streaks and XP overall and per section, the study plan, export and import of progress.

Design and navigation

  • The AI Engineer look is the design system for the whole site (tokens.css): Sora, Plus Jakarta Sans and JetBrains Mono, light and dark. <html data-section> picks the accent: teal for LeetCode, indigo for AI Engineer and the hub. Text colours still clear AA in both themes.
  • A section rail (icons, always visible) switches between Home, LeetCode, AI Engineer and Profile. A section sidebar shows only the current section's menu (src/data/sections.ts), so a new course adds one entry rather than lengthening a shared menu. Under 1024px the menu becomes a strip under the top bar; under 720px the rail is a bottom tab bar.
  • ⌘K search is scoped to the section you are in (problems, or modules; both on the hub).
  • The problem list loses its in-page pattern sidebar (the section menu has the patterns and highlights the one being read), its search box and the "With a solution" filter. A difficulty filter stays.
  • Lessons get "Mark as solved" at the top and the foot; solved problems are ticked on the list.

Progress

  • src/lib/progress.ts holds progress for the whole site in localStorage: XP per section per day, streaks, crowns, solved problems, flashcard boxes, and the last thing opened per section. A signed-in sync can replace its load and save later.
  • The study pace is chosen in hours a week (3, 6, 12, 25). It sets the daily goal and scales every AI Engineer time estimate from the course's ~13.5 h a week.

How it is built

  • Still fully static. Track, module and step pages are prerendered (241 pages). The interactive parts are small Preact islands (@astrojs/preact); LeetCode pages load no framework.
  • scripts/audit.mjs now serves /x.html before /x/ (as Cloudflare does), checks the problem list at /leetcode, and checks the hub and a sample of AI Engineer pages for page errors, overflow at 320px and 400px, and AA contrast in both themes.
  • Module URLs use dashes (/ai-engineer/track-2/2-7): a dot reads as a file extension to static servers. Every route was checked under wrangler dev.

Checks

  • npm run check: 46 lessons, 0 failures.
  • npm run audit: passed, 46 lessons plus the hub, problem list and AI Engineer pages.

Fonts and colours changed on every lesson page; all 46 were stepped through by the audit in both themes.

The site now has two sections under one shell: /leetcode (the problem list
moved here from /) and /ai-engineer, a self-study path built from the
markdown course in course/. The home page is a hub for both.

- Design: the AI Engineer look becomes the design system. tokens.css holds
  the palette, fonts (Sora, Plus Jakarta Sans, JetBrains Mono) and two
  accents chosen by <html data-section>: teal for LeetCode, indigo for the
  AI section and hub. Every text colour still clears AA in both themes.
- Shell: a dark sidebar, a 56px sticky top bar with search and the theme
  switch, and a progress rail on AI pages. Icons only under 1024px, a
  bottom tab bar under 720px. Lesson offsets keep the 56px bar.
- AI Engineer: static track, module and lesson-step pages; quizzes,
  checklists, flashcards and the profile are Preact islands. Progress,
  XP and streak live in src/lib/progress.ts for the whole site.
- Search: ⌘K also finds AI Engineer modules.
- Audit: serves /x.html before /x/ like Cloudflare, checks the problem
  list at /leetcode, and checks the hub and a sample of AI pages for
  errors, overflow at 320 and 400px, and AA in both themes.

npm run check and npm run audit pass (46 lessons).
One shared sidebar listed every section's pages, so a LeetCode link sat in
the AI Engineer menu and each new course would have made it longer.

- A section rail (icons, always visible) switches between Home, LeetCode,
  AI Engineer and Profile. On a phone it is the bottom tab bar.
- A section sidebar shows only the current section's menu, defined in
  src/data/sections.ts: patterns for LeetCode; tracks with progress,
  practice, papers and projects for AI Engineer. The hub and profile have
  none. Under 1024px the menu becomes a strip of links under the top bar.
- The hub's "Jump back in" shows a card per section you have used, most
  recent first: the last LeetCode problem opened, the next AI Engineer
  step. progress.ts records the last thing opened per section.
- The hub and profile progress rail shows site-wide stats only.

npm run check and npm run audit pass.
- Layout: the progress rail sits under the top bar, beside the page, and
  the footer runs under both, so neither is cut short.
- XP is recorded per section. Each section shows its own streak and XP;
  the hub and profile show the total and each section. The daily goal
  counts every section. LeetCode lessons get "Mark as solved" (+20 XP),
  ticked on the problem list. Older saves migrate (their XP was all AI).
- Study pace in hours a week (3, 6, 12, 25) replaces the XP goal choice.
  It sets the daily goal, and every AI Engineer time estimate is scaled
  from the course's ~13.5 h/week to your pace.
- The AI Engineer plan is asked once (pace, then where to start) and then
  shown as "Your plan" with a link to change it in the profile.
- ⌘K search stays in its section: problems on LeetCode pages, modules on
  AI Engineer pages, both on the hub and profile.
- Problem list: no in-page pattern sidebar (the section menu has the
  patterns and highlights the one being read), no in-page search (⌘K)
  and no "With a solution" filter; a difficulty filter stays.

npm run check and npm run audit pass.
… footer

- Track 3 and the course's end goal are named AI Research Engineer
  everywhere: course markdown, track title, hub, overview, onboarding.
- LeetCode lessons have "Mark as solved" beside the language switch at
  the top as well as at the foot; both stay in step.
- The footer drops its first line.

npm run check and npm run audit pass.
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ca190593-75eb-45bf-bb16-c4a0c19853ab
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅

View logs ↗
No Preview URL. Enable ↗ ba2464b 2026-10-08T04:22:25.985Z Visit the dashboard ↗

@devmtnaing
devmtnaing merged commit 58fe50b into main Oct 8, 2026
52 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