From 1b416215697ae6c2b38bd33d6108c4f90eb1be20 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 30 Dec 2020 15:32:44 +0000 Subject: [PATCH] implement invites as a class, use tooltip for email send status the DOMInvite class represents an invite on the dom, and modifying its attributes applies the changes on the web page. Email send status message is now on the right of the invite and represented by an icon. Hovering reveals the "Sent to"/"Failed to send to" message. --- css/base.css | 4 + css/tooltip.css | 8 + html/admin.html | 201 +++++++++---------- ts/admin.ts | 9 +- ts/modules/common.ts | 20 +- ts/modules/invites.ts | 436 ++++++++++++++++++++++++++++++++++++++++++ ts/typings/d.ts | 13 +- 7 files changed, 585 insertions(+), 106 deletions(-) create mode 100644 ts/modules/invites.ts diff --git a/css/base.css b/css/base.css index 447b575..53f1bb0 100644 --- a/css/base.css +++ b/css/base.css @@ -135,6 +135,10 @@ sup.\~critical, .text-critical { color: var(--color-critical-normal-content); } +.grey { + color: var(--color-neutral-500); +} + .aside.sm { font-size: 0.8rem; padding: 0.8rem; diff --git a/css/tooltip.css b/css/tooltip.css index e398c5c..4566f30 100644 --- a/css/tooltip.css +++ b/css/tooltip.css @@ -16,9 +16,17 @@ position: absolute; z-index: 1; + top: -1rem; +} + +.tooltip.right .content { left: 120%; } +.tooltip.left .content { + right: 120%; +} + .tooltip .content.sm { font-size: 0.8rem; } diff --git a/html/admin.html b/html/admin.html index be0b4aa..f795f92 100644 --- a/html/admin.html +++ b/html/admin.html @@ -133,109 +133,112 @@
Invites -
-
-
- ZD8ZeC55Jcpmbtv54FuVM3 - Copy +
+
+
+
+ ZD8ZeC55Jcpmbtv54FuVM3 + + Failed to send to this.email@addre.ss +
+
+ Expires in 30m + Delete + +
-
- Expires in 30m - Delete - -
-
-
-
-
-

Profile

-
- +
+
+
+

Profile

+
+ +
+

Notify on:

+ +
-

Notify on:

- - -
-
-

Created 10/12/20 18:46

-

Remaining uses 8

-
-
- Created users - - - - - - - - - - - - - -
NameDate
jeff10/12/20 19:00
-
-
-
-
-
-
- -
- Expires in 30m - Delete - -
-
-
-
-
-

Profile

-
- +
+

Created 10/12/20 18:46

+

Remaining uses 8

-

Notify on:

- -
+
+
+
+
+ +
+ Expires in 30m + Delete +
-
-

Created 10/12/20 18:46

-

Remaining uses 8

-
-
- Created users -

None yet!

+
+
+
+
+

Profile

+
+ +
+

Notify on:

+ + +
+
+

Created 10/12/20 18:46

+

Remaining uses 8

+
+
+ Created users +

None yet!

+
@@ -356,7 +359,7 @@