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

Infinite Loading Inbox #1478

Merged
merged 21 commits into from
Dec 8, 2024
Merged

Infinite Loading Inbox #1478

merged 21 commits into from
Dec 8, 2024

Conversation

EricBAndrews
Copy link
Member

Checklist

  • I have read CONTRIBUTING.md
  • I have described what this PR contains
  • If this PR alters the UI, I have attached pictures/videos
  • This PR addresses one or more open issues that were assigned to me:
    - closes Infinite inbox loading #1432

Pull Request Information

Frontend changes for mlemgroup/MlemMiddleware#74.

Mostly just updates to use InboxFeedLoader and friends. The main notable change is that items are not all hidden when "mark all as read" is used. This is consistent with how the feed behaves when read items are filtered out and the user marks an item as read (i.e., it remains visible)

This PR also includes a minor tweak to show the media type indicator when developer mode is active, rather than guarding it in #DEBUG. This should make daily driving a local dev build nicer, plus offer that insight in the production app as well if needed.

@EricBAndrews EricBAndrews requested a review from a team as a code owner December 6, 2024 01:35
@EricBAndrews EricBAndrews requested review from WestonHanners and JakeShirley and removed request for a team December 6, 2024 01:35
@EricBAndrews EricBAndrews requested a review from Sjmarf December 6, 2024 01:59
@EricBAndrews EricBAndrews changed the title Eric/inbox feed loader Infinite Loading Inbox Dec 6, 2024
Copy link
Contributor

@Sjmarf Sjmarf left a comment

Choose a reason for hiding this comment

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

Found a few bugs:

  • The "inbox is outdated" popup isn't shown anymore when the tab badge count changes.
  • The "Load more" button flashes briefly when loading a new page.
  • The inbox doesn't respect the "Infinite scroll" setting - is this intentional?

This PR closes #1479 💯

@EricBAndrews
Copy link
Member Author

The inbox doesn't respect the "Infinite scroll" setting - is this intentional?

Yes. The theory is that manual page loading is a time management tool, but since people don't really "scroll" their inbox like they do a feed it doesn't make sense in that context.

@EricBAndrews
Copy link
Member Author

The "Load more" button flashes briefly when loading a new page.

This one was a middleware issue--fixed here. It was a super trivial change (just needed to move the loading state assignment to after the item assignment), so I went ahead and merged the middleware side--if there are other issues that need a middleware fix I'll open a new one

@EricBAndrews EricBAndrews requested a review from Sjmarf December 8, 2024 18:05
Copy link
Contributor

@Sjmarf Sjmarf left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

Mlem/App/Views/Shared/EndOfFeedView.swift Outdated Show resolved Hide resolved
Mlem/Localizable.xcstrings Outdated Show resolved Hide resolved
@EricBAndrews EricBAndrews enabled auto-merge (squash) December 8, 2024 18:25
@EricBAndrews EricBAndrews merged commit bd352ec into dev Dec 8, 2024
2 checks passed
@EricBAndrews EricBAndrews deleted the eric/inbox-feed-loader branch December 8, 2024 18:26
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.

Infinite inbox loading
2 participants