Commit Graph

1575 Commits

Author SHA1 Message Date
Dan Abramov d6e9ce83fb Fix crash 2023-12-23 02:12:46 +00:00
Dan Abramov f6e921efbd Naming etc 2023-12-23 02:01:55 +00:00
Dan Abramov b7b46ea6fb Fixes and types 2023-12-23 01:53:46 +00:00
Dan Abramov d83a9aceab Cleanup 2023-12-23 01:40:01 +00:00
Dan Abramov 24f5dd593d Cleanup 2023-12-23 01:17:39 +00:00
Dan Abramov af254768a4 Layout fixes 2023-12-22 22:38:33 +00:00
Dan Abramov a76746d3c7 Better positioning 2023-12-22 21:57:05 +00:00
Dan Abramov f3972c44f7 Scroll to post 2023-12-22 20:41:07 +00:00
Dan Abramov 57782eb54d onContentSizeChange 2023-12-22 20:12:10 +00:00
Dan Abramov 05d584cb33 Merge branch 'main' into web-layout 2023-12-22 02:53:34 +00:00
Dan Abramov 72d01685b0 Fix pager scroll restoration 2023-12-22 02:52:23 +00:00
dan bc31da47fd Consolidate List props a bit (#2216) 2023-12-21 14:56:45 -08:00
Hailey fedb94dd70 3rd party embed player (#2217)
* Implement embed player for YT, spotify, and twitch

* fix: handle blur event

* fix: use video dimensions for twitch

* fix: remove hack (?)

* fix: remove origin whitelist (?)

* fix: prevent ads from opening in browser

* fix: handle embeds that don't have a thumb

* feat: handle dark/light mode

* fix: ts warning

* fix: adjust height of no-thumb label

* fix: adjust height of no-thumb label

* fix: remove debug log, set collapsable to false for player view

* fix: fix dimensions "flash"

* chore: remove old youtube link test

* tests: add tests

* fix: thumbless embed position when loading

* fix: remove background from webview

* cleanup embeds (almost)

* more refactoring

- Use separate layers for player and overlay to prevent weird sizing issues
- Be sure the image is not visible under the player
- Clean up some

* cleanup styles

* parse youtube shorts urls

* remove debug

* add soundcloud tracks and sets (playlists)

* move logic into `ExternalLinkEmbed`

* border radius for yt player on native

* fix styling on web

* allow scrolling in webview on android

* remove unnecessary check

* autoplay yt on web

* fix tests after adding autoplay

* move `useNavigation` to top of component

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-12-21 14:33:46 -08:00
Dan Abramov 79eadf5141 Remove bad idea 2023-12-21 17:19:55 +00:00
Dan Abramov e09b3185bb Fix some issues with restoration 2023-12-21 02:46:30 +00:00
Dan Abramov 749b6845c5 Merge branch 'main' into web-layout 2023-12-21 02:38:54 +00:00
Paul Frazee d068cb1939 Web composer improvements (#2257)
* Keep the emoji picker in the tablet width (close #1880)

* Support pressing tab to select a mention (close #1831)
2023-12-20 16:55:29 -08:00
Paul Frazee 39a5a1e311 Fix the is13 check in account creation (close #2258) (#2259) 2023-12-20 13:44:52 -08:00
Kev 238ff58db9 Fix image is cropped in alt text modal (#1963) 2023-12-20 12:59:43 -08:00
Elie Michel 2a94e6a2ef Restore autofocus on emoji drop down (#1821) 2023-12-20 10:33:00 -08:00
Samuel Newman 4a93a5b6ad Invalid handle autocomplete (#2251)
* refactor invalid handle check from a previous PR to use util function

* add invalid handle check to `prefixMatch`
2023-12-20 09:50:50 -08:00
Eric Bailey e87065f042 Try to fix scroll indicator on Feeds page (#2245)
* Try to fix scroll indicator on Feeds page

* Apply to List
2023-12-19 10:32:17 -08:00
Dan Abramov 998d08f9bc Merge branch 'main' into web-layout 2023-12-19 02:54:41 +00:00
Dan Abramov 4bd43e4fbf Scroll restore for tabs 2023-12-19 02:52:29 +00:00
Eric Bailey 14c77255dd Use same source for pinned feeds on Home and tab/sidebars (#2235) 2023-12-18 14:42:37 -08:00
Eric Bailey 8df4fd4d57 Move label appeal to post dropdown (#2236)
* Move appeal from post to dropdown

* Translate

* Tweak copy on the appeal label modal

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-12-18 14:38:59 -08:00
Eric Bailey 726bbd2b6d Add search button to logged out view (#2237) 2023-12-18 14:31:47 -08:00
Eric Bailey 699749cb75 Set numberOfLines for Android text input (#2238)
* Set numberOfLines for Android text input

* Let's go with 4
2023-12-18 14:28:29 -08:00
Ansh 1cf5a0b0fc Fix 2231 Modal overlap on double modal open (#2239)
* add same multiple snapPoints to Confirm modal

* snapToIndex instead of confirm
2023-12-18 14:26:43 -08:00
Ansh 7af4825911 fix Create Account metrics (#2242) 2023-12-18 14:24:06 -08:00
Samuel Newman edc6bdb4d6 use s.likeColor everywhere (#2234) 2023-12-18 09:47:17 -08:00
Eric Bailey 9ff1828437 Fix Logotype fill for dark mode (#2230)
* Fix fill of Logotype in dark mode

* Update default Logotype fill
2023-12-18 09:20:58 -08:00
Eric Bailey 47ff3e8e3f Hide label appeal on self-labeled posts (#2232)
* Hide appeal for self-labeled post, update copy

* Use correct logic
2023-12-18 09:16:33 -08:00
Hima b942da162a Fix: Some display issues (#2219)
* Update LeftNav.tsx

* Update RightNav.tsx
2023-12-18 18:28:58 +05:30
Paul Frazee 9f82441c37 Update splash screen tagline, update translations, bump ios build number 2023-12-17 15:28:04 -08:00
Paul Frazee 2a712630b4 Traffic reduction and tuned caching strats (#2215)
* Update the feed to only check latest on focus after 30s, but to do a full reset on focus after 1 hour to avoid very stale data

* Remove the isFeedPublic query

* Fix: avoid double next-page fetches

* Reduce some poll intervals to reduce server load

* Guard against double-fires of fetchNextPage

* Reduce polling on blurred screens
2023-12-15 15:49:07 -08:00
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 a0d006a1ac Log post creation failures (#2205) 2023-12-14 15:55:35 -08:00
Eric Bailey 1111108efe Some brand, some pwi (#2212)
* Add logo to left nav in logged out

* Protect last routes

* Hide links in left nav, hide nav

* Replace bottom bar for pwi

* Remove same links from drawer

* Hide reply prompt

* Allow search
2023-12-14 15:46:27 -08: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