Skip to main content

Module devices

Module devices 

Source
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§

CohortGroup
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.
CohortMapEntry
One entry of the durable cohort map (persists beyond session expiry). Mirrors the server’s DeviceCohort.
DeviceEntry
One active session (“device”) from the session listing. Mirrors the server’s Device; id is the session id, cohort_hash its advisory grouping value (absent when the client asserted none).
DevicesView
The devices ledger grouped by cohort — what the devices screen renders.
SessionListing
The GET /devices body: active sessions plus the durable cohort map.
SupportBundle
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.
SupportBundleEntry
One session’s row in a SupportBundle.

Enums§

Recognition
How the UI should recognize a cohort group.