Skip to content

#467 - add duplicate time check and maintain sort array for deleting data keys#516

Open
bracyw wants to merge 14 commits intodevelopfrom
467-add-time-based-range-for-live-graphing
Open

#467 - add duplicate time check and maintain sort array for deleting data keys#516
bracyw wants to merge 14 commits intodevelopfrom
467-add-time-based-range-for-live-graphing

Conversation

@bracyw
Copy link
Collaborator

@bracyw bracyw commented Feb 10, 2026

Changes

Added time based range to graph screen (now set as default, with a toggle to switch to point based range). Ultimately it forced a change to data tracking in the graph-page component, which was never really needed (duplication of tracked data, which wouldn't leak, but contributed to more memory usage). Because of that I changed the data type slightly to only be observable in the part that needed observation - the data (via an ObservableGraphInfo interface)

Notes

The double data tracking was contributing to likely double the points being rendered in live mode. Which ultimately exposed a problem that would cause incorrect graphing if we ever got out of order points, now we have support for that edge case (via a binary insertion).

Also for another ticket I would like to now support dynamic refresh rate for slower laptops (or maybe if you are rendering longer periods of data in live mode)

Screenshots

Screenshot 2026-02-16 at 1 05 46 PM

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No package-lock.json changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #467

suryatho
suryatho previously approved these changes Feb 10, 2026
let lo = 0;
let hi = arr.length;
while (lo < hi) {
const mid = (lo + hi) >>> 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shift right while also flooring 😃

@bracyw bracyw requested a review from suryatho February 16, 2026 18:10
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.

Add time based range for live graphing

2 participants