Skip to content
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

Removing the unauthenticated middleware #10920

Merged
merged 1 commit into from
May 1, 2024

Conversation

codyrancher
Copy link
Contributor

@codyrancher codyrancher commented Apr 30, 2024

Summary

Removing the unauthenticated middleware

Technical notes summary

Migrated the favorite icon logic out of the un/authenticated middlewares into the brand mixin.

Even though I'm not a fan of mixins I think the grouping at least makes sense given the favorite icon is one of several brand settings.

Areas or cases that should be tested

Unauthenticated pages, really just the login page.

Screenshot/Video

The flashing is present in master as well so this isn't a regression. We should consider caching all brand settings in cookies like we do with light/dark mode.
https://github.com/rancher/dashboard/assets/55104481/7a59c8f5-54b9-4109-95bf-ab8b3d172e4d

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

@codyrancher codyrancher force-pushed the unauthenticated-removal branch from 47d5e41 to 6f7c296 Compare April 30, 2024 20:37
@codyrancher codyrancher added this to the v2.9.0 milestone Apr 30, 2024
Comment on lines -94 to -97
// Set the favicon - use custom one from store if set
if (!haveSetFavIcon()) {
setFavIcon(store);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The brand mixin is used everywhere that the authenticated middleware is used so this should be fine.

@@ -1,7 +1,3 @@
<script>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for standalone plugins. They should have their own branding so I didn't switch this with the Brand mixin.

@codyrancher codyrancher marked this pull request as ready for review April 30, 2024 21:30
Copy link
Member

@rak-phillip rak-phillip left a comment

Choose a reason for hiding this comment

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

LGTM - The favicon conceptually fits wit the brand mixin. I agree with your assessment of mixins, but addressing those is definitely something that would fall outside of the scope of this PR

@codyrancher codyrancher merged commit ee6332e into rancher:master May 1, 2024
33 checks passed
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