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

Display sort name as subtitle and make sort button use generic sort icon #670

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

tom-james-watson
Copy link
Contributor

Pull Request Description

Displays the currently-selected sort option as the subtitle on the community page. It also updates the sort button to use a generic sort icon instead of the sort-specific icons that are currently used.

This is a follow up to #616 where some discussion led to this current idea being hashed out.

Issue Being Fixed

The icons used for the different kinds of sort are not all intuitive. It's not always clear what they mean and so it's sometimes hard to tell what you are currently looking at unless you are deeply familiar with the app.

Issue Number: N/A

Screenshots / Recordings

image image

Checklist

  • Did you update CHANGELOG.md?
  • Did you use localized strings where applicable?
  • Did you add semanticLabels where applicable for accessibility?

Copy link
Member

@micahmo micahmo left a comment

Choose a reason for hiding this comment

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

LGTM, approved! Thanks for iterating on this and coming up with something we all like!

I would be interested to hear feedback from @ajsosa and @machinaeZER0 before merging.

Some more random musings that popped into my head...

  • Is the vertical height of the heading too much now? Should it match the height of the other AppBar icons?
  • Would it be cool to show the legacy sort icon in the heading for those who have memorized those and as a bit of a distinguisher from other apps, or is that too much clutter in the heading?
  • Should we make the same change to the post view?
    • I don't think the post view has any heading right now. The heading could be the post title or the community name or something else.
  • Should we make any changes to the sort option in the FAB? Right now in community view it shows the current sort icon and in post view it shows the generic icon, so it's inconsistent either way.

Anyway, these points are all for discussion / future work. Thanks again!

@tom-james-watson tom-james-watson changed the base branch from main to develop August 21, 2023 14:51
@machinaeZER0
Copy link
Collaborator

I would definitely update the FAB and post view for consistency! Defer to others whether that is necessary here, or would be addressed in a separate PR :)

And agreed, thanks for working on this!

@micahmo
Copy link
Member

micahmo commented Aug 21, 2023

@machinaeZER0 How do you feel about the vertical height of the heading now? Does it look funny extending past where the buttons go?

@machinaeZER0
Copy link
Collaborator

Sorry, is it possible to see a before/after screenshot? Want to make sure I'm looking at the specific change you mean

@micahmo
Copy link
Member

micahmo commented Aug 21, 2023

I know I'm majorly nitpicking at this point 😆 Also pardon the awful lines.

image

image

@machinaeZER0
Copy link
Collaborator

Ahh, thank you! I personally don't mind how this is laid out :) if it breaks over two lines like this then I think the icons being vertically centered is the expected approach (unless you're saying they're not quite centered?)

What was your thinking in terms of an alternative?

Also, I wouldn't be opposed to some sort of implementation that includes icons as well (to your other point), but personally I am good with this overhaul that does not feature them. Would be happy to look at a mockup if you felt strongly though!

@micahmo
Copy link
Member

micahmo commented Aug 21, 2023

if it breaks over two lines like this then I think the icons being vertically centered is the expected approach (unless you're saying they're not quite centered?)

Sorry I still wasn't clear! I meant should the heading be shrunk to fit so it doesn't overflow. But looking at other apps, they overflow too (maybe to a lesser extent), so I'll drop it. 😆

image

@machinaeZER0
Copy link
Collaborator

We could always revisit shrinking the title - I kinda like the size it is, but I don't feel super strongly about it!

@micahmo
Copy link
Member

micahmo commented Aug 21, 2023

I'll trust your judgement on the UI! @tom-james-watson want to resolve the conflict and I'll merge?

@tom-james-watson
Copy link
Contributor Author

tom-james-watson commented Aug 22, 2023

For reference, this is the default size of the title in the ListTitle widget.

image

Personally I prefer the larger text. It also keeps it consistent with the title sizing on other pages.

@tom-james-watson
Copy link
Contributor Author

Fixed the conflict 👍

@micahmo micahmo merged commit 5bd7e97 into thunder-app:develop Aug 22, 2023
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.

3 participants