You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: machines are named <first>-<hostname>-<id>, and Integrations uses the window
Two things a board owes you, neither of which it was doing.
**A machine you can tell apart.** The portal sent the literal string "machine"
as the label for every registration, so the server's collision suffix did the
naming and a fleet came out as "machine", "machine · 2", "machine · 11" — names
that say nothing about whose machine it is or which one it is. The hostname was
being reported all along; it arrived at enrolment and was written to the record
and never used for anything a person reads.
Naming now happens where the facts are. Registration mints the uid and the
owner's first name and produces `sankara-pending-k3f9dq`; enrolment, which is
the one moment the hostname exists, rewrites it to
`sankara-sankaras-macbook-pro-k3f9dq`. Same uid on both sides, so a card that
gained a real name is recognisably the same card. The rules live in
shared/machine-name.mjs because the two ends of that handshake have to agree.
Machines that enrolled before any of this are the entire existing fleet, so
they are renamed the first time their owner loads the board — the only place
holding both the email and the recorded hostname. It is guarded three ways:
auto-generated names only, the caller's own rows only (the super admin sees
every account's), and only when the name would actually change.
A name a person typed is never touched, and renaming by hand opts a machine
out permanently.
**The right-hand third of the Integrations page.** `.mkt-page` set
`max-width: none` to opt out of the 1180px reading width, but `.adm-page--wide`
declares the same specificity later in the file and won outright, so a card
grid — the one layout here that genuinely wants the whole window — was capped
and left-aligned with a dead band beside it. Fixed with a compound selector.
Card chips now show the part of the name that differs, since every machine on
a board shares an owner prefix and a uid nobody reads.
install.sh takes TOKENHUD_HOST for a box whose real hostname is not the name
you think of it by, and says which name it is about to report.
0 commit comments