-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Make base theme hidden for admin and account UIs. #22672
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
Make base theme hidden for admin and account UIs. #22672
Conversation
jonkoops
left a comment
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.
The code changes look good to me, but a couple of questions/notes:
- Should we not also prevent the selection of the
basetheme for the other UIs? - Perhaps a better approach would be to filter these options out at an API level (including the setting of a theme)?
- Should we provide a database migration to unset the
basetheme if it has been set by the user?
|
Ok, good to know, that might change in the future, but indeed is not relevant for now. Let's leave this as-is.
Not sure what the fallout would be, but I think this would still be the best place to solve this. In the spirit of keeping the front-end as 'dumb' as possible, which is something I believe @stianst feels strongly about. Also this would prevent us (or others) from having to re-implement this in the future for other/newer UIs.
There are already users that have ended up in a situation where they have set the theme to |
jonkoops
left a comment
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.
I am approving this since it addresses a quite critical problem, but I still feel we need a more complete solution in the future. But perhaps that is better addressed somewhere else.
Definitely agree. That's why I opened #22671. |
d501079 to
c5c87fd
Compare
This PR only addresses the situation where they set the theme to Some may have extended the |
c5c87fd to
5336842
Compare
Passing run #8645 ↗︎Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
|||||||||||||||
* Make base theme hidden for admin and account UIs. * Fix test.
Fixes #21421
This just provides a quick patch for the issue above so users don't see the problem any longer. It just removes the base theme from the dropdown.
The real fix will come when we solve #22671.