From a65269fc1e687ef2a5bd2c37d9eeecdfce0cda07 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Thu, 22 Jun 2023 09:40:38 +0100 Subject: [PATCH 01/25] Fix SSR error. --- pages/engage.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/engage.vue b/pages/engage.vue index ead389d8..caba2b79 100644 --- a/pages/engage.vue +++ b/pages/engage.vue @@ -1,6 +1,8 @@ From ed397841459ba15af6869707df695178ee61bba4 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Sat, 24 Jun 2023 14:42:23 +0100 Subject: [PATCH 14/25] Remove debugging Sentry log --- error.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/error.vue b/error.vue index 35c1e36e..fe460ffa 100644 --- a/error.vue +++ b/error.vue @@ -54,8 +54,7 @@ From 74d673d731250c342f10be6d6d2ea076046d33e0 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Sat, 24 Jun 2023 15:06:49 +0100 Subject: [PATCH 15/25] Improve message reply layout a bit and add message about joining. --- components/MessageExpanded.vue | 1 - components/MessageReplySection.vue | 50 ++++++++++++++++++++++++++---- components/SettingsPhone.vue | 15 +++++++-- pages/settings/index.vue | 2 +- 4 files changed, 57 insertions(+), 11 deletions(-) diff --git a/components/MessageExpanded.vue b/components/MessageExpanded.vue index cc7320a5..506412e3 100644 --- a/components/MessageExpanded.vue +++ b/components/MessageExpanded.vue @@ -41,7 +41,6 @@ class="messagemap" :height="150" /> -
+

+ You're not yet a member of this community; we'll join you. Change emails + or leave communities from + Settings. +

+
+ Other freeglers won't see this. +
-

- We ask for your postcode so that we know how far away you are - the - closer the better. Your mobile is optional - we can notify you by text - (SMS) so you don't miss replies. We won't show it to the other - freegler. +

+ + Why do we ask for this? + + + We ask for your postcode so that we know how far away you are - the + closer the better. Your mobile is optional - we can notify you by + text (SMS) so you don't miss replies. We won't show either of these + to the other freegler, but we will show an approximate distance. +

@@ -174,6 +192,7 @@ export default { emailValid: false, showNewUser: false, newUserPassword: null, + showWhyAsk: false, } }, computed: { @@ -194,6 +213,21 @@ export default { fromme() { return this.message?.fromuser === this.myid }, + alreadyAMember() { + let found = false + + for (const messageGroup of this.message?.groups) { + Object.keys(this.myGroups).forEach((key) => { + const group = this.myGroups[key] + + if (messageGroup.groupid === group.id) { + found = true + } + }) + } + + return found + }, ...mapWritableState(useAuthStore, ['loggedInEver', 'forceLogin']), }, watch: { @@ -326,4 +360,8 @@ export default { :deep(.phone) { border: 2px solid $color-gray--normal !important; } + +.nobot { + margin-bottom: 0 !important; +} diff --git a/components/SettingsPhone.vue b/components/SettingsPhone.vue index 4d053531..c4cd2a4a 100644 --- a/components/SettingsPhone.vue +++ b/components/SettingsPhone.vue @@ -1,7 +1,11 @@ - -

- Sorry, we didn't find anything. Things come and go quickly, though, so - you could try later. Or you could: -

- -