From 1d9620a057cb77dcc1166ba1d8a795790f6fcfe9 Mon Sep 17 00:00:00 2001 From: Andy Anderson Date: Mon, 16 Nov 2026 10:11:17 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20meetings:=20Settings,=20Meeting=20a?= =?UTF-8?q?ttendee=20Email=20section=20wired=20to=20email-in=20(Betty=20C2?= =?UTF-8?q?,=20part=206)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Email section of Settings, Meeting attendee (#18417) is live once the calendar email allowlist is wired: SetMailAllowlist installs a MeetingsAttendeeEmail that reports each user's calendar emails with proof status (verified/pending), the mail-in files awaiting approval and the meetings.email switches. Each user adds, proves (code and instruction shown) and removes their own addresses under My calendar emails (GET/POST/DELETE /api/meetings/calendar-emails). The owner's switches save through PUT /api/meetings/persona with an optional email block (owner only, 403 otherwise). static/index.html regenerated; meetings.md and api-reference. Part of #18391, #18395. Signed-off-by: Andy Anderson --- .../added-18395-attendee-email-settings.md | 1 + src/docs/api-reference/knowledge.md | 2 +- src/docs/meetings.md | 2 +- src/pkg/dashboard/api_meetings_email.go | 10 +- .../dashboard/api_meetings_email_attendee.go | 69 ++++++++++++++ .../api_meetings_email_attendee_test.go | 93 +++++++++++++++++++ src/pkg/dashboard/api_meetings_persona.go | 17 ++++ src/pkg/dashboard/meeting_attendee_ui_test.go | 21 ++++- .../dashboard/settings_parity_allowlist.txt | 2 - .../static-src/css/meeting-attendee.css | 3 + .../static-src/js/meeting-attendee.js | 90 +++++++++++++++++- src/pkg/dashboard/static/index.html | 93 ++++++++++++++++++- 12 files changed, 384 insertions(+), 19 deletions(-) create mode 100644 changelog.d/added-18395-attendee-email-settings.md create mode 100644 src/pkg/dashboard/api_meetings_email_attendee.go create mode 100644 src/pkg/dashboard/api_meetings_email_attendee_test.go diff --git a/changelog.d/added-18395-attendee-email-settings.md b/changelog.d/added-18395-attendee-email-settings.md new file mode 100644 index 0000000000..5f1163cc9b --- /dev/null +++ b/changelog.d/added-18395-attendee-email-settings.md @@ -0,0 +1 @@ +- Settings, Meeting attendee now shows Betty's email address with everyone's calendar emails and proof status, lets each user add, prove and remove their own calendar emails, lists mailed-in files waiting for approval, and lets the owner turn calendar invites and mail-in files on or off. diff --git a/src/docs/api-reference/knowledge.md b/src/docs/api-reference/knowledge.md index b5caeb1888..cbaff06adc 100644 --- a/src/docs/api-reference/knowledge.md +++ b/src/docs/api-reference/knowledge.md @@ -111,7 +111,7 @@ Part of the [Dashboard REST API reference](../api-reference.md); see that page f | `POST` | `/api/meetings/actions/{aid}/approve` | Owner or read-write | Create the draft (issue or RFC on GitHub, Spek session through the Inbox `spek_rfc` destination, knowledge note in the `meetings` vault) and report the result to the meeting. Returns the draft, `done` with `result_url` or `failed` with `error`. 409 when it is not pending or failed, or action requests are off. Audited as `meeting_action_approve` | `pkg/dashboard/api_meetings_actions.go:73` | | `POST` | `/api/meetings/actions/{aid}/reject` | Owner or read-write | Reject a pending or failed draft; nothing is created. Audited as `meeting_action_reject` | `pkg/dashboard/api_meetings_actions.go:74` | | `GET` | `/api/meetings/persona` | Owner or read-write | Settings, Meeting attendee: `{effective, presets, overridden, voices, voice_types, restart_required, running, tts_configured, email}`. `effective` is the resolved persona (fields resolved as if on, `enabled` separately) with the rendered `intro` and `voice_on_address`; `presets` lists the built-in personas, the default first; `overridden` maps each `meetings.persona` key not taken from the preset or defaults to `config` or `env`; `voices` are the Kokoro voices with language, accent and voice type; `restart_required` is true when the saved persona differs from the one the hive booted with; `email` is the attendee address (`hive@`), the access list with registered calendar emails and proof status, the approval queue and the email-in switches (`available: false` until email-in is enabled). See [Meeting attendee settings](../meetings.md#meeting-attendee-settings) | `pkg/dashboard/api_meetings_persona.go:164` | -| `PUT` | `/api/meetings/persona` | Owner or read-write | Save `meetings.persona` to `hive.yaml`: `{enabled?, preset?, clear_overrides?, name?, display_name?, aliases?, pronouns?, language?, voice?, voice_type?, accent?, intro_template?, leave_phrases?, humor?, unprompted?: {per_10m?, min_gap_s?, per_meeting?, answer_wait_s?, min_confidence?, queue_depth?, stale_s?}, voice_on_address?}`. An absent field is unchanged, an empty one (or 0 for a cap) clears the override, a value equal to the preset's is stored as no override, and `clear_overrides` drops every field override first. Validated as if the persona were on; returns the GET body. 400 invalid. Audited as `meetings_persona` | `pkg/dashboard/api_meetings_persona.go:165` | +| `PUT` | `/api/meetings/persona` | Owner or read-write | Save `meetings.persona` to `hive.yaml`: `{enabled?, preset?, clear_overrides?, name?, display_name?, aliases?, pronouns?, language?, voice?, voice_type?, accent?, intro_template?, leave_phrases?, humor?, unprompted?: {per_10m?, min_gap_s?, per_meeting?, answer_wait_s?, min_confidence?, queue_depth?, stale_s?}, voice_on_address?}`. An absent field is unchanged, an empty one (or 0 for a cap) clears the override, a value equal to the preset's is stored as no override, and `clear_overrides` drops every field override first. Validated as if the persona were on; returns the GET body. 400 invalid. Audited as `meetings_persona`. An optional `email: {calendar_invites?, mail_in_files?}` sets `meetings.email.invites_enabled` / `files_enabled` (owner only, else 403; [#18395](https://github.com/hivecommons/hive/issues/18395)) | `pkg/dashboard/api_meetings_persona.go:165` | | `POST` | `/api/meetings/persona/sample` | Owner or read-write | Speak a short line through the meetings TTS service (Kokoro `POST /v1/audio/speech`) and return the audio (`audio/mpeg`, at most 2 MiB, `Cache-Control: no-store`). Optional `{voice?, language?, display_name?, text?}` (unsaved form values; `text` at most 200 characters, default the persona's sample line in its language). 503 "TTS not configured" until `meetings.tts_url` is set, 400 invalid, 502 the TTS service failed | `pkg/dashboard/api_meetings_persona.go:166` | | `GET` | `/api/meetings/persona/sample` | Owner or read-write | The same sample with `voice`, `language`, `display_name` and `text` as query parameters, for the dashboard's `