Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: enable navbar rendering on OAuth consent and authorize pages#41

Merged
appleboy merged 1 commit intomainfrom
oauth-ui
Feb 19, 2026
Merged

feat: enable navbar rendering on OAuth consent and authorize pages#41
appleboy merged 1 commit intomainfrom
oauth-ui

Conversation

@appleboy
Copy link
Member

  • Add NavbarProps to the OAuth consent page to enable rendering of the navigation bar
  • Update the authorize page template to display the navbar instead of hiding it
  • Pass user information to NavbarProps for proper navbar rendering
  • Improve authorize page container CSS to center content within main-content

- Add NavbarProps to the OAuth consent page to enable rendering of the navigation bar
- Update the authorize page template to display the navbar instead of hiding it
- Pass user information to NavbarProps for proper navbar rendering
- Improve authorize page container CSS to center content within main-content

Signed-off-by: appleboy <[email protected]>
Copilot AI review requested due to automatic review settings February 19, 2026 11:37
@appleboy appleboy merged commit 7956fe2 into main Feb 19, 2026
8 of 16 checks passed
@appleboy appleboy deleted the oauth-ui branch February 19, 2026 11:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables the navigation bar on the OAuth consent/authorize page, improving consistency with other authenticated pages in the application. Previously, the authorize page used a "no-navbar" layout for a focused consent flow, but now includes the navbar to provide users with context and navigation options.

Changes:

  • Added NavbarProps to AuthorizePageProps structure to support navbar rendering
  • Updated authorize page template to use LayoutHasNavbar instead of LayoutNoNavbar
  • Modified authorization handler to populate NavbarProps with user information (username, admin status)

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
internal/templates/static/css/pages/authorize.css Updated CSS comment and added margin: 0 auto to center the authorize container within main-content instead of full-page centering
internal/templates/props.go Added NavbarProps embedding to AuthorizePageProps to enable navbar rendering
internal/templates/authorize.templ Changed layout type from LayoutNoNavbar to LayoutHasNavbar and passed NavbarProps reference
internal/handlers/authorization.go Populated NavbarProps with user information (Username, IsAdmin, ActiveLink) in ShowAuthorizePage handler

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants