Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
8795181
data frame parameter test
l0uden Apr 1, 2025
69f17b2
Revert "data frame parameter test"
l0uden Apr 2, 2025
3134da0
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 7, 2025
b71e210
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 8, 2025
7f01cae
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 9, 2025
e3c7f93
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 9, 2025
008cb72
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 9, 2025
6305456
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 10, 2025
ace4b5b
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 10, 2025
b11ed48
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 10, 2025
ae42e28
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 14, 2025
b8711b5
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 15, 2025
38cebdc
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 16, 2025
4d3464f
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 18, 2025
0cb855a
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Apr 25, 2025
55591e6
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden May 12, 2025
2bb768e
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden May 13, 2025
1389c95
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden May 14, 2025
b10cc9c
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden May 14, 2025
32287e9
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden May 15, 2025
242b101
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jun 2, 2025
5ca5573
test extra parameter for graph
l0uden Jun 2, 2025
18682c4
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jun 3, 2025
bd2b546
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jun 9, 2025
31b8775
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jun 11, 2025
0f46334
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jun 11, 2025
a5f9730
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jun 13, 2025
b8e3790
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jun 25, 2025
6722cd4
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jun 27, 2025
3ab01a6
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 2, 2025
5ac3db6
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 3, 2025
55a2a8e
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 3, 2025
7fcc6cd
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 9, 2025
56ae702
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 9, 2025
8919bd5
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 10, 2025
3456ee0
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 14, 2025
de2de79
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 15, 2025
7cbb864
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 16, 2025
db4be72
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 22, 2025
f35e7eb
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 23, 2025
a5e4eae
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 28, 2025
b03889f
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 28, 2025
cb60a21
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jul 29, 2025
b0d68b3
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Aug 6, 2025
8c223f9
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Aug 6, 2025
53eebac
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Aug 11, 2025
96f7de8
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Aug 12, 2025
fcfb46a
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Aug 26, 2025
f56a9bf
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Aug 27, 2025
895b1a2
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Aug 28, 2025
662c6e7
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Sep 2, 2025
94d857c
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Sep 10, 2025
e8b1940
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Sep 10, 2025
5732e21
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Sep 15, 2025
26e153b
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Sep 17, 2025
865ca7a
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Sep 19, 2025
55b25ba
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Sep 19, 2025
4b1d1a4
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Sep 22, 2025
8f97a56
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Sep 24, 2025
cae16f2
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Oct 1, 2025
c0a0b7e
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Oct 13, 2025
8293ad8
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Oct 14, 2025
fdb7e3e
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Oct 16, 2025
d60f1a3
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Oct 21, 2025
26ffe04
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Oct 22, 2025
ba474f9
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Oct 27, 2025
fe9ba38
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Oct 28, 2025
36e96fb
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Nov 4, 2025
873ecce
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Nov 6, 2025
e1aa2b5
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Nov 12, 2025
dadd7ed
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Nov 17, 2025
698c220
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Nov 19, 2025
b3aef82
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Nov 28, 2025
ad7d1a5
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Dec 15, 2025
437fb3e
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Dec 23, 2025
673b815
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jan 7, 2026
d6d16df
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jan 14, 2026
b93b318
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jan 15, 2026
2bd704b
Merge branch 'main' of https://github.com/mckinsey/vizro
l0uden Jan 15, 2026
3f8ffa0
basic scenarios
l0uden Jan 23, 2026
8c564d1
all scenarios
l0uden Jan 26, 2026
3aadc50
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/set_…
l0uden Jan 26, 2026
85285fd
refactoring and screenshots
l0uden Jan 27, 2026
4ec9926
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/set_…
l0uden Jan 27, 2026
c5a73e8
fix tests
l0uden Jan 27, 2026
7987ced
Merge branch 'main' of https://github.com/mckinsey/vizro into qa/set_…
l0uden Jan 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions vizro-core/tests/e2e/vizro/dashboards/default/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
drill_through_parameter_graph_source_page,
drill_through_parameter_graph_target_page,
)
from pages.set_control_multi_select_pages import (
button_card_trigger_set_control,
cross_filter_multi_select_page,
filtered_graph_aggrid_trigger_set_control,
self_filter_set_control_page,
)
from pages.switch_control_page import switch_control_page
from pages.table_interactions_page import table_interactions_page
from pages.table_page import table_page
Expand Down Expand Up @@ -108,6 +114,10 @@
action_ag_grid_underlying_id_shortcut_page,
action_control_shortcut_page,
static_notifications_page,
cross_filter_multi_select_page,
button_card_trigger_set_control,
filtered_graph_aggrid_trigger_set_control,
self_filter_set_control_page,
],
navigation=vm.Navigation(
pages={
Expand Down Expand Up @@ -169,6 +179,10 @@
cnst.ACTION_AG_GRID_UNDERLYING_ID_SHORTCUT_PAGE,
cnst.ACTION_CONTROL_SHORTCUT_PAGE,
cnst.STATIC_NOTIFICATIONS_PAGE,
cnst.SET_CONTROL_MULTI_SELECT_PAGE,
cnst.SET_CONTROL_BUTTON_CARD,
cnst.FILTERED_GRAPH_AGGRID_TRIGGER_SET_CONTROL_PAGE,
cnst.SELF_FILTER_SET_CONTROL_PAGE,
],
}
),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
import e2e.vizro.constants as cnst

import vizro.models as vm
import vizro.plotly.express as px
from vizro.actions import set_control
from vizro.models.types import capture
from vizro.tables import dash_ag_grid

iris = px.data.iris()

iris_unique_species = px.data.iris()
unique_species = iris_unique_species["species"].unique()
n_species = len(unique_species)
n_rows = len(iris_unique_species)
iris_unique_species["species"] = [unique_species[i % n_species] for i in range(n_rows)]

gapminder = px.data.gapminder()


@capture("graph")
def scatter_with_clickmode_event(data_frame, **kwargs):
fig = px.scatter(data_frame, **kwargs)
fig.update_layout(clickmode="event")
return fig


cross_filter_multi_select_page = vm.Page(
title=cnst.SET_CONTROL_MULTI_SELECT_PAGE,
layout=vm.Grid(grid=[[0, 3], [1, 3], [2, 3]]),
components=[
vm.Graph(
id=cnst.SCATTER_SET_CONTROL_EVENT_SELECT,
figure=px.scatter(
iris,
x="sepal_length",
y="petal_width",
color="species",
custom_data=["species"],
),
actions=[
set_control(control="chl_filter", value="species"),
set_control(control="ri_filter", value="species"),
],
),
vm.Graph(
id=cnst.SCATTER_SET_CONTROL_EVENT,
figure=scatter_with_clickmode_event(
iris,
x="sepal_length",
y="petal_width",
color="species",
custom_data=["species"],
),
actions=[
set_control(control="chl_filter", value="species"),
set_control(control="ri_filter", value="species"),
],
),
vm.AgGrid(
id=cnst.TABLE_SET_CONTROL_MULTI_SELECT,
figure=dash_ag_grid(iris_unique_species),
actions=[
set_control(control="chl_filter", value="species"),
set_control(control="ri_filter", value="species"),
],
),
vm.Graph(
id=cnst.BOX_SET_CONTROL_TARGET_MULTI_SELECT,
figure=px.box(
iris,
x="sepal_length",
y="petal_width",
color="species",
),
),
],
controls=[
vm.Filter(
id="chl_filter",
column="species",
targets=[cnst.BOX_SET_CONTROL_TARGET_MULTI_SELECT],
selector=vm.Checklist(id=cnst.CHECKLIST_SET_CONTROL_MULTI_SELECT_FILTER),
),
vm.Filter(
id="ri_filter",
column="species",
targets=[cnst.BOX_SET_CONTROL_TARGET_MULTI_SELECT],
selector=vm.RadioItems(id=cnst.RADIOITEMS_SET_CONTROL_MULTI_SELECT_FILTER),
),
],
)


button_card_trigger_set_control = vm.Page(
title=cnst.SET_CONTROL_BUTTON_CARD,
components=[
vm.Button(
id=cnst.SET_CONTROL_BUTTON_NONE,
actions=[
set_control(control="chl_bc_filter", value=None),
set_control(control="ri_bc_filter", value=None),
],
),
vm.Button(
id=cnst.SET_CONTROL_BUTTON_EMPTY_LIST,
actions=[
set_control(control="chl_bc_filter", value=[]),
set_control(control="ri_bc_filter", value=[]),
],
),
vm.Card(
id=cnst.SET_CONTROL_CARD_SINGLE_VALUE,
text="Set to 'virginica'",
actions=[
set_control(control="chl_bc_filter", value=["virginica"]),
set_control(control="ri_bc_filter", value=["virginica"]),
],
),
vm.Card(
id=cnst.SET_CONTROL_CARD_MULTI_VALUE,
text="Set to 'virginica' and 'versicolor'",
actions=[
set_control(control="chl_bc_filter", value=["virginica", "versicolor"]),
set_control(control="ri_bc_filter", value=["virginica", "versicolor"]),
],
),
vm.AgGrid(
id=cnst.TABLE_SET_CONTROL_BUTTON_CARD,
figure=dash_ag_grid(iris_unique_species),
),
],
controls=[
vm.Filter(
id="chl_bc_filter",
column="species",
targets=[cnst.TABLE_SET_CONTROL_BUTTON_CARD],
selector=vm.Checklist(id=cnst.CHECKLIST_SET_CONTROL_BUTTON_CARD),
),
vm.Filter(
id="ri_bc_filter",
column="species",
targets=[cnst.TABLE_SET_CONTROL_BUTTON_CARD],
selector=vm.RadioItems(id=cnst.RADIOITEMS_SET_CONTROL_BUTTON_CARD),
),
],
)


filtered_graph_aggrid_trigger_set_control = vm.Page(
title=cnst.FILTERED_GRAPH_AGGRID_TRIGGER_SET_CONTROL_PAGE,
layout=vm.Grid(grid=[[0, 1]]),
components=[
vm.Tabs(
tabs=[
vm.Container(
title="Graph",
controls=[
vm.Filter(column="species", selector=vm.Checklist(id=cnst.CHECKLIST_FT_GRAPH_SET_CONTROL))
],
components=[
vm.Graph(
id=cnst.FILTERED_SCATTER_TRIGGER_SET_CONTROL_ID,
figure=px.scatter(
iris,
x="sepal_width",
y="sepal_length",
color="species",
custom_data=["species"],
),
actions=set_control(control="chl_ft_filter", value="species"),
),
],
),
vm.Container(
title="AgGrid",
controls=[
vm.Filter(column="species", selector=vm.Checklist(id=cnst.CHECKLIST_FT_AGGRID_SET_CONTROL))
],
components=[
vm.AgGrid(
id=cnst.FILTERED_AGGRID_TRIGGER_SET_CONTROL_ID,
figure=dash_ag_grid(iris_unique_species),
actions=set_control(control="chl_ft_filter", value="species"),
),
],
),
]
),
vm.AgGrid(id=cnst.TARGETED_AGGRID_FROM_FILTERED_GRAPH, figure=dash_ag_grid(iris)),
],
controls=[
vm.Filter(
id="chl_ft_filter",
column="species",
targets=[cnst.TARGETED_AGGRID_FROM_FILTERED_GRAPH],
selector=vm.Checklist(id=cnst.CHECKLIST_FILTERED_GRAPH_TARGET_AGGRID_SET_CONTROL),
),
],
)


self_filter_set_control_page = vm.Page(
title=cnst.SELF_FILTER_SET_CONTROL_PAGE,
components=[
vm.Graph(
id=cnst.SCATTER_SET_CONTROL_SELF_FILTER,
figure=px.scatter(
iris,
x="sepal_length",
y="petal_width",
color="species",
custom_data=["species"],
),
actions=[
set_control(control="chl_self_filter", value="species"),
],
),
],
controls=[
vm.Filter(
id="chl_self_filter",
column="species",
selector=vm.Checklist(id=cnst.CHECKLIST_SET_CONTROL_SELF_FILTER),
),
],
)
Loading
Loading