connectors: quieter chips, 3-line descriptions, single access-grant surface
Nightly Build / build (push) Successful in 7m2s

Row descriptions clamp at three lines instead of one. Metadata chips
(scope/type/auth) lose the loud accents — only status chips keep colour —
and the auth chip speaks human ("Requires an API key") instead of the
raw enum, via a shared authLabel().

Drop the access-grant section from the connector detail page: the Users
page modal already grants both global and per-user connectors, so
"who has what" now has a single surface.
This commit is contained in:
2026-07-27 21:28:17 +01:00
parent b198ac923b
commit 776748435b
8 changed files with 39 additions and 94 deletions
+11
View File
@@ -34,6 +34,17 @@ export function statusText(status) {
}[status] ?? status;
}
/// The auth requirement as a human phrase ("Requires an API key"), never the raw
/// enum — `api_key` on a chip told the reader nothing.
export function authLabel(kind) {
return {
api_key: t('connectors.chip.auth.api_key'),
oauth: t('connectors.chip.auth.oauth'),
qr: t('connectors.chip.auth.qr'),
ssh_key: t('connectors.chip.auth.ssh_key'),
}[kind] ?? kind;
}
/// The one place that decides what a connector's state *is*, from whichever runtime
/// rows exist for it.
///