Remove footer from learning ux. Fix sidebar.#956
Conversation
WalkthroughThe changes update the layout and styling of the unit page, making the sidebar fixed and scrollable on desktop, and adjusting the main content margin accordingly. Additionally, the global app logic now conditionally hides the footer if a page component sets a Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant NextApp
participant PageComponent
participant Footer
User->>NextApp: Navigates to a page
NextApp->>PageComponent: Render page
PageComponent-->>NextApp: Returns component (may have hideFooter)
alt PageComponent.hideFooter is true
NextApp--x Footer: Do not render Footer
else
NextApp->>Footer: Render Footer
end
Suggested labels
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm warn config production Use Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 30th. To opt out, configure 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (6)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
PR Summary
This PR enhances the learning experience by streamlining the UI, removing distractions, and improving navigation in course units.
- Added
hideFooterproperty inapps/website/src/pages/courses/[courseSlug]/[unitId].tsxto conditionally hide footer on course pages - Modified sidebar in
apps/website/src/components/courses/UnitLayout.tsxto be fixed position with calculated max height for better scrolling - Removed border from main section and adjusted content area margins in
apps/website/src/components/courses/UnitLayout.tsxfor cleaner layout
3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Description
A more focused learner experience
Developer checklist
Screenshot
Screen.Recording.2025-05-22.at.2.00.24.PM.mov
Screen.Recording.2025-05-22.at.1.59.38.PM.mov
Screen.Recording.2025-05-22.at.2.06.43.PM.mov
Summary by CodeRabbit