From d4bce76031477d3f90ef987151115aa347ea0706 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Thu, 17 Jul 2025 15:07:32 +0200 Subject: [PATCH 01/21] fix: AggregationPanel scroll position persists when using cache --- src/dashboard/Data/Browser/DataBrowser.react.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/dashboard/Data/Browser/DataBrowser.react.js b/src/dashboard/Data/Browser/DataBrowser.react.js index 5fda24e448..3944c3f1e1 100644 --- a/src/dashboard/Data/Browser/DataBrowser.react.js +++ b/src/dashboard/Data/Browser/DataBrowser.react.js @@ -132,6 +132,7 @@ export default class DataBrowser extends React.Component { this.setShowRowNumber = this.setShowRowNumber.bind(this); this.handleCellClick = this.handleCellClick.bind(this); this.saveOrderTimeout = null; + this.aggregationPanelRef = React.createRef(); } componentWillReceiveProps(props) { @@ -734,6 +735,9 @@ export default class DataBrowser extends React.Component { const { prefetchCache } = this.state; const { prefetchStale } = this.getPrefetchSettings(); const cached = prefetchCache[objectId]; + if (this.aggregationPanelRef.current) { + this.aggregationPanelRef.current.scrollTop = 0; + } if ( cached && (!prefetchStale || (Date.now() - cached.timestamp) / 1000 < prefetchStale) @@ -902,7 +906,10 @@ export default class DataBrowser extends React.Component { resizeHandles={['w']} className={styles.resizablePanel} > -