Skip to content

Conversation

@abhinandan13jan
Copy link
Contributor

@abhinandan13jan abhinandan13jan commented Feb 4, 2020

Addresses: https://issues.redhat.com/browse/ODC-2828
Screencast from 02-04-2020 06_11_39 PM (1)

Updated Screenshot (Using & adding a margin of spacer-sm|8px)
Screenshot from 2020-02-07 13-57-15

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 4, 2020
@openshift-ci-robot openshift-ci-robot added component/dev-console Related to dev-console component/shared Related to console-shared labels Feb 4, 2020
@andrewballantyne
Copy link
Contributor

/kind bug

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 4, 2020
@abhinandan13jan abhinandan13jan changed the title [WIP]fix(multicolumn-field): Remove header for empty case fix(multicolumn-field): Remove header for empty case Feb 5, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 5, 2020
@abhinandan13jan
Copy link
Contributor Author

@abhinandan13jan
Copy link
Contributor Author

/retitle Bug 1798417: MultiColumnField should hide headers if there are no rows

@openshift-ci-robot openshift-ci-robot changed the title fix(multicolumn-field): Remove header for empty case Bug 1798417: MultiColumnField should hide headers if there are no rows Feb 5, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Feb 5, 2020
@openshift-ci-robot
Copy link
Contributor

@abhinandan13jan: This pull request references Bugzilla bug 1798417, which is valid. The bug has been moved to the POST state.

Details

In response to this:

Bug 1798417: MultiColumnField should hide headers if there are no rows

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.

@abhinandan13jan
Copy link
Contributor Author

/bugzilla refresh

@openshift-ci-robot
Copy link
Contributor

@abhinandan13jan: This pull request references Bugzilla bug 1798417, which is valid.

Details

In response to this:

/bugzilla refresh

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.

@abhinandan13jan
Copy link
Contributor Author

/test e2e-gcp-console

Copy link
Contributor

@rohitkrai03 rohitkrai03 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 5, 2020
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor

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.

Copy link
Contributor Author

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

@andrewballantyne
Copy link
Contributor

cc @openshift/team-devconsole-ux

@andrewballantyne
Copy link
Contributor

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.

Copy link
Contributor

@serenamarie125 serenamarie125 left a 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?

Copy link
Contributor

@serenamarie125 serenamarie125 left a 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?

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2020
@openshift-ci-robot
Copy link
Contributor

@abhinandan13jan: This pull request references Bugzilla bug 1798417, which is valid.

Details

In response to this:

Bug 1798417: MultiColumnField should hide headers if there are no rows

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.

@abhinandan13jan
Copy link
Contributor Author

abhinandan13jan commented Feb 7, 2020

@andrewballantyne @serenamarie125 I've added a spacer-sm(8px) between empty message. And Yes @serenamarie125 This would apply to both param & resources. :)

@serenamarie125
Copy link
Contributor

This spacing matches the design, thanks for making that update @abhinandan13jan

@bgliwa01
Copy link

bgliwa01 commented Feb 7, 2020

@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"

@andrewballantyne
Copy link
Contributor

@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.

Copy link
Contributor

@andrewballantyne andrewballantyne left a 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

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@abhinandan13jan
Copy link
Contributor Author

@bgliwa01 @andrewballantyne Updated the text

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const emptyMessage = 'No params are associated with this pipeline';
const emptyMessage = 'No parameters are associated with this pipeline.';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const emptyMessage = 'No resources are associated with this pipeline';
const emptyMessage = 'No resources are associated with this pipeline.';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
&__emptymsg{
&__empty-message {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@debsmita1
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 11, 2020
Comment on lines +38 to +46
{fieldValue.length < 1 ? (
emptyMessage && (
<div className="odc-multi-column-field__empty-message">
<SecondaryStatus status={emptyMessage} />
</div>
)
) : (
<MultiColumnFieldHeader headers={headers} />
)}
Copy link
Contributor

@andrewballantyne andrewballantyne Feb 11, 2020

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:

Screen Shot 2020-02-11 at 8 10 23 AM

Empty (although this is not an ideal state for this page to be in):

Screen Shot 2020-02-11 at 8 10 36 AM


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.

@christianvogt
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 11, 2020
@openshift-merge-robot openshift-merge-robot merged commit 8f149ac into openshift:master Feb 11, 2020
@openshift-ci-robot
Copy link
Contributor

@abhinandan13jan: All pull requests linked via external trackers have merged. Bugzilla bug 1798417 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1798417: MultiColumnField should hide headers if there are no rows

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.

@spadgett spadgett added this to the v4.4 milestone Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/dev-console Related to dev-console component/shared Related to console-shared kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants