Expand description
The devices-grouping view model and the one-tap support bundle.
Consumes the server’s GET /devices {devices, cohorts} body
into DevicesView — the session ledger grouped by device cohort so one physical
device’s re-enrollments collapse into a single row the UI renders. The copy is
assert-don’t-litigate: a group is labelled “a device you’ve used before (last
seen …)” with no “this isn’t my device” toggle, because the user cannot adjudicate
an advisory hash. The only dispute path is SupportBundle — the exact hash and
device/session map, bundled for a support report.
All copy lives as locales/ catalog keys (keys); the view model exposes
the key plus the structured data (timestamps), and the platform app resolves the
key through capsule-i18n. This module never formats a human string.
Modules§
- keys
- Catalog keys for the devices-grouping UI (namespace
device.cohort.*). Assert, do not litigate — the copy states recognition, it never asks the user to arbitrate.
Structs§
- Cohort
Group - One grouped device: every session that shares a cohort hash, collapsed into a single row with its recognition state and the durable first/last-seen span.
- Cohort
MapEntry - One entry of the durable cohort map (persists beyond session expiry). Mirrors the
server’s
DeviceCohort. - Device
Entry - One active session (“device”) from the session listing. Mirrors the server’s
Device;idis the session id,cohort_hashits advisory grouping value (absent when the client asserted none). - Devices
View - The devices ledger grouped by cohort — what the devices screen renders.
- Session
Listing - The
GET /devicesbody: active sessions plus the durable cohort map. - Support
Bundle - The one-tap dispute payload: the exact advisory cohort hash and the device/session map for a support report. Serializable and round-trippable so a client can attach it to a bug report verbatim.
- Support
Bundle Entry - One session’s row in a
SupportBundle.
Enums§
- Recognition
- How the UI should recognize a cohort group.