From 9ebd8e169fee4d7617da5ed6a2acc0b94cee52cd Mon Sep 17 00:00:00 2001 From: hunterlong Date: Tue, 18 Aug 2020 20:42:55 -0700 Subject: [PATCH] ui updates --- CHANGELOG.md | 1 + frontend/src/assets/scss/base.scss | 26 +++++++++++- frontend/src/assets/scss/layout.scss | 9 ++++ frontend/src/assets/scss/variables.scss | 2 +- frontend/src/components/Index/Footer.vue | 17 +++++--- .../components/Index/GroupServiceFailures.vue | 42 ++++++++++++------- .../src/components/Index/IncidentsBlock.vue | 2 +- frontend/src/store.js | 1 + 8 files changed, 75 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14355d40..8795d2a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Added Version and Github Commit hash to left navigation on Settings page - Added "reason" for failures (will be used for more custom notification messages) [regex, lookup, timeout, connection, close, status_code] - Added Help page that is generated from Statping's Wiki repo on build +- Modified Service Group failures on index page to show 90 days of failures # 0.90.63 (08-17-2020) - Modified build process to use xgo for all arch builds diff --git a/frontend/src/assets/scss/base.scss b/frontend/src/assets/scss/base.scss index e5bc7242..27cbd526 100644 --- a/frontend/src/assets/scss/base.scss +++ b/frontend/src/assets/scss/base.scss @@ -103,11 +103,33 @@ background-color: #efefef; } +.divided { + display: flex; + align-items: center; + margin-bottom: 0; +} + +.divider { + flex-grow: 1; + border-bottom: 1px solid rgba(0,0,0,0.1); + margin: 0 20px 0 20px; +} + +.daily-failures { + position: absolute; + padding-top: 3px; + top: 10px; + right: 100px; + width: 300px; + height: 25px; +} + .service_day { height: 20px; margin-right: 2px; - border-radius: 4px; - max-width: 25px; + border-radius: 2px; + max-width: 30px; + cursor: pointer; } .service_day SPAN { diff --git a/frontend/src/assets/scss/layout.scss b/frontend/src/assets/scss/layout.scss index 101c9730..f29e74d0 100644 --- a/frontend/src/assets/scss/layout.scss +++ b/frontend/src/assets/scss/layout.scss @@ -131,3 +131,12 @@ A:HOVER { .footer A:HOVER { color: #6d6d6d; } + +.no-select { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} diff --git a/frontend/src/assets/scss/variables.scss b/frontend/src/assets/scss/variables.scss index f0a86cad..622a225d 100644 --- a/frontend/src/assets/scss/variables.scss +++ b/frontend/src/assets/scss/variables.scss @@ -15,7 +15,7 @@ $navbar-background: #ffffff; $input-background: #fdfdfd; $input-color: #4e4e4e; $input-border: 1px solid #c9c9c9; -$day-success-background: #20ac13; +$day-success-background: #e9e9e9; $day-error-background: #d50a0a; /* Status Container */ diff --git a/frontend/src/components/Index/Footer.vue b/frontend/src/components/Index/Footer.vue index 8a1d0bd3..62b1d816 100644 --- a/frontend/src/components/Index/Footer.vue +++ b/frontend/src/components/Index/Footer.vue @@ -1,12 +1,14 @@