about summary refs log tree commit diff
path: root/src/view/com/composer/videos
Commit message (Collapse)AuthorAgeFilesLines
* Add gif support to web (#6433)Samuel Newman2024-11-225-86/+158
| | | | | | | | | | | | | * add gif support to web * rm set dimensions * rm effect from preview * rm log * rm use of {cause: error} * fix lint
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-195-5/+3
| | | | | | | | | config (#6516) * update eslint config with jsx runtime * leverage jsx transform to remove unnecessary react imports and update eslint config * run yarn lint --fix to remove eslint disables related to react/prop-types that is now disabled
* fix video thumb cleanup (#6431)Samuel Newman2024-11-172-9/+14
|
* Thread composer UI (#6050)dan2024-11-011-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Basic adding of posts * Switch active post on focus * Conditionally show plus button * Insert posts midthread * Track active/inactive post * Delete posts in a thread * Focus after deletion * Tweak empty post detection * Mix height for active only * Move toolbar with post on web * Fix footer positioning * Post All button * Fix reply to positioning * Improve memoization * Improve memoization for clearVideo * Remove unnecessary argument * Add some manual memoization to fix re-renders * Scroll to bottom on add new * Fix opacity on Android * Add backdrop * Fix videos * Check alt for video too * Clear pending publish on error * Fork alt message by type * Separate placeholder for next posts * Limit hitslop to avoid clashes
* Sort imports (#6009)dan2024-10-292-2/+2
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Update the email verification dialog (#5663)Hailey2024-10-101-19/+18
|
* Allow nested sheets without boilerplate (#5660)Samuel Newman2024-10-091-3/+1
| | | | Co-authored-by: Hailey <me@haileyok.com>
* [Sheets] [Pt. 1] Root PR (#5557)Hailey2024-10-041-4/+4
| | | | | | | 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-051-7/+5
| | | | | * Move caption and altText state into video reducer * Make composer state source of truth for images and video publish
* Refactor video uploads (#5570)dan2024-10-031-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [Neue] Buttons (#5406)Eric Bailey2024-09-202-3/+3
| | | | | | | | | | | * Re-align button sizing (cherry picked from commit bcec243bb59dfe468313d98ba61f464d9750feec) * Use large, small, tiny (cherry picked from commit 1dc333c2993ab7f2e0ac750c0670dcec9a7069d0) * Tweaks
* [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>
* [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
|
* max 1 subtitle file (#5244)Samuel Newman2024-09-101-1/+5
|
* [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>
* Redesign play button (#5192)Eric Bailey2024-09-062-2/+2
|
* [Video] Fix alt text dialog on iOS and Android (#5177)Hailey2024-09-061-14/+23
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [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-052-2/+1
| | | | | | | | | * 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
* 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] Upload errors and UI improvements (#5092)Samuel Newman2024-09-032-4/+13
| | | | | | | | | | | * 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] 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-307-12/+389
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-291-7/+6
| | | | | | | * add abort controller to video upload system * rm log * rm log 2
* [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>
* Mark string for localization (#4920)surfdude292024-08-111-1/+4
|
* [Video] Uploads (#4754)Hailey2024-07-303-55/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* 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>
* Video compression in composer (#4638)Samuel Newman2024-07-057-0/+281
Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>