Commit Graph

2190 Commits

Author SHA1 Message Date
Dan Abramov 634b76dc3d Hook up context scroll handlers 2023-12-15 06:21:55 +00:00
Dan Abramov 534427d234 Fixes 2023-12-15 06:07:43 +00:00
Dan Abramov c01243620a Oops 2023-12-15 05:52:45 +00:00
Dan Abramov af03785aaf Make isScrolledDown work 2023-12-15 05:32:33 +00:00
Dan Abramov 4939766676 Simplify 2023-12-15 05:04:18 +00:00
Dan Abramov 4d74a91936 Rm unused 2023-12-15 04:52:28 +00:00
Dan Abramov 290b085de1 More stuff 2023-12-15 04:43:14 +00:00
Dan Abramov 60584cb7ce Merge branch 'consolidate-list-props' into web-layout 2023-12-15 04:27:26 +00:00
Dan Abramov d90088f998 Consolidate List props a bit 2023-12-15 02:48:50 +00:00
Eric Bailey 7897dd24a1 🤫 (#2211)
* Add new assets

* Add splashiness

* Add butter icon, spread it

* Cream together eggs, sugar, and vanilla

* Hi, I'd like to place and order. Yeah, none pizza with left beef, plz.

* test

* Refine animation

* tweak

* tweak

* tweak

* Tweak

* Simplify

* Cleanup

* Fix android logo

---------

Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
2023-12-14 14:48:40 -06:00
Dan Abramov bf4c279b96 Add scroll handler 2023-12-14 19:32:11 +00:00
Dan Abramov a132040a76 Move the fork to List.web 2023-12-14 19:02:57 +00:00
Paul Frazee 075ffdf583 PWI behavior updates (#2207)
* Enable PWI

* Disable access to feeds on PWI

* Remove feeds nav item from drawer when signed out

* Replace discover feed on home with a CTA

* Wire up the sign in and create account buttons to go straight to their respective screens

* Give a custom ScreenHider interface for no-pwi

* Add side borders on desktop to the screen hider

* Filter accounts in the autocomplete according to mod settings

* Trim replies in the post thread that are pwi opt-out

* Show 'learn more' on the content hider when no-override is enabled

* Apply the moderation filter on profile cards

* Disable post search on logged-out view

* Update locale files

* Bump api pkg

* Ensure feeds with no posts don't show as NSFPublic

* Fix types

---------

Co-authored-by: Eric Bailey <git@esb.lol>
2023-12-14 10:31:49 -08:00
dan 7fd7970237 Make scroll handling contextual (#2200)
* Add an intermediate List component

* Fix type

* Add onScrolledDownChange

* Port pager to use onScrolledDownChange

* Fix on mobile

* Don't pass down onScroll (replacement TBD)

* Remove resetMainScroll

* Replace onMainScroll with MainScrollProvider

* Hook ScrollProvider to pager

* Fix the remaining special case

* Optimize a bit

* Enforce that onScroll cannot be passed

* Keep value updated even if no handler

* Also memo it
2023-12-13 18:48:20 -08:00
Dan Abramov 90ea1288f2 Merge branch 'scroll-refactor' into web-layout 2023-12-14 02:39:43 +00:00
noriaki watanabe fa3ccafa80 Add i18n setup in build instructions (#2206) 2023-12-13 18:17:59 -08:00
Dan Abramov 659e574ea3 Also memo it 2023-12-14 01:29:16 +00:00
Dan Abramov f8b3740ed9 Keep value updated even if no handler 2023-12-14 01:29:16 +00:00
Dan Abramov 2756511600 Enforce that onScroll cannot be passed 2023-12-14 01:29:16 +00:00
Dan Abramov 0192031f28 Optimize a bit 2023-12-14 01:29:16 +00:00
Dan Abramov a4473c91b7 Fix the remaining special case 2023-12-14 01:29:16 +00:00
Dan Abramov 0c0ea088fc Hook ScrollProvider to pager 2023-12-14 01:29:16 +00:00
Dan Abramov 2970b1e515 Replace onMainScroll with MainScrollProvider 2023-12-14 01:29:16 +00:00
Dan Abramov 7c06a4eeb9 Remove resetMainScroll 2023-12-14 01:29:16 +00:00
Dan Abramov 9e12ea5143 Don't pass down onScroll (replacement TBD) 2023-12-14 01:29:16 +00:00
Dan Abramov b1cb4ef4de Fix on mobile 2023-12-14 01:29:16 +00:00
Dan Abramov b93ab428c3 Port pager to use onScrolledDownChange 2023-12-14 01:29:16 +00:00
Dan Abramov b4de3dda7d Add onScrolledDownChange 2023-12-14 01:29:16 +00:00
Dan Abramov c0eaaf8360 Fix type 2023-12-14 01:29:16 +00:00
Dan Abramov 7eb4ad6c29 Add an intermediate List component 2023-12-14 01:29:16 +00:00
Paul Frazee 5fa43530f6 Revert change to how notifications are loaded on mobile 2023-12-13 13:48:49 -08:00
Paul Frazee a713f77e03 1.59 2023-12-13 12:48:26 -08:00
Paul Frazee 8245e56747 Feed bugfixes (#2204)
* Dont show both an error and empty message in the feed

* Add a sanity check when attempting to fill the first 30
2023-12-13 12:17:14 -08:00
Paul Frazee e3ba014be0 More notifications improvements (#2198)
* On mobile, never replace the notifs under the user due to focus events

* Use the server's seenAt response to calculate isRead state locally
2023-12-13 12:16:55 -08:00
Paul Frazee eecf04489f Rework the rightnav overflow behavior to not obscure the scroll region (#2199) 2023-12-13 09:59:27 -08:00
Ansh 001bbb41bb Hotfix: Merge conflict in translation file (#2203)
* remove unused translation files

* re-run extract and compile
2023-12-13 19:48:53 +05:30
dan 0e3218db7d Memoize usePalette (#2201) 2023-12-13 07:09:07 +00:00
Eric Bailey b1f9454f1d Add fallback to email reminder modal (#2193)
* Add fallback to email reminder modal

* Add more debug
2023-12-12 15:18:38 -08:00
dan bf9cedb67b Clean up pager refs to fix crash (#2195) 2023-12-12 15:11:20 -08:00
Dan Abramov 6b701d447e Display: none inactive pages 2023-12-12 22:15:50 +00:00
Dan Abramov 339bfaae2d Remove onScroll 2023-12-12 22:15:50 +00:00
Dan Abramov ed7deadf02 Fix profile layout 2023-12-12 22:15:50 +00:00
Dan Abramov 840c07ddf2 More layouts 2023-12-12 22:15:50 +00:00
Dan Abramov d3ed9abd8d More layout 2023-12-12 22:15:50 +00:00
Dan Abramov a71f96a527 Fix more layout 2023-12-12 22:15:50 +00:00
Dan Abramov ccc287274e Layout fixes 2023-12-12 22:15:50 +00:00
Dan Abramov f58487efc9 More FlatList parity 2023-12-12 22:15:50 +00:00
Dan Abramov 2ab2f8ab5a Fixes to layout 2023-12-12 22:15:50 +00:00
Dan Abramov 163c2d25c1 Fix borked scroll animation 2023-12-12 22:15:50 +00:00
Dan Abramov cc34ae9b82 Fix types 2023-12-12 22:15:50 +00:00