Update docs navigation to horizontal#3303
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
7fd8d23 to
b72d35b
Compare
7d72699 to
80436c3
Compare
80436c3 to
84d8ce1
Compare
84d8ce1 to
21ac1f5
Compare
21ac1f5 to
dd161f3
Compare
jamiehenson
left a comment
There was a problem hiding this comment.
I like it, it's close! Sat with it a little more since demo earlier. Code is decent. I like the simplifications, I like the break up of the utility bar and the shuffling round of various things. Product bar works well. Pretty minor stuff from here tbh and some of it is subjective.
Small observations:
- I understand why the left nav contents was padded in (to align with the ably logo and the product row), but it looks weird and overly big to me, particularly when the padding between elements is so small. Honestly, I'd lower the side and top padding
- Product row on mobile looks a bit padded in as well, weird when scrolling
dd161f3 to
cc6be6d
Compare
jamiehenson
left a comment
There was a problem hiding this comment.
Good work! A nice evolution of the current UX
Replace the previous header navigation with three top-level tabs: Platform, Products, and Examples. Add a search button trigger with keyboard shortcut hint, Ask AI button, and help resources dropdown. Restructure the mobile menu with a tab-based layout where the Products tab keeps the ProductBar pinned above the scrollable sidebar. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a sticky ProductBar for switching between products (Pub/Sub, Chat, Spaces, etc.) shown below the header on non-platform pages. Restructure the main layout from a centred container to a full-width flex layout with left sidebar, content pane (max 860px for docs, 1024px for examples), and right sidebar. Change button hover style from border colour to background fill. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extract the copy-for-LLM functionality from PageHeader into a dedicated CopyForLLM component with a split button (copy action + dropdown for markdown preview, copy, and LLM links). Add ButtonGroup and Separator UI primitives. Simplify PageHeader after extraction. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Flatten the left sidebar to show a single product's nav with static section headings and accordion sub-menus. Move the language selector from the left sidebar to the right sidebar, restyle it as a bordered button matching the secondary button style. Add useShowLanguageSelector hook to determine visibility based on page languages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ooks Extract the duplicated product bar visibility check into activePage.hasProductBar, computed once in the layout context. Simplify useShowLanguageSelector double negation to the equivalent some(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Restructure nav data for all products to use section-based grouping with Getting started sections. Update generateMarkdownFooter test to match the new section structure. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9e523bf to
294289c
Compare
Description
This PR updates the docs navigation;