Repository navigation
Data viewer: scroll continuously through columns instead of paginating - #17977
Merged
Merged
Conversation
Column pagination (next/prev/first/last page, the column range input) previously tore the whole grid down via bootstrap(), losing scroll position, rebuilding the sidebar from scratch, and discarding the row cache. Fetch the new window's column metadata and apply it in place: - cached rows are remapped by absolute column identity, so rownames, pinned columns, and any window overlap render immediately while the new columns' data is refetched (per-block column signatures track which blocks still need that refetch) - row fetches now request exactly the columns of the current cols array, so returned rows are always aligned with it (this also fixes a latent misalignment when unpinning an out-of-window pinned column, which now triggers a window re-sync instead) - the active cell/header is remapped by identity across the slide - vertical scroll position, live pin/sort/filter state, header filter UI, and sidebar visibility all survive the transition
The grid's layout now spans every column of the frame, not just the fetched window: unfetched columns are represented by width-bearing spacer spans (billed at the default column width estimate), so the horizontal scrollbar covers the full frame and scrolling -- rather than pagination -- is the primary way to move through columns. - when the visible range pokes outside the fetched window, the window is re-fetched centered on the viewport (at most one metadata fetch in flight; a landing slide re-evaluates, so fast scrubbing converges with a short chain of fetches) - an anchor column captured before each relayout preserves the user's visual position as estimated widths are replaced by measured ones - the pagination buttons remain as page-jump shortcuts: they scroll the target page's first column to the left edge, and the strict outside-the-window slide trigger keeps the jump from immediately recentering itself - the sidebar keeps its scroll position across window slides - import preview frames (whose metadata covers every column) get zero- width spans, so their behavior is unchanged The e2e suite gains coverage that scrolling fully right reaches the frame's last column with real data and no pagination clicks; two existing tests are updated for the new layout (cells are addressed by data-col-pos rather than DOM position, since rows now lead with a span spacer; a fixed-position scroll stays within the fetched window).
With the grid scrolling continuously through every column, the page
navigation arrows are a coarser duplicate of the scrollbar, and the
window-range readout ("201 - 400") surfaced an implementation detail
that shifts arbitrarily as the window follows the scroll position.
- drop the four arrow buttons; the toolbar keeps a single "Column:"
jump box (Enter jumps to that column, clamped to the frame), which is
the precision navigation a scrollbar can't offer on wide frames
- new window.goToColumn(n) scrolls directly to fetched columns and
slides the window for unfetched ones, flashing the landing header
- the info bar orients the user instead: frames wider than one fetch
window report "columns X to Y of N" in place of "N total columns"
- window.setOffsetAndMaxColumns stays as a programmatic API; the
removed first/prev/next/lastColumnPage exports had no callers left
The inline toolbar input becomes a "Go to Column..." button that opens a light-dismiss typeahead inside the grid (in the spirit of Go to File/Function): type a column name or 1-based index, Up/Down to choose among suggestions, Enter to jump, Escape / click-away to dismiss. - new lightweight grid_data request (show=colnames) returns the whole frame's column names, so name matching covers columns far outside the fetched window; names are cached per grid lifetime and refetched after a data refresh (which can rename columns) - numeric queries offer a direct index jump (clamped to the frame) ahead of name matches; name matches rank prefix before substring - clicking the button on a dead grid (failed refresh) retries the bootstrap rather than opening a popup, preserving the recovery path - the unused DataTableColumnWidget is removed
Replaces the button + popup with an inline search-style typeahead in the toolbar (a SearchWidget driving the grid's window.matchColumns oracle), in the spirit of Go to File/Function: type a name or index, pick a suggestion or press Enter for the top match. - gated on actual column overflow rather than a wide-frame heuristic: the grid pushes a columnOverflowCallback from its layout passes (fires on resize, sidebar toggle, column resize, pins, refresh), so the box appears whenever any column sits off-screen - uses the shared 'go to' arrow icon (Go to File/Function) instead of the search magnifying glass, for visual distinction from the adjacent data-table search box - adds a 'Search' placeholder to that search box while we're here - jumps now center the target column in the viewport (and center the fetched window on it) rather than pinning it to the left edge, so a jumped-to column has context on both sides - new show=colnames grid_data request returns the whole frame's names for matching; removes the now-unused isLimitedColumnFrame and the DataTableColumnWidget's index-jump-only API e2e: the page object types via pressSequentially (the GWT SuggestBox queries its oracle from key events); the 10k-column helper now reads the leftmost column + header + text in one DOM evaluate to avoid racing a window slide between separate reads.
The summary panel (histograms, ranges, NA%, category bars, distinct/ top, and the expandable detail stats) now describes the rows currently in view rather than the whole object: applying a column filter or global search reshapes the summaries, and a dimmed "(filtered)" tag appears in the panel header. Clearing reverts to the whole frame. Backend: - factor the filter/search/sort parse + working-copy transform out of getData into parseViewTransformParams + applyViewTransform, so the summary paths resolve the same filtered frame the grid shows (and share its working-copy cache) - show=cols&filtered=1 describes the requested columns over the filtered frame; show=column_summary always resolves it. Plain show=cols still describes the full frame, so the filter popups' brush histogram and factor levels stay full-range (you can always widen a filter) Frontend: - filteredSummaries map (show=cols&filtered=1), refreshed on filter/ search apply, clear, column slide, and bootstrap-with-restored- filters; the sidebar renders distribution/range/NA from it while identity (name, type, factor levels) stays on the full-frame cols - the whole-frame NA/percentage denominator reads the metadata row count (cols[0].total_rows), not the live totalRows, which invalidateCache transiently zeroes before the row re-fetch lands - fetchColumnSummary and fetchRows share appendTransformParams e2e: a search that keeps only one group shifts a numeric column's range 1..80 -> 1..4 and its NA 13% -> 0%, with the (filtered) tag; cleared, it reverts. Reads go through the live viewport's document -- during a View() tab swap two iframes briefly share the "Data Browser" title and a plain frameLocator can resolve to the outgoing one.
A go-to-column jump now scrolls the target column's summary-panel entry into view and flashes it, mirroring the grid header flash -- the inverse of clicking a sidebar entry (which scrolls the grid), so the two panes stay in sync. Gated on the panel being open; deliberately does not move keyboard focus, which stays on the grid so arrow keys keep driving the data. Fires from both jump landing paths (revealColumnCentered for an already-fetched target, applyColumnWindowUpdate for one reached via a window slide).
scrollIntoView({block:'nearest'}) did the minimum scroll, landing a
below-fold entry flush against the bottom edge. Center it in the list
instead (clamped at the ends), and only scroll when it isn't already
fully visible -- matching revealColumnCentered's handling of the grid
viewport, so a jump to a nearby on-screen column doesn't jolt the list.
The e2e check now asserts the entry lands near the middle of the list
rather than merely being visible.
The summary sidebar now lists every column of the frame, not just the fetched grid window -- so its header is simply "M columns" and the panel is a stable, complete index regardless of where the grid is scrolled. Per-column summaries (sparkline, range, NA%, detail) lazy-load as entries scroll into view, so opening a very wide frame stays cheap. Backend: - show=column_index (.rs.dataViewer.columnIndex) returns lightweight per-column identity (name/typeof/class) for the whole frame -- no histograms or stats, so it scales to thousands of columns. Frontend: - the sidebar builds an entry per column from that index (falling back to the fetched window until it loads); a per-column summary cache is seeded by the grid window (or filteredSummaries when filtered) and an IntersectionObserver batch-fetches summaries (show=cols) for entries as they scroll in, populating their sparkline/range/NA. - pin/sort/navigation are re-keyed onto absolute column indices, so any listed column is actionable from its entry -- pinning or sorting an off-window column works (and slides/navigates the grid as needed). - the lazy cache is keyed to the filter state and dropped when it changes, integrating with the filtered-summaries path. Known limit: entries expand (variable height), so the list isn't virtualized -- a frame with many thousands of columns builds that many lightweight entry shells. Fine for typical frames; true virtualization is a separate follow-up. e2e: a 300-column frame lists all columns, lazy-loads an off-window column's range on scroll, and sorts + pins it from its entry; the go-to-column header assertion updated to the frame total.
…lumn-virtualization # Conflicts: # src/cpp/session/resources/grid/DataViewer.js
🍎 macOS Desktop E2E · ARM64❌ 2 test(s) failed
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · macos-26 ARM64 · commit |
addresses recurring roborev findings on this branch: - purge stale blockColsSig entries on window slide so a jump-away-and-back can no longer leave a wiped block reading as current (permanent blank band) - roll columnOffset back to the fetched window on a failed slide so an identical retry isn't suppressed by the dedup guard - clear gotoColumnSelectionHandled_ on each fresh keystroke so a mouse-picked suggestion can't swallow the next Enter - guard the dead-grid numeric go-to-column fallback against int overflow - fix stale/misplaced doc comments and remove dead icon-angle-*/ dataTableColumnWidget styles left by the pagination removal
regression guard for the blockColsSig purge: caches a row block outside the visible+prefetch range, slides the column window away and back, then scrolls the block into view and asserts its cells are refetched rather than rendered blank. verified to fail without the purge. also documents the data-col-pos vs data-col-idx equivalence (holds only while no column is pinned) in the 10k-column test.
…ter indicator to data viewer
…ter filter, 2px nudge
… comments) - revert accidental ProjectId in rstudio.Rproj - move misplaced Column Index roxygen block above the right function - check jsonValueFromList return in getCols/getColsByIndex - distinguish hard filtered-summary fetch failure from an empty result - document the filtered-summary working-copy cache assumption - correct stale pagination-button and left-edge comments
Collaborator
Author
|
Worked through the automated review findings in 7953c70. Summary of dispositions: Applied
Applied with a correction
Not applied
Verified: C++ build, GWT |
…lumn-virtualization
Add a data_viewer_use_overlay_scrollbars user preference (default true) controlling whether the data viewer draws its own overlay scrollbars or uses native scrollbars. Wire it through the iframe URL param and a live setOption push so the open grid switches modes when the preference changes, and expose a "Use overlay scrollbars" toggle in the data viewer Settings menu. Also fix two pinned-column issues: - pinning a scrolled-into-view column no longer resets the horizontal scroll position (scrollColumnPosIntoView is now a no-op for pinned, always-visible columns) - the resize gripper of an unpinned column scrolled behind a pinned column no longer wins the hit-test (resizer z-index dropped below the pinned header)
Replace the single-table grid (pinned columns drawn as position:sticky cells) with two side-by-side panes -- a fixed-width frozen pane for the pinned columns and a horizontally-scrollable pane for the rest -- sharing vertical scroll. Because the pinned block is no longer in the scrollable table's flow, resizing a pinned column now only grows the frozen pane and leaves the unpinned pane's scroll position untouched, fixing the scroll-jump that the old sticky layout produced. Details: - gridviewer.html: add #gridPanes wrapper with #pinnedPane/#pinnedTable and the existing #gridViewport/#rsGridData. - Render headers and body rows into both panes in lockstep; split the cell-append + colspan helpers; coordinate math now works in the unpinned pane's own scroll space (pinned block width factored out). - applyPinnedColumns sizes the frozen pane; autoSizeColumns splits the table widths; the overlay/native scrollbars are re-homed on #gridPanes. - Sync vertical scroll between panes; the frozen pane is itself scrollable so wheel and middle-click work over it, and a horizontal wheel/shift+wheel gesture there pans the unpinned columns. - Keep the two sticky headers the same height so the filter row can't offset the body rows. - e2e: locate cells by data-col-pos rather than DOM position, read both theads for column order, and add a pinned-resize scroll-preservation test. Accepted limitation: native text selection no longer spans the pinned/unpinned boundary.
Two follow-ups to the split-pane frozen columns: - Middle-click autoscroll over the frozen pane. Native autoscroll only pans axes the hovered element can scroll, and the frozen pane has no horizontal overflow, so it could pan only vertically. Reimplement it so a middle-click drag (or click-then-move sticky mode) over the frozen pane pans both axes of the unpinned master pane, with an anchor marker and the all-scroll cursor; torn down on grid destroy. - Don't scroll the viewport when pinning/unpinning with the mouse or the sidebar. togglePinColumn restored the active header via setActiveHeader, which scrolls it into view -- so unpinning scrolled the column to its new location. setActiveHeader gains a scrollIntoView arg (default true); mouse/sidebar pin toggles pass false, while the keyboard P toggle keeps scrolling so the keyboard cursor stays visible.
- Native-scrollbar mode (MEDIUM): onPinnedScroll no longer snaps the bottom edge. It skips mirroring back to the viewport when the frozen pane is clamped at its own max while the viewport (whose native horizontal scrollbar shrinks its clientHeight) is legitimately lower; the scrollHeight read happens only in that bottom case. - syncHeaderHeights moved off the per-window-slide hot path (now called from autoSizeColumns and setHeaderUIVisible). The explicit header height persists across slide rebuilds, so the panes stay aligned without an offsetHeight flush on every horizontal slide. - Autoscroll cleanups: removed the dead "if (autoScrollActive)" branch in onPinnedMouseDown (the document-capture handler stops the active case), and paused the rAF loop while the pointer sits in the deadzone (resumed on mousemove) so sticky mode doesn't burn a frame callback per tick. - DataTable.java: removed the stale toolbar-layout comment about a trailing ToolbarMenuButton/options-arrow fallback, corrected the gear button comment (labeled "Settings"+icon button), and wired the unused ClassIds.DATA_TABLE_OPTIONS to the gear button. - Tests: added a Playwright test asserting a mouse/sidebar pin toggle leaves the scroll position unchanged.
Reword the rebuildHeaderWindow comment to attribute the persisted header height to the thead's own style (which innerHTML does not touch) rather than the tr, which is fully recreated. Comment-only; the persistence mechanism was already correct.
Bump the custom overlay scrollbar thumb from 7px to 8px and its track channel from 10px to 11px (both axes). Update the hard-coded 10px reserve constants in DataViewer.js (visibleBodyHeight and the createCustomScrollbars insets) so body layout still accounts for the scrollbar overlay.
…lumn-virtualization
…lumn-virtualization
- guard date/posixct histogram hist()/format() in .rs.tryCatch, mirroring the numeric branch's degrade-to-no-histogram recovery - document the column_summary cache-key invariant (full-frame reuse is safe only while max_rows/max_cols == -1) - heal the scroll mirror in setViewportScrollLeft/Top even when no write was needed, so an inactive-tab clamp can't leave lastScroll* stale - track in-flight sidebar summary fetches to avoid duplicate requests, and mark failed columns 'unavailable' instead of retrying forever
kevinushey
added a commit
that referenced
this pull request
Jun 18, 2026
…harness (#18013) * fix data viewer pin-pagination test and lower the e2e global timeout The "pinned column stays pinned across column pagination" test looked for the pinned body cell in #gridBody, but #17977 moved pinned cells into the frozen pane's own table (#pinnedBody). Point the selector at #pinnedBody. Lower the global per-test timeout from 5 min to 2 min so a hung test fails fast, and shift the slow-path budget to where it's actually needed: - drop redundant (== global) and tighten-only (< global) test.setTimeout overrides, letting the global govern - add test.setTimeout() to package-installing beforeAll hooks (and one in-test install) whose budgets exceed the new global, since a hook's timeout inherits the global and a cold-cache install would otherwise be killed mid-install * support parallel e2e workers via per-worker home and hermetic R libraries Running the Desktop suite with more than one worker previously clobbered shared state. Partition the two remaining shared writers per worker, activated only when workers > 1 (resolved into PW_TOTAL_WORKERS by globalSetup) so the default single-worker run is unchanged: - HOME / USERPROFILE: each worker copies the seeded template home into a per-parallel-index subtree, so RStudio user state, command history, and seeded AI credentials don't collide. - R_LIBS_USER: each worker gets a hermetic hardlink clone of the prebuilt template library (not layered with it), so a test can install or remove packages -- including the uninstall/reinstall tests -- without racing on a shared library or leaking across workers. The clone uses fs.linkSync (portable to Windows/NTFS, no elevation), stays on the same volume as the template, and is built via a temp dir + atomic rename. Validated with --workers=2: two workers ran concurrently with separate homes and clones, and the DBI/praise uninstall tests passed alongside the console tests. * e2e: fail fast on disabled commands, name them, and fix tests it surfaced executeCommand now waits for the target AppCommand to be enabled (not just present) before dispatching, and on timeout throws an error naming the command. Executing a disabled command otherwise trips a dev-build assertion in AppCommand.execute() -- the handler never runs, surfacing as an opaque "AppCommand executed when it was not enabled" client exception plus a downstream hang. Gating here absorbs brief command-state lag and makes the failure self-explanatory. This surfaced that saveDocument unconditionally issued Save even when the active document was already clean (createAndOpenFile writes the file to disk then opens it, so Save is correctly disabled). Save only when the document is dirty; the clean-state wait covers both branches. Fixes the multiline- chunk, notebook-save, rmarkdown empty-chunk, and missing-packages-banner tests. Also: the dev run scripts now accept --timeout durations with units (30s / 1m / 2000ms / bare ms), so a capped-timeout iteration loop reads naturally instead of requiring raw milliseconds. Separately, the data-viewer sidebar pin/unpin test asserted unpin by reading column 2's header, but once unpinned the column returns to its far-left position, scrolled out of the virtualized column window with no rendered <th>; assert via the always-present sidebar pin icon instead. * remove interim dev-only dark-theme toggle button from modal dialogs The SuperDevMode-gated dark-theme toggle button (#17242) was injected into the dialog caption, which sits before the dialog body in DOM order. As a focusable <button> it became the first element returned by getFocusableElements(), displacing the real first/last controls the modal focus trap relies on. In dev/draft builds this broke initial keyboard focus and Tab/Shift+Tab wrapping -- the Global Options keyboard-accessibility tests failed in test:desktop-dev while passing in production builds (where the button is never added). It was an interim affordance for manually checking dark dialogs; the actual dark-theme-modal support (the useDarkThemeModalDialogs pref and syncDarkThemeClass) stays. Removing the button restores the focus order. * e2e: make per-worker CDP ports deterministic to avoid cross-worker kills The CDP port was random per worker (9231 + random 0..68). With a few parallel workers there was a real chance two drew the same port, and since each launch reclaims its port with `lsof :PORT | kill -9`, the second worker would kill the first worker's live RStudio -- a likely source of SIGKILL / "target page closed" flakiness under --workers > 1. Derive the port deterministically from the parallel index (base + index) so workers never share one; the dev/logger ports (+1000/+2000) follow and stay disjoint. PW_CDP_PORT still overrides. * e2e: let executeCommand dispatch invisible commands; make @smoke opt-in executeCommand gated on AppCommand.isEnabled(), which is enabled_ && isVisible(). doExecute() only requires enabled_, so an invisible programmatic command (visible="false", e.g. restoreDefaultPaneAndTabLayoutNoPrompt) always reports disabled yet dispatches fine -- the gate blocked it forever (10s "did not become enabled"). This broke pane_layout.test.ts's afterAll resetUILayout when the test ran in isolation. Expose isVisible() on the automation bridge and pass the gate when isEnabled() || !isVisible(); visible commands keep the fail-fast behavior. Also make the @smoke startup test opt-in. It idles 30s against a 30s timeout (full runs cap it lower), so it is the first casualty under parallel load and is redundant alongside the full suite. Exclude it from both projects by default via grepInvert; opt in with PW_RUN_SMOKE=1. Give it its own 60s timeout so it is usable when run. * desktop: probe for a free rsession port to avoid collisions on concurrent launch The Electron app chose the rsession backend www-port with generateRandomPort() -- an unverified random number in [8080, 48080) -- and never re-picked it if the bind failed. Two RStudio instances starting at the same time (e.g. parallel E2E workers, or a user opening several projects at once) could draw the same port; the second rsession then fails to bind with EADDRINUSE and the IDE never loads. The existing EADDRINUSE retry in SessionHttpMethods only covers the same-port restart race within one session, not initial cross-instance collisions, so nothing recovered. Add findFreePort(), which probes random candidates with a real bind on 127.0.0.1 and returns one that is actually free (falling back to an unverified random port if probing fails). Allocate the port through it: - generateNewPort() is now async and awaits findFreePort(). - launchFirst() now probes a fresh free port instead of reusing the unverified random port assigned at construction. - buildLaunchContext()/launchNextSession() and the two call sites in main-window/session-launcher are threaded through the now-async port allocation; the session-exit and main-window launch paths handle the returned promise. A narrow time-of-check/time-of-use window remains, but it is far smaller than trusting an unverified random number, which was the dominant collision source under parallel launches. Companion to the parallel-worker E2E support in this branch. * e2e: address pr review feedback on timeout headroom and crash-safe worker setup * fix find-in-files replace overlapping an in-flight grep operation GrepOperation::onStdout processed grep output against the shared findResults() singleton without checking that the output belonged to the current operation. When a Replace All superseded a still-draining find or replace preview, the stopped operation's buffered stdout was processed under the new operation's configuration -- corrupting its results and, in replace mode, writing files under the wrong config. This surfaced as a Replace All that modified the file on disk but reported "(No results found)". Mirror the guard onContinue already applies: drop output once the operation is no longer current. Also keep the Replace All action disabled while a find or replace is in flight (re-enabled when it ends or is stopped) so a replace cannot be started over a running operation, and mirror the button's disabled state to aria-disabled so it is observable. Wait for the find to finish in the Replace All e2e tests. * disable the find-in-files replace-mode toggle while a search runs Entering replace mode before the find finished built the replace preview from incomplete search results, so a non-regex replacement showed no matches. Gate the Find->Replace toggle on the find completing (greyed out, pointer input blocked, aria-disabled set) by folding it into the existing disableReplace/enableReplace, which already run at find begin/end. The Replace->Find toggle stays usable. The replace e2e tests now wait for the find to finish before toggling.
This was referenced Jul 14, 2026
kevinushey
added a commit
that referenced
this pull request
Jul 14, 2026
The grid body and pinned pane are virtualized: scrolling replaces the rendered row window and resizes the top spacer row. With scroll anchoring enabled, Chromium adjusts scrollTop to compensate for that content shift, undoing the user's scroll. Most visible on Windows, where discrete mouse-wheel ticks are driven through Chromium's smooth-scroll animation, so wheel scrolling over the table body got stuck. Same fix the summary sidebar received in #17977. Addresses #18221
kevinushey
added a commit
that referenced
this pull request
Jul 15, 2026
…18233) * skip empty arguments when scanning for package-library mutations (#18204) Expressions with empty arguments (e.g. 'View(mtcars[1, ])') caused .rs.exprMutatesPackageLibrary() to error at the console prompt, since binding the empty symbol to a variable and evaluating it signals a missing-argument error. Skip such arguments during recursion. * opt the data viewer grid out of browser scroll anchoring (#18222) The grid body and pinned pane are virtualized: scrolling replaces the rendered row window and resizes the top spacer row. With scroll anchoring enabled, Chromium adjusts scrollTop to compensate for that content shift, undoing the user's scroll. Most visible on Windows, where discrete mouse-wheel ticks are driven through Chromium's smooth-scroll animation, so wheel scrolling over the table body got stuck. Same fix the summary sidebar received in #17977. Addresses #18221 * data viewer: don't corrupt grid state while the tab is hidden (#18223) While the data viewer tab is hidden its iframe has no layout: the grid viewport reads clientWidth/clientHeight/scrollTop/scrollLeft as 0. Grid code running in that state could corrupt live state in ways the next tab activation never healed: - computeColumnWindow collapsed the virtualized column window to a single edge column (the zero-width fallback), and window.onActivate rebuilt rows against the stale window without recomputing it -- the same class of gap #18090 closed for onResize. - onScroll/onScrollEnd/onDeactivate folded the zeroed scroll reads into the lastScrollTop/Left mirrors, discarding the saved position. - window.onActivate itself can run before the tab widget is shown (SourceColumn.onActivate activates the target before selecting its tab), with the same effects. Guard all of these against a collapsed viewport: computeColumnWindow and the scroll mirrors now ignore zero-geometry reads, and onActivate defers itself to the next animation frame until layout exists, then re-derives the column window from live geometry before re-rendering. The new e2e tests fail without these changes: replaying a scroll tail or an early onActivate into the hidden iframe loses the scroll position and leaves the grid rendered at the wrong window on return. Addresses #18215. * extra defense against failure introspecting expr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the data viewer's column pagination with continuous column virtualization, and rebuilds the surrounding navigation/summary affordances around it. Previously a very wide frame was shown in fixed 200-column "pages" you stepped through with arrows; now the grid scrolls continuously through every column, fetching a sliding window under the hood.
Fixes #6147.
What changed
Continuous column virtualization (grid). The table layout spans the whole frame -- unfetched columns are represented by width-bearing spacer spans -- so the horizontal scrollbar covers every column and scrolling, not pagination, is how you move across them. When the viewport nears the edge of the fetched window, the window re-fetches centered on the visible columns (one metadata fetch in flight at a time; a scroll anchor preserves the visual position as estimated widths are replaced by measured ones). Sliding the window happens in place -- no full grid rebuild -- with the row cache remapped by absolute column identity so pinned/overlap columns render immediately while the new columns' data loads.
Go to Column. The four pagination arrows and the window-range readout are gone, replaced by a "Go to column" typeahead in the toolbar (in the spirit of Go to File/Function) that jumps to a column by name or 1-based index. It appears whenever columns overflow the viewport. A jump centers the column in the grid and its entry in the sidebar, flashing both.
Summary sidebar is now a complete column index. It lists every column of the frame (not just the fetched window), so its header simply reads "M columns". Per-column summaries (sparkline, range, NA%, detail) lazy-load as entries scroll into view, so opening a very wide frame stays cheap. Pin/sort/navigation were re-keyed onto absolute column indices, so any listed column is actionable from its entry -- you can pin or sort an off-window column straight from the sidebar.
Summaries reflect the filtered rows. The sidebar histograms, ranges, NA%, and detail stats now describe the rows currently in view (column filters + global search) rather than always the whole object, with a "(filtered)" tag in the header; the filter popups keep using the full-frame distribution so a filter can always be widened.
Backend
columns_requested(absolute indices); this addsshow=column_index(cheap per-column name/type/class for the whole frame) andshow=cols&filtered=1/ filteredshow=column_summaryso the sidebar can describe the filtered view. The filter/sort transform was factored into a shared helper so the grid and the summary paths resolve to the same working-copy-cached filtered frame.Testing
--scope r --filter dataviewer(182 assertions) passes.tests/panes/data-viewer, 49 tests) passes, including new coverage for: scrolling continuously to the last column / an arbitrary column in a 10k-column frame; Go to column by index and name; filtered summaries reshaping and reverting; a jump scrolling + centering the sidebar entry without stealing grid focus; and a complete-index sidebar listing all columns of a wide frame, lazy-loading an off-window column's summary, and sorting + pinning it from its entry.Known limitation
The sidebar list isn't virtualized (entries expand to show detail, so they're variable-height): a frame with many thousands of columns builds that many lightweight entry shells. Summaries stay lazy so it doesn't hang on open; true variable-height virtualization is a possible follow-up. Browser max-element-width also caps the full-frame layout at very large column counts (~250k).