Commit Graph

4637 Commits

Author SHA1 Message Date
Hailey 7620b51cf0 spread 2024-10-03 09:08:58 -07:00
Hailey 54ebc4036e tweak 2024-10-03 08:54:19 -07:00
Hailey fba3cce81e add sheet manager 2024-10-03 08:53:53 -07:00
Samuel Newman 9c309bb579 fix web export of BottomSheetInlineLinkText 2024-10-03 16:31:26 +03:00
Hailey f5b2fe7558 fix incorrect snap point 2024-10-03 00:35:06 -07:00
Hailey 5e41b503ad fix jest 2024-10-02 23:11:27 -07:00
Hailey 1b7e66f700 bring some android stuff back up to date 2024-10-02 23:03:22 -07:00
Hailey cc81342256 add dismiss all 2024-10-02 22:40:31 -07:00
Hailey a32f58753d Merge remote-tracking branch 'origin/main' into hailey/dialogs-pt1 2024-10-02 22:36:27 -07:00
dan 03704e2b48 Manage video reducer from composer reducer (#5573)
* Move video state into composer state

* Represent video as embed

This is slightly broken. In particular, we can't remove video yet because there's no action that results in video embed being removed.

* Properly represent video as embed

This aligns the video state lifetime with the embed lifetime. Video can now be properly added and removed.

* Disable Add Video when we have images

* Ignore empty image pick
2024-10-03 14:26:38 +09:00
Hailey f51d42e44f Merge remote-tracking branch 'origin/main' into hailey/dialogs-pt1 2024-10-02 22:10:02 -07:00
Hailey 89ac12516d [Sheets] [Pt. 15] Fix up dialogs inside the composer (#5589)
Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
Co-authored-by: dan <dan.abramov@gmail.com>
2024-10-02 22:08:36 -07:00
Hailey 058ddb0c53 [Sheets] [Pt. 14] Portaling behaviors for nested dialogs (#5588)
Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-10-02 22:03:52 -07:00
Hailey 52a8e4d616 [Sheets] [Pt. 13] Keyboard handling (#5586)
Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-10-02 21:53:23 -07:00
Hailey 14e3567663 [Sheets] [Pt. 12] Add event for selected snap point change (#5584)
Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-10-02 21:49:49 -07:00
Hailey 79996ac952 [Sheets] [Pt. 11] Move native code into repo (#5583)
Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-10-02 21:43:54 -07:00
Hailey 4466f68b81 [Sheets] [Pt. 10] (#5581)
Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-10-02 21:38:34 -07:00
Hailey c49182009a [Sheets] [Pt. 8] Allow nesting in other sheets or native modals (#5567) 2024-10-02 21:26:58 -07:00
Hailey ecf7215a34 [Sheets] [Pt. 7] Part seven rework, much simplier! (#5582) 2024-10-02 21:11:27 -07:00
dan d2392d2d64 Refactor video uploads (#5570)
* Remove unused video field

* Stop exposing video dispatch

* Move cancellation out of the reducer

* Make useUploadStatusQuery controlled by jobId

* Rename SetStatus to SetProcessing

This action only has one callsite and it's always passing "processing".

* Move jobId into video reducer state

* Make cancellation scoped

* Inline useCompressVideoMutation

* Move processVideo down the file

* Extract getErrorMessage

* useServiceAuthToken -> getServiceAuthToken

* useVideoAgent -> createVideoAgent

* useVideoUploadLimits -> getVideoUploadLimits

* useUploadVideoMutation -> uploadVideo

* Use async/await in processVideo

* Inline onVideoCompressed into processVideo

* Use async/await for uploadVideo

* Factor out error messages

* Guard dispatch with signal

This lets us remove the scattered signal checks around dispatch.

* Move job polling out of RQ

* Handle poll failures

* Remove unnecessary guards

* Slightly more accurate condition

* Move initVideoUri handling out of the hook

* Remove dead argument

It wasn't being used before either.

* Remove unused detailed status

This isn't being used because we're only respecting that state variable when isProcessing=true, but isProcessing is always false during video upload.

If we want to re-add this later, it should really just be derived from the reducer state.

* Harden the video reducer

* Tie all spawned work to a signal

* Preserve asset/media for nicer error state

* Rename actions to match states

* Inline useUploadVideo

This abstraction is getting in the way of some future work.

* Move MIME check to the only place that handles it
2024-10-03 11:41:23 +09:00
Hailey 0ed5d48e02 [Sheets] [Pt. 6] Update Inner and InnerFlatList and their uses (#5564) 2024-10-02 16:14:47 -07:00
Hailey ede5d0155b [Sheets] [Pt. 5] Update types and props (#5563) 2024-10-02 16:03:49 -07:00
Hailey 0037353528 [Sheets] [Pt. 4] Convert Pressable in Menu (WIP) (#5562) 2024-10-02 15:49:36 -07:00
Hailey 5b08aad014 [Sheets] [Pt. 3] Get new sheet working with ScrollableInner (#5561) 2024-10-02 14:58:12 -07:00
Hailey a2e8f3cbc4 [Sheets] [Pt. 2] Remove a bunch of now-unnecessary things (#5560)
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-10-02 14:43:27 -07:00
Samuel Newman c2dac855cc Delete messages NUX (#5574) 2024-10-02 22:23:11 +03:00
Samuel Newman 13c9c79aee move files around (#5576) 2024-10-02 22:21:59 +03:00
Samuel Newman 405966830c Make reply prompt more subtle on desktop (#5569)
* make reply prompt more subtle on desktop

* fix alignment

* Tweak transition timing

---------

Co-authored-by: Eric Bailey <git@esb.lol>
2024-10-02 11:40:18 -05:00
Eric Bailey 3972d3d4c3 Ignore built files (#5572) 2024-10-02 11:18:15 -05:00
Hailey a444fc53a0 import order (#5571) 2024-10-02 11:09:54 -05:00
Eric Bailey 1a7885b921 Add suspense boundary in onboarding (#5556) 2024-10-02 10:55:06 -05:00
Eric Bailey 3569873123 Tweak verify email dialog (#5555)
* Add intent/verify-email to go server

* Tweak verify intent dialog
2024-10-02 10:54:51 -05:00
Eric Bailey f251a43dd6 Add intent/verify-email to go server (#5554) 2024-10-02 10:54:25 -05:00
Hailey 64c9d86488 remove 2024-10-01 13:59:20 -07:00
Eric Bailey 5a98ea684d Include ghost hook to statically export fonts (#5553) 2024-10-01 15:57:49 -05:00
dan e33b2b1bee Handle /starter-pack-short/:code in Go (#5546) 2024-10-02 00:09:21 +09:00
dan d2fd5589dc Introduce a composer reducer and move image state there (#5547)
* Add composer reducer

* Support adding images

Co-authored-by: Mary <git@mary.my.id>

* Support updating and deleting images

Co-authored-by: Mary <git@mary.my.id>

* Derive images state from composer state

Co-authored-by: Mary <git@mary.my.id>

---------

Co-authored-by: Mary <git@mary.my.id>
2024-10-02 00:08:46 +09:00
dan a7ee561e40 Paralellize image uploads (#5535)
* Remove unsafe type coercions from posting embed

* Extract resolveEmbed into a separate function

* Refactor to if-else because these are mutually exclusive

* Refactor resolveEmbed to early returns

* Separate resolving embed and media

* Parallelize image upload

* Prioritize not dropping media
2024-10-02 00:03:27 +09:00
Eric Bailey b59d6dfbb5 Remove local file check (#5544) 2024-09-30 17:43:14 -05:00
Samuel Newman 2129f69fa0 ALF text input for generic search input (#5511)
* alf text input for generic search input

* clearer ref naming

* Adjust props and definition

* Migrate props

* Migrate props

* Migrate props

* Replace on search screen

* rm old props

---------

Co-authored-by: Eric Bailey <git@esb.lol>
2024-09-30 16:53:11 -05:00
Eric Bailey b4941d8556 Use Inter variable font (#5540) 2024-09-30 16:04:19 -05:00
Hailey adaa79a461 Fix name in feature_request.yml (#5542) 2024-09-30 14:04:10 -07:00
Eric Bailey 26c09ff107 Fix sticky offset, gear color (#5537) 2024-09-30 16:04:04 -05:00
Hailey 669cdf222c Move email test to root tests dir (#5527) 2024-09-30 13:56:49 -07:00
Hailey 66f3068c58 revamp issue templates, add new arch template (#5532) 2024-09-30 13:55:21 -07:00
Samuel Newman 9ca2928aac use PressableScale for animation (#5541) 2024-09-30 21:49:53 +03:00
Hailey 587c0c6257 Rework native autocomplete (#5521)
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-09-27 15:26:28 -07:00
Samuel Newman 4b5d6e6efb Pinned posts (#5055)
* add to dropdown menu

* use normal profile mutation hook

* add pin as reason

* request pins

* shadow update

* rm logs

* get prev pinned from getProfile

* fix toasts

* invalidate after appview ready

* don't mutate params

* rm log

* use checkCommited rather than manual whenAppViewReady

* move to mutation

* even more optimistic optimistic update

* allow pins in `posts_and_author_threads`

* update @atproto/api

* add reasonPin type

* fix strange type error in unrelated query

* another missing type
2024-09-28 00:50:32 +03:00
Hailey f68b15219f Remove Segment (#5518) 2024-09-27 14:01:57 -07:00
Hailey bcd096b85a Fix alignment of cancel button on search (#5520) 2024-09-27 09:55:47 -07:00