Skip to content

anchors 9/n: Add anchor, fetchNewer, haveNewest to msglist view-model #1515

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

Merged
merged 20 commits into from
Jun 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
debe99e
msglist [nfc]: Build end-of-feed widgets in a helper method
gnprice May 8, 2025
d831280
msglist [nfc]: Say we'll show "loading" even when fetch is at other end
gnprice May 2, 2025
3be9377
msglist [nfc]: Use `fetched` getter when reading
gnprice May 2, 2025
b1f97c6
msglist [nfc]: Use an enum for fetched/fetching/backoff state
gnprice May 2, 2025
babef41
msglist [nfc]: Split unfetched vs fetchInitial states, just for asserts
gnprice May 4, 2025
5aec54d
msglist [nfc]: Unify fetch/cooldown status as busyFetchingMore
gnprice May 2, 2025
70c31c3
msglist [nfc]: Rename backoff state to share between older/newer
gnprice May 2, 2025
b75f168
msglist [nfc]: Rename fetchingMore status from fetchOlder
gnprice May 2, 2025
7558042
msglist [nfc]: Pull out a _setStatus method
gnprice May 2, 2025
6ff889b
msglist [nfc]: Introduce haveNewest in model, always true for now
gnprice May 2, 2025
7793458
msglist: Set haveNewest from response, like haveOldest
gnprice May 2, 2025
dcaf366
test [nfc]: Generalize a helper eg.getMessagesResult
gnprice May 17, 2025
f3fb431
msglist [nfc]: Rearrange to follow normal ordering of class members
gnprice May 18, 2025
14a6695
msglist [nfc]: Document narrow field; make setter private
gnprice May 8, 2025
44b49be
msglist: Send positive numAfter for fetchInitial
gnprice May 8, 2025
ce98562
msglist: Make initial fetch from any anchor, in model
gnprice May 8, 2025
4fc6862
msglist [nfc]: Cut default for MessageListView.anchor
gnprice May 17, 2025
21d0d5e
msglist test [nfc]: Simplify a bit by cutting redundant default narrow
gnprice May 17, 2025
2f69e7c
msglist [nfc]: Factor out _fetchMore from fetchOlder
gnprice May 2, 2025
7820fd9
msglist: Add fetchNewer method to model
gnprice May 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading