Every stage that matters mails the person who sent it
Lint and reload / lint (push) Skipped

The brief, the trial and a custody case tell the submitter when they
arrive and when they are decided; the sender is portal@uhhm.no with
replies to bl@uhhm.no. Built by portal-trainer from plans/uhhm.yaml
with `mails:` on the needs; pins to portal and iris v0.3.44.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Bendik Aagaard Lynghaug
2026-09-23 21:19:10 +02:00
co-authored by Claude Fable 5.1
parent 8b4e6e053b
commit 77b62afaa2
4 changed files with 99 additions and 2 deletions
+92
View File
@@ -27,12 +27,39 @@ aggregates:
states:
declined:
event: declined
mail:
body: |-
Hello {name},
What you sent about an answer from a custodian, and action where the network keeps something it should not is now declined.
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Declined'
to: submitter
in_dialogue:
event: in_dialogue
open:
event: received
mail:
body: |-
Hello {name},
We have received what you sent about an answer from a custodian, and action where the network keeps something it should not.
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Open'
to: submitter
resolved:
event: resolved
mail:
body: |-
Hello {name},
What you sent about an answer from a custodian, and action where the network keeps something it should not is now resolved.
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Resolved'
to: submitter
transitions:
in_dialogue:
- resolved
@@ -73,10 +100,39 @@ aggregates:
states:
accepted:
event: accepted
mail:
body: |-
Hello {name},
What you sent about a considered reply to a brief, from people who read the whole thing is now accepted.
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Accepted'
to: submitter
declined:
event: declined
mail:
body: |-
Hello {name},
What you sent about a considered reply to a brief, from people who read the whole thing is now declined.
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Declined'
to: submitter
open:
event: submitted
mail:
body: |-
Hello {name},
We have received what you sent about a considered reply to a brief, from people who read the whole thing.
What you can do next: {site}/decide/commission?chain={chain}&email={email}
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Open'
to: submitter
transitions:
open:
- accepted
@@ -98,12 +154,48 @@ aggregates:
states:
approved:
event: approved
mail:
body: |-
Hello,
What you sent about a first draft of a site for their own roles, built from their own words and approved by a person first is now approved.
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Approved'
to: submitter
declined:
event: declined
mail:
body: |-
Hello,
What you sent about a first draft of a site for their own roles, built from their own words and approved by a person first is now declined.
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Declined'
to: submitter
open:
event: received
mail:
body: |-
Hello,
We have received what you sent about a first draft of a site for their own roles, built from their own words and approved by a person first.
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Open'
to: submitter
previewed:
event: previewed
mail:
body: |-
Hello,
What you sent about a first draft of a site for their own roles, built from their own words and approved by a person first is now previewed.
Bendik Aagaard Lynghaug at bl@uhhm.no
subject: 'UHHM: Previewed'
to: submitter
transitions:
approved:
- previewed