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

Sort Picker Changes #1494

Merged
merged 16 commits into from
Dec 17, 2024
Merged

Sort Picker Changes #1494

merged 16 commits into from
Dec 17, 2024

Conversation

Sjmarf
Copy link
Contributor

@Sjmarf Sjmarf commented Dec 12, 2024

This is just the sort picker stuff - I haven't moved filters (e.g. "Hide read" etc) here yet.

Closes #1212
Closes #1217

If there are any unavailable sort modes, they're shown at the bottom of the list.

@Sjmarf Sjmarf requested a review from a team as a code owner December 12, 2024 11:58
@Sjmarf Sjmarf requested review from JakeShirley and EricBAndrews and removed request for a team December 12, 2024 11:58
@Sjmarf Sjmarf changed the title Sort Picker Improvements Sort Picker Changes Dec 12, 2024
@Sjmarf Sjmarf marked this pull request as draft December 12, 2024 21:41
@Sjmarf Sjmarf marked this pull request as ready for review December 12, 2024 22:36
Copy link
Member

@EricBAndrews EricBAndrews left a comment

Choose a reason for hiding this comment

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

Code looks good!

The design is very nice too--my only note is that the pin button being in a separate column feels a bit off. Some alternative ideas:

  • Color/fill the icon of the selected sort instead of the checkmark; we'd need a colorblind mode alternative, since fill is not available for scaled (or we find a new icon--megaphone, maybe?)
  • Shade the background of the selected sort

Mlem/App/Views/Pages/Community/TopSortPicker.swift Outdated Show resolved Hide resolved
@Sjmarf
Copy link
Contributor Author

Sjmarf commented Dec 13, 2024

my only note is that the pin button being in a separate column feels a bit off. Some alternative ideas:

Sure, I can try those. How do you propose that the user changes whether an item is pinned or not? Via context menu? Currently, tapping the pin button toggles the pin state and tapping the sort mode itself selects it.

@EricBAndrews
Copy link
Member

Tapping the pin still seems like the way to go--we can also put it on a swipe action

@Sjmarf
Copy link
Contributor Author

Sjmarf commented Dec 14, 2024

How's this?

I'd rather avoid using only icon fill state to denote selection when we've got lots of different icons - it's much more difficult at a glance to see which is selected (to my eye, anyway).

@Sjmarf Sjmarf requested a review from EricBAndrews December 14, 2024 12:08
Copy link
Member

@EricBAndrews EricBAndrews left a comment

Choose a reason for hiding this comment

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

LGTM! 🔥

@Sjmarf Sjmarf enabled auto-merge (squash) December 17, 2024 10:46
@Sjmarf Sjmarf merged commit 45ed9d0 into dev Dec 17, 2024
2 checks passed
@Sjmarf Sjmarf deleted the sjmarf/sort-picker branch December 17, 2024 10:49
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.

Scaled Sort explanation Hide most sorting options
2 participants