Commit 200ba5e
authored
Bug Fix: Fix color picker regression (#6682)
## Motivation for features / changes
There was a regression associated with the new runs table which meant
that changing the color of a run immediately closed the color picker.
## Technical description of changes
Previously the runs table did not have a dependency on the metrics
state. Now that it does, changing the color of a run leads to a state
change which then in turn rerenders the row and thus closed the color
picker.
The state dependency is important so that cannot be undone, however, we
don't actually need to re render the rows when the color changes so I've
update the render logic to ignore the `color` attribute (I know it's a
little hacky).
## Screenshots of UI changes (or N/A)
Before:

After - With Paint Flashing

After - Without Paint Flashing

## Detailed steps to verify changes work correctly (as executed by you)
1) Start tensorboard
2) Open the color picker
3) Change the color
4) Observe the color picker does not close
5) Check a row and observe that it is rerendered.
## Alternate designs / implementations considered (or N/A)1 parent dc05adf commit 200ba5e
File tree
3 files changed
+30
-1
lines changed- tensorboard/webapp/runs/views/runs_table
3 files changed
+30
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
130 | 142 | | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
358 | 375 | | |
0 commit comments