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

Bug 1997482: Remove backdrop from Pipeline tasks search modal #9880

Merged
merged 1 commit into from Aug 30, 2021

Conversation

vikram-raj
Copy link
Member

Fixes:
https://issues.redhat.com/browse/ODC-6277

Analysis / Root cause:
Modal backdrop should not be present as per the design.

Solution Description:

  • Remove the backdrop from the Pipeline tasks search modal
  • Add box-shadow to the modal

Screen shots / Gifs for design review:
image

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@vikram-raj vikram-raj changed the title Remove backdrop from Pipeline tasks search modal Bug 1997482: Remove backdrop from Pipeline tasks search modal Aug 25, 2021
@openshift-ci openshift-ci bot added the bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. label Aug 25, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 25, 2021

@vikram-raj: This pull request references Bugzilla bug 1997482, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.9.0) matches configured target release for branch (4.9.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (gamore@redhat.com), skipping review request.

In response to this:

Bug 1997482: Remove backdrop from Pipeline tasks search modal

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.

@openshift-ci openshift-ci bot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Aug 25, 2021
@vikram-raj
Copy link
Member Author

/kind bug

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Aug 25, 2021
@vikram-raj
Copy link
Member Author

/cc @karthikjeeyar

@vikram-raj
Copy link
Member Author

cc: @bgliwa01

@openshift-ci openshift-ci bot added the component/pipelines Related to pipelines-plugin label Aug 25, 2021
Copy link

@bgliwa01 bgliwa01 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@karthikjeeyar karthikjeeyar 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 openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2021
@invincibleJai
Copy link
Member

/approve

@invincibleJai
Copy link
Member

/hold

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.

/approve cancel

Comment on lines 13 to 15
.pf-c-backdrop {
background: none;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We already have this solution in Topology. This is not the right way to address this. We need one solution for both places. Please move this into the Quick Search and address it there and remove it from TopologyView.scss.

Copy link
Member Author

Choose a reason for hiding this comment

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

We do not have a common wrapper for pf-c-backdrop that is why we have to set it at two places. If we set background for pf-c-backdrop without nesting. Then it will affect all the modals we have.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you not wrap it? Or provide a className to the Modal from PF? Surely there are ways to bring this into the component @vikram-raj

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a common class to the quick search modal and defined that class in QuickSearchModal component.

@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 26, 2021
@andrewballantyne
Copy link
Contributor

/remove-approve

@andrewballantyne
Copy link
Contributor

/lgtm cancel

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2021
@invincibleJai
Copy link
Member

/remove-approve

@openshift-ci openshift-ci bot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 26, 2021
<div ref={contentRef} className="odc-pipeline-builder-form">
<div
ref={contentRef}
className="odc-pipeline-builder-form ocs-quick-search-modal__no-backdrop"
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of having this classname ocs-quick-search-modal__no-backdrop in PipelineBuilderForm.tsx and TopologyView.tsx, can we have this directly in the quickSearchModal.tsx. Maybe a configuration prop (backdropEnabled) that decides if the backdrop classname has to be added or not (default can be a false). WDYT?

quickSearchModal.tsx

<Modal
className={cx('ocs-quick-search-modal', {
'ocs-quick-search-modal__no-backdrop': !backdropEnabled})} // defaults to false
...
>

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is needed, from my comment:

I'm adding LGTM as I don't think @karthikjeeyar's suggestion about classNames usage will add much if we need to return to it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, we can skip it.

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.

/lgtm

Log a technical debt ticket @vikram-raj We need to move away from this PF modal if it's not going to do our job. This is the 2nd issue we have where the PF modal is needing to be overridden in some fashion.

The other is when the drag-n-resize stuff happens, we are actually moving the body and not the modal. Since the modal inserts itself into the viewContainer we don't have access to styling it. The styles for the Modal are past the backdrop component so it can't style it.

Currently today the only way to make this happen in one spot would be to use a useEffect and remove the class / modify the styles through a JS grab of the dom element. Which is prone to it's own problems and likely would cause issues.

I'm adding LGTM as I don't think @karthikjeeyar's suggestion about classNames usage will add much if we need to return to it.

@invincibleJai
Copy link
Member

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 30, 2021
@andrewballantyne
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2021
@andrewballantyne
Copy link
Contributor

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 30, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 30, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne, bgliwa01, karthikjeeyar, vikram-raj

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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-merge-robot openshift-merge-robot merged commit c40fd97 into openshift:master Aug 30, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 30, 2021

@vikram-raj: All pull requests linked via external trackers have merged:

Bugzilla bug 1997482 has been moved to the MODIFIED state.

In response to this:

Bug 1997482: Remove backdrop from Pipeline tasks search modal

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.

@vikram-raj vikram-raj deleted the odc-6277 branch August 30, 2021 17:29
@spadgett spadgett added this to the v4.9 milestone Sep 4, 2021
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/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/pipelines Related to pipelines-plugin component/shared Related to console-shared component/topology Related to topology kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants