Commit Graph

2882 Commits

Author SHA1 Message Date
Samuel Newman edbb18afa4 Throttle gif search by 500ms (#3622)
* debounce gif search by 300ms

* Throttle it instead

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-19 22:55:53 +01:00
Samuel Newman 8b33ffdfb5 Add disable autoplay preference and group related settings into a dedicated page (#3626)
* add autoplay preference

* group accessibility settings into a dedicated page

* fix gray background on web

* Put a11y first

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-19 22:10:37 +01:00
dan ade2ea6172 Ungate Top/Latest search (#3627) 2024-04-19 21:58:18 +01:00
dan c42a557417 [Statsig] Send locale info (#3621) 2024-04-19 15:51:41 +01:00
dan 55aea348c2 [Statsig] Update experiments (#3617) 2024-04-19 15:23:47 +01:00
Hailey f709fbcbdd align center post meta in threaded (#3615)
* align center post meta in threaded

* put `displayNameStyle` in correct place

* maybe?

* with mobile padding too?
2024-04-19 05:38:54 +01:00
Hailey c91f065be5 add dimensions to data (#3616)
* add dimensions to data

* keep alt text

* put it in the right url

* just send the original height and width instead
2024-04-18 21:32:25 -07:00
Samuel Newman ba1c4834ab Add GIF select to composer (#3600)
* create dialog with flatlist in it

* use alf for composer photos/camera/gif buttons

* add gif icons

* focus textinput on gif dialog close

* add giphy API + gif grid

* web support

* add consent confirmation

* track gif select

* desktop web consent styles

* use InlineLinkText instead of Link

* add error/loading state

* hide sideborders on web

* disable composer buttons where necessary

* skip cardyb and set thumbnail directly

* switch legacy analytics to statsig

* remove autoplay prop

* disable photo/gif buttons if external media is present

* memoize listmaybeplaceholder

* fix pagination

* don't set `value` of TextInput, clear via ref

* remove console.log

* close modal if press escape

* pass alt text in the description

* Fix typo

* Rm dialog

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-19 03:42:26 +01:00
Takayuki KUSANO 2090738185 Update Japanese translation (#3557)
* Remove obsoleted entries

* Add new translation messages.

* Fix one translation

* Update Japanese translation
2024-04-18 14:28:49 -07:00
Frudrax Cheng bf5363c7dc Update zh-TW localization (#3564)
* Fix file format, punctuations and wording

* Some minor adjustments

* Update messages.po

* Remove superseded strings

* Some minor adjustments
2024-04-18 14:28:08 -07:00
Frudrax Cheng 2fb41566e9 Update zh-CN localization (#3565)
* Some minor adjustments

* Update messages.po

* Remove superseded strings
2024-04-18 14:27:19 -07:00
Ivan Beà bf2dccd2a2 Update catalan messages.po (#3595)
New lines translated again, just a few

You can check it @jordimas @darccio @ferranrego @MiquelAdell @mvdan @johnnydement @Mejans @surfdude29
2024-04-18 14:25:45 -07:00
Mary 08c6014751 Fix splash screen language picker appearance on Chrome (#2952)
* fix: correct language picker appearance on Chrome

* fix: prevent chevron shrink on long language names
2024-04-18 14:21:09 -07:00
Gildásio Filho 3beb4ec63d Update messages.po (#3610) 2024-04-18 13:54:23 -07:00
Dovgonosyk 91190e11e2 Update Ukrainian translation (#3552)
Co-authored-by: Ukrainians <github-actions@github.com>
2024-04-18 13:53:54 -07:00
Minseo Lee 7e72a73bee Update Korean localization (#3551)
* Update messages.po

* Update messages.po

* Update messages.po
2024-04-18 13:44:14 -07:00
Samuel Newman 1a5b8b2c94 Add layout transitions to the composer photo gallery on iOS (#3609)
* add layoutanimation + transition to images

* make iOS-only

* use useLayoutEffect

* make iOS only (again)
2024-04-18 12:37:22 -07:00
Eric Bailey 42c8a07551 Revert testing change 2024-04-18 12:06:36 -05:00
Eric Bailey a6d2921fa6 Hide primary feed setting outside exp 2024-04-18 12:03:44 -05:00
Eric Bailey c66529a6ef Merge remote-tracking branch 'origin/main' into halo/base
* origin/main:
  [Statsig] Slightly block the UI on gates (#3608)
  [Statsig] Prefetch configs for other accounts (#3607)
2024-04-18 12:02:02 -05:00
dan bef7d8a325 [Statsig] Slightly block the UI on gates (#3608) 2024-04-18 17:53:51 +01:00
Eric Bailey 98658a313f Missing following handling 2024-04-18 11:44:48 -05:00
Eric Bailey a26c08f95e Simplify logic 2024-04-18 11:34:35 -05:00
Eric Bailey 0521488d05 Filter dupe from Feeds screen 2024-04-18 11:11:36 -05:00
Eric Bailey abc9b48eef Filter out primary algo from feeds page 2024-04-18 11:08:56 -05:00
Eric Bailey b5e57c8768 Move gate call down 2024-04-18 10:59:40 -05:00
Eric Bailey df501d870c Restore Feeds sparkle, fix line height 2024-04-18 10:46:49 -05:00
Eric Bailey aa1d1c23a5 Handle saved feed screen edge case 2024-04-18 10:34:51 -05:00
dan 6101c32bd9 [Statsig] Prefetch configs for other accounts (#3607)
* Poll both current and other accounts

* Make createStatsigOptions a function

* Pass prefetchUsers with the initial request

* Add initializeCalled check

* Be resilient to object identity changes

* Decrease poll interval to 1 minute
2024-04-18 16:26:05 +01:00
Eric Bailey 6a8b670ae3 Better comment 2024-04-18 10:21:55 -05:00
Eric Bailey e02ea9ee26 Clarify primary algo usage 2024-04-18 10:19:57 -05:00
Eric Bailey 9351281fd9 Better formatting 2024-04-18 10:14:02 -05:00
Eric Bailey 699ddc8de0 Support following feed as well 2024-04-18 10:09:20 -05:00
Eric Bailey a255de4775 Revert unneeded changes 2024-04-18 10:07:36 -05:00
Eric Bailey bb53548541 Update statsig API 2024-04-18 10:03:22 -05:00
Eric Bailey 9075b123d5 Improve perf of pinned feeds with primary algo 2024-04-18 09:56:58 -05:00
Eric Bailey d976684ddf Fix pinned feeds key 2024-04-18 09:56:58 -05:00
Eric Bailey 6f35e50dbf Rename 2024-04-18 09:56:56 -05:00
Eric Bailey 38ce57acf1 Handle home algo on ProfileFeed screen 2024-04-18 09:56:52 -05:00
Eric Bailey 11cc7c7d96 Fix handling of pinned feed if home algo is disabled 2024-04-18 09:56:52 -05:00
Eric Bailey b81632ef5e Handle home algo in FeedSourceCard 2024-04-18 09:56:52 -05:00
Eric Bailey 16cc338c86 Handle edge case 2024-04-18 09:56:52 -05:00
Eric Bailey 620f958f72 Simplify filter logic 2024-04-18 09:56:44 -05:00
Eric Bailey f6ec6ed207 Remove todo, fix pwi view 2024-04-18 09:56:44 -05:00
Eric Bailey e3a4fcc152 Handle home algo with backwards compat 2024-04-18 09:56:42 -05:00
dan 41b5b5b283 Add our own cache in front of Statsig (#3604) 2024-04-18 15:28:24 +01:00
dan 02becdf449 [Statsig] Make gate checks lazily (#3594) 2024-04-18 04:39:29 +01:00
Hailey 086dc93a7a don't underline handle in post meta (#3591)
* alignment

remove the unnecessary styles now

seriously?

flex-end everything

flex shrink

test

test

rm unneeded flex

flex the text

don't underline handle in post meta

* use `paddingLeft`

* use `paddingLeft` but with `4`

* Fix overflow color

* Use nbsp to make mobile work

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-18 03:09:10 +01:00
Hailey 410f155988 Cleanup files after upload on native (#3597)
* cleanup images after uploading from the composer

cleanup external embed images as well

cleanup files after upload

add `expo-file-system`

* remove test log

* await

* Revert "await"

This reverts commit 771814b40c.

* just log an error if it throws
2024-04-17 12:49:22 -07:00
Samuel Newman a2df81416b delete useMyFollowsQuery (#3529) 2024-04-17 19:39:37 +01:00