Skip to content

feat(site): content-first lessons, section navigation, and phase cards - #778

Merged
rohitg00 merged 3 commits into
mainfrom
feat/content-first-ux
Nov 12, 2026
Merged

rohitg00 merged 3 commits into
mainfrom
feat/content-first-ux

Conversation

@rohitg00

Copy link
Copy Markdown
Owner

What changes

Lesson reader

  • The "Act on this lesson" panel collapses to one status strip with a "Show checklist" button. Lesson text starts directly under the title on desktop and phone.
  • The toggle state is saved in localStorage under aifs:lesson-checklist-open.

Navigation

  • The header promotes Catalog, Learning Paths, Projects, Practice, and Interviews. "Contents" moves into the menu.
  • Below 1180px the header keeps the first three links. The other two stay in the menu.
  • At 820px and below, a bottom tab bar shows Learn, Paths, Practice, Projects, and Progress. The lesson reader does not get the tab bar, because its Highlights and Lessons buttons use that area.

Home page

  • "Start the Course" is the one filled button. It becomes "Continue where you left off" when the browser has a visited lesson.
  • The GitHub star and follow actions are quiet text links below the buttons.
  • The path chooser moves above the preface.
  • The 20 phases render as cards with description, progress bar, lesson count, and a state label (Start here, Continue, Not started, Done). A card opens the existing lesson dialog.
  • The three interactive machine features move below the curriculum as one three-column row.

Tests

  • site/test_build_artifacts.js updated for the new header labels, the compact header query, the tab bar, and the masthead button markup.
  • node --test site/test_*.js: 637 pass, 4 fail.
  • Three of the four also fail on main at a509402c0: the cheat sheet topic coverage test and the two shot browser tests.
  • The fourth, "shared site asset families use the expected cache keys on every page", reports a missing header.js cache key in 404.html. This PR does not touch that file. It failed in a worktree that had local build output.

To check on the preview

  • Header at 1440px, 1000px, and 390px
  • Lesson page: strip, toggle, and checkpoint status
  • Home: continue button after visiting a lesson, phase card states, lesson dialog
  • Tab bar does not cover the narration bar on phones

Known gaps

  • "Show checklist" and "Hide checklist" are not in site/ui-strings.json yet.
  • The drop cap rule lands on the "Type:" metadata paragraph, which is now visible above the fold. The rule is unchanged.
  • An earlier commit removed COMPACT_HEADER_QUERY from header.js. This PR adds it back with a different purpose: it limits the promoted links, it does not move tools.

Lesson pages open with the lesson text. The checklist panel collapses
to a status strip with a toggle, and the choice persists per browser.

The header promotes Catalog, Learning Paths, Projects, Practice, and
Interviews. Narrow desktops keep the first three. Phones get a bottom
tab bar on every page except the lesson reader.

The home page has one primary action that resumes the last visited
lesson, moves the path chooser up, renders the 20 phases as cards with
progress and a next-step label, and groups the three interactive
machines into one row below the curriculum.
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The site now presents curriculum phases as progress cards, resumes the most recently visited valid lesson from stored progress, and reorganizes homepage feature sections. Shared navigation gains compact quick links and a mobile tab bar. Lesson action details can be collapsed with a saved preference.

Changes: Site interface updates

Layer / File(s) Summary
Homepage progress and content
site/app.js, site/index.html, site/test_build_artifacts.js
Phase cards show completion status, progress, lesson count, and an action label. The homepage start link can resume the valid lesson with the greatest visitedAt value in aifs:progress:v2. The machine feature sections are grouped after the course-path section. Masthead links use the quiet-button style.
Responsive site navigation
site/header.js, site/style.css, site/test_build_artifacts.js
At the compact breakpoint, up to three prioritized links appear in quick links. Eligible pages receive a five-item tab bar. The tab bar is hidden in print, and page spacing and the text-to-speech bar accommodate it on narrow screens.
Collapsible lesson checklist
site/lesson.html
The action checklist starts collapsed. Its toggle updates visibility, accessible state, and label, and stores the open preference in local storage.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Merge Risk: Minimal · up to e61c2

The change reworks homepage progress cards, responsive navigation, and the lesson checklist. No unresolved concrete defect was identified in the supplied evidence, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(site): content-first lessons, section navigation, and phase cards" names the three main areas the changeset touches: lesson reader layout and checklist strip, the header and bottom tab…
Description check Passed The description is closely related to the changeset. It lists the lesson reader checklist strip and localStorage key, the header promotion and 1180px compact breakpoint, the 820px bottom tab bar, the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(site): content-first lessons, section navigation, and phase cards" names the three main areas the changeset touches: lesson reader layout and checklist strip, the header and bottom tab bar navigation, and the home page phase cards. The raw summary confirms renderPhases now renders phase cards, the header adds a compact breakpoint and section tab bar, and lesson.html gets a collapsible checklist. The title is specific and accurate, though it is somewhat long at 70 characters.

Full details: Description check

Explanation

The description is closely related to the changeset. It lists the lesson reader checklist strip and localStorage key, the header promotion and 1180px compact breakpoint, the 820px bottom tab bar, the home page resume button and phase cards, and the test file updates. It also gives test results and preview checks.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 07c1b46 and e61c205.

Files selected for processing: 2

  • site/index.html
  • site/style.css
Files skipped from review as they are similar to previous changes: 1

  • site/style.css

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

devin-ai-integration[bot]

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

The tab bar skips the lesson reader. Checking for the lesson layout
element keeps that true for any lesson URL form.
…ard focus

The tab bar now sits below the phase dialog, so the dialog footer and
its reset control stay reachable on phones. With narration active the
page reserves room for both the narration bar and the tab bar.

The resume link updates when progress changes, falls back to the
first lesson after a reset, and ignores visited paths that are not in
the published curriculum.

Phase cards show an outline on keyboard focus.
@rohitg00
rohitg00 merged commit bd65b3c into main Nov 12, 2026
10 checks passed
@rohitg00
rohitg00 deleted the feat/content-first-ux branch November 12, 2026 12:49

This branch was successfully deployed

1 active deployment
Preview — e61c2059 Deployed Nov 12, 2026 by vercel[bot]
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