Repository navigation
Remove the area tabs row from the top of each page - #262
Merged
Merged
Conversation
…rea pages The row (All areas, Courses, Audiobooks, Labs, Practice, Puzzles, Tutors) was added so phone users could switch areas. Signed-in learners already have the sidebar and the phone bottom bar for that, so it was a second copy of the same links on every page. Also removes the top margin it left on the first heading of each page, deletes the unused component, and drops its line from docs/16-learning-areas.mdx. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Removes the row of tabs at the top of the catalog, audiobook,
/learnand area pages (All areas, Courses, Audiobooks, Labs, Practice, Puzzles, Tutors).<AreaTabs />fromcatalog/page.tsx,audiobooks/[courseSlug]/page.tsxandAreaPage(used by/learn,/labs,/practice,/puzzles,/voice,/audiobooks, guided and shell labs).area-tabs.tsxand its line indocs/16-learning-areas.mdx.Why it was there
It was added so people on a phone could switch between areas in one tap. Signed-in learners already have the sidebar (desktop) and the bottom bar (phone), so the row repeated those links.
Check before merging
Signed-out visitors on a phone lose a way to reach Labs and All areas. The public header hides those two links below the
smandmdwidths, and the tabs were the replacement (see the comment in(catalog)/layout.tsx). That comment is now out of date. If this matters, the header needs a menu on small screens. Not done here.Tested
tsc, lint on the changed folders, and the 303 unit tests undertests/unit/labpass.🤖 Generated with Claude Code