From 5c834b05a13e5876a515a98d6023ea4a33aef4e1 Mon Sep 17 00:00:00 2001
From: Jen <45193617+jengu288@users.noreply.github.com>
Date: Tue, 16 Jan 2024 18:05:56 -0800
Subject: [PATCH 1/4] Modify badge notification to indicate next vote causes
action
---
client/src/components/gameShared/NotificationCount.vue | 8 +++++++-
client/src/components/responseMatching/DisputeIcon.vue | 7 +++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/client/src/components/gameShared/NotificationCount.vue b/client/src/components/gameShared/NotificationCount.vue
index b4025db..3ddfe9e 100644
--- a/client/src/components/gameShared/NotificationCount.vue
+++ b/client/src/components/gameShared/NotificationCount.vue
@@ -1,8 +1,10 @@
+ class="rounded-pill badge bg-orange d-inline-flex align-items-center justify-content-center p-0"
+ :class="{ 'bg-blue': !nextMajority }">
+ {{ nextMajority }}
@@ -14,6 +16,10 @@ export default defineComponent({
width: {
type: Number,
default: 24
+ },
+ nextMajority: {
+ type: Boolean,
+ default: false
}
},
computed: {
diff --git a/client/src/components/responseMatching/DisputeIcon.vue b/client/src/components/responseMatching/DisputeIcon.vue
index a001456..75cb13b 100644
--- a/client/src/components/responseMatching/DisputeIcon.vue
+++ b/client/src/components/responseMatching/DisputeIcon.vue
@@ -6,8 +6,11 @@
:disabled="disabled"
@click="sendVote">
-
-
+
{{ $n(sikeDisputeCount) }}
From c3190ebe59558b2393ba1cad2572f88e0ae4aea9 Mon Sep 17 00:00:00 2001
From: Jen <45193617+jengu288@users.noreply.github.com>
Date: Tue, 16 Jan 2024 23:18:16 -0800
Subject: [PATCH 2/4] Expand badge modification to other voting places
---
client/src/components/endRound/EndRound.vue | 5 ++++-
client/src/components/gameShared/NotificationCount.vue | 5 ++---
client/src/components/promptResponse/VoteSkip.vue | 3 ++-
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/client/src/components/endRound/EndRound.vue b/client/src/components/endRound/EndRound.vue
index f75c921..68980f1 100644
--- a/client/src/components/endRound/EndRound.vue
+++ b/client/src/components/endRound/EndRound.vue
@@ -8,7 +8,10 @@
:class="{ 'btn-blue': !startNextRoundNext }"
@click="sendVote">
{{ hasNextRound ? $t('startNextRound') : $t('viewResults') }}
-
+
{{ $n(startNextRoundCount) }}
diff --git a/client/src/components/gameShared/NotificationCount.vue b/client/src/components/gameShared/NotificationCount.vue
index 3ddfe9e..8ef96ce 100644
--- a/client/src/components/gameShared/NotificationCount.vue
+++ b/client/src/components/gameShared/NotificationCount.vue
@@ -1,10 +1,9 @@
+ class="rounded-pill badge d-inline-flex align-items-center justify-content-center p-0"
+ :class="{ 'bg-blue': !nextMajority, 'bg-orange': nextMajority }">
- {{ nextMajority }}
diff --git a/client/src/components/promptResponse/VoteSkip.vue b/client/src/components/promptResponse/VoteSkip.vue
index 76e8850..110ec1b 100644
--- a/client/src/components/promptResponse/VoteSkip.vue
+++ b/client/src/components/promptResponse/VoteSkip.vue
@@ -9,7 +9,8 @@
+ class="position-absolute top-0 start-100 translate-middle fs-6"
+ :next-majority="skipVoteNext">
{{ $n(skipVoteCount) }}
From 918f947d9e11c4f1c3de270502a46fec69789b3a Mon Sep 17 00:00:00 2001
From: Jen <45193617+jengu288@users.noreply.github.com>
Date: Thu, 18 Jan 2024 00:15:49 -0800
Subject: [PATCH 3/4] Add logic to toggle button visual when voting
---
client/src/components/endRound/EndRound.vue | 5 +++--
.../src/components/promptResponse/VoteSkip.vue | 8 +++++---
.../components/responseMatching/DisputeIcon.vue | 5 +++--
server/.eslintrc.cjs | 16 ++++++++--------
4 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/client/src/components/endRound/EndRound.vue b/client/src/components/endRound/EndRound.vue
index 68980f1..2c29380 100644
--- a/client/src/components/endRound/EndRound.vue
+++ b/client/src/components/endRound/EndRound.vue
@@ -5,7 +5,7 @@