Skip to content

Dashboard UI follow-up for ping metrics - #21

Open
Nini-50 wants to merge 2 commits into
nini-50-task-2-udp-scaffoldfrom
nini-50-dashboard-ui
Open

Dashboard UI follow-up for ping metrics#21
Nini-50 wants to merge 2 commits into
nini-50-task-2-udp-scaffoldfrom
nini-50-dashboard-ui

Conversation

@Nini-50

@Nini-50 Nini-50 commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • move Home connectivity dashboard UI updates into a dedicated PR
  • keep PR Task 2: Implement UDP ping scaffold #20 focused on ping implementation internals
  • include dashboard styling and metric tile layout refinements

Notes

  • This PR is intentionally stacked on top of Task 2: Implement UDP ping scaffold #20 (nini-50-task-2-udp-scaffold) so it only contains UI/dashboard changes.
  • After Task 2: Implement UDP ping scaffold #20 merges, this PR can be retargeted to main if needed.
  • Custom Ping currently shows -- ms until PING_SERVER_ADDRESS points to a reachable endpoint (default is google.com:443, and the ping packet protocol requires a compatible server response).

Testing

  • ./gradlew --no-daemon :app:compileDevDebugKotlin
  • ./gradlew --no-daemon :app:testDevDebugUnitTest --tests "com.lcl.lclmeasurementtool.features.ping.PingCodecTest"

Screenshots

  • Home (before run)
Screenshot 2026-08-09 at 12 01 57 PM
  • Home (during run)
Screenshot 2026-08-09 at 12 08 09 PM
  • Home (after run)
Screenshot 2026-08-09 at 12 08 40 PM
  • History (saved result)
Screenshot 2026-08-09 at 12 09 37 PM

Nini-50 and others added 2 commits August 9, 2026 11:59
- Add PingConstants with placeholder server address, ping count and timeout
- Add _pingPacketLoss and _pingRttResult StateFlows to MainActivityViewModel
- Call Ping.start() after MLab test and populate flows with real results
- Reset ping state in resetMLabTestResult()
- Use real packet loss value when saving ConnectivityReportModel
- HomeScreen: collect ping flows and pass to ConnectivityCard
- ConnectivityCard: accept packetLoss and pingRtt params; replace hardcoded '0 % loss'

TODO: Replace PingConstants.PING_SERVER_ADDRESS with real server endpoint

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- restyle Home connectivity card to dashboard tile layout
- add live/pending status pill and stronger metric hierarchy
- set default ping endpoint constant to google.com:443

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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