From 4ba9378d6f5b4df7867f238fba3e99924c7649dc Mon Sep 17 00:00:00 2001 From: Andy Anderson Date: Mon, 5 Oct 2026 11:16:38 -0400 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20hub=20dashboard:=20match=20N?= =?UTF-8?q?PS=20section=20header=20styling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andy Anderson --- .../fixed-hub-nps-header-size-10600.md | 1 + src/pkg/hub/assets/dashboard.html | 22 ++++----- src/pkg/hub/nps_test.go | 45 +++++++++++++++++++ 3 files changed, 57 insertions(+), 11 deletions(-) create mode 100644 src/changelog.d/fixed-hub-nps-header-size-10600.md diff --git a/src/changelog.d/fixed-hub-nps-header-size-10600.md b/src/changelog.d/fixed-hub-nps-header-size-10600.md new file mode 100644 index 0000000000..3c57387540 --- /dev/null +++ b/src/changelog.d/fixed-hub-nps-header-size-10600.md @@ -0,0 +1 @@ +- Fixed the hub admin NPS feedback header so it matched sibling section sizing and summary weight. (#10600) diff --git a/src/pkg/hub/assets/dashboard.html b/src/pkg/hub/assets/dashboard.html index 582ba3c0ca..85eb22d790 100644 --- a/src/pkg/hub/assets/dashboard.html +++ b/src/pkg/hub/assets/dashboard.html @@ -484,11 +484,12 @@ } .admin-collapsible-section { margin-top: 48px; } .admin-collapsible-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); } - .admin-collapsible-title { color: var(--hub-dashboard-accent); margin: var(--sp-0); cursor: pointer; user-select: none; display: flex; align-items: center; gap: var(--sp-4); } + .admin-collapsible-title { font-size: 1.3rem; color: var(--hub-dashboard-accent); margin: var(--sp-0); cursor: pointer; user-select: none; display: flex; align-items: center; gap: var(--sp-4); } + .admin-collapsible-toggle { font-size: 0.7rem; } + .admin-collapsible-summary { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; } /* NPS feedback card (#9610). Admin-only; every value is set with textContent, so this block only lays out plain text nodes. Tokens only, per the style ratchet. */ - .nps-admin-title { font-size: var(--fs-md); color: var(--hub-dashboard-accent); font-weight: 600; margin-bottom: var(--sp-4); } .nps-admin-summary { font-size: var(--fs-sm); color: var(--text); margin-bottom: var(--sp-2); } .nps-admin-sub { font-size: var(--fs-xs); color: var(--muted); margin: var(--sp-4) 0 var(--sp-2); text-transform: uppercase; letter-spacing: 0.04em; } .nps-admin-row { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-2); font-size: var(--fs-xs); } @@ -639,8 +640,8 @@