You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible for the <PanelRenderer/> to save the scrolling state between renders. This causes the content to be autoscrolled at the end whenever new content is rendered in the scrolling container within the component.
Why is this needed:
In the Grafana k6 Cloud Plugin, one of the usages of the <PanelRenderer/> is to render a list of logs of a test run. In case the test is still running and the user is analysing the logs whilst the logs list is updating, the content will be scrolled to the bottom to show new content, and the user will have to scroll up to the log entry they are examining. Depending on the frequency of refreshing the logs (in our case is quite often), the user will have very little time to exam the log of interest until the content is autoscrolled to the bottom with the new re-fetch. This makes examining logs while the test is running pretty hard.
Have a look at this GIF:
What would you like to be added:
Either
(easiest and case specific) have a way to pass down a ref object to the scrollable container, so its possible to memorise the scrolling position
have a prop which controls the scrolling behaviour. memorise | scrollToTop | scrollToBottom (or something similar)
Who is this feature for?
Not sure how to answer this, but if this is a unique issue than I'd say the k6 plugin in this specific case. But I suppose it would be an issue for all applications where content is displayed that frequently updated with fresh content.
The text was updated successfully, but these errors were encountered:
It is not possible for the
<PanelRenderer/>
to save the scrolling state between renders. This causes the content to be autoscrolled at the end whenever new content is rendered in the scrolling container within the component.Why is this needed:
In the Grafana k6 Cloud Plugin, one of the usages of the
<PanelRenderer/>
is to render a list of logs of a test run. In case the test is still running and the user is analysing the logs whilst the logs list is updating, the content will be scrolled to the bottom to show new content, and the user will have to scroll up to the log entry they are examining. Depending on the frequency of refreshing the logs (in our case is quite often), the user will have very little time to exam the log of interest until the content is autoscrolled to the bottom with the new re-fetch. This makes examining logs while the test is running pretty hard.Have a look at this GIF:
What would you like to be added:
Either
memorise | scrollToTop | scrollToBottom
(or something similar)Who is this feature for?
Not sure how to answer this, but if this is a unique issue than I'd say the k6 plugin in this specific case. But I suppose it would be an issue for all applications where content is displayed that frequently updated with fresh content.
The text was updated successfully, but these errors were encountered: