Network traffic: add graph reset behavior #806

Open
opened 2026-07-20 01:02:59 +00:00 by johnny9 · 0 comments
johnny9 commented 2026-07-20 01:02:59 +00:00 (Migrated from github.com)

Split from #611

This reset work was split out of #611 so it can be implemented and reviewed independently from the network traffic sampling lifecycle, hidden-update, range-preservation, and shutdown hardening covered there.

Code Gap

The QML network traffic page does not provide reset behavior equivalent to the Qt traffic graph.

Reset applies to the graph's sampling history, not the node's cumulative network totals. The Qt behavior clears the incoming/outgoing history and peak scale, rebases the previous received/sent counters to the node's current totals, and continues sampling without producing a spike from lifetime traffic.

Work Needed

  • Add a reset action to the QML network traffic page.
  • Clear received/sent graph history and the derived peak/scale state.
  • Rebase graph sampling to the node's current received/sent totals.
  • Keep the cumulative received and sent totals unchanged.
  • Preserve the selected time range across reset.
  • Add coverage for reset while sampling is active and reset after changing the time range.
  • Split from #611.
  • The lifecycle and hidden-update optimization work remains in #611 and PR #805.
## Split from #611 This reset work was split out of #611 so it can be implemented and reviewed independently from the network traffic sampling lifecycle, hidden-update, range-preservation, and shutdown hardening covered there. ## Code Gap The QML network traffic page does not provide reset behavior equivalent to the Qt traffic graph. Reset applies to the graph's sampling history, not the node's cumulative network totals. The Qt behavior clears the incoming/outgoing history and peak scale, rebases the previous received/sent counters to the node's current totals, and continues sampling without producing a spike from lifetime traffic. ## Work Needed - Add a reset action to the QML network traffic page. - Clear received/sent graph history and the derived peak/scale state. - Rebase graph sampling to the node's current received/sent totals. - Keep the cumulative received and sent totals unchanged. - Preserve the selected time range across reset. - Add coverage for reset while sampling is active and reset after changing the time range. ## Related - Split from #611. - The lifecycle and hidden-update optimization work remains in #611 and PR #805.
Sign in to join this conversation.
No description provided.