Skip to content

Row States

Every row carries independent flags (leap_core::RowStateFlags): selected, excluded, hidden, labeled, plus an optional RGB color and optional marker glyph index. Selection never implies exclusion — a row is never both selected and excluded (strict invariant enforced in RowStateFlags::new and everywhere the sidebar mutates flags).

Row states gutter

Tiled reports with linked brushing

Definitions

  • selected — a row the user has explicitly picked (clicking a row toggles it; range-extend with Shift+arrows). Selection is non-coupled to exclusion: selecting a row does not exclude it, and exclusion is recorded separately.
  • excluded — the row is forced out of every computation. Excluding a selected row un-selects it in the same step. Exclude Selected (Ctrl+E) excludes all selected rows; Hide & Exclude Selected (Ctrl+Shift+E) also hides them.
  • hidden — the row is dropped from rendering; graph/summary math ignores hidden rows entirely (builder_prep_rows skips them). Selecting or labeling a hidden row is allowed; unhide restores visibility without touching other flags.
  • labeled — a display tag; labeled rows are tagged with their row id on the graph canvas and count in the sidebar's Labeled counter.
  • color / marker — optional annotation fields preserved by every flag-flipping operation (and persisted in .leapw row_states as sparse selected/excluded/hidden/labeled ID lists plus colors and markers pairs).

Actions

From the top-bar Rows menu or sidebar buttons:

  • Select All Rows (Ctrl+A) — select all eligible rows (excluded rows are never selected).
  • Clear Selection (Ctrl+Shift+A) — clear the selection flag on every row.
  • Invert Selection (Ctrl+Shift+I) — toggle selection on every non-excluded row; excluded rows are left alone.
  • Exclude Selected (Ctrl+E), Hide & Exclude Selected (Ctrl+Shift+E), Clear Exclusions (no shortcut).
  • Hide Selected (Ctrl+H), Unhide All (no shortcut).
  • Label Selected (Ctrl+L), Clear Labels (no shortcut).
  • Clear All Row States (Ctrl+Shift+U) — clears exclusions, hidden and labeled flags (and normalizes selection).

Non-coupling invariant

Selection affects what analyses see when configured; exclusion forces rows out of every computation. Histogram bins in linked plots always report totals covering every record — they never hide data implicitly. Rows not selected are still counted in totals. The sidebar color/marker annotation values are preserved across hide/unhide, label/clear labels and exclusion operations.

Gutter rendering

The grid gutter shows the row index plus compact state badges (excluded / hidden / labeled) for the active row. Hidden rows are omitted from the rendered grid when hidden-row omission is active; the linked plots (scatter + histogram) and the Graph Builder continue to use the shared selection/flag state — hidden rows are omitted from the chart, excluded rows remain visible but are excluded from summary statistics (e.g. smoothed curves, box/bar means, histogram bins), and labeled rows are tagged with their row id on the canvas.

Related pages: