Commit Graph

2894 Commits

Author SHA1 Message Date
Dan Abramov 347d573b75 Fixes 2024-04-27 02:20:08 +01:00
Dan Abramov 812dc372b4 Unify codepaths 2024-04-27 02:13:42 +01:00
Dan Abramov babda6526c Fixes 2024-04-27 01:49:06 +01:00
Dan Abramov 0faffb2bb5 Rename to reduce diff 2024-04-27 01:29:24 +01:00
Hailey 47d101d791 blur on autosuggestion press 2024-04-26 17:17:55 -07:00
Dan Abramov 5692d7165b Clear right pane search on select 2024-04-27 01:13:40 +01:00
Dan Abramov f481f4b595 Always hide autocomplete 2024-04-27 01:08:24 +01:00
Dan Abramov 36e50b786c Fix search history 2024-04-27 01:06:13 +01:00
Dan Abramov 30eadaab5f Adjustments 2024-04-27 01:03:33 +01:00
Hailey 6975f79df0 onPress dismiss attempt 2024-04-26 16:28:29 -07:00
Hailey 393347387c clear the search input when we clear q on native 2024-04-26 15:51:31 -07:00
Hailey 6e29cce90d use replace on web still 2024-04-26 13:39:32 -07:00
Hailey 234537b8a6 use setParams instead of replace 2024-04-26 13:36:18 -07:00
Hailey 907957ba45 blur on submit 2024-04-26 13:33:31 -07:00
Hailey 556fb386c2 remove q= on cancel 2024-04-26 13:24:48 -07:00
Hailey 46a6a5bbee remove hack 2024-04-26 12:50:05 -07:00
Hailey 1af63b9920 rename q to queryParam 2024-04-26 12:46:36 -07:00
Hailey 6d352211c2 use keepPreviousData for query 2024-04-26 12:40:52 -07:00
Hailey 4dca0c5506 remove back functionality 2024-04-26 11:46:49 -07:00
Dan Abramov 65296f3091 Fix race 2024-04-26 17:11:54 +01:00
Dan Abramov cefe7cec38 Merge branch 'main' into hailey/search-improvements 2024-04-26 16:25:34 +01:00
dan f2797218f8 Move Notifications up on desktop web (#3696) 2024-04-25 23:30:07 +01:00
Eric Bailey 45d354cd0c [Session] Add useAgent hook and replace (#3706)
* Hook it up

* Memoize getAgent method

* Use one shared reference

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-25 22:29:05 +01:00
Eric Bailey d8c8e1e854 [Session] Drill getAgent into notifications handlers (#3705)
* Drill into notifications handlers

(cherry picked from commit 7ac9e500866732e1f2e205bbe96e70db331e5ffb)

* Thread getAgent instead

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-25 21:57:45 +01:00
Eric Bailey e5fdbfe294 [Session] Drill getAgent into Onboarding/util (#3704)
* Drill agent into Onboarding/util

(cherry picked from commit 2ba68eb5e446a694730b720f2a5b3307eb0914ef)

* Thread getAgent instead

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-25 21:53:27 +01:00
Eric Bailey 35005da59e [Session] Drill getAgent into notifications/utils (#3703)
* Drill into notifications/util

(cherry picked from commit 84b535ed54f4fe93debcd198809bb184519c3507)

* Thread getAgent instead

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-25 21:48:01 +01:00
Eric Bailey a69e567991 [Session] Drill into getAgent into whenAppViewReady (#3702)
* Drill into whenAppViewReady

(cherry picked from commit e290e5be3df509bdd9d0e626a164996c9dee3636)

* Drill getAgent instead

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-25 21:39:28 +01:00
Eric Bailey ec37696034 [Session] Drill getAgent into feed APIs (#3701)
* Update to desired post-feed usage

* Drill agent into feed apis

* Thread getAgent instead

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-25 21:29:06 +01:00
Kevin Scannell 282ad4b17d Irish translation back to 100% (#3683) 2024-04-25 09:08:56 -07:00
Eric Bailey 6aded4f257 [Session] Base (#3541)
* Add readLastActiveAccount to use accounts[] as source of truth

* Add public service constant, use
2024-04-25 10:35:21 -05:00
Hailey 0493efbe51 searchText is always defined here 2024-04-24 17:32:29 -07:00
Hailey 5b82b15007 remove use of pointerEvents on iOS profile header (#3694) 2024-04-25 01:24:20 +01:00
Hailey c3fcd486b3 Cleanup files after each iteration of compression and downloading (#3599)
* delete image on each iteration of compression

* replace a few other instances of `unlink()`

* ensure that moving to the permanent path will succeed

* use `cacheDirectory`

* missing file extension?

* assert

* Remove extra .

* Extract safeDeleteAsync, fix normalization

* Normalize everywhere

* Use safeDeleteAsync in more places

* Delete .bin too

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-25 01:12:36 +01:00
dan 90c3ec8749 Ignore image responses on non-200 status (#3693)
* Ignore image responses on non-200 status

* Fix tests
2024-04-24 23:16:11 +01:00
Mary 15055cb8c4 Persist PDS URL for session resumption (#3620)
* fix: store PDS URL for session resumption

* fix: handle a few more cases

* fix: blocking resumption should also use pds url

* refactor: do it in the construct itself

* fix: revert ce96223
2024-04-24 21:57:16 +01:00
dan 05212ca9e3 Remove Moderation from sidebar (#3692) 2024-04-24 21:37:16 +01:00
Hailey 253212a77a use useFocusEffect to update the query term on back navigation 2024-04-24 11:50:37 -07:00
Hailey 1a7cfe672c rm comment 2024-04-24 10:58:11 -07:00
Hailey 3a1f38d501 rm todo 2024-04-24 10:48:10 -07:00
Hailey f265e1d30e revert accidental lint 2024-04-24 10:36:28 -07:00
Hailey a03ab3e9d5 rename everything to query temporarily 2024-04-24 10:33:25 -07:00
Hailey ace0cb3ac9 remove unnecesary usestate 2024-04-24 10:27:39 -07:00
Hailey 65b689d4af don't flash results in autocomplete 2024-04-24 10:23:36 -07:00
Hailey cf0f6ebf9a use "back" on web in some cases 2024-04-24 10:02:06 -07:00
dan e2a59449df Remove old Suggested Follows logic (#3689) 2024-04-24 17:45:11 +01:00
dan 8ec3d8c76e Rewrite the link detection (#3687)
* Rewrite the link detection

* Handle parens and colons
2024-04-24 17:30:44 +01:00
Hailey b3df0b177f Remove unnecessary .trimEnd() and fix facet detection (#3672)
* Fix link facet detection

Exclude the trailing period from the link, similar as done in the atproto package

* Fix JSON to text conversion

The trimEnd() call was only needed because we were always appending \n\n at the end. Fix that by only adding line breaks after non-final paragraphs.

* Detect paste reliably

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-24 15:10:29 +01:00
Eric Bailey 05beb1bbad Remove old old onboarding (#3674) 2024-04-23 19:30:49 -05:00
dan 24da3a8f4e Disable autoplay by default if prefers-reduced-motion (#3671) 2024-04-23 17:07:18 -07:00
Samuel Newman 0847e2752b Add option to remove quoted post in composer (#3670)
* add option to remove quoted post

* add generous hitslop
2024-04-24 00:36:59 +01:00