about summary refs log tree commit diff
path: root/src/view/com
Commit message (Collapse)AuthorAgeFilesLines
...
* Font tweaks (#5597)Eric Bailey2024-10-031-207/+0
| | | | | | | * Increase fontWeight on android * Use atoms for a couple stray fontWeights * Rm unused file
* Fix profile header buttons (#5558)Eric Bailey2024-10-031-26/+13
| | | | | | | | | | | * Fix profile header buttons * Adjust labeler buttons too * Fix load state jumps * Small tweak for web * Remove log
* 🪵📌 (#5594)Samuel Newman2024-10-031-0/+2
|
* 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
* Make reply prompt more subtle on desktop (#5569)Samuel Newman2024-10-021-8/+16
| | | | | | | | | | | * make reply prompt more subtle on desktop * fix alignment * Tweak transition timing --------- Co-authored-by: Eric Bailey <git@esb.lol>
* 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>
* ALF text input for generic search input (#5511)Samuel Newman2024-09-301-124/+0
| | | | | | | | | | | | | | | | | | | | | * 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>
* use PressableScale for animation (#5541)Samuel Newman2024-09-302-44/+33
|
* Rework native autocomplete (#5521)Hailey2024-09-272-108/+93
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Pinned posts (#5055)Samuel Newman2024-09-282-13/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Remove Segment (#5518)Hailey2024-09-2717-154/+70
|
* Ignore bogus onScroll values (#5499)Samuel Newman2024-09-271-3/+10
|
* Tweak font size of "Write your reply" (#5513)Hailey2024-09-261-5/+1
|
* [Share Extension] Move away from deprecated API, implement JS side of things ↵Hailey2024-09-261-0/+2
| | | | (#5509)
* Fix weird button wrapping on splash (#5507)Eric Bailey2024-09-262-10/+6
| | | | | * Fix weird button wrapping on splash * Web
* Fix handle collapse on Android (#5504)Eric Bailey2024-09-261-6/+9
|
* Remove 10milly dialog, revert header logo changes (#5503)Eric Bailey2024-09-262-132/+21
|
* Adjust line height to not cut off emoji (#5496)Eric Bailey2024-09-261-8/+4
|
* add emoji prop to composer reply to text (#5495)Samuel Newman2024-09-261-8/+9
|
* Fix banner height in edit profile modal (#5494)Samuel Newman2024-09-262-5/+5
| | | | | * fix banner height * fix user banner, it's not edit profile's fault
* Filter errors that get sent to Sentry (#5247)Hailey2024-09-251-1/+2
|
* Ensure notifications align with new post alignment (#5486)Eric Bailey2024-09-251-1/+1
|
* [Video] use dynamic import for hls.js (#5429)Hailey2024-09-252-10/+50
| | | | Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Improve style of reply bar (#5447)Hailey2024-09-251-41/+54
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Header blurred banner on overscroll (take 2) (#5474)Samuel Newman2024-09-253-15/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * grow banner when overscrolling * add blurview * make backdrop blur as it scrolls * add activity indicator * use rotated spinner instead of arrow * persist position of back button * make back button prettier * make blur less jarring * Unify effects * Tweak impl * determine if should animate based on scroll amount * sign comment --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Allow profile header to overscroll (#5457)Samuel Newman2024-09-256-26/+43
| | | | | | | | | * add allowoverscroll prop * ensure spinner is visible * more generic prop for `<List>` * rename to allowHeaderOverScroll
* [Neue] Post avi, `PostMeta` cleanup (#5450)Eric Bailey2024-09-247-106/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Add web only link variant * Refactor PostMeta * Reduce avi size in feeds * Fix alignment, emoji, in PostMeta * Smaller avis in notifications * Shrink post placeholder avi * Handle the handle again * Link cleanup * Cleanup unused props * Fix text wrapping in timestamp * Fix underline color * Tighten up spacing * Web only whiteSpace
* Fix composer jumpiness on native (#5476)Eric Bailey2024-09-241-30/+20
|
* [Video] Refactor HLS logic (#5468)dan2024-09-241-104/+121
| | | | | | | | | | | | | * Extract HLS interop into useHLS * Rename variable * Move flushing outside an effect * use continue instead of return --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Remove image resizer (#5464)Hailey2024-09-241-13/+13
|
* Revamp image editor (#5462)Mary2024-09-259-272/+302
| | | | | | | | | * 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-255-203/+136
| | | | | | | | | | | | | | | * 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-2511-606/+264
| | | | | | | | | * mobx removal take 2 * Actually rm mobx --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Edit self hosting copy (#5469)Eric Bailey2024-09-251-4/+9
| | | | | | | * Edit self hosting copy * Tweak * Tweak
* Revert change in FAB animation (#5465)Hailey2024-09-241-23/+12
|
* invert the fab animation, play a haptic (#4309)Hailey2024-09-231-6/+30
|
* [Video] Flush low quality segments once focused (#5430)Samuel Newman2024-09-231-8/+69
| | | | | | | | | | | * Update VideoEmbedInnerWeb.tsx * keep proper track and flush properly * consistent current * use current in listener * manually loop
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-2414-207/+203
| | | | | | | | | | | | | * 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
* Use pressable for video controls (#5452)Samuel Newman2024-09-234-42/+43
| | | | | | | * use pressable for video controls * add `as any` to preexisiting bad type * stop mutating prop
* [Neue] Font weights (#5442)Eric Bailey2024-09-2021-144/+141
| | | | | | | * Align all font weights * Only load necessary fonts * Also comment out from hook
* Fix spacing (#5444)Eric Bailey2024-09-201-15/+16
|
* Fixing extra spacing in notification text (#5396)Wesley2024-09-201-2/+1
|
* Increase rounding for all embeds (#5421)Samuel Newman2024-09-2013-159/+222
| | | | | | | | | | | | | | | | | | | * 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-207-8/+8
| | | | | | | | | | | * Re-align button sizing (cherry picked from commit bcec243bb59dfe468313d98ba61f464d9750feec) * Use large, small, tiny (cherry picked from commit 1dc333c2993ab7f2e0ac750c0670dcec9a7069d0) * Tweaks
* Language fixes (#5384)Eric Bailey2024-09-202-21/+23
| | | | | | | | | | | | | | | | | | | | | | | * Add some comments * Decouple language settings * Normalize on read/write * Refactor * Support device locale on app startup * Cleanup, port to web * Clean up comments * Comment * Try not to mutate * Protect util handling, update test * Dedupe array values
* [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
* Remove expo/vector-icons from EditImage modal (#5422)Eric Bailey2024-09-191-64/+42
|
* Fix ext embeds in DMs (#5419)Samuel Newman2024-09-191-1/+1
| | | | | * fix ext embeds in DMs * undo acciental rounding change