Commit a9734f8
authored
Column Customization: Open Editor to the expected tab (#6305)
## Motivation for features / changes
When the Column Editor is opened from the scalar card it opens to
whatever the default or last selected tab is. However, it would be
expected to open to the mode that the card used to open it is in(Single
vs Range). This makes that happen
## Technical description of changes
This PR creates a new value in the metricsState(tableEditorSelectedTab)
which reflects the selected tab in the table editor. It then pulls that
value into the editor and uses it to select the tab. It is kept up to
date with calls to tableEditorTabChanged (a new action created for this
purpose) when the tab is changed inside the controller.
Lastly it adds a new prop to the metricsSlideoutMenuOpened action which
contains the current mode of the chart which dispatched the action. This
mode is used to update the new tableEditorSelectedTab value.
## Screenshots of UI changes
1 parent 8e852e5 commit a9734f8
File tree
16 files changed
+207
-21
lines changed- tensorboard/webapp/metrics
- actions
- store
- views
- card_renderer
- right_pane/scalar_column_editor
16 files changed
+207
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| |||
1252 | 1253 | | |
1253 | 1254 | | |
1254 | 1255 | | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
1255 | 1262 | | |
1256 | 1263 | | |
1257 | 1264 | | |
| |||
1346 | 1353 | | |
1347 | 1354 | | |
1348 | 1355 | | |
1349 | | - | |
| 1356 | + | |
1350 | 1357 | | |
1351 | 1358 | | |
1352 | 1359 | | |
1353 | 1360 | | |
1354 | | - | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
1355 | 1367 | | |
1356 | 1368 | | |
1357 | 1369 | | |
| |||
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3929 | 3929 | | |
3930 | 3930 | | |
3931 | 3931 | | |
3932 | | - | |
| 3932 | + | |
3933 | 3933 | | |
3934 | 3934 | | |
3935 | 3935 | | |
3936 | 3936 | | |
3937 | 3937 | | |
3938 | | - | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
| 3941 | + | |
3939 | 3942 | | |
3940 | 3943 | | |
| 3944 | + | |
3941 | 3945 | | |
3942 | | - | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
3943 | 3950 | | |
3944 | 3951 | | |
| 3952 | + | |
3945 | 3953 | | |
3946 | 3954 | | |
3947 | 3955 | | |
| |||
3950 | 3958 | | |
3951 | 3959 | | |
3952 | 3960 | | |
3953 | | - | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
3954 | 3965 | | |
3955 | 3966 | | |
3956 | 3967 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
484 | 485 | | |
485 | 486 | | |
486 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
487 | 493 | | |
488 | 494 | | |
489 | 495 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
1473 | 1474 | | |
1474 | 1475 | | |
1475 | 1476 | | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
1476 | 1492 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| 250 | + | |
247 | 251 | | |
248 | 252 | | |
249 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
112 | | - | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
285 | 294 | | |
0 commit comments