Skip to content

feat: show the local buffer on the connected screen - #20

Merged
mikahatdichlieb merged 1 commit into
mainfrom
feat/buffer-status-screen
Oct 26, 2026
Merged

mikahatdichlieb merged 1 commit into
mainfrom
feat/buffer-status-screen

Conversation

@mikahatdichlieb

Copy link
Copy Markdown
Contributor

Summary

  • Adds a "View buffered entries" button on the connected screen, opening a local diagnostic list of what's still in the Room buffer (package name, collected time, duration), capped at the 200 most recent with a note when more are buffered.
  • GET /api/v1/events is session-auth only (see docs/wire-format.md); a device token can't use it, so this is a read of the device's own buffer only — no new data collected or sent.
  • README updated with the new feature.

Closes #19

Test plan

  • ktlintCheck, detekt, lint, testDebugUnitTest all pass (85 tests, 0 failures)
  • Manual check on a device: pair, let a few entries buffer, open the new screen, confirm the list and the truncation note (if any) look right

GET /api/v1/events is session-auth only (see docs/wire-format.md), so
a device token can't read anything back from the server. This adds a
purely local diagnostic view of what the buffer still holds, reachable
from the connected screen.
@mikahatdichlieb
mikahatdichlieb merged commit ee67740 into main Oct 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local buffer status screen

1 participant