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 profile feedgens by likes #4380

Merged
merged 4 commits into from
Jun 11, 2024
Merged

Sort profile feedgens by likes #4380

merged 4 commits into from
Jun 11, 2024

Conversation

estrattonbailey
Copy link
Member

Sorts each page of profile feedgens by likes. Because this is per-page, I upped the page size to 50 to lower the chances of not getting a good sort for users with many feeds.

I also considered appending results and re-sorting as it paginates, but this would mean that if a popular feed loads from page 2, it would get sorted to the top out of the user's view, and they still may not see it. So best to retain per-page sorts for the moment.

Copy link

render bot commented Jun 5, 2024

Copy link

github-actions bot commented Jun 5, 2024

Old size New size Diff
7.39 MB 7.39 MB 79 B (0.00%)

@gaearon gaearon merged commit 14cddb7 into main Jun 11, 2024
6 checks passed
@gaearon gaearon deleted the sort-feeds branch June 11, 2024 01:55
estrattonbailey added a commit that referenced this pull request Jun 11, 2024
* origin/main: (54 commits)
  patch `expo-notifications` to clear badge (#4475)
  Revert to old modal on android (#4458)
  Sort profile feedgens by likes (#4380)
  Revert "Fix undefined block (#4471)" (#4472)
  Fix undefined block (#4471)
  Open convo menu when tapping on chat with deleted account (#4470)
  stop using `addPushTokenListener` (#4467)
  add hitslop to repost button (#4469)
  Add a loading indicator to notifications when loading latest (#4468)
  Visually improve the empty state of feeds (#4466)
  Give a meaningful error in the composer when replying to a deleted post (#4464)
  Fix: show known feed error UI more reliably (#4463)
  Only validate persisted data for existing users (#4465)
  Check `canAskAgain` for notification permissions (#4460)
  Add support for new-tab clicks on feeds (#4462)
  Override legacy language codes for indonesian, hebrew, and yiddish (#4461)
  Ungate mobile web notification badge (#4459)
  Fix (#4430): Use separate hooks for shell mode animated styles (#4451)
  Throttle instead of debounce (#4456)
  debounce refetching listconvos (#4455)
  ...
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