-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add filtering of pipelines on Kedro-Viz flowchart in VSCode #2269
Conversation
Signed-off-by: Jitendra Gundaniya <38945204+jitu5@users.noreply.github.com>
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
I'm not sure how to QA this. Here's what I tried:
I still see the old UI for some reason. |
@astrojuanlu This step is only needed when there are changes in the Kedro-Viz backend. However, in this PR, we are making changes to the frontend. Therefore, we need an npm-published version of Kedro-Viz that includes our changes to use in the extension. I have published a test npm package to test these changes in the extension: Instead of step 3 |
Thanks 🙏🏼 Can't get to this today or tomorrow, if it's not merged yet by Monday I'll review it. |
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
@@ -163,6 +163,7 @@ The example below demonstrates how to configure your kedro-viz using different ` | |||
| `miniMap` | boolean | true | Show/Hide Mini map and mini map button | | |||
| `sidebar` | boolean | true | Show/Hide Sidebar and action toolbar | | |||
| `zoomToolbar` | boolean | true | Show/Hide zoom-in, zoom-out and zoom reset buttons together | | |||
| `filterBtn` | boolean | false | Show/Hide filter button and sidebar toggle icon | |
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.
[Kedro-viz.Spellings] Did you really mean 'boolean'?
@@ -9,6 +9,8 @@ Please follow the established format: | |||
|
|||
## Major features and improvements | |||
|
|||
- Enable Kedro-Viz in VSCode to list pipelines using the filter icon. (#2269) | |||
|
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.
[Kedro-viz.Spellings] Did you really mean 'VSCode'?
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
@@ -10,6 +10,8 @@ Please follow the established format: | |||
## Major features and improvements | |||
- Remove experiment tracking. (#2237) | |||
|
|||
- Enable Kedro-Viz in VSCode to list pipelines using the filter icon. (#2269) |
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.
[Kedro-viz.Spellings] Did you really mean 'VSCode'?
Hi @jitu5 , I have tested this locally and it works well. I want to test it one more time tomorrow as I observed some inconsistency randomly and could not reproduce it again. Great work @jitu5 and @SajidAlamQB . Thank you |
# Conflicts: # src/components/flowchart-primary-toolbar/flowchart-primary-toolbar.js
hi code-wise both the PRs look great. I am having difficulty getting the setup running at my end. Can we have a chat this morning? :) thanks |
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
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.
Works great !! As discussed apart from the design Q about the filter description, everything else looks good. Thank you :)
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.
As mentioned internally, the dev setup for this is a bit complicated, so I trust that this is ready to be shipped 👍🏼
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.
Tested manually and all looks great, thank you @jitu5!
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Signed-off-by: Jitendra Gundaniya <jitendra_gundaniya@mckinsey.com>
Description
Resolves kedro-org/vscode-kedro#157
The pull request introduces a feature to filter pipelines within the Kedro-Viz flowchart when using Visual Studio Code (VSCode). This enhancement allows users to selectively view and manage specific pipelines directly in the VSCode environment, improving navigation and focus during development.
Development notes
Key changes include:
SHOW_PIPELINE_FILTER
action andtogglePipelineFilter
function insrc/actions/index.js
to manage the pipeline filter toggle state.src/store/middleware.js
to handle the newSHOW_PIPELINE_FILTER
action.src/components/app/app.js
to load pipeline data when the selected pipeline changes.togglePipelineFilter
tosrc/components/flowchart-primary-toolbar/flowchart-primary-toolbar.js
and included a newFilterIcon
button.FilterIcon
component insrc/components/icons/filter.js
for the filter button.PrimaryToolbar
insrc/components/primary-toolbar/primary-toolbar.js
to display the filter button based on thedisplay
prop.filterBtn
tofalse
insrc/store/initial-state.js
.pipeline_name
as optional argument added inget_kedro_project_json_data
inresponses/pipelines.py
.toolbar-filter-button
component folder andtoolbar-filter-button.js
component which is used insidebar.js
QA notes
1.21.0-rc7
version on Add filtering of pipelines on Kedro-Viz flowchart in VSCode vscode-kedro#167make build
on Add filtering of pipelines on Kedro-Viz flowchart in VSCode vscode-kedro#167kedro.vsix
and restart extension hostpip install -e ./package
of this PR in test Kedro project env>kedro: Run Viz
command on VS CodeGIF
Checklist
RELEASE.md
file