From 17b04b7d51986ac62bbd43930d17adbc7379f31a Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 26 Jun 2023 18:30:13 +0100 Subject: [PATCH 01/10] Nit for dear Wanda. --- components/ChatMessageDateRead.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/ChatMessageDateRead.vue b/components/ChatMessageDateRead.vue index 3d64e43d..32d011ca 100644 --- a/components/ChatMessageDateRead.vue +++ b/components/ChatMessageDateRead.vue @@ -31,6 +31,7 @@ RSVP - reply expected @@ -96,6 +97,7 @@ RSVP - reply requested From 2f03247a2b2c451dba28bf95de93f52b34c000fc Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 26 Jun 2023 20:49:39 +0100 Subject: [PATCH 02/10] Refresh chat when unseen count changes so new messages show faster --- components/ChatHeader.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/ChatHeader.vue b/components/ChatHeader.vue index 23ed7cde..41909419 100644 --- a/components/ChatHeader.vue +++ b/components/ChatHeader.vue @@ -317,6 +317,13 @@ export default { return ret }, }, + watch: { + unseen() { + // Make sure the chat is up to date. This helps in the case where pollForChatUpdates picks up a new + // message and so we show that the chat has unread messages, but we haven't yet + this.chatStore.fetchMessages(this.id) + }, + }, methods: { async hide() { console.log('Hide chat') From 56721055e9f02acbe25b6218a1c37fee22f9eb4b Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 26 Jun 2023 20:56:03 +0100 Subject: [PATCH 03/10] Allow easy sending of a message to everyone else who replied. --- components/OutcomeBy.vue | 4 +-- components/OutcomeModal.vue | 64 +++++++++++++++++++++++++++++++++++-- 2 files changed, 62 insertions(+), 6 deletions(-) diff --git a/components/OutcomeBy.vue b/components/OutcomeBy.vue index a61863ee..e9f0b42b 100644 --- a/components/OutcomeBy.vue +++ b/components/OutcomeBy.vue @@ -67,8 +67,7 @@ />

- We'll let anyone else who replied know, and it helps us identify reliable - freeglers. + This helps us identify reliable freeglers.

@@ -222,7 +221,6 @@ export default { }) } else if (userid > 0) { const user = this.availableUsers.find((u) => u.userid === userid) - console.log('Found', user) user.count = 1 this.currentlySelectedUsers.push(user) } diff --git a/components/OutcomeModal.vue b/components/OutcomeModal.vue index 07d73cd2..f9207086 100644 --- a/components/OutcomeModal.vue +++ b/components/OutcomeModal.vue @@ -61,6 +61,23 @@ />
+
+ + +
+