Skip to content

Server Health: show only open-app time and add an error log - #1102

Merged
ivanfenenko merged 2 commits into
mainfrom
feature/server-health-open-time-error-log
Nov 23, 2026
Merged

ivanfenenko merged 2 commits into
mainfrom
feature/server-health-open-time-error-log

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Makes the Server Health page about the time the app was actually open, and adds a log of errors.

  • Timeline: Latency, Connection and Reconnects charts drop closed-app time at the ends of the range and shrink each gap between app sessions to one striped "App closed" slot. The axis shows when the first and last open stretch happened. A range with no open time shows one short message.
  • Error log: a new card lists failed health checks and live connection drops, newest first, with time and source. Consecutive failed checks of one category merge into one line ("4 in a row over 1 m"). It shows 8 lines, expands to the latest 100, and is hidden when there are no errors.
  • Data: built from what is already recorded, so there is no migration. The log has categories only, with no HTTP status or server message.

Checks

  • iOS and Android both covered
  • Screenshots for UI changes: both platforms are in a comment, rendered from mock data for the gap, error log, expanded log, no-errors and no-open-time states.
  • Tests run on this branch merged with main at 47d7257: 47 Android and 68 iOS Server Health unit tests pass.
  • Expanding the log works on both platforms. On iOS, a throwaway test confirmed the log collapses after passing through a range with no errors; it fails without the fix in this PR.

Risks / Follow-ups

  • The screens were rendered with mock data in test hosts. The full app was not run against a live server, and dark mode was not checked.
  • Only the Latency chart draws the gap with stripes. Connection shows a plain faint slot, and Reconnects shows an empty slot.
  • iOS log dates include the year and can wrap the "in a row" text; Android dates omit the year.
  • When the app was open at the start of a range, the axis reads "1 h 0 m ago" or "7 d 0 h ago" rather than the shorter range label.

Charts drop closed-app time at the ends of the range and shrink each gap
between app sessions to one marked slot. A new error log lists failed
health checks and live connection drops, newest first, with consecutive
failed checks merged into one line. Built from the data already recorded,
so there is no storage change.
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

Rendered with mock data. Android was not captured.

iOS: Server Health
iOS Server Health with collapsed closed-app gap and error log

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 3 passes agreed on.

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.121 · 1 pass(es) stopped early

@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

Server Health rendered on both platforms from mock data, through the real report builder and screen. Android ran on an API 37 emulator and iOS on an iOS 27.2 simulator, on this branch merged with main at 47d7257.

State iOS Android
Closed-app gap in the charts iOS charts with a closed-app gap Android charts with a closed-app gap
Error log, 8 lines iOS error log preview Android error log preview
Error log, expanded iOS expanded error log Android expanded error log
No errors, log hidden iOS with no errors Android with no errors
No open time in the range iOS with no open time Android with no open time

@ivanfenenko
ivanfenenko added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 654aba0 Nov 23, 2026
@ivanfenenko
ivanfenenko deleted the feature/server-health-open-time-error-log branch November 23, 2026 12:06
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.

1 participant