-
Notifications
You must be signed in to change notification settings - Fork 22
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 items in people view #670
Conversation
ef683c9
to
a9ed5d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @AlexPerathoner, thank you for taking the time to do this!
I noticed one bug with the sorting and one small thing I think we could improve upon (we could possibly be using just one list instead of two for storing the credits).
Let me know if I can help with anything (or if you want me to finish any of this)!
2ac4155
to
92d334f
Compare
Removed the two cached arrays into just one; updated methods to reflect that; updated sort method to treat shows which don't have a release date nor a first air date as unreleased (so they appear first when sorting by Newest and last when by Oldest). Also noticed that some people have duplicate items in them (because of different |
… .container - Removed min-width so improve responsivity for mobile (overflows). - Removed unused styles (margin-top/bottom that were overridden in .container). - Add max-width to match PosterList. - Remove .container and add styles to .filters (combined them).
No need for the filter when this is true, we can just pass the options var.
…credits array directly I believe this should be more performant (removing the use of spread operator) and is just a little cleaner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome, thank you!
I'm liking the less duplicates in the person view, it has always annoyed me!
p.s. I made a few tiny changes, didn't find any bugs, just changed around some code/styling.
Relates to #619
Changes made
Added sort dropdown to sort items in
/person/[id]
views by Vote count (former method), oldest / newest release date