Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to viewing all elements instead of none when no selection is active #419

Merged
merged 4 commits into from
Nov 8, 2024

Conversation

NateLanza
Copy link
Contributor

Does this PR close any open issues?

Closes #398

Give a longer description of what this PR addresses and why it's needed

Previously, having no active row selection would result in no elements being shown in element view. Now, no row selection results in all elements being shown, so that both row & element selections act as filters on the set of all elements. As a result of this, element selections can now be made without any row selection; this filter is applied to all elements.

Provide pictures/videos of the behavior before and after these changes (optional)

Before:
all-elem-before
After:
all-elem-after

Have you added or updated relevant tests?

  • Yes
  • No changes are needed

Have you added or updated relevant documentation?

  • Yes
  • No changes are needed

Nate Lanza added 2 commits November 5, 2024 02:39
…o bookmarked or selected intersections) return all items instead of none
@NateLanza NateLanza requested a review from JakeWags November 7, 2024 04:57
@NateLanza NateLanza self-assigned this Nov 7, 2024
Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for upset2 ready!

Name Link
🔨 Latest commit 2b57602
🔍 Latest deploy log https://app.netlify.com/sites/upset2/deploys/672dbd3d5b92b50008b165a4
😎 Deploy Preview https://deploy-preview-419--upset2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@JackWilb JackWilb left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@JakeWags JakeWags left a comment

Choose a reason for hiding this comment

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

Looks good, but consider the behavior when a 0 element intersection is selected. Currently it shows all elements. While I don't think this is necessarily bad, it may be better to simply show 0 elements, or text like "The current selections contain no items"

@NateLanza NateLanza force-pushed the 398-view-all-elements branch from 8af8351 to 0a09836 Compare November 8, 2024 07:15
@NateLanza
Copy link
Contributor Author

it may be better to simply show 0 elements, or text like "The current selections contain no items"

@JakeWags I looked into this; I think having nothing visualized in the chart looks bad, and since there's no point having nothing in the visualization if a 0-element intersection is selected, I'm leaving the behavior as-is.

@NateLanza NateLanza merged commit 0548dcc into main Nov 8, 2024
7 checks passed
@NateLanza NateLanza deleted the 398-view-all-elements branch November 8, 2024 07:31
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.

show element views for all items by default
3 participants