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

🎉 (entity selector) sort by name or value #3447

Merged
merged 1 commit into from
May 3, 2024

Conversation

sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Apr 4, 2024

Cycle 2024.2: Entity selector | Designs

Summary

Adds a dropdown menu to sort by name or indicator, as well as a button to toggle the sort order. Draws a simple bar chart when sorted by an indicator.

Details

  • Indicators considered for sorting are all indicators of the chart that can be formatted numerically (includes NumberOrStringColumn) and that are not projections
  • Names are sorted asc by default, while numerical values are sorted desc by default
  • If sorted by an indicator, then values without data are listed at the end (and are marked with a "No data" label)

Caveats

  • The (display) name of a column that is used as dropdown option is not always nice :( (but we surface it in other places already..)
  • We can't draw a bar chart for negative values. For now, we opted to simply not draw anything in that case

SVG tester

The SVG tester fails due to the changes in #3373

Data

  • Go through the top 50 charts and make sure all columns have appropriate display names

@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 8569fe8 to bca5b65 Compare April 5, 2024 11:10
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from bca5b65 to 937f3f1 Compare April 5, 2024 14:30
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 937f3f1 to 889ebd5 Compare April 8, 2024 10:08
@sophiamersmann sophiamersmann force-pushed the entity-selector-sort branch 3 times, most recently from 66ccba4 to 457a813 Compare April 9, 2024 08:12
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 889ebd5 to 4a4723e Compare April 9, 2024 14:24
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 4a4723e to 85355b3 Compare April 9, 2024 14:28
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 85355b3 to 43637ac Compare April 10, 2024 10:53
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 43637ac to d1729fa Compare April 10, 2024 16:06
@sophiamersmann sophiamersmann marked this pull request as ready for review April 11, 2024 09:12
@sophiamersmann sophiamersmann force-pushed the entity-selector-sort branch 2 times, most recently from 08c4e60 to 36fdb41 Compare April 11, 2024 13:25
Copy link
Member

@marcelgerber marcelgerber left a comment

Choose a reason for hiding this comment

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

Nice work! Sorry for finding the performance issue there, will try to look into it 👀

@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 3737861 to 5c3ed39 Compare April 15, 2024 08:20
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 5c3ed39 to c74888e Compare April 15, 2024 12:20
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from c74888e to 3df51b1 Compare April 17, 2024 10:35
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 3df51b1 to 2c22d45 Compare April 26, 2024 12:23
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 2c22d45 to 7070b3d Compare April 26, 2024 17:03
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 7070b3d to 0cc5449 Compare May 1, 2024 13:06
@sophiamersmann sophiamersmann force-pushed the entity-selector-sort branch from 990e64c to 222fc17 Compare May 1, 2024 13:06
@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from 0cc5449 to b821cdf Compare May 2, 2024 14:03
@sophiamersmann sophiamersmann force-pushed the entity-selector-sort branch from 222fc17 to 406c6f9 Compare May 2, 2024 14:03
Copy link
Member Author

sophiamersmann commented May 3, 2024

Merge activity

@sophiamersmann sophiamersmann force-pushed the entity-selector-redesign branch from b821cdf to ddd7612 Compare May 3, 2024 08:12
Base automatically changed from entity-selector-redesign to master May 3, 2024 08:13
@sophiamersmann sophiamersmann force-pushed the entity-selector-sort branch from 406c6f9 to 6e78f59 Compare May 3, 2024 08:13
@sophiamersmann sophiamersmann merged commit aff43ba into master May 3, 2024
10 of 20 checks passed
@sophiamersmann sophiamersmann deleted the entity-selector-sort branch May 3, 2024 08:15
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