feat(admin): surface a waiting update on Overview, put the share-expiry default next to the maximum it defers to #331
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/cluster-d"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deferred-items cluster D (#311 items 7 and 10).
Item 7 — Overview attention strip
Overview is where an admin looks to see whether the instance is fine. Until now the one thing that is not fine — a waiting update — was only discoverable by navigating to the Updates topic. The strip sits above the meters because it is the only thing on the page that asks you to act rather than reporting a fact.
Two implementation choices worth recording:
document.querySelector('#adminrail [data-topic="updates"]').click()reuses the exact path a user click takes, so the rail's active state cannot drift out of sync with what's on screen. The splice verifiesdata-topicactually exists on the rail first — otherwise this would ship as a silently dead button.It renders only when the check is enabled, an update is genuinely available, and a version string came back. A disabled or failing check shows nothing here; the Updates topic remains the place that explains why.
Item 10 — this was mostly already done
The deferred note said default share expiry "stays in Basic settings". That was stale:
SET_SLOTShas mappedset-f-expirytoadm-sharing-policysince slice B, so it already lives in Sharing. Rather than re-doing a move that had happened, here's what was actually still wrong:No pointer panel left behind in Basic, contrary to the mockup. A pointer exists to help people who learned the old location, and Cairn has no users yet who could have — it would be shipping a signpost to an address nobody has been to. Worth revisiting after the beta if anyone actually goes looking.
Gate:
node --checkon every script block,go vet ./...,go test ./...(webcheck guard included),go build ./cmd/cairnd. All three new i18n keys populated in all four languages.