From ed7ecb060e8f768d02d0189a3606f42eb07dd764 Mon Sep 17 00:00:00 2001 From: Divya Jain Date: Wed, 19 Oct 2022 17:40:40 +0530 Subject: [PATCH] Navbar Icons Improvements (#1246) Some improvements to the navbar icons. Changes Implemented: - Increase touch target size for navbar icons. - Make icon colors and hover effect consistent with navbar links - Added title for all navbar icons - New key (user.settings) in locales - Updated Dark and Light Mode values in locales - Minor tweaks in active builds indicator - New component NavbarIcon (because trying to match IconButton size and colors felt hacky at best) Co-authored-by: Divya Jain --- web/components.d.ts | 1 + web/src/assets/locales/en.json | 5 +- web/src/components/atomic/IconButton.vue | 8 +-- .../layout/header/ActivePipelines.vue | 36 +++++++----- web/src/components/layout/header/Navbar.vue | 53 ++++++++++-------- .../components/layout/header/NavbarIcon.vue | 55 +++++++++++++++++++ 6 files changed, 112 insertions(+), 46 deletions(-) create mode 100644 web/src/components/layout/header/NavbarIcon.vue diff --git a/web/components.d.ts b/web/components.d.ts index 4d68e8c43..caf10baec 100644 --- a/web/components.d.ts +++ b/web/components.d.ts @@ -65,6 +65,7 @@ declare module '@vue/runtime-core' { ListItem: typeof import('./src/components/atomic/ListItem.vue')['default'] ManualPipelinePopup: typeof import('./src/components/layout/popups/ManualPipelinePopup.vue')['default'] Navbar: typeof import('./src/components/layout/header/Navbar.vue')['default'] + NavbarIcon: typeof import('./src/components/layout/header/NavbarIcon.vue')['default'] NumberField: typeof import('./src/components/form/NumberField.vue')['default'] OrgSecretsTab: typeof import('./src/components/org/settings/OrgSecretsTab.vue')['default'] Panel: typeof import('./src/components/layout/Panel.vue')['default'] diff --git a/web/src/assets/locales/en.json b/web/src/assets/locales/en.json index 2817504b0..4b39e0582 100644 --- a/web/src/assets/locales/en.json +++ b/web/src/assets/locales/en.json @@ -10,8 +10,8 @@ "password": "Password", "url": "URL", "back": "Back", - "color_scheme_light": "Switch between dark and light mode (currently light mode)", - "color_scheme_dark": "Switch between dark and light mode (currently dark mode)", + "color_scheme_light": "Switch to dark mode", + "color_scheme_dark": "Switch to light mode", "unknown_error": "An unknown error occurred", "not_found": { "not_found": "Whoa 404, either we broke something or you had a typing mishap :-/", @@ -292,6 +292,7 @@ } }, "user": { + "settings": "User Settings", "oauth_error": "Error while authenticating against OAuth provider", "internal_error": "Some internal error occurred", "access_denied": "You are not allowed to login", diff --git a/web/src/components/atomic/IconButton.vue b/web/src/components/atomic/IconButton.vue index 9d2aaebc0..be10c026f 100644 --- a/web/src/components/atomic/IconButton.vue +++ b/web/src/components/atomic/IconButton.vue @@ -8,13 +8,7 @@ @click="doClick" > -
+
diff --git a/web/src/components/layout/header/ActivePipelines.vue b/web/src/components/layout/header/ActivePipelines.vue index 69e31ebd4..b988cd9af 100644 --- a/web/src/components/layout/header/ActivePipelines.vue +++ b/web/src/components/layout/header/ActivePipelines.vue @@ -1,18 +1,17 @@ diff --git a/web/src/components/layout/header/NavbarIcon.vue b/web/src/components/layout/header/NavbarIcon.vue new file mode 100644 index 000000000..987f6c5ce --- /dev/null +++ b/web/src/components/layout/header/NavbarIcon.vue @@ -0,0 +1,55 @@ + + + + +