Commit 4bffed4
feat(polars): default pinned_rows include ?filtered_histogram (#830)
Adds an optional ``?filtered_histogram`` pinned row to polars's default
styling. The ``?`` prefix (#777) means JS hides the row when no column
has the ``filtered_histogram`` key in ``merged_sd``, so a no-filter
widget keeps a one-line ``[dtype, histogram]`` header. When the user
runs a search, ``filtered_histogram`` gets layered onto each column's
merged_sd entry (#785) and the row renders.
Polars-only on purpose:
- xorq skips computing ``filtered_histogram`` entirely (this PR's
``skip_stats_by_scope``), so the optional row never appears.
- Pandas keeps the original ``[dtype, histogram]`` default.
New ``pinned_filtered_histogram()`` helper in ``styling_helpers``,
mirroring the existing ``pinned_histogram()``. New
``PolarsMainStyling(DefaultMainStyling)`` in ``polars_buckaroo``
overrides ``pinned_rows`` and replaces ``DefaultMainStyling`` in
``local_analysis_klasses``.
Config-only — no behavior tests, just a new default in the styling
pipeline. The optional-pinned-row plumbing (#777) is already
exercised by ``gridUtils.test.ts``.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 76743bf commit 4bffed4
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
24 | 39 | | |
25 | 40 | | |
26 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments