Commit 189e0f8
authored
Adds new
## Motivation for features / changes
Before enabling context menus for scalar card tables, it will be useful
to explicitly distinguish the two different removal related column
interactions that are currently available: "remove" and "hide".
"Removed" columns must be re-added to display again (this is what's
currently done for hparams in the runs table). "Hidden" columns can be
re-enabled via the "edit table columns" (this is only available in
scalar tables).
Distinguishing these two operations also provides an easy way to provide
similar but different hparam columns for the runs and scalar tables:
first add the hparams that you need to both tables, then hide the ones
you don't need in the scalar tables.
## Technical description of changes
- adds a `hidable` property to the ColumnHeader type.
- properly initializes ColumnHeader context menu options in the runs and
metrics reducers, and overrides any options set in localstorage. This
will effectively turn context options into static, system-defined
features.
- disables movability and removability for RUN columns. This should have
negligible impact on usability while allowing us to define useful column
orderings such as `| run | hparam_columns | other_columns |`
## Detailed steps to verify changes work correctly (as executed by you)
- Unit tests passhidable context menu option for ColumnHeaders (#6729)1 parent 5f778fe commit 189e0f8
File tree
6 files changed
+74
-142
lines changed- tensorboard/webapp
- metrics/store
- persistent_settings/_data_source
- runs/store
- widgets/data_table
6 files changed
+74
-142
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
| 291 | + | |
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
296 | | - | |
| 298 | + | |
297 | 299 | | |
298 | 300 | | |
| 301 | + | |
299 | 302 | | |
300 | 303 | | |
301 | 304 | | |
302 | 305 | | |
303 | 306 | | |
304 | 307 | | |
305 | | - | |
| 308 | + | |
306 | 309 | | |
307 | 310 | | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
312 | 316 | | |
313 | 317 | | |
314 | | - | |
| 318 | + | |
315 | 319 | | |
316 | 320 | | |
| 321 | + | |
317 | 322 | | |
318 | 323 | | |
319 | 324 | | |
| |||
322 | 327 | | |
323 | 328 | | |
324 | 329 | | |
325 | | - | |
| 330 | + | |
326 | 331 | | |
327 | 332 | | |
| 333 | + | |
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
332 | 338 | | |
333 | 339 | | |
334 | | - | |
| 340 | + | |
335 | 341 | | |
336 | 342 | | |
| 343 | + | |
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
340 | 347 | | |
341 | 348 | | |
342 | 349 | | |
343 | | - | |
| 350 | + | |
344 | 351 | | |
345 | 352 | | |
| 353 | + | |
346 | 354 | | |
347 | 355 | | |
348 | 356 | | |
349 | 357 | | |
350 | 358 | | |
351 | 359 | | |
352 | | - | |
| 360 | + | |
353 | 361 | | |
354 | 362 | | |
| 363 | + | |
355 | 364 | | |
356 | 365 | | |
357 | 366 | | |
358 | 367 | | |
359 | 368 | | |
360 | 369 | | |
361 | | - | |
| 370 | + | |
362 | 371 | | |
363 | 372 | | |
| 373 | + | |
364 | 374 | | |
365 | 375 | | |
366 | 376 | | |
367 | 377 | | |
368 | 378 | | |
369 | 379 | | |
370 | | - | |
| 380 | + | |
371 | 381 | | |
372 | 382 | | |
| 383 | + | |
373 | 384 | | |
374 | 385 | | |
375 | 386 | | |
376 | 387 | | |
377 | 388 | | |
378 | 389 | | |
379 | | - | |
| 390 | + | |
380 | 391 | | |
381 | 392 | | |
| 393 | + | |
382 | 394 | | |
383 | 395 | | |
384 | 396 | | |
385 | 397 | | |
386 | 398 | | |
387 | 399 | | |
388 | | - | |
| 400 | + | |
389 | 401 | | |
390 | 402 | | |
| 403 | + | |
391 | 404 | | |
392 | 405 | | |
393 | 406 | | |
394 | 407 | | |
395 | 408 | | |
396 | 409 | | |
397 | | - | |
| 410 | + | |
398 | 411 | | |
399 | 412 | | |
| 413 | + | |
400 | 414 | | |
401 | 415 | | |
402 | 416 | | |
403 | 417 | | |
404 | 418 | | |
405 | 419 | | |
406 | | - | |
| 420 | + | |
407 | 421 | | |
408 | 422 | | |
| 423 | + | |
409 | 424 | | |
410 | 425 | | |
411 | 426 | | |
412 | 427 | | |
413 | 428 | | |
414 | 429 | | |
415 | | - | |
| 430 | + | |
416 | 431 | | |
417 | 432 | | |
| 433 | + | |
418 | 434 | | |
419 | 435 | | |
420 | 436 | | |
421 | 437 | | |
422 | 438 | | |
423 | 439 | | |
424 | | - | |
| 440 | + | |
425 | 441 | | |
426 | 442 | | |
| 443 | + | |
427 | 444 | | |
428 | 445 | | |
429 | 446 | | |
430 | 447 | | |
431 | 448 | | |
432 | 449 | | |
433 | | - | |
| 450 | + | |
434 | 451 | | |
435 | 452 | | |
| 453 | + | |
436 | 454 | | |
437 | 455 | | |
438 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Lines changed: 22 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
24 | 44 | | |
25 | 45 | | |
26 | 46 | | |
| |||
217 | 237 | | |
218 | 238 | | |
219 | 239 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 240 | + | |
226 | 241 | | |
227 | 242 | | |
228 | 243 | | |
| |||
231 | 246 | | |
232 | 247 | | |
233 | 248 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
| 249 | + | |
240 | 250 | | |
241 | 251 | | |
242 | 252 | | |
| |||
0 commit comments