From c9c13137f42b5238a368a4fccf298983d451398b Mon Sep 17 00:00:00 2001 From: alexpaxton Date: Fri, 11 Jan 2019 14:05:44 -0800 Subject: [PATCH] Misc. UI Improvements (#11016) * Improve contrast of tabbed page tabs * Improve wording of "me" section * Update button copy * Update copy * Convert time machine tabs to button in page header * Move view type dropdown to page header * Update test snapshot * Cleanup component types --- ui/src/dashboards/components/VEOHeader.tsx | 4 ++ .../components/DataExplorerPage.tsx | 4 ++ ui/src/me/components/Resources.tsx | 6 +- ui/src/me/components/account/Account.tsx | 8 +-- .../__snapshots__/Account.test.tsx.snap | 8 +-- ui/src/pageLayout/containers/Nav.tsx | 14 ++-- ui/src/shared/components/TimeMachine.scss | 7 +- .../shared/components/TimeMachineBottom.tsx | 4 -- .../shared/components/TimeMachineControls.tsx | 4 -- .../components/TimeMachineQueriesSwitcher.tsx | 8 ++- ui/src/shared/components/TimeMachineTabs.tsx | 69 ------------------ ui/src/shared/components/VisOptionsButton.tsx | 71 +++++++++++++++++++ .../components/tabbed_page/TabbedPage.scss | 3 +- .../view_options/ViewTypeDropdown.tsx | 4 +- 14 files changed, 108 insertions(+), 106 deletions(-) delete mode 100644 ui/src/shared/components/TimeMachineTabs.tsx create mode 100644 ui/src/shared/components/VisOptionsButton.tsx diff --git a/ui/src/dashboards/components/VEOHeader.tsx b/ui/src/dashboards/components/VEOHeader.tsx index 2c9d8772d8..5342b636a3 100644 --- a/ui/src/dashboards/components/VEOHeader.tsx +++ b/ui/src/dashboards/components/VEOHeader.tsx @@ -11,6 +11,8 @@ import { IconFont, } from 'src/clockface' import {Page} from 'src/pageLayout' +import VisOptionsButton from 'src/shared/components/VisOptionsButton' +import ViewTypeDropdown from 'src/shared/components/view_options/ViewTypeDropdown' // Constants import { @@ -41,6 +43,8 @@ class VEOHeader extends PureComponent { /> + +