Phase 10, part 6: Settings → Connections, with who connected each

Admins see every service Supermarket uses, whether it's connected,
failing or not set up, when it was last tested (every Test button now
records its result), and who connected or removed it and when. Keys and
sign-ins saved from the settings pages record the person; refreshed
tokens don't.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 09:15:43 -07:00
co-authored by Claude Opus 5.5
parent 2b9d04297f
commit a4dd36f5a4
12 changed files with 364 additions and 8 deletions
+16
View File
@@ -2293,6 +2293,22 @@ starts** (multi-tenant still doesn't).
htmx fragments outside SEO answer 403. (The log part of *done when*
comes with part 8.)
**Part 6 built 2026-11-25** on `phase10`.
- Settings → All connections (admins): each of the 17 services (the AI
provider, X, LinkedIn and its page, Reddit, YouTube, Search Console,
Bing, PageSpeed, Gitea, Plausible, Stripe, origami, explee, Hunter.io,
the outreach mailbox, Listmonk; and on local the Core and Hermes) with
what it's for, its state (connected, failing, not set up), when it was
last tested and how, who connected (or removed) it and when, and a link
to its page. Failing and connected come first.
- *Failing*: its page's Test button last failed (recorded by every Test
button), a sign-in has run out (LinkedIn), or Hermes hasn't checked in
for a day.
- Who connected what: keys saved on the settings pages and OAuth sign-ins
go through `setSecrets`, which records the person per service (settings
`connections:changed`). Tokens Supermarket refreshes itself aren't
counted. The existing pages stay where they were, behind admin access.
1. **Users and sessions.**
- Tables:
- `users`: email, name, kind (person or agent), status (invited,