From 0f43d6bb39a2daa9d8674a2e7cdfbc2f41638121 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 13:18:24 +0000 Subject: [PATCH] Keep signed-in account identity and Sign out visible The existing portal header clips the signed-in email on phones and grows beyond 320px. Reflow its full identity beside Sign out below the brand and theme control on narrow screens, and allow long addresses to wrap at all widths. Preserve all roster information, controls, native template, JavaScript and access rules. Comparable Chromium/WebKit captures and keyboard/theme/logout interactions verify the real embedded assets. Contract-Neutral: Reflow the existing portal header without changing routes, API fields, authentication, grants, billing or access behavior. Change-source: pulse-maintainer --- .../065c2475dcf5f534.json | 50 +++++++++++++++++++ .../cloudcp/portal/dist/build_manifest.json | 2 +- internal/cloudcp/portal/dist/portal_app.css | 46 +++++++++++++---- .../cloudcp/portal/frontend/src/styles.css | 30 +++++++++-- 4 files changed, 113 insertions(+), 15 deletions(-) create mode 100644 internal/cloudcp/portal/browser-verification/065c2475dcf5f534.json diff --git a/internal/cloudcp/portal/browser-verification/065c2475dcf5f534.json b/internal/cloudcp/portal/browser-verification/065c2475dcf5f534.json new file mode 100644 index 0000000000..c22b121fbc --- /dev/null +++ b/internal/cloudcp/portal/browser-verification/065c2475dcf5f534.json @@ -0,0 +1,50 @@ +{ + "schema_version": 1, + "parent": "ed6e696218b5226a8836f28a908328d943487143", + "content_fingerprint": "065c2475dcf5f534", + "verified_blobs": { + "internal/cloudcp/portal/dist/build_manifest.json": "6abb1053e09159fbdf093848707facf994c13539", + "internal/cloudcp/portal/dist/portal_app.css": "088f77be5d5fdeaf48729c3cce38d79530fa1179", + "internal/cloudcp/portal/frontend/src/styles.css": "74b2f01a53b2691bfee323595d07318fe46151a1" + }, + "verified_at": "2026-11-04T13:18:21.078874+00:00", + "surface": "Native embedded Pulse Account header through authenticated Access roster and signed-out no-email recovery", + "command": "pulse-worker-browser tmp/portal-header-evidence/verify.cjs", + "runtime": { + "playwright": "1.56.1", + "chromium": "141.0.7390.37", + "webkit": "26.0" + }, + "viewports": [ + { + "width": 1440, + "height": 1000, + "theme": "light" + }, + { + "width": 390, + "height": 844, + "theme": "light" + }, + { + "width": 320, + "height": 780, + "theme": "dark" + }, + { + "width": 768, + "height": 1024, + "theme": "dark" + } + ], + "checks": 385, + "result": "passed", + "fixture": "Unchanged native Go template and JS; real built CSS; reserved example.com/.net account/member identities; 254-character synthetic identity stress. Fixture-only GET bootstrap/roster and POST logout. No production, live accounts or external network.", + "comparisons": "Before: 320px page is 339px wide in both browsers, 390px identity ellipsized, maximum-length identity also overflows desktop (2019/2020px). After: whole identity, theme and single-line Sign out fit every tested width; glyph containment and unchanged main/header text pass. Theme persists; real keyboard logout POSTs once with empty body, reloads signed-out bootstrap and withdraws account controls.", + "captures": { + "count": 16, + "pairs": 8, + "location": "Current output captures/; originals captured before source edit, after captures use final CSS. All opened with native view_image; CAPTURES.md indexes comparable pairs." + }, + "limits": "CSS-only reflow; template/JS byte-identical to base. No API, authorization, grant, route, mail, customer/native/installed or release proof. Existing owner/Core/Delivery recovery and excluded investigations unchanged. Portal is outside the main-frontend guard classifier; its skip is not proof." +} diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json index 7b8491b8e7..6abb1053e0 100644 --- a/internal/cloudcp/portal/dist/build_manifest.json +++ b/internal/cloudcp/portal/dist/build_manifest.json @@ -1,5 +1,5 @@ { - "source_hash": "2177e9ac28672ec5773c2c4bfbc9d2e63dd6c3299290fa754761e6cc6a582a61", + "source_hash": "2ee796f61ddbe50e846bb292af39a5e41c526d8fc8bb00b50bfae7978bb5bf15", "build_inputs": [ "package.json", "tsconfig.json", diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.css index 731c60a7b0..088f77be5d 100644 --- a/internal/cloudcp/portal/dist/portal_app.css +++ b/internal/cloudcp/portal/dist/portal_app.css @@ -140,12 +140,13 @@ header { align-items: center; justify-content: space-between; gap: 12px; - height: var(--header-height); - padding: 0 24px; + min-height: var(--header-height); + padding: 10px 24px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); } header .brand { + flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--ink); @@ -155,8 +156,10 @@ header .brand { display: inline-flex; align-items: center; gap: 10px; + min-width: 0; } header .theme-toggle { + flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; @@ -178,10 +181,20 @@ header .theme-toggle:hover { display: inline-flex; align-items: center; gap: 8px; + min-width: 0; +} +.user-info { + min-width: 0; } .header-account-email { font-size: 13px; color: var(--ink-secondary); + min-width: 0; + overflow-wrap: anywhere; +} +header .logout-btn { + flex-shrink: 0; + white-space: nowrap; } header .logout-btn, .link-button, @@ -2033,7 +2046,7 @@ header .logout-btn:hover, } @media (max-width: 768px) { header { - padding: 0 16px; + padding: 10px 16px; } .main { padding: 0 16px 48px; @@ -2130,16 +2143,31 @@ header .logout-btn:hover, } @media (max-width: 480px) { header { - padding: 0 12px; + padding: 10px 12px; } .main { padding: 0 12px 40px; } - .header-account-email { - max-width: 120px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + header:has(.header-account-chip) { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + gap: 8px 10px; + padding: 8px 12px; + } + header:has(.header-account-chip) .header-controls { + display: contents; + } + header:has(.header-account-chip) .theme-toggle { + grid-column: 2; + grid-row: 1; + } + header:has(.header-account-chip) .user-info { + grid-column: 1 / -1; + grid-row: 2; + } + .header-account-chip { + display: flex; + justify-content: space-between; } .portal-identity-bar h2 { font-size: 16px; diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css index 43fc388aa0..74b2f01a53 100644 --- a/internal/cloudcp/portal/frontend/src/styles.css +++ b/internal/cloudcp/portal/frontend/src/styles.css @@ -131,13 +131,14 @@ header { align-items: center; justify-content: space-between; gap: 12px; - height: var(--header-height); - padding: 0 24px; + min-height: var(--header-height); + padding: 10px 24px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); } header .brand { + flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--ink); @@ -148,9 +149,11 @@ header .brand { display: inline-flex; align-items: center; gap: 10px; + min-width: 0; } header .theme-toggle { + flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; @@ -173,13 +176,20 @@ header .theme-toggle:hover { display: inline-flex; align-items: center; gap: 8px; + min-width: 0; } +.user-info { min-width: 0; } + .header-account-email { font-size: 13px; color: var(--ink-secondary); + min-width: 0; + overflow-wrap: anywhere; } +header .logout-btn { flex-shrink: 0; white-space: nowrap; } + /* ── Buttons ──────────────────────────────────────────────────── */ header .logout-btn, .link-button, @@ -1860,7 +1870,7 @@ header .logout-btn:hover, /* ── Responsive ───────────────────────────────────────────────── */ @media (max-width: 768px) { - header { padding: 0 16px; } + header { padding: 10px 16px; } .main { padding: 0 16px 48px; } .portal-tab-bar { overflow-x: auto; scrollbar-width: none; gap: 0; } @@ -1918,8 +1928,18 @@ header .logout-btn:hover, } @media (max-width: 480px) { - header { padding: 0 12px; } + header { padding: 10px 12px; } .main { padding: 0 12px 40px; } - .header-account-email { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } + /* Keep the full signed-in identity and Sign out visible together. */ + header:has(.header-account-chip) { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + gap: 8px 10px; + padding: 8px 12px; + } + header:has(.header-account-chip) .header-controls { display: contents; } + header:has(.header-account-chip) .theme-toggle { grid-column: 2; grid-row: 1; } + header:has(.header-account-chip) .user-info { grid-column: 1 / -1; grid-row: 2; } + .header-account-chip { display: flex; justify-content: space-between; } .portal-identity-bar h2 { font-size: 16px; } }