Skip to content

feat(dataset): add reactive numeric range editors - #114

Merged
ThomasMalletCodra merged 3 commits into
developfrom
feat/automatic-dataset-sliders
Sep 10, 2026
Merged

feat(dataset): add reactive numeric range editors#114
ThomasMalletCodra merged 3 commits into
developfrom
feat/automatic-dataset-sliders

Conversation

@PierreRaybaut

@PierreRaybaut PierreRaybaut commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add opt-in automatic sliders for editable bounded numeric items while preserving exact text-entry values.
  • Forward slider press and release gestures so hosts can debounce live processing.
  • Add a transient HistogramRangeItem with generic range and brightness/contrast presentations, JSON Schema metadata, serialization behavior, and Qt editors.

Integration

This is the foundation of a coordinated guidata → Sigima → DataLab feature stack.

Downstream PRs:

Before merge

  • Add the guidata 3.16 release note and release-note index entry.

Validation

Focused dataset and widget tests: 220 passed, 2 skipped.

Add layout-scoped sliders for bounded numeric items while preserving
exact text input and explicitly configured slider behavior.
…on, add release notes

Address pre-review findings on feat/automatic-dataset-sliders:

* HistogramRangeItem: align docstring and reference doc with the actual
  rendering behavior — bins are always drawn uniformly across `domain`;
  non-uniform `bin_edges` were documented but never consumed by
  `_HistogramCanvas.paintEvent`. Drop the fictive key from the two test
  fixtures that referenced it.
* conv.py: document the `data.transient` exclusion from JSON/dict
  serialization introduced by HistogramRangeItem.
* Add `test_histogram_range_canvas_paints_every_branch`, covering
  `_HistogramCanvas.paintEvent` for both presentations and three payload
  shapes (normal, empty selection, inverted domain). Raises
  guidata/dataset/qtitemwidgets.py coverage from 81% to 84%.
* Add missing docstrings on test_loadsave_json.py (Pylint C0115/C0116).
* Add `# guitest: show` demo entry points to test_auto_sliders.py and
  test_histogram_range_item.py for manual visual validation via
  `python -m guidata.tests`.
* Add release notes for 3.16.0 (auto_sliders, HistogramRangeItem).
@ThomasMalletCodra
ThomasMalletCodra merged commit 7203944 into develop Sep 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants