about summary refs log tree commit diff
path: root/src/view/com/composer
Commit message (Collapse)AuthorAgeFilesLines
...
* allow only posting video (#5142)Samuel Newman2024-09-041-2/+9
|
* Add slight spacing between Post and CW button (#5125)Marco Buono2024-09-041-2/+6
|
* [Video] `withRepeat` for spinner (#5141)Hailey2024-09-041-4/+8
|
* [Video] Show better progress (#5133)Hailey2024-09-041-14/+32
|
* fail video if cannot load preview (#5138)Samuel Newman2024-09-041-1/+13
|
* close keyboard before opening modal (#5124)Samuel Newman2024-09-031-2/+5
|
* [Video] Error handling in composer, fix auto-send (#5122)Samuel Newman2024-09-031-130/+176
| | | | | | | | | | | | | * tweak * error state for upload toolbar * catch errors in upload status query * stop query on error --------- Co-authored-by: Hailey <me@haileyok.com>
* [Video] Upload errors and UI improvements (#5092)Samuel Newman2024-09-033-14/+47
| | | | | | | | | | | * surface errors in UI * style progress indicator * remove job status progress * rm log * fix webm ext
* [Video] Misc player style tweaks (#5064)Samuel Newman2024-09-022-4/+3
| | | | | * use actual black rather than theme black * adjust time/mute indicators
* [Video] Split 'videos' gate in two (#5037)Samuel Newman2024-08-301-1/+1
|
* [Video] Minor player tweaks (#5044)Samuel Newman2024-08-304-12/+34
|
* [Videos] avoid using fetch for blob handling where possible (#5041)Samuel Newman2024-08-302-2/+2
| | | | | | | * avoid using fetch where possible * whoopsie wrong branch * more import fixes
* [Video] Captions and alt text (#5009)Samuel Newman2024-08-308-22/+429
| | | | | | | | | | | | | | | | | | | | | | | | | | | * video settings modal in composer * show done button on web * rm download options * fix logic for showing settings button * add language picker (wip) * subtitle list with language select * send captions & alt text with video when posting * style "ensure you have selected a language" text * include aspect ratio with video * filter out captions where the lang is not set * rm log * fix label and add hint * minor scrubber fix
* [Video] Make compress/upload cancelable (#4996)Samuel Newman2024-08-293-17/+10
| | | | | | | * add abort controller to video upload system * rm log * rm log 2
* [Video] Add uploaded video to post (#4884)Samuel Newman2024-08-291-1/+2
| | | | | | | | | | | | | | | | | | | | | * video uploads! * use video upload lexicons * add missing postgate * remove references to prerelease package * fix scrubber showing a "0" * Delete types.ts * rm logs * rm upload header --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-213-39/+99
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Show quote posts (#4865)Samuel Newman2024-08-211-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * show quote posts * fix filter * fix keyExtractor * move likedby and repostedby to new file structure * use modern list component * remove relative imports * update quotes count after quoting * call `onPost` after updating quote count * Revert "update quotes count after quoting" This reverts commit 1f1887730a210c57c1e5a0eb0f47c42c42cf1b4b. * implement * update like count in quotes list * only add `onPostReply` where needed * Filter quotes with detached embeds * Bump SDK * Don't show error for no results --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
* [Video] set audio category to ambient every time a new player is made (#4934)Samuel Newman2024-08-141-1/+1
| | | | | | | | | | | | * set auto category to ambient every time a new player is made * mute on foregrounding * remember previous state --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Fix Android composer cursor bug by removing `setTimeout` from native ↵Hailey2024-08-121-57/+45
| | | | composer `onChangeText` (#4922)
* Mark string for localization (#4920)surfdude292024-08-111-1/+4
|
* Show just-posted replies above OP replies (#4901)dan2024-08-081-1/+1
| | | | | | | | | * Unify onPostReply handler * Show just-posted replies above OP replies * Only do this for the highlighted post or thread mode It's confusing to have your post displace OP thread or other people's leaf posts.
* Fix overflow on posts (#4899)Samuel Newman2024-08-081-1/+1
| | | | | | | | | | | | | | | | | * overflow posts, via contentHider * margin->padding for a bit more leeway * overflow notifications * overflow on header * revert from contenthider, put on text in all places * fix zalgo text in handle in composer --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Move onPressReply into child component (#4898)dan2024-08-081-59/+0
| | | | | * Move ComposePrompt to post-thread/ * Move onPressReply into child component
* [Video] Uploads (#4754)Hailey2024-07-304-112/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * state for video uploads * get upload working * add a debug log * add post progress * progress * fetch data * add some progress info, web uploads * post on finished uploading (wip) * add a note * add some todos * clear video * merge some stuff * convert to `createUploadTask` * patch expo modules core * working native upload progress * platform fork * upload progress for web * cleanup * cleanup * more tweaks * simplify * fix type errors --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Replace `import hairlineWidth =` with const (#4831)Samuel Newman2024-07-252-7/+5
| | | | | | | | | * replace import with const * just use `StyleSheet.hairlineWidth` --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-231-1/+1
| | | | | | | | | | | | | * use appropriate icons for toasts * use info for session expiry * tweak size * message -> safeMessage --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Fix: emoji picker closes when hitting spacebar (#4422) (#4441)Michał Gołda2024-07-111-21/+23
| | | | Co-authored-by: Hailey <me@haileyok.com>
* ALF post button (#4767)Hailey2024-07-101-38/+35
|
* Fix alt text for GIFs (#4766)Hailey2024-07-101-2/+7
| | | | | * fix alt text dialog for gifs * only apply to native
* Video compression in composer (#4638)Samuel Newman2024-07-0511-32/+360
| | | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Add starter pack embeds to posts (#4699)Hailey2024-07-041-0/+20
| | | | | | | | | | | | | | | | | | | | | | | * starter pack embeds * revert test code * Types * add `BaseLink` * precache on click * rm log * add a comment * loading state * top margin --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix pasting images on web (#4670)dan2024-06-271-8/+7
|
* Better starterpack embed (#4659)Hailey2024-06-261-0/+13
|
* Composer - replace threadgate modal with alf dialog (#4329)Samuel Newman2024-06-241-21/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replace threadgate modal with alf dialog * add accessibility to selectable * add aria * hide spinner once fetched * add `hasOpenDialogs` value to context * remove state * Rm loading state * Update the threadgate dialog button theming * Factor out the threadgate editor and add editing to post views * Mark messages for localization * Use colors from mute dialog * Remove unnecessary effect * Reset state on dialog dismiss * Clearer CTA * Fix bugs * Scope keyboard fix * Rm getAreDialogsActive (no longer needed) --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* use granular permission of for media perm request (#4609)Hailey2024-06-241-1/+1
|
* Wait for AppView when posting (#4584)dan2024-06-201-0/+34
|
* Calculate correct keyboard offset in composer (#4500)Samuel Newman2024-06-131-2/+17
| | | | | | | * calculate correct keyboard offset * give viewHeight a default value * much simpler approach
* Prevent rich-formatting paste (#4327)Mary2024-06-131-8/+19
| | | | | * fix: prevent rich-formatting paste * fix: return true instead of preventDefault
* Only enable keyboard controller when necessary (#4483)Samuel Newman2024-06-112-186/+163
| | | | | | | | | | | | | | | | | | | * Only enable keyboard controller when necessary * make it screen only * rm keyboard padding * rm keyboardpadding file * revert using keyboard controller in composer * remove styles.outer (unnecessary for revert) * continue to use keyboard padding in the report dialog for dms --------- Co-authored-by: Hailey <me@haileyok.com>
* Revert to old modal on android (#4458)Samuel Newman2024-06-111-40/+27
| | | | | | | | | | | | | | | | | * revert to old modal on android * close alf dialogs before closing composer * Try to fix white area * Use hook * Fix Back button * oops --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Give a meaningful error in the composer when replying to a deleted post (#4464)Paul Frazee2024-06-101-3/+10
|
* Reliably focus keyboard on Android (#4427)dan2024-06-071-7/+25
|
* Composer - backup android focus (#4415)Samuel Newman2024-06-071-0/+13
| | | | | * backup android focus * bump to 300ms just to make sure it catches all of them
* scope enable/disable of keyboard controller in composer to only android (#4412)Hailey2024-06-061-1/+1
|
* disable keyboard controller in the composer screen (#4399)Hailey2024-06-061-0/+12
| | | | | | | | | | | | | | | * disable keyboard controller in the composer screen * add comment * oops * destructure * rename to keyboard context for clarity * move destructure * cleanup
* Composer - make sure android keyboard opens (#4390)Samuel Newman2024-06-061-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * keep trying to open keyboard until it's open * limit number of retries * keep the original 50ms one as well * Proper fix! * disable autoFocus if not visible * Reset derived state * Revert "Reset derived state" This reverts commit 71f57391ae78bac717282e699d1b83cbd87771eb. * Use derived state pattern * Rename for clarity --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* use a timeout to focus the composer input (#4370)Hailey2024-06-051-1/+8
| | | | | | | | | | | * use a timeout to focus the composer input * scope to just android * scope useEffect to just android as well * oops * cleanup
* Composer - unbork web (#4344)Samuel Newman2024-06-041-11/+2
| | | | | | | * reduce side gap + add overflow hidden also remove the animations since they don't appear in prod, and are kinda broken * removed fixed height to fix alt text
* Composer - make bottom border more consistent when typing (#4343)Samuel Newman2024-06-041-10/+10
| | | | | | | | | | | * floor values * fix last line being obscured * Rm unnecessary runOnUI --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Native `formSheet` for GIF select on iOS (#4328)Samuel Newman2024-06-042-9/+7
| | | | | | | | | * native formsheet for gif select * trigger confirm discard if have gif * give modal a background color * fix web top bar - unrelated but I cba to make a separate PR