-
Notifications
You must be signed in to change notification settings - Fork 114
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
Refactor modular pipeline expansions to instantly update UI #2225
Conversation
Signed-off-by: Sajid Alam <[email protected]>
Signed-off-by: Sajid Alam <[email protected]>
Signed-off-by: Sajid Alam <[email protected]>
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.
The expand/collapse doesn't work with the NodeList in the sidebar.
Signed-off-by: Sajid Alam <[email protected]>
Signed-off-by: Sajid Alam <[email protected]>
…kedro-org/kedro-viz into introduce-manage-toolbarOptions Signed-off-by: Sajid Alam <[email protected]>
Signed-off-by: Sajid Alam <[email protected]>
I noticed for the first time the toggle doesn't update the view instantly but subsequent presses do. |
yeah i noticed that too. |
Signed-off-by: Sajid Alam <[email protected]>
Fixed the |
Signed-off-by: Sajid Alam <[email protected]>
src/components/flowchart-primary-toolbar/flowchart-primary-toolbar.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Sajid Alam <[email protected]>
Signed-off-by: Sajid Alam <[email protected]>
Signed-off-by: Sajid Alam <[email protected]>
…pipelines Signed-off-by: Huong Nguyen <[email protected]>
src/components/flowchart-primary-toolbar/flowchart-primary-toolbar.js
Outdated
Show resolved
Hide resolved
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.
I have left some minor comments. Around repeated code
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.
Hey @SajidAlamQB, thank you for the updates! I have two main comments:
-
Could we rename the reducers
TOGGLE_EXPAND_ALL_PIPELINES
andTOGGLE_ALL_MODULAR_PIPELINES_EXPANDED
to better reflect their purpose? -
Both
TOGGLE_ALL_MODULAR_PIPELINES_EXPANDED
andnormalize
share similar logic (I replicated the logic from normalize). Could this be moved to a helper function?
src/components/flowchart-primary-toolbar/flowchart-primary-toolbar.js
Outdated
Show resolved
Hide resolved
src/components/flowchart-primary-toolbar/flowchart-primary-toolbar.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Sajid Alam <[email protected]>
src/components/flowchart-primary-toolbar/flowchart-primary-toolbar.js
Outdated
Show resolved
Hide resolved
src/components/flowchart-primary-toolbar/flowchart-primary-toolbar.js
Outdated
Show resolved
Hide resolved
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.
Hi Sajid, left two minor comments. Once those are fixed, then it should be good to merge. I am approving it for now.
Hi @SajidAlamQB , Thank you for the PR. The code looks fine but I do not have complete context on the issue and I am finding it difficult understanding the variable names and what they do. I left few comments to clarify and better QA this PR. Thank you |
@ravi-kumar-pilla , this PR is just a refactor, earlier 'Expand All Pipelines' did a page reload everytime it was clicked, now it just uses redux actions as page reload was a bit of an overkill. |
Signed-off-by: Sajid Alam <[email protected]>
Signed-off-by: Sajid Alam <[email protected]>
Signed-off-by: Sajid Alam <[email protected]>
For some reason, I do not see a page reload on |
Apologies, not page load, that was incorrect term. The 'expand pipelines' functionality would trigger the URL parameter, which in turn ran preparePipelineState and then the pipelines got expanded. However, this didn't work with VSCode; right Sajid? Now, this happens directly through a redux trigger |
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 👍 ... Thank you @SajidAlamQB . I am not sure if we want to track this change in the release note.
Yes that's correct although even this refactor still hasn't fixed the issue on vscode extension which probably has a more underlying issue on the extension side. |
Signed-off-by: Sajid Alam <[email protected]>
Description
This PR updates the logic for determining which nodes are visible when toggling
expandAllPipelines
. Previously, modular pipeline expansions were applied once during initial start, requiring data reloads to see changes. Now, the visibility logic is integrated directly intodisabled.js
, allowing the UI to reflect state changes immediately.Checklist
RELEASE.md
file