From a6930233a5a23c7cc8014f2b7c3c12a986a9db8b Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Thu, 1 Oct 2026 18:09:13 +0200 Subject: [PATCH] Invite to a conversation: a passkey with us and a time in the lobby on chat.uhhm.no Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt --- questions/review/index.yaml | 49 +++++++++++++++++++++++++++++++++++++ site.yaml | 6 +++++ 2 files changed, 55 insertions(+) diff --git a/questions/review/index.yaml b/questions/review/index.yaml index 2eb597c..48c4a1d 100644 --- a/questions/review/index.yaml +++ b/questions/review/index.yaml @@ -76,6 +76,55 @@ alternatives: type: textarea optional: true + # A guest for a conversation on chat.uhhm.no: an account at id.uhhm.no + # with a passkey of their own, a place in cnats_users (which is what + # lets someone into the lobby, where the video calls are), and a mail + # saying when to turn up. The link lasts 24 hours. + - name: Invite to a conversation + description: > + Someone you want to talk to on chat.uhhm.no. They get a mail with + a link to make a passkey with us (valid for 24 hours) and the time + to turn up in the lobby, where the video is. + consequence: [Send the invite] + invite: + group: cnats_users + mail: + subject: "Samtale med {site_name} {tidspunkt}" + body: |- + Hei {name}, + + Du er invitert til en samtale på chat.uhhm.no {tidspunkt}. + + Først lager du en passnøkkel hos oss. Åpne lenken under, legg + til en passnøkkel, og trykk «Save» til slutt. Uten Save blir + den ikke lagret. Lenken virker fram til {expires}: + + {link} + + Brukernavnet ditt er {username}. + + Når tiden er inne, går du til https://chat.uhhm.no, logger inn + med passnøkkelen og havner i lobbyen. Der trykker du på + videoknappen, så er vi der. + + {notat} + features: + - name: "" + description: Who, and when to meet in the lobby. + requirements: + - name: name + label: Name + - name: email + label: Email + type: email + - name: tidspunkt + label: When + type: datetime-local + - name: notat + label: A line for them (optional) + type: textarea + optional: true + - name: Projects description: "" action: /review diff --git a/site.yaml b/site.yaml index cfd7f56..6d0b6da 100644 --- a/site.yaml +++ b/site.yaml @@ -4,3 +4,9 @@ hero: kind: module module: hero.js + +# Mail goes out through gdo on this host, which sends over JMAP as +# bl@uhhm.no; replies come back to the same address. +mail: + from: "Bendik Lynghaug " + reply_to: bl@uhhm.no