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
Convert task selection to quick search modal in pipeline builder #9583
Convert task selection to quick search modal in pipeline builder #9583
Conversation
cc: @makambalaji Updated the pipeline e2e tests to use quick search modal instead of select dropdown. |
Thanks @karthikjeeyar for the information |
frontend/packages/console-shared/src/components/quick-search/QuickSearchList.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/console-shared/src/components/quick-search/QuickSearchList.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/pipelines-plugin/src/components/catalog/providers/useTasksProvider.tsx
Show resolved
Hide resolved
frontend/packages/pipelines-plugin/src/components/pipelines/pipeline-topology/TaskList.tsx
Show resolved
Hide resolved
frontend/packages/console-shared/src/components/quick-search/QuickSearchContent.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/console-shared/src/components/quick-search/QuickSearchController.tsx
Show resolved
Hide resolved
frontend/packages/console-shared/src/components/quick-search/QuickSearchDetails.scss
Show resolved
Hide resolved
frontend/packages/console-shared/src/components/quick-search/QuickSearchList.scss
Show resolved
Hide resolved
.../packages/pipelines-plugin/src/components/pipelines/pipeline-builder/PipelineBuilderForm.tsx
Outdated
Show resolved
Hide resolved
...packages/pipelines-plugin/src/components/pipelines/pipeline-topology/RemoveNodeDecorator.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/pipelines-plugin/src/components/pipelines/pipeline-topology/TaskList.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/pipelines-plugin/src/components/catalog/providers/useTasksProvider.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/pipelines-plugin/src/components/quicksearch/PipelineQuickSearch.tsx
Outdated
Show resolved
Hide resolved
777e8d2
to
67bc125
Compare
67bc125
to
cb781bc
Compare
cb781bc
to
ae0fd13
Compare
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.
Code looks good. Will try it locally and add lgtm if everything works fine.
...ackages/pipelines-plugin/src/components/pipelines/pipeline-topology/RemoveNodeDecorator.scss
Outdated
Show resolved
Hide resolved
ae0fd13
to
0258223
Compare
@karthikjeeyar In your screen-recording I see the modal is in the centre but if you look at above screenshot it appears on top for me. In topology page the modal appears in the centre so for consistency I think we should keep it in centre in pipeline-builder page as well. Also in topology quick-search modal we show the provided by label like this I also noticed that when there are only five items to show as you can see in the above screenshot there is a weird gap shown after the last item. It's not a big issue but it looks weird. If this can be fixed with minimal effort we can do it in this PR. |
Screen.Recording.2021-07-30.at.10.28.32.PM.mov@karthikjeeyar I think we want to disable keyboard action for opening the modal as here we dont know where the user might want to add the task i.e they can add it parallelly or side-by-side and if they use the keyboard action to open the modal and add the task it gets added parallelly automatically which is something they might not want. |
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.
@karthikjeeyar I have added a few comments above. Apart from these the functionality works as expected.
Initially I have added modalPositionOffset to be at the center of the screen, removed it based on Andrew's comment here.
In the designs we don't have this |
@divyanshiGupta Added a prop to disable keyboard open and used it in pipelineQuicksearch modal |
@bgliwa01 wdyt about this? |
b4a5bd6
to
3b214ad
Compare
@divyanshiGupta Yes, there isn't a extra space needed here, when we are not showing the viewLinks at the bottom. |
@karthikjeeyar I am getting i18n warnings for both TopologyQuickSearch and PipelineQuickSearch. |
I am not seeing any i18n errors after building the code and re-bridging it. Frontend tests are also passing, so I request you to try build.sh once. |
@karthikjeeyar I am adding lgtm to this PR since you mentioned we have another story for aligning with UX and the functionality works as expected. But it will be good if you can mention these points in the story so that we can follow up with UX and decide how do we handle these. /lgtm |
/label qe-approved |
@divyanshiGupta: The label(s) In 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. |
/label docs-approved |
if (selectedItemId) { | ||
const element = document.getElementById(selectedItemId); | ||
if (element) { | ||
element?.scrollIntoView({ block: 'nearest' }); |
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.
nit: we can avoid ?
or if condition?
3b214ad
to
cc0d1e1
Compare
/lgtm verified the changes, works as expected |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyanshiGupta, invincibleJai, karthikjeeyar 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 |
/retest |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
The modal should work like the one in topology so that there is no dark background and it is centered on the screen that is not including the left navigation. |
@karthikjeeyar please make the desired changes in your next PR. |
Fixes:
https://issues.redhat.com/browse/ODC-6133
Analysis / Root cause:
Convert the existing task selection dropdown to use the new quick search modal
Solution Description:
icon
,modalPositionOffset
andisLimitedList
down
arrow in the keyboard.Delete
decoarator (This will be changed in subsequent PR's based on the UX design).Note: This PR contains only the
Task
andClusterTask
resources, tekton hub will be done in a separate PR.Screen shots / Gifs for design review:
Pipeline_task_selection.mp4
test coverage report:
Updated task selection method in integration test in pipeline builder page
pipelineBuilder-page.ts
Test setup:
Visit Pipeline builder page and click on Add Task node.
Browser conformance:
cc: @bgliwa01 @christianvogt @andrewballantyne