Repository navigation
feat(site): content-first lessons, section navigation, and phase cards - #778
Conversation
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.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
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.
What changes
Lesson reader
localStorageunderaifs:lesson-checklist-open.Navigation
Home page
Tests
site/test_build_artifacts.jsupdated 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.mainata509402c0: the cheat sheet topic coverage test and the twoshotbrowser tests.header.jscache key in404.html. This PR does not touch that file. It failed in a worktree that had local build output.To check on the preview
Known gaps
site/ui-strings.jsonyet.COMPACT_HEADER_QUERYfromheader.js. This PR adds it back with a different purpose: it limits the promoted links, it does not move tools.