fix(ui): link a device to the source it registered through - #7072
Conversation
|
Claude finished @gustavosbarreto's task in 50s —— View job Code Review CompleteReviewed 3 files across code quality, security, testing, language patterns, and architecture — no new issues found. The code looks good as-is. A few things I checked and liked:
To request another review round, comment |
|
A few things to fix before merge.
|
The device page answered "registered via" with the word Deprecated and nothing else, for the tenant-only path the install script uses by default. The name now comes from one function shared with the keys list, so the two views cannot drift, and it links to that key's activity, where this device's registration record lives. The deprecation badge does not come along. Whether the mechanism is on its way out is a fact about the key, actionable on the keys list; on a device it answers a question nobody asked here.
5570187 to
e4ff60c
Compare
|
Pushed. The change is not what you reviewed: the badge is gone from the device page entirely, and the source is now a link to the key's activity. The tautological test. Right, and it went further than you asked. Both sides of that assertion read No test covers the row that regressed. This is the one that mattered. It now lives in
The duplicated badge rule. Moot now, and the reason is worth stating: the device page no longer decides whether a source is deprecated, because it no longer says so. The wrapper span. Gone with the badge. The field is a single |
REGISTERED VIAon the device page rendered<DeprecatedBadge />alone for an enrollment whose source is the tenant-only path, so the field answeredDeprecatedand named no source at all. That path is what the install script uses when no install key is given, which makes it the most common device in a namespace.The name now comes from
enrollmentSourceName, which shares the two system-source labels withinstallKeyDisplayName, so what a device reports and what the keys list shows cannot drift apart. It links to that key's activity, where this device's registration record lives: what the agent reported, the key fingerprint, the decision. All three sources link, including the two system keys, which have activity pages like any other.The deprecation badge does not come along. Whether the mechanism is on its way out is a fact about the key, and the keys list is where it is actionable; on a device page it answers a question nobody asked there.