about summary refs log tree commit diff
path: root/src/view/com/composer
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow nested sheets without boilerplate (#5660)Samuel Newman2024-10-097-53/+9
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Move Dialogs to Radix (#5648)Samuel Newman2024-10-082-25/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use Redix FocusTrap (#5638) * Use Redix FocusTrap * force resolutions on radix libs * add focus guards * use @radix-ui/dismissable-layer for escape handling * fix banner menu keypress by using `Pressable` * add menu in dialog example to storybook --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * use DismissableLayer/FocusScope for composer * fix storybook dialog * thread Portal through Prompt and avatar/banner * fix dialog style regression * remove tamagui --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Nicer error message for disabled quotes (#5644)dan2024-10-081-0/+3
|
* Move remaining composer state into reducer (#5623)dan2024-10-073-79/+109
| | | | | | Co-authored-by: Mary <git@mary.my.id> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Fetch link previews from RQ (#5608)dan2024-10-076-421/+206
| | | | | Co-authored-by: Mary <git@mary.my.id> Co-authored-by: Hailey <me@haileyok.com>
* Use composer state as source of truth for embeds/links on publish (#5606)dan2024-10-072-7/+13
| | | | | Co-authored-by: Mary <git@mary.my.id> Co-authored-by: Hailey <me@haileyok.com>
* [Video] Add dimension info to share intent (#5639)Hailey2024-10-071-1/+1
|
* use tabular numbers in CharProgress (#5631)surfdude292024-10-071-1/+7
|
* Fix composer char progress layout (#5620)Hailey2024-10-062-70/+71
| | | | | * fix composer * more fixes
* Add alt text limit to image dialog (#5611)Eric Bailey2024-10-054-117/+230
| | | | | | | | | | | | | | | | | | | * Add alt text limit to image dialog * GIF alt text too * Fix * tweaks, save alt on dialog dismiss * simplify close behavior * use state in gif alt * state --------- Co-authored-by: Hailey <me@haileyok.com>
* [Sheets] [Pt. 1] Root PR (#5557)Hailey2024-10-049-292/+342
| | | | | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: Hailey <me@haileyok.com>
* Make composer reducer source of truth for images/video when publishing (#5595)dan2024-10-053-33/+74
| | | | | * Move caption and altText state into video reducer * Make composer state source of truth for images and video publish
* Track links and embeds in the composer reducer (#5593)dan2024-10-052-17/+151
| | | | | | | | | * Scaffold embed draft types These don't map 1:1 to the record structure. Rather, we select data from the draft on posting. * Prefill initial quote * Implement the reducer
* Rename some files and variables (#5587)dan2024-10-034-73/+462
| | | | | | | * Move composer reducers together * videoUploadState -> videoState * Inline videoDispatch
* Manage video reducer from composer reducer (#5573)dan2024-10-032-21/+103
| | | | | | | | | | | | | | | * 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
* Refactor video uploads (#5570)dan2024-10-032-57/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Introduce a composer reducer and move image state there (#5547)dan2024-10-023-16/+160
| | | | | | | | | | | | | | | | | | | * 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>
* Rework native autocomplete (#5521)Hailey2024-09-272-108/+93
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Remove Segment (#5518)Hailey2024-09-274-21/+2
|
* [Share Extension] Move away from deprecated API, implement JS side of things ↵Hailey2024-09-261-0/+2
| | | | (#5509)
* add emoji prop to composer reply to text (#5495)Samuel Newman2024-09-261-8/+9
|
* Fix composer jumpiness on native (#5476)Eric Bailey2024-09-241-30/+20
|
* Remove image resizer (#5464)Hailey2024-09-241-13/+13
|
* Revamp image editor (#5462)Mary2024-09-253-15/+138
| | | | | | | | | * new image editor * Rm react-avatar-editor --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Revamp edit image alt text dialog (#5461)Mary2024-09-252-3/+132
| | | | | | | | | | | | | | | * revamp alt dialog * readd the limit check don't trim with enforceLen, it ruins copy-pasting long text and it's overall annoying behavior * Update src/view/com/composer/photos/ImageAltTextDialog.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* MobX removal take 2 (#5381)Mary2024-09-257-201/+247
| | | | | | | | | * mobx removal take 2 * Actually rm mobx --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-242-16/+18
| | | | | | | | | | | | | * Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Fix a few more emoji locations * Couple more * No throw
* [Neue] Font weights (#5442)Eric Bailey2024-09-201-7/+7
| | | | | | | * Align all font weights * Only load necessary fonts * Also comment out from hook
* Increase rounding for all embeds (#5421)Samuel Newman2024-09-201-90/+67
| | | | | | | | | | | | | | | | | | | * tweak image styles * fix reply image preview and covert to atoms * increase rounding on media inset border * decrease gap on desktop * fix inset styles * increase rounding on embeds to `md` * Couple edge cases --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Neue] Buttons (#5406)Eric Bailey2024-09-204-5/+5
| | | | | | | | | | | * Re-align button sizing (cherry picked from commit bcec243bb59dfe468313d98ba61f464d9750feec) * Use large, small, tiny (cherry picked from commit 1dc333c2993ab7f2e0ac750c0670dcec9a7069d0) * Tweaks
* [Neue] Ligatures & composer (#5427)Eric Bailey2024-09-192-23/+60
| | | | | | | | | * Disable contextual ligatures * Ensure new type styles are applied to the composer * Clean up using real devices * Feedback
* [Video] Additional android fixes (#5373)Hailey2024-09-171-1/+1
| | | | | | | * rm unused code * bump lib * invert bool
* loosen checks on vtt file (#5359)Samuel Newman2024-09-161-2/+3
|
* [Video] Don't require email verification on self-host (#5332)Hailey2024-09-131-4/+11
|
* [Video] Remove `expo-video`, use `bluesky-video` (#5282)Hailey2024-09-131-16/+8
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Enable video_upload gate (#5311)dan2024-09-121-9/+6
|
* [Video] speculative .vtt file selection fix (#5296)Samuel Newman2024-09-121-1/+9
| | | | | * speculative vtt fix * add logging
* [Video] Cap duration (#5270)Samuel Newman2024-09-112-2/+20
|
* [Video] Allow drag-and-drop & pasting video (#5252)Samuel Newman2024-09-102-9/+23
| | | | | * allow DnD/pasting video * rm await
* max 1 subtitle file (#5244)Samuel Newman2024-09-101-1/+5
|
* [Video] Upload tweaks (#5228)Samuel Newman2024-09-081-2/+4
| | | | | * use correct mime type * fix wheel progress
* [Video] Tweak order of elements in composer (#5213)Hailey2024-09-071-32/+32
|
* [Video] Check upload limits before uploading (#5153)Samuel Newman2024-09-071-1/+1
| | | | | | | | | | | | | | | | | * DRY up video service auth code * throw error if over upload limits * use token * xmark on toast * errors with nice translatable error messages * Update src/state/queries/video/video.ts --------- Co-authored-by: Hailey <me@haileyok.com>
* Add emoji picker to chat composer (#5196)Eric Bailey2024-09-064-10/+30
| | | | | Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> Co-authored-by: Adrov Igor <nucleartux@gmail.com>
* Redesign play button (#5192)Eric Bailey2024-09-062-2/+2
|
* [Video] Fix alt text dialog on iOS and Android (#5177)Hailey2024-09-062-16/+25
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [Video] Error banner improvements (#5163)Samuel Newman2024-09-051-81/+128
|
* [Video] require email to post videos (#5152)Samuel Newman2024-09-051-19/+63
| | | | Co-authored-by: Hailey <me@haileyok.com>
* [Video] Enter/exit animations for video in composer (#5164)Samuel Newman2024-09-053-26/+35
| | | | | | | | | * enter/exit animations for video in composer * use zoom out animation * unify margin between different steps * skip animation when posting
* [Video] Disable autoplay option (preview + web player) (#5167)Samuel Newman2024-09-052-2/+21
| | | | | | | | | * rename setting * preview (web) * preview (native) * improve autoplay disabled behaviour on web