-
Notifications
You must be signed in to change notification settings - Fork 185
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
Ux buttons - Deprecating the classes btn-success, btn-info, and btn-warning #9368
Conversation
👋 Hello! Thanks for contributing to our project. If you are unsure the failing tests are related to your code, you can check the "reference jobs". These are jobs that run on a scheduled time with code from master. If they fail for the same reason as your build, it means the tests or the infrastructure are broken. If they do not fail, but yours do, it means it is related to your code. Reference tests: KNOWN ISSUES Sometimes the build can fail when pulling new jar files from download.opensuse.org . This is a known limitation. Given this happens rarely, when it does, all you need to do is rerun the test. Sorry for the inconvenience. For more tips on troubleshooting, see the troubleshooting guide. Happy hacking! |
Suggested tests to cover this Pull Request
|
6631b44
to
15eae86
Compare
9e4c887
to
9701642
Compare
2b4b602
to
a0d504d
Compare
java/code/webapp/WEB-INF/pages/admin/multiorg/configuration.jsp
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,2 @@ | |||
- Deprecating the classes btn-success, btn-info, and btn-warning. |
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.
Here and below, I think we need different descriptions for the changelog. While this describes what's changed from the technical side, the changelog is for customers, not engineers. For a customer, things like btn-success
etc don't say anything meaningful. I think something along the lines of "Updated user interfaces for pages X, Y, Z" or something similar would work.
Maybe @deneb-alpha has a good suggestion, you're usually pretty good with changelog entries?
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.
@deneb-alpha I have updated the change log description. Please let me know if it needs more improvement.
web/html/src/manager/audit/subscription-matching/subscription-matching-matcher-run-panel.tsx
Show resolved
Hide resolved
web/html/src/manager/content-management/list-filters/list-filters.tsx
Outdated
Show resolved
Hide resolved
web/html/src/manager/content-management/list-filters/list-filters.tsx
Outdated
Show resolved
Hide resolved
I think this is a very welcome change, we have too many different buttons and they're used in a variety of ways, so simplifying all of that is very nice. One thing to consider once we're done with the cleanup is that we might want to revisit some of the names afterwards. Right now we have for example In general though, this looks good, there were a few nitpicks here and there, but nothing major, this looks good. 👍 |
9a28a34
to
589f57d
Compare
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> | ||
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> |
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.
Here and in the rest of this file, the formatting is wrong. It seems whatever autoformatter you're using doesn't recognize that these are references, not actual opening tags.
@cbbayburt Do you happen to know if we can autofix formatting in jsp files as well somehow conveniently? Would be nice to just have a linter do all of this automatically.
@@ -0,0 +1,31 @@ | |||
@media (max-width: @screen-tablet) { |
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.
This file is safe to drop, we don't include or build .less
files anymore since we dropped the old theme. The .scss
files are now the only source of styles.
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.
This file can be deleted, I'm guessing this got mixed up when you rebased the branch.
Since we now only allow a narrow set of class names etc, I would recommend updating the prop type definitions in the button component. E.g. instead of |
This looks good, thanks a lot for putting what must've been a massive effort into this. Two things we need to do before we merge this: one, ensure we remove the Outside of that this looks very nice. 👍 When merging this, I would recommend squashing, since that way it's easier to reason about this commit later. |
I suggest fixing this use case in a separate PR which we can use to resolve other issues/modifications needed in the Button component. |
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.
From releng side, LGTM! thanks
What does this PR change?
This PR partially fixes #24324 - Deprecating the classes btn-success, btn-info, btn-link, and btn-warning.
btn-success
class from CSS and pagesbtn-info
class from CSS and pagesbtn-warning
class from CSS and pagebtn-link
class from some pages. (Some instances still remain and will be addressed in future updates.)<rhn:toolbar>
component -ToolbarTag.java
filebtn-primary
CSS class to createType button,btn-default
CSS classe to the updateType and cloneType buttons.btn-danger
CSS class to the deleteType button.createType
button is always positioned at the far right,<FilterEdit>
componentModalLink>
with<ModalButton>
component to launch a modal dialogclassName
propsGUI diff
No difference.
Before:
After:
Documentation
No documentation needed
DONE
Test coverage
ℹ️ If a major new functionality is added, it is strongly recommended that tests for the new functionality are added to the Cucumber test suite
No tests: already covered
DONE
Links
Fixes: #25737
Issue(s): #24324
Port(s): # add downstream PR(s), if any
Changelogs
Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository
If you don't need a changelog check, please mark this checkbox:
If you uncheck the checkbox after the PR is created, you will need to re-run
changelog_test
(see below)Re-run a test
If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run:
Before you merge
Check How to branch and merge properly!