Skip to content

Members: allow user to choose what to sort by#410

Merged
chadwhitacre merged 2 commits intomainfrom
vladh/sort-members-by-date-joined
May 19, 2025
Merged

Members: allow user to choose what to sort by#410
chadwhitacre merged 2 commits intomainfrom
vladh/sort-members-by-date-joined

Conversation

@vladh
Copy link
Copy Markdown
Member

@vladh vladh commented May 9, 2025

@vladh vladh requested a review from chadwhitacre May 9, 2025 00:27
Copy link
Copy Markdown
Contributor

@chadwhitacre chadwhitacre left a comment

Choose a reason for hiding this comment

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

Ooh! I was thinking we would make it optional, if I'm reading this right it changes the sort from one to the other but the viewer can't chose, correct?

@vladh vladh force-pushed the vladh/sort-members-by-date-joined branch from e1d76f4 to cb39871 Compare May 15, 2025 21:13
@vladh vladh marked this pull request as draft May 15, 2025 21:13
@vladh vladh force-pushed the vladh/sort-members-by-date-joined branch 3 times, most recently from ee4e104 to 6048def Compare May 16, 2025 08:53
@vladh vladh marked this pull request as ready for review May 16, 2025 08:53
@vladh
Copy link
Copy Markdown
Member Author

vladh commented May 16, 2025

@chadwhitacre Got it! This is now ready for review. The user can now select what to sort by. 🎉

Staging deployment: https://osp-staging.vlad.website/members/

Desktop

2025-05-16-09-42-39
2025-05-16-09-42-46
2025-05-16-09-42-52
2025-05-16-09-42-58

Mobile

IMG_9517
IMG_9518
IMG_9519

@vladh vladh changed the title Members: sort by join date Members: allow user to choose what to sort by May 16, 2025
Copy link
Copy Markdown
Contributor

@chadwhitacre chadwhitacre left a comment

Choose a reason for hiding this comment

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

Yay! Should we add the date itself in the UI?

@chadwhitacre
Copy link
Copy Markdown
Contributor

Another follow on would be asc/desc

@vladh
Copy link
Copy Markdown
Member Author

vladh commented May 16, 2025

I'm afraid that adding the date to the cards will make them too cluttered…but I can try it!

Can absolutely add asc/desc to the sort if you think it's useful — doing that now.

@vladh vladh force-pushed the vladh/sort-members-by-date-joined branch from 6048def to 74ac790 Compare May 16, 2025 13:23
@vladh
Copy link
Copy Markdown
Member Author

vladh commented May 16, 2025

@chadwhitacre I've added ascending and descending sorting:

2025-05-16-14-20-44

I have not added the member join date to the UI of the member list. Adding it would make the card view cluttered, and it just won't fit in the table, especially on mobile.

Instead, I've added the join date to the individual member pages:

2025-05-16-14-23-27

What do you think?

Happy to do any tweaks you'd like, otherwise this is good to merge whenever.

@vladh
Copy link
Copy Markdown
Member Author

vladh commented May 16, 2025

ScreenRecording_05-16-2025.14-27-01_1.mp4

@chadwhitacre chadwhitacre merged commit ac2a254 into main May 19, 2025
4 checks passed
@chadwhitacre chadwhitacre deleted the vladh/sort-members-by-date-joined branch May 19, 2025 17:59
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