Repository navigation
ui/device-details - #254
Conversation
|
Other PRs in this stack, in order:
|
Yeah, that content grows too much indeed. I think we need a compromise there: show 5 or 6, and have a button/link to a new page with the complete list of updates. That will add a new tab at the top, "Updates". I noticed only now that there is a |
c0e5b40 to
3c8fd35
Compare
3c8fd35 to
79473cb
Compare
79473cb to
48f0c9c
Compare
af4acda to
6c33d05
Compare
a4d7ebb to
bb20644
Compare
8025b72 to
d78fbcd
Compare
de0c578 to
202c8d6
Compare
202c8d6 to
6d0c875
Compare
Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Old /configs/device/:uuid GET routes now 301-redirect to /devices/:uuid/configs (and related). PATCH/DELETE and history also moved. No handler logic changed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Update template hrefs to use new URL structure: - /configs/device/:uuid -> /devices/:uuid/configs - /configs/device/:uuid/applied -> /devices/:uuid/applied-configs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Give roughly a third of seeded devices 10-15 fake update-history entries so the device's Update History page isn't always sparse, while leaving the rest empty so it stays realistic. About one in five entries is seeded as a failed install for visual variety. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
devicesUpdateGet used to hand the template raw DeviceUpdateEvent
data and let it slice DeviceTime with {{slice $step.DeviceTime 11 19}}
to get a clock-only timestamp. That slice has no bounds checking, so
a malformed or unexpectedly short DeviceTime from the gateway would
panic the template render instead of degrading gracefully.
buildUpdateSteps now formats each step's Time in Go (time.Format,
which can't panic) and exposes it as a plain field, alongside the
existing per-step Elapsed/Failed. Also documents that the aggregate
`failed` return value is an all-or-nothing rollup: any single event
reporting Success == false marks the whole update as failed, even if
later steps succeeded — there is no partial-success state in this UI.
Added TestBuildUpdateStepsClampsNegativeElapsed to cover the existing
elapsed-time clamp when events arrive out of order.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
Use device indexes for sample variation so seed data remains reproducible and avoids non-cryptographic randomness warnings. Signed-off-by: Milo Casagrande <mcasagra@qti.qualcomm.com>
6d0c875 to
9245986
Compare

feat: redesign device detail page with new layout
Signed-off-by: Milo Casagrande mcasagra@qti.qualcomm.com