Skip to content

Polish Server Health labels, dates, and closed-app gaps - #1116

Merged
ivanfenenko merged 2 commits into
mainfrom
fix/server-health-display-polish
Nov 23, 2026
Merged

ivanfenenko merged 2 commits into
mainfrom
fix/server-health-display-polish

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Polishes four display details on Server Health that #1102 left open.

  • Uptime tile (Android): with no open time in the range, the detail is blank instead of "of 0.0 s measured", as on iOS.
  • Axis labels: "1 h 0 m ago" and "7 d 0 h ago" now read "1 h ago" and "7 d ago". Only a zero trailing unit is dropped, so "1 h 5 m ago" stays. The existing "%@ ago" strings are reused.
  • Error log dates (iOS): dates drop the year and read "Mar 13, 3:03 PM", like Android. The range is at most 7 days, so the date stays unambiguous. The time moved up to the title line, because the "in a row" text still did not fit beside a shorter date.
  • Closed-app gaps: Latency, Connection, Reconnects, and the "App closed" legend swatch now share one striped treatment on both platforms. OpenCodeBarChart gains an optional unobservedSlots parameter, and the component gallery shows it.

Checks

  • iOS and Android both covered
  • Screenshots for UI changes: both platforms, light and dark, are in a comment. They were rendered from mock data through the real report builder and screen content.
  • Tests run: 52 Android and 63 iOS Server Health unit tests pass, including new tests for axis labels, the empty Uptime detail, and the compact log date.
  • ktlintCheck reports no violations in the changed Android files. The task still fails on existing violations elsewhere.

Evidence

See the screenshot comment on this pull request. It covers a closed-app gap with an error log, no open time, and a long "in a row" line.

Issue

No issue. Follow-up to #1102.

Risks / Follow-ups

  • The full app was not run against a live server.
  • "1 h ago" is covered by unit tests. The screenshots show "7 d ago" and "1 d 4 h ago".
  • The iOS no-open-time screenshots clip the footnote's last line at the image edge. This comes from the render host.
  • On the 7 d range a gap is one narrow slot, so its stripes are subtle in the Connection strip. The gap still reads as a break in the bars.
  • Android's system date format can still show the year for a date in the previous calendar year. iOS never shows it.
  • Android still shows "0 of 0 checks failed" on the Error rate tile with no open time, while iOS leaves it blank. This was out of scope and is unchanged.

Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Leave the Android Uptime detail blank with no open time, drop a zero
trailing unit from axis labels, shorten iOS error log dates, and draw
closed-app gaps with the same stripes in all three charts.
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

Server Health display polish

Rendered from mock data through the real report builder and screen content. iOS used a temporary iPhone 17 simulator and Android a temporary Pixel 7 emulator.

Closed-app gap with error log

Light Dark
iOS iOS gap, light iOS gap, dark
Android Android gap, light Android gap, dark

No open time

Light Dark
iOS iOS no open time, light iOS no open time, dark
Android Android no open time, light Android no open time, dark

Long "in a row" line

Light Dark
iOS iOS long line, light iOS long line, dark
Android Android long line, light Android long line, dark

Android formats this date and time through DateUtils, so it has no
matching string resource.

@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.

1 finding(s) from a single pass, not posted
  • android/app/src/main/java/dev/opencode/mobile/ui/components/chart/OpenCodeStatusStrip.kt:129 low: BarChart baseline drawn under unobserved stripes, unlike iOS (muse-spark-1.3-contributor)

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

@ivanfenenko
ivanfenenko added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 9f2c60c Nov 23, 2026
@ivanfenenko
ivanfenenko deleted the fix/server-health-display-polish branch November 23, 2026 14:56
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