fix: stabilize the header on first paint

Pass the installed version with the startup language so the renderer can display it before asynchronous initialization.

Seed and start the upload sparkline immediately, keep a fixed update-action slot across all update states, and remove the delayed automatic update check.

Add first-frame regression coverage for version, speed baseline, update geometry, and startup query behavior.
This commit is contained in:
Sucukdeluxe committed 2026-08-20 13:27:55 +02:00
1 parent c4c7907686
commit 6d458e37f3
9 files changed
+83 -25

No files matched your search

+17 -6
View File
@@ -2091,17 +2091,18 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
.header-update-button {
position: relative;
min-width: 106px;
width: 146px;
flex: 0 0 146px;
height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 0 12px;
border: 1px solid transparent;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--accent);
color: var(--accent-ink);
background: var(--bg-secondary);
color: var(--text-muted);
cursor: pointer;
font: inherit;
font-size: 12px;
@@ -2109,8 +2110,10 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
transition: background-color .14s, transform .14s;
}
.header-update-button[hidden] {
display: none;
.header-update-button.update-available {
border-color: transparent;
background: var(--accent);
color: var(--accent-ink);
}
.header-update-button::after {
@@ -2145,7 +2148,13 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
}
.header-update-button:hover {
background: var(--bg-card-hover);
color: var(--text);
}
.header-update-button.update-available:hover {
background: var(--accent-end);
color: var(--accent-ink);
}
.header-update-button:active {
@@ -2276,6 +2285,7 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
}
.version-badge {
min-width: 48px;
height: 32px;
display: flex;
align-items: center;
@@ -3987,6 +3997,7 @@ input[type="checkbox"] {
.header-update-button {
min-width: 34px;
width: 34px;
flex: 0 0 34px;
padding: 0;
}