aboutsummaryrefslogtreecommitdiff
path: root/HutchTests/InboxViewModelTests.swift
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5 from zerolabsco/inbox-unread-baselineChristian Cleberg2026-07-151-0/+104
|\ | | | | Start a new account at zero unread
| * fix: start a new account at zero unreadChristian Cleberg2026-07-151-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An absent view record read as unread, so on first sign-in every thread a list had ever carried was unread. On a busy list that is thousands of threads the user never intended to read, inflating the Home dashboard, the needs-attention snapshot, and the widget with a number that means nothing. Record a baseline when an account is activated: mail that predates it is read, mail after it is not. activate() is the single funnel for launch validation, account switching, and adding an account, so one call covers every sign-in path. Accounts that already carry read state have been in use, so they get a distantPast baseline and keep every unread thread they had — upgrading must not silently mark a real backlog as read. markUnread now records an explicit distantPast marker instead of deleting the entry. Deleting would drop the thread back to the baseline rule, so marking an old thread unread would appear to do nothing.
* | refactor: share the email body diff splitterChristian Cleberg2026-07-151-1/+1
|/ | | | | | | | | | | | | segmentMessageBody and its helpers were private to ThreadViewModel, reachable from tests only through a segmentMessageBodyForTesting shim. Patchset review needs the same splitting, because sr.ht's Patch type carries no diff — the diff only exists inside the email body — so this has to be shared rather than duplicated. Moved to InboxThreadUtilities. The shim is gone; the existing test calls the real function directly now. Also adds the Patchset model layer that the coming views build on.
* fix: collapse work inbox messages into thread summariesv3.2.0Christian Cleberg2026-04-201-52/+3
|
* improve home attention flows and cross-linkingv2.14.0Christian Cleberg2026-04-121-0/+49
|
* feat: add search to builds, trackers, tickets, pastes, mailing lists, and inboxChristian Cleberg2026-03-221-0/+52
|
* feat: add support for reading inbox messages (emails) and replying in-appChristian Cleberg2026-03-191-0/+168