Commit graph

32 commits

Author SHA1 Message Date
Alex Gleason
fbb460817f
Add JSDoc comments to timeline components 2022-06-03 13:09:46 -05:00
Alex Gleason
526d8a1d83
ScrollableList: track the second item instead of the top one 2022-06-02 21:22:40 -05:00
Alex Gleason
8baa4cd262
ScrollableList: clear scrollData useMemo if scrollKey changes 2022-06-02 20:40:39 -05:00
Alex Gleason
36fb7fea7d
ScrollableList: reset topOffset if node doesn't match 2022-06-02 20:37:51 -05:00
Alex Gleason
68e80aa7be
ScrollableList: nuke the overscan 2022-06-02 20:37:05 -05:00
Alex Gleason
a4a20ddbe6
ScrollableList: use debounce, not throttle 2022-06-02 20:36:49 -05:00
Alex Gleason
509b7b871b
ScrollableList: useMemo, useCallback, throttle, refactor, make it nice 2022-06-02 19:31:25 -05:00
Alex Gleason
aecf539581
ScrollableList: only restore scroll position when navigating back 2022-06-02 17:00:58 -05:00
Alex Gleason
a185ad45cd
StatusList TypeScript fixes 2022-06-02 14:00:35 -05:00
Alex Gleason
d0d9c0b460
StatusList: convert to TSX 2022-06-02 13:35:08 -05:00
Alex Gleason
577c391417
ScrollableList: fix desync scroll position, add 200px overscan 2022-06-01 19:36:55 -05:00
Alex Gleason
3d605913e8
Preserve scroll position perfectly 2022-06-01 18:47:07 -05:00
Alex Gleason
8052d5040a
ScrollableList: delete unused scrollerRef 2022-06-01 18:00:09 -05:00
Alex Gleason
e4b95534dc
Merge remote-tracking branch 'origin/develop' into scroll-position 2022-06-01 14:29:45 -05:00
beef2de673 Merge remote-tracking branch 'soapbox/develop' into hotkey-nav
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-20 21:00:42 +02:00
Alex Gleason
1fb9525635
Merge remote-tracking branch 'origin/develop' into scroll-position 2022-05-19 20:09:56 -05:00
Alex Gleason
533c356d60
ScrollableList: preserve index rather than scrollTop 2022-05-19 20:03:52 -05:00
Alex Gleason
ba0b4851f6
ScrollableList: save and restore scroll position 2022-05-19 16:09:22 -05:00
Justin
c6c65a0d48 Add infinite scroll to suggestions onboarding 2022-05-19 12:29:28 -04:00
721772b08f Fix hotkey navigation?
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-17 15:09:53 +02:00
Alex Gleason
1307b436b1
Focus the active item in the thread 2022-05-13 20:23:03 -05:00
5a86de5d13 Use useSettings hook
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-01 21:36:29 +02:00
d6795a55b1 Fix 'Automatically load more items…'
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-05-01 21:30:07 +02:00
Alex Gleason
bcb8d75f71
ScrollableList: don't call onLoadMore() unless it hasMore 2022-04-23 16:43:37 -05:00
Alex Gleason
7b6a56c005
ScrollableList: use Virtuoso component types 2022-04-23 11:28:28 -05:00
Alex Gleason
006e253e23
ScrollableList: Don't support autoloadMore for now
This setting allowed disabling endless scrolling, and would display a clickable "load more" button at the bottom of the feed.
2022-04-22 13:00:12 -05:00
Alex Gleason
083b3c22d0
ScrollableList: render emptyMessage inside the PullToRefresh 2022-04-22 12:56:06 -05:00
Alex Gleason
730556a692
ScrollableList: render a spinner if placeholder isn't provided 2022-04-22 12:27:37 -05:00
Alex Gleason
ae48cb2c06
ScrollableList: replace margins with padding 2022-04-22 12:24:09 -05:00
Alex Gleason
a8c306e62b
ScrollableList: add placeholder footer, fix "empty" state 2022-04-22 10:23:53 -05:00
Alex Gleason
0d463bbbd1
ScrollableList: fix empty children 2022-04-22 09:35:52 -05:00
Alex Gleason
b3f4abc8c1
Reimplement ScrollableList with Virtuoso 2022-04-21 21:50:12 -05:00