Skip to content

Conversation

@goodroot
Copy link
Contributor

@goodroot goodroot commented Mar 13, 2025

PR combines completed but unmerged PRs into a small bundle for testing and tidiness.

goodroot and others added 7 commits April 4, 2025 14:13
chore(browser-tests): stabilize CI
chore(browser-tests): Add Cypress Cloud config

needs testing, may remove
This reverts commit 1933954.
chore(web-console): reduce chart re-rendering

The current version of Metrics re-renders the charts more than it's needed due to how the method to generate the uPlot configuration object is executed. This PR ensures each chart widget is rendered one time per refresh cycle. This can be verified by putting on a logger in the onCreate method of the uPlot component.

Changes:

    Convert useGraphOptions to a method that is no longer a React hook, since there is no need to get the theme context in there anymore.
    Refresh the uPlot configuration object only when the data is changed (= per refresh cycle).
@emrberk emrberk force-pushed the kellen/pr-cleanup branch from a67740f to 73c5c1c Compare April 4, 2025 11:23
@emrberk emrberk merged commit cae8000 into main Apr 4, 2025
4 checks passed
@emrberk emrberk deleted the kellen/pr-cleanup branch April 4, 2025 13:08
Vaibhav91one pushed a commit to Vaibhav91one/ui that referenced this pull request Oct 28, 2025
…tdb#406)

* folds questdb#344

chore(browser-tests): stabilize CI

* folds questdb#345

chore(browser-tests): Add Cypress Cloud config

needs testing, may remove

* Revert "folds questdb#345"

This reverts commit 1933954.

* folds questdb#388

* folds questdb#389

chore(web-console): reduce chart re-rendering

The current version of Metrics re-renders the charts more than it's needed due to how the method to generate the uPlot configuration object is executed. This PR ensures each chart widget is rendered one time per refresh cycle. This can be verified by putting on a logger in the onCreate method of the uPlot component.

Changes:

    Convert useGraphOptions to a method that is no longer a React hook, since there is no need to get the theme context in there anymore.
    Refresh the uPlot configuration object only when the data is changed (= per refresh cycle).

* change filename to match

* cleanup test changes

* add missing import

* update submodule

---------

Co-authored-by: emrberk <emreberk5699@gmail.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.

3 participants