Shadowfacts
ba2c34fdd6
Persist timeline state using CoreData, rather than NSUserActivity
...
This allows persisting state for all the primary timelines, and across
all accounts.
Closes #297
Closes #293
2022-12-13 13:31:34 -05:00
Shadowfacts
4f48514d1a
Actually only restore existing statuses
2022-12-08 20:15:12 -05:00
Shadowfacts
57668886b2
Fix crash when scrolling through Local/Federated timeline with VoiceOver
...
It seems that the accessibility scroll mechanism does something like:
1. Find the next IndexPath to focus
2. Scroll to make it visible
3. Focus that cell
But because the timeline description cell is removed during the scroll,
the IndexPath that the accessibility system wants to focus becomes
invalid between steps 2 and 3, causing a crash when trying to focus it.
As a workaround, only remove the timeline description _item_ rather than
the header section so that section indices aren't affected.
Closes #290
2022-12-06 21:46:32 -05:00
Shadowfacts
40ff8d0a2a
VoiceOver: improve description of gap cell, add actions to specify direction
2022-12-05 18:43:32 -05:00
Shadowfacts
0dcb7e71c4
Also perform jump to present check when the timeline VC reappears onscreen
2022-12-05 18:27:23 -05:00
Shadowfacts
3ea7e1057b
Add preference to disable timeline state restoration
2022-12-05 17:24:01 -05:00
Shadowfacts
fc8fcb76fd
Fix crash when TimelineViewController tries to apply snapshot while not visible
2022-12-05 17:17:34 -05:00
Shadowfacts
eac2a9b19f
Move VoiceOver Jump to Present action to timeline pages segmented control
2022-12-05 17:13:45 -05:00
Shadowfacts
0ce57d1308
More fiddling with how Jump to Present works
...
Now, when loading present items, they're inserted into the data source
immediately along with a gap. If the user taps Jump to Present, then a
new snapshot _with only the present items_ will be applied (which allows
infinite scrolling to work properly when they scroll back down) and the
view scrolled-to-top. Tapping Go Back, then, applies the original
snapshot (i.e., the current one from when Jump to Present was tapped)
and restores the scroll position.
2022-12-05 17:09:11 -05:00
Shadowfacts
b64c748b73
Add Jump to Present VoiceOver action
...
Closes #288
2022-12-04 22:06:04 -05:00
Shadowfacts
5f3d9da9f8
Only try to restore statuses that exist in the cache
...
This could result in discontinuities in the restored timeline, but I'm
not sure there's anything better we could do.
2022-12-04 17:34:28 -05:00
Shadowfacts
f1b1732e5c
Fix filter HTML to attributed string conversion optimization not being applied 🤦♂️
2022-12-04 15:36:26 -05:00
Shadowfacts
e3e55de55b
Fix hide filter action not working on profiles
2022-12-04 12:11:52 -05:00
Shadowfacts
54857a3bf3
Avoid converting HTML to attributed string twice when displaying a status cell for the first time
...
Now, when Filterer performs the conversion, the status cell can reuse
the attributed string.
2022-12-04 12:08:22 -05:00
Shadowfacts
6501343f24
Reapply filters on when they change
2022-12-04 10:54:02 -05:00
Shadowfacts
fabe339215
VoiceOver: Indicate filtered posts, make double tapping expand them
2022-12-03 23:20:19 -05:00
Shadowfacts
e1886509d3
Filter statuses on profiles
2022-12-03 23:11:09 -05:00
Shadowfacts
75e9c9f986
Fix home/list filters not applying to lists
2022-12-03 23:11:09 -05:00
Shadowfacts
a17afe247c
Better filter cell and animation for showing filtered post
2022-12-03 23:11:09 -05:00
Shadowfacts
81abcfcf7b
Timeline filtering!
2022-12-03 22:16:43 -05:00
Shadowfacts
cde3109203
Rename StatusState to CollapseState
2022-12-03 18:21:49 -05:00
Shadowfacts
fcf95ba8c1
Filters view UI tweaks
2022-12-03 15:22:10 -05:00
Shadowfacts
16a1e4008b
V2 filters API, CoreData, and editing UI
2022-12-03 12:29:11 -05:00
Shadowfacts
c6da754875
Indicate when a followed hashtag caused a post to appear in the home timeline
2022-11-29 23:14:36 -05:00
Shadowfacts
80f9800fd6
Completely replace all items when jumping to present
2022-11-29 20:53:00 -05:00
Shadowfacts
811aac35d7
Fix timeline statuses not getting deselected when entering split nav
...
Closes #275
2022-11-29 10:29:40 -05:00
Shadowfacts
ea6698a2d8
State restoration for non-home timeline pages
2022-11-28 16:33:19 -05:00
Shadowfacts
c256fb4cbd
When refreshing timeline, hide activity indicator as soon as loadNewer completes
2022-11-26 17:33:58 -05:00
Shadowfacts
21299c8eb8
Fix error when refreshing timeline with no items
2022-11-26 17:33:07 -05:00
Shadowfacts
23f9e200dc
Fix potential crash when trying to save timeline state
2022-11-24 12:14:19 -05:00
Shadowfacts
366834e2e4
Tweak timeline state restoration to maintain scroll position of center item
2022-11-24 11:05:56 -05:00
Shadowfacts
40800f964d
Fix jump to present not scrolling all the way to the top
2022-11-23 11:58:52 -05:00
Shadowfacts
c2cb0a0c5a
Timeline state restoration
2022-11-23 11:35:25 -05:00
Shadowfacts
47b838a386
Change timeline gap-filling to do a proper job of maintaining the bottom-relative scroll position
2022-11-21 22:47:44 -05:00
Shadowfacts
c8319d8af2
Remove old and debug code
2022-11-19 13:11:29 -05:00
Shadowfacts
9ff1452c68
Show jump to present toast if necessary when scene re-appears
2022-11-19 13:09:37 -05:00
Shadowfacts
ce534c4a05
Actual gap cell implementation
2022-11-19 11:15:14 -05:00
Shadowfacts
0fddf94292
Timeline jump to present
2022-11-18 20:49:15 -05:00
Shadowfacts
8276e99d27
Timeline gaps and gap filling
2022-11-18 17:29:55 -05:00
Shadowfacts
319b5458fc
Fix refreshing not loading initial when previous attempt failed
...
Closes #214
2022-11-09 19:15:08 -05:00
Shadowfacts
ba032412eb
Fix timeline reloading every time VC appears
...
Caused by changes to TimelineLikeController required to let list
timelines reload from scratch
2022-11-02 22:06:07 -04:00
Shadowfacts
b1d83f2746
Switch hashtag/instance/list timelines to use new collection view impl
2022-11-01 21:10:41 -04:00
Shadowfacts
658c08010d
Re-add undo scroll-to-top to timelines/profiles
2022-11-01 20:49:07 -04:00
Shadowfacts
b755607895
Fix crash when TimelineStatusTableViewCell outlives its containing VC
2022-10-31 17:33:33 -04:00
Shadowfacts
6bb1f3b7dc
Finish converting profiles to collection views
2022-10-28 21:31:18 -04:00
Shadowfacts
5f410213e2
Start converting profile statuses to collection view
2022-10-28 19:17:33 -04:00
Shadowfacts
868df25417
Disable pruning offscreen rows in new timelines
...
I don't think this is actually necessary, the system should kill us
often enough that the amount of items in the data source doesn't become
unmanageable.
Making modifications to the data source in viewDidDisappear was causing
the collection view's contentOffset to change to be scrolled to top
(roughly) when the view became visible again.
Disabling it also fixes several issues caused by updating the data
source even when there were no changes.
Closes #193
Closes #192
Closes #187
Closes #186
2022-10-28 19:05:07 -04:00
Shadowfacts
8cf217d2ba
Fix crash when trying to prune rows before statuses have loaded
2022-10-10 16:21:08 -04:00
Shadowfacts
c15a5fc90f
Fix reblog statuses being selected in timeline
2022-10-10 14:23:27 -04:00
Shadowfacts
a703b7cc0a
Prune offscreen rows on new timeline
2022-10-09 20:11:00 -04:00