From 4666fae937e698fe14999462662a1c7bc16e7b48 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Tue, 1 Sep 2026 17:34:40 +0200 Subject: [PATCH] Review-desk for henvendelser (westra-gruppe) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /review er eierområdet, gated på westra-gruppa fra Kanidm; desken leser westra_inquiries og lar deg markere som besvart. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Y42TyF8Zu7NGRR2893vNcZ --- aggregates.yaml | 6 ++---- questions/review/_section.yaml | 3 +++ questions/review/index.yaml | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 questions/review/_section.yaml create mode 100644 questions/review/index.yaml diff --git a/aggregates.yaml b/aggregates.yaml index 3a8a466..3a52822 100644 --- a/aggregates.yaml +++ b/aggregates.yaml @@ -1,9 +1,7 @@ -# Contact-form submissions. Read them with the review desk once auth -# is wired on this instance, or `nats kv ls westra_inquiries` until -# then. +# Contact-form submissions, attended by the /review desk +# (owner-only, westra group). aggregates: - bucket: westra_inquiries - attended_by: Jørn, via nats kv on kasse until the review desk gets auth on this instance initial: open states: open: { event: received } diff --git a/questions/review/_section.yaml b/questions/review/_section.yaml new file mode 100644 index 0000000..21d2cf7 --- /dev/null +++ b/questions/review/_section.yaml @@ -0,0 +1,3 @@ +# Everything under /review is for the Westra team - gated on the +# `westra` group from Kanidm's groups claim. +qualifies: westra diff --git a/questions/review/index.yaml b/questions/review/index.yaml new file mode 100644 index 0000000..c8faf3a --- /dev/null +++ b/questions/review/index.yaml @@ -0,0 +1,24 @@ +# The Westra team's desk: everything the site records lands here. +name: Hva har kommet inn? +description: > + Henvendelser fra kontaktskjemaet, samlet på ett sted. +alternatives: + - name: Henvendelser + description: > + Meldinger sendt gjennom «Ta kontakt». Marker som besvart når du + har svart avsenderen — den blir liggende, men flyttes ut av + køen. + action: /review + consequence: [Marker] + features: + - name: "" + description: "" + resource: + source: + kind: kv + bucket: westra_inquiries + requires_group: westra + transitions: + - from: open + to: answered + label: Marker som besvart