| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Co-authored-by: Hailey <me@haileyok.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Co-authored-by: Mary <git@mary.my.id>
Co-authored-by: Hailey <me@haileyok.com>
|
|
|
|
|
| |
Co-authored-by: Mary <git@mary.my.id>
Co-authored-by: Hailey <me@haileyok.com>
|
| |
|
| |
|
|
|
|
|
| |
* fix composer
* more fixes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
* Move caption and altText state into video reducer
* Make composer state source of truth for images and video publish
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* Move composer reducers together
* videoUploadState -> videoState
* Inline videoDispatch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
| |
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
|
| |
|
|
|
|
| |
(#5509)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* new image editor
* Rm react-avatar-editor
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
* Actually rm mobx
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* Align all font weights
* Only load necessary fonts
* Also comment out from hook
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
|
| |
* Re-align button sizing
(cherry picked from commit bcec243bb59dfe468313d98ba61f464d9750feec)
* Use large, small, tiny
(cherry picked from commit 1dc333c2993ab7f2e0ac750c0670dcec9a7069d0)
* Tweaks
|
|
|
|
|
|
|
|
|
| |
* Disable contextual ligatures
* Ensure new type styles are applied to the composer
* Clean up using real devices
* Feedback
|
|
|
|
|
|
|
| |
* rm unused code
* bump lib
* invert bool
|
| |
|
| |
|
|
|
|
| |
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
|
| |
|
|
|
|
|
| |
* speculative vtt fix
* add logging
|
| |
|
|
|
|
|
| |
* allow DnD/pasting video
* rm await
|
| |
|
|
|
|
|
| |
* use correct mime type
* fix wheel progress
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
| |
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
Co-authored-by: Adrov Igor <nucleartux@gmail.com>
|
| |
|
|
|
|
| |
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
|
| |
|
|
|
|
| |
Co-authored-by: Hailey <me@haileyok.com>
|
|
|
|
|
|
|
|
|
| |
* enter/exit animations for video in composer
* use zoom out animation
* unify margin between different steps
* skip animation when posting
|
|
|
|
|
|
|
|
|
| |
* rename setting
* preview (web)
* preview (native)
* improve autoplay disabled behaviour on web
|