-
Notifications
You must be signed in to change notification settings - Fork 669
Bug 1798417: MultiColumnField should hide headers if there are no rows #4180
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
Bug 1798417: MultiColumnField should hide headers if there are no rows #4180
Conversation
|
/kind bug |
|
linked to bug https://bugzilla.redhat.com/show_bug.cgi?id=1798417 |
|
/retitle Bug 1798417: MultiColumnField should hide headers if there are no rows |
|
@abhinandan13jan: This pull request references Bugzilla bug 1798417, which is valid. The bug has been moved to the POST state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/bugzilla refresh |
|
@abhinandan13jan: This pull request references Bugzilla bug 1798417, which is valid. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/test e2e-gcp-console |
rohitkrai03
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.
/lgtm
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.
Do not render this is if there is no message.
emptyMessage && <...>
Also is there a pf4 style or component that provides this secondary text 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.
Try using the pf4's Text component here
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.
Not sure Text will work because there's only one variant that has the same secondary color which is small. I don't think we want smaller text here though.
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.
Now, using the SecondaryStatus component
|
cc @openshift/team-devconsole-ux |
|
The text appears quite close to the link button... make sure you add that spacing @abhinandan13jan - see the screenshots in the Design ticket if you need more information. Feel free to reach out to UX directly as well. |
serenamarie125
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.
@abhinandan13jan can you add 8px padding between the empty state message and the + Add link?
serenamarie125
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.
Also checking - this fix is being made for both the Parameters & Resources tab, right?
5db1690 to
9feb0b5
Compare
9feb0b5 to
5c0604b
Compare
|
@abhinandan13jan: This pull request references Bugzilla bug 1798417, which is valid. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@andrewballantyne @serenamarie125 I've added a spacer-sm(8px) between empty message. And Yes @serenamarie125 This would apply to both param & resources. :) |
|
This spacing matches the design, thanks for making that update @abhinandan13jan |
|
@abhinandan13jan @andrewballantyne if this is a utility make sure this text is used- for Pipelines it should be "Add Pipeline Parameter" and for Resources it should be "Add Pipeline Resource" |
Good feedback @bgliwa01 thanks! @abhinandan13jan make sure you update the button text at the same time. |
andrewballantyne
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.
Found the spots, please update @abhinandan13jan
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.
Adjust to fit with UX text.
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.
updated
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.
Adjust to fit with UX text. Should be singular.
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.
updated
5c0604b to
7763efe
Compare
|
@bgliwa01 @andrewballantyne Updated the text |
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.
| const emptyMessage = 'No params are associated with this pipeline'; | |
| const emptyMessage = 'No parameters are associated with this pipeline.'; |
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.
updated
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.
| const emptyMessage = 'No resources are associated with this pipeline'; | |
| const emptyMessage = 'No resources are associated with this pipeline.'; |
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.
updated
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.
| &__emptymsg{ | |
| &__empty-message { |
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.
updated
7763efe to
ab9573d
Compare
|
/lgtm |
| {fieldValue.length < 1 ? ( | ||
| emptyMessage && ( | ||
| <div className="odc-multi-column-field__empty-message"> | ||
| <SecondaryStatus status={emptyMessage} /> | ||
| </div> | ||
| ) | ||
| ) : ( | ||
| <MultiColumnFieldHeader headers={headers} /> | ||
| )} |
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.
@openshift/team-devconsole-ux
As it stands, without an "empty message" will remove the headers. I assume this desirable?
With content:
Empty (although this is not an ideal state for this page to be in):
We use this component in 4 spots
- Pipeline Parameters
- Pipeline Resources
- Project Access
- Knative Traffic Split
We'll need to come up with how we want to handle those. I logged https://issues.redhat.com/browse/ODC-2976 a while back to address chasing them down and asking this question.
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinandan13jan, christianvogt, debsmita1, rohitkrai03, serenamarie125 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@abhinandan13jan: All pull requests linked via external trackers have merged. Bugzilla bug 1798417 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |


Addresses: https://issues.redhat.com/browse/ODC-2828

Updated Screenshot (Using & adding a margin of spacer-sm|8px)
