-
-
Notifications
You must be signed in to change notification settings - Fork 313
Fix: Added side navbar to all the pages. #4197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughA sidebar navigation component was added to multiple website templates by including the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant WebPage (Template)
participant SideNav (includes/sidenav.html)
User->>WebPage: Request page
WebPage->>SideNav: Include sidebar navigation
SideNav-->>WebPage: Render sidebar
WebPage-->>User: Render full page with sidebar
Assessment against linked issues
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
website/templates/room_form.html (1)
6-6: Include sidebar navigation – verify layout container
Nice addition of thesidenav.htmlinclude for consistent navigation. Please ensure this snippet is wrapped (or the CSS adjusted) so the side navbar and the form content display side-by-side on wider screens and collapse gracefully on mobile. If needed, introduce a flex/grid parent container around the include and the existing<div class="max-w-7xl…">block to preserve the intended responsive layout.website/templates/list_view.html (1)
19-19: Insert side navbar – ensure consistent two-column layout
The include ofsidenav.htmlhere keeps navigation uniform across pages. Confirm that on larger screens the sidebar and the main issues list sit in a two-column flex/grid layout, and on narrower screens the sidebar collapses or hides as expected. If not already in place, consider wrapping the two sections in a parent<div class="flex">(or equivalent Tailwind classes).website/templates/account/password_reset.html (1)
21-21: Consider centralizing the sidebar to reduce duplication
Since the side navbar is needed on every page, you could DRY this up by moving the include intobase.html(e.g., via a newsidebarblock) instead of adding it manually in each template. This will improve maintainability and avoid repeated changes across multiple files.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (16)
website/templates/404.html(1 hunks)website/templates/account/logout.html(1 hunks)website/templates/account/password_reset.html(1 hunks)website/templates/account/password_reset_from_key.html(1 hunks)website/templates/check_owasp_compliance.html(1 hunks)website/templates/contributors_detail.html(1 hunks)website/templates/education/create_standalone_lecture.html(1 hunks)website/templates/education/edit_standalone_lecture.html(1 hunks)website/templates/extension.html(1 hunks)website/templates/join.html(1 hunks)website/templates/list_view.html(1 hunks)website/templates/owasp.html(6 hunks)website/templates/privacy.html(1 hunks)website/templates/room_form.html(1 hunks)website/templates/user_deletion.html(1 hunks)website/templates/website/reminder_settings.html(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: Run Tests
- GitHub Check: Analyze (python)
- GitHub Check: docker-test
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (15)
website/templates/extension.html (1)
4-4: Add sidenav include – test responsive behavior
Good catch addingincludes/sidenav.htmlat the top of the content block. After inclusion, verify that the side navigation does not push or overlap the.containerdiv on small viewports. If the side nav uses fixed positioning, confirm it’s scroll-independent or adjust margins/padding accordingly.website/templates/contributors_detail.html (1)
16-16: Place sidenav innatural_content– validate styling isolation
Inserting the sidebar within thenatural_contentblock is correct. Please verify that the sidebar’s styles don’t conflict with the Font Awesome stylesheet or other custom tags loaded here. Also confirm the sidebar appears above the profile section without breaking the layout, and that back-button positioning remains intact.website/templates/check_owasp_compliance.html (1)
7-7: Add sidebar include – verify form alignment
The sidenav include ensures consistent navigation for the compliance checker. Test that the project URL form and the results section align correctly alongside the sidebar on desktop, and that the form fields remain fully accessible when the sidebar collapses on mobile.website/templates/owasp.html (2)
20-20: Add sidebar navigation include for consistent UI
Including the sharedsidenav.htmlfragment at the top of the content block ensures the side navbar appears on this page, matching the navigation experience across the site.
26-26: Typographic consistency: straight apostrophes
The replacement of curly apostrophes (’) with straight apostrophes (') in these lines standardizes the text style across templates.Also applies to: 51-51, 58-58, 73-73, 120-120, 141-141, 166-166
website/templates/join.html (1)
21-21: Add sidebar navigation include for consistent UI
Inserting theincludes/sidenav.htmlfragment at the start of the content block brings the side navbar to the Join Organization page, aligning with other templates.website/templates/account/logout.html (1)
21-21: Add sidebar navigation include for consistent UI
Includingincludes/sidenav.htmlhere ensures users have access to the side navbar when logging out, maintaining uniform navigation.website/templates/404.html (1)
7-7: Add sidebar navigation include for consistent UI
Adding thesidenav.htmlinclude at the top of the 404 content block provides the same navigation structure even on error pages.website/templates/account/password_reset_from_key.html (1)
20-20: Add sidebar navigation include for consistent UI
Inserting the shared side navbar include at the beginning of this content block ensures users can navigate elsewhere even on the password reset page.website/templates/user_deletion.html (1)
4-4: Sidebar include added correctly
The{% include "includes/sidenav.html" %}is properly placed at the top of the content block, ensuring the side navigation appears before the main deletion UI.website/templates/website/reminder_settings.html (1)
4-4: Consistent sidebar integration
The sidebar include is correctly inserted immediately after{% block content %}, matching the pattern used across other templates.website/templates/education/create_standalone_lecture.html (1)
4-4: Sidebar include placement is correct
Including the sidenav at the start of the content block maintains uniform navigation. Confirm that this doesn’t conflict with responsive layouts on smaller viewports.website/templates/privacy.html (1)
20-20: Privacy page sidebar inclusion
The{% include "includes/sidenav.html" %}line is correctly added before the privacy content. Verify that mobile and desktop views render the sidebar as intended.website/templates/education/edit_standalone_lecture.html (1)
4-4: Edit-lecture sidebar integration
The side navigation include is correctly added at the beginning of the content block, matching the new UI pattern.website/templates/account/password_reset.html (1)
21-21: Sidebar inclusion is correctly applied
The{% include "includes/sidenav.html" %}statement is properly placed at the top of thecontentblock, ensuring the side navigation appears before any page-specific content.
Fixes #4196
Description:
I noticed that several pages were missing the side navbar, so I went through and added it to all the pages where it was absent.
Summary by CodeRabbit