connectors: quieter chips, 3-line descriptions, single access-grant surface
Nightly Build / build (push) Successful in 7m2s
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:
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user