Skip to content

Conversation

@timbess
Copy link
Contributor

@timbess timbess commented Oct 21, 2025

This fixes special case in workspace for Datagrids that allowed both click and select events to be treated as global filter selections unless the plugin is named "Datagrid".

Pull Request Checklist

  • Description which clearly states what problems the PR solves.
  • Description contains a link to the Github Issue, and any relevent
    Discussions, this PR applies to.
  • Include new tests that fail without this PR but passes with it.
  • Include any relevent Documentation changes related to this change.
  • Verify all commits have been signed in accordance with the DCO policy.
  • Reviewed PR commit history to remove unnecessary changes.
  • Make sure your PR passes build, test and lint steps completely.

@timbess timbess force-pushed the bugfix/workspace-global-filter-fix branch from 2c4a6c7 to 919e807 Compare October 21, 2025 21:02
@timbess timbess marked this pull request as ready for review October 21, 2025 22:34
@timbess timbess force-pushed the bugfix/workspace-global-filter-fix branch 3 times, most recently from bf0efcb to e4530d3 Compare October 28, 2025 14:58
This fixes the special case for datagrids by forcing plugins to use perspective-select events rather than attempting to handle both click and selects. This also fixes some issues with global filtering on datagrids where selections overlapped with collapsing/expanding rows.

Signed-off-by: Timothy Bess <timbessmail@gmail.com>
@timbess timbess force-pushed the bugfix/workspace-global-filter-fix branch from e4530d3 to ab31703 Compare October 28, 2025 15:47

if (
event.type === "perspective-click" &&
(config.plugin === "Datagrid" || config.plugin === null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@texodus texodus merged commit 31ccdd8 into perspective-dev:master Oct 29, 2025
14 checks passed
@timbess timbess deleted the bugfix/workspace-global-filter-fix branch October 31, 2025 01:12
@texodus texodus added the bug Concrete, reproducible bugs label Dec 15, 2025
@aszenz
Copy link
Contributor

aszenz commented Dec 17, 2025

@timbess In v4.0.1 I can no longer click on a global filter row group to collapse/expand it, it always selects it, is that intended?

See: https://perspective-dev.github.io/block/?example=nypd, Incidents by Allegation, clicking on any allegation selects its subrows but doesn't collapse it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs

Development

Successfully merging this pull request may close these issues.

3 participants