Commit Graph

2261 Commits

Author SHA1 Message Date
Hailey 8b85546f2e SP state cleanup (#4569) 2024-06-18 18:42:22 -07:00
Hailey 156de402b8 Merge branch 'main' into starter-packs 2024-06-18 18:26:59 -07:00
Hailey 8788708bd2 add support for ListEmptyComponent, allow undefined data (#4403)
* add support for `ListEmptyComponent`, allow `undefined` data

* change `header` and `footer` to be in line with `emptyComponent`

* don't render `onEndReached` or `onStartReached` `Visibility` if empty
2024-06-19 03:33:43 +03:00
Samuel Newman 3dc34be929 GIF previews in notifications (#4447)
* gifs in notifications

* remove try/catch

* Limit try/catch scope

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-06-19 03:09:06 +03:00
Paul Frazee 07c2be255f Collection of moderation fixes (#4566)
* Fix: dont blur parents in threads that embed blocks

* After tapping 'Show hidden replies', show the individual hider cards

* Add shape override to UserAvatar and fix the fallback avi for labelers

* Fix precedence

* Detect shape for DefaultAvatar

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-06-19 02:36:46 +03:00
Eric Bailey ac08c76168 Fix undefined block (#4479)
* Fix undefined block (#4378)

* Fix undefined block

* Changing text and handling all blocks.

* Tweaks

* Update copy, make non-interactive

* Remove console

* Clarify logic

* Pass through parent blocked state for 3p blocks

* Better translation

---------

Co-authored-by: Josh <hi@oracularhades.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-06-19 02:03:23 +03:00
Samuel Newman 2237e10ad2 fix gap between tab bar and its border (#4538) 2024-06-19 01:53:54 +03:00
Hailey fdbecff78d fix initial index selecton 2024-06-18 14:14:25 -07:00
Hailey 160bb42167 merge main 2024-06-18 12:11:32 -07:00
Paul Frazee d6ce16d15a Implement thread locking (#4545)
* Add the ability to edit threadgates

* Fix bottom border on mobile

* Refresh thread after threadgate edit
2024-06-18 12:07:56 -07:00
Eric Bailey 983d85384b Force callers of getTimeAgo to pass in the value for "now" (#4560)
* Remove icky hook for now

* Force callers of getTimeAgo to pass in the 'now' value

* Update usage in Newskie dialog
2024-06-18 21:50:07 +03:00
Samuel Newman 5f5d845053 Server-side thread mutes (#4518)
* update atproto/api

* move thread mutes to server side

* rm log

* move muted threads provider to inside did key

* use map instead of object
2024-06-18 21:48:34 +03:00
Hailey 78001943bc Merge remote-tracking branch 'origin/main' into starter-packs 2024-06-18 11:44:16 -07:00
Eric Bailey 35e54e24a0 Explore fixes (#4540)
* Use safe check, check for next page, handle varied lengths

* Fix border width

* Move safe check

* Add font_heavy and use it on the explore page headers

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2024-06-18 13:37:14 -05:00
Hailey 47ab1982a8 merge main 2024-06-18 11:32:19 -07:00
Hailey 73c9de3ce2 fix keyboard overlaying onboarding inputs (#4558) 2024-06-18 10:57:08 -07:00
Hailey ab71f13d63 merge in main 2024-06-18 09:21:34 -07:00
Eric Bailey 443beda741 Add useGetTimeAgo and utils (#4556)
* Create a testable version of ago() and re-enable the disabled test (#4364)

* Enable the test of ago()

* Use test cases

This puts the input and the expected values next to each other.

* Create dateDiff function

This is a copy of ago(), but with the ability to specify the second date instead of using Date.now().

* Let ago() use dateDiff()

* Move constants close to usage

* Test dateDiff instead of ago

This makes it possible to test the dates without being forced to rely on what the current date is.

The commented out tests do not yet pass. This is fixed in later commits.

* Update dateDiff and enable the remaining tests

* Split up tests, use date-fns as helpers

* Remove old test

* Add long format

* Add hook

* Migrate to hooks

* Delete old code

* Or equal to

* Update comment

---------

Co-authored-by: Jan Aagaard <jan@aagaard.net>
2024-06-18 10:55:02 -05:00
dan e30575c0dc Use exact imports for icons (#4549)
* Use exact imports for icons

* Add a lint rule
2024-06-18 15:37:08 +03:00
Hailey 6073a5c4ab Merge remote-tracking branch 'origin/main' into starter-packs 2024-06-17 16:41:05 -07:00
Hailey df985b6583 rm unused prop 2024-06-17 16:39:05 -07:00
Hailey ecd882ab7d nit comment 2024-06-17 16:37:40 -07:00
Hailey 3697c72f8c revert unused change to UserAvatar 2024-06-17 16:37:31 -07:00
Eric Bailey 077da08309 Explore feed cards (#4521)
* Replace FeedSourceCard on Explore page

(cherry picked from commit e7e9787bfaa9368bfaeaaa4ca144ab77b438219c)

* Replace FeedSourceCard on Search page

(cherry picked from commit ac47aade7622d359eee9509763cda666d964d8a3)
2024-06-17 13:56:11 -05:00
Eric Bailey 332524b7de Add native_pwi_disabled feature gate experiment (#4507)
* Add native_pwi_disabled feature gate experiment

* Use const
2024-06-17 13:21:09 -05:00
Hailey c5cdb1033c remove dev gate 2024-06-17 11:11:06 -07:00
Hailey 89be5a442c Add patch for RCTBaseTextInput fixing selectTextOnFocus prop (#4533)
* create patch

* remove js fix in `SearchScreen`
2024-06-17 10:56:02 +03:00
Hailey 3a61c3446a revert 2024-06-17 00:33:19 -07:00
Hailey c7ddaa1c4d handle used URLs nicely 2024-06-17 00:21:39 -07:00
Hailey fa004bc8df better handling 2024-06-16 23:05:04 -07:00
Hailey d4631b404a fix type errors 2024-06-16 22:48:20 -07:00
Hailey 7851d134d7 rework state 2024-06-16 22:27:53 -07:00
Hailey 19e1c4df09 properly store last used uri 2024-06-16 17:07:15 -07:00
Hailey 6e6253e54b Merge branch 'hailey/patch-react-native-textinput' into starter-packs 2024-06-16 16:13:06 -07:00
Hailey c19afb4608 Merge remote-tracking branch 'origin/main' into starter-packs 2024-06-16 16:12:29 -07:00
Hailey 9b195091ee remove js fix in SearchScreen 2024-06-16 16:01:19 -07:00
Hailey d0bb97e8a9 fix native post meta (#4530) 2024-06-16 12:23:48 +03:00
Hailey 1cca7efa0d fix entry initial state 2024-06-14 15:59:27 -07:00
Hailey d90c93e52c implement new feed card fully 2024-06-14 15:52:15 -07:00
Hailey f401fa8765 rm usetheme 2024-06-14 14:04:53 -07:00
Hailey c9451008bf use new card in profile 2024-06-14 13:57:08 -07:00
Hailey 5593fcde0f Merge remote-tracking branch 'origin/main' into starter-packs 2024-06-14 13:18:23 -07:00
Eric Bailey eaef1446f2 Use URI as key (#4522) 2024-06-14 14:28:25 -05:00
Eric Bailey 5751014117 Feed source card (#4512)
* Pass event through click handlers

* Add FeedCard, use in Feeds screen

* Tweak space

* Don't contrain rt height

* Tweak space

* Fix type errors, don't pass event to fns that don't expect it

* Show unresolved RT prior to facet resolution
2024-06-14 14:24:04 -05:00
Hailey 70b7e8ecf8 merge main 2024-06-14 12:22:28 -07:00
Minseo Lee 51a3e60132 Fix kawaii logo (#4505) 2024-06-14 10:39:08 -07:00
Eric Bailey 36e976fe5c Redo explore page (#4491)
* Redo explore page, wip

* Remove circle icons

* Load more styling

* Lower limit

* Some styling tweaks

* Abstract

* Add tab, query, factor out

* Revert unneeded change

* Revert unneeded change v2

* Update copy

* Load more styling

* Header styles

* The thin blue line

* Make sure it's hairline

* Update query keys

* Border

* Expand avis

* Very load more copy
2024-06-14 12:32:57 -05:00
Eric Bailey 4c0f037880 Reuse overfetching for popular feeds, add in existing filtering (#4501) 2024-06-14 11:56:29 -05:00
Hailey 2894d365e1 oops 2024-06-13 19:07:32 -07:00
Hailey 5b8bdab0e1 fix type error 2024-06-13 18:19:12 -07:00