kedro-org / kedro-viz

Visualise your Kedro data and machine-learning pipelines and track your experiments.
https://demo.kedro.org
Apache License 2.0
647 stars 106 forks source link

Move the `Expand all modular pipelines` toggle from the settings panel #1858

Closed SajidAlamQB closed 2 months ago

SajidAlamQB commented 2 months ago

Description

Related to: https://github.com/kedro-org/kedro-viz/issues/1752

Research highlighted the need to make Expand all modular pipelines toggle more discoverable to users. It is currently in the settings panel which most users do not use often, and will be moved to the task bar in this PR.

Development notes

Removed from settings menu:

image

Expand modular pipelines:

image image

Checklist

jitu5 commented 2 months ago

@SajidAlamQB Please remove "General" label from setting modal as new Figma design.

Screenshot 2024-04-17 at 11 57 47 a m
jitu5 commented 2 months ago

@SajidAlamQB On collapse/expand icon click, Please update URL query params expandAllPipelines. I added this functionality in stateful URL PR in settings-modal.js

jitu5 commented 2 months ago

@SajidAlamQB In settings-modal.js as we are not updating URL you could remove code related to it.

import { useGeneratePathname } from '../../utils/hooks/use-generate-pathname';
...
const { toSetQueryParam } = useGeneratePathname();
...
 if (name === params.expandAll) {
      toSetQueryParam(params.expandAll, value);
    }
...
toSetQueryParam,
stephkaiser commented 2 months ago

Hey Sajid!

Thanks for this work! I've done some design QA with this link - https://6620ef0fc18fff36ef74b586--kedro-viz-expand-all.netlify.app/?types=nodes,datasets&expandAllPipelines=false. Please see my comments below:

I can see the url updates from false to true when the pipeline is expanded or collapsed, nice!

Let me know if anything is unclear :)

SajidAlamQB commented 2 months ago
  • Settings modal - -- The Settings title and settings names should be in medium font weight and FFFFFF 85%

Hey @stephkaiser I've made all the changes except the one quoted above, setting it to medium font with FFFFFF 85% had no visible change so I've kept it as is.