From 0822eadb7f46c34dc9595db7b9f6253235d1e02b Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Wed, 27 Mar 2024 19:49:17 +0100 Subject: [PATCH 1/2] feat(frontend): Add email share button --- .../app/core/info-table/info-table.component.html | 2 ++ .../app/core/info-table/info-table.component.ts | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/apps/frontend/src/app/core/info-table/info-table.component.html b/apps/frontend/src/app/core/info-table/info-table.component.html index 6628d6ab..a29b9bed 100644 --- a/apps/frontend/src/app/core/info-table/info-table.component.html +++ b/apps/frontend/src/app/core/info-table/info-table.component.html @@ -38,6 +38,8 @@   + @if (stats) { diff --git a/apps/frontend/src/app/core/info-table/info-table.component.ts b/apps/frontend/src/app/core/info-table/info-table.component.ts index 801c404a..e08edeb7 100644 --- a/apps/frontend/src/app/core/info-table/info-table.component.ts +++ b/apps/frontend/src/app/core/info-table/info-table.component.ts @@ -31,4 +31,19 @@ export class InfoTableComponent implements OnInit { this.toastService.error('Copy Poll Link', 'Failed to copy link to clipboard', e); }); } + + draftEmail() { + const subject = `Poll Invitation: ${this.poll!.title}`; + const body = `Hello, + +I would like to invite you to participate in a poll. +Please click the link below to participate. + +${this.url} + +Thank you!`; + + const mailto = `mailto:?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`; + open(mailto, '_self'); + } } From 3148d36ba5a7d9605767a368034a6bb2d953708e Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Wed, 27 Mar 2024 19:54:03 +0100 Subject: [PATCH 2/2] docs(frontend): Declare "Invite Participants" feature supported --- README.md | 8 ++++++++ apps/frontend/src/app/about/features/features.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b7363eca..9543ac62 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,14 @@ All features are completely free and can be used without registration.
Keep track of your polled events and 1-1 meetings using your favorite calendar app
+### Poll Management + +
+ send +
Invite Participants
+
Invite participants via email or other means
+
+ diff --git a/apps/frontend/src/app/about/features/features.json b/apps/frontend/src/app/about/features/features.json index 94e6c6be..8e6ebce8 100644 --- a/apps/frontend/src/app/about/features/features.json +++ b/apps/frontend/src/app/about/features/features.json @@ -151,7 +151,7 @@ "title": "Invite Participants", "description": "Invite participants via email or other means", "support": { - "Apollusia": "Simple link sharing is possible", + "Apollusia": true, "Doodle": true, "DuD-Poll": true }