about summary refs log tree commit diff
path: root/src/view/com
Commit message (Collapse)AuthorAgeFilesLines
...
* Dismissable toasts (#6345)Samuel Newman2024-11-222-45/+175
| | | | | | | | | | | | | | | | | * dismissable toast * adjust top offset * improve a11y * stretchy pull-down * Dismiss web on tap * Simplify code --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [a11y] Video - fix labels and make more detailed (#6635)Samuel Newman2024-11-226-7/+23
| | | | | * fix labels and make more detailed * move overall label to parent
* Improve error name and message for signed-in only feeds (#6577)Eric Bailey2024-11-221-5/+5
| | | | | | | | | * Improve error name and message for logged-in only feeds * Revert msg edit --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Use outline style for repost cancel button (#6509)Samuel Newman2024-11-221-9/+15
| | | | | * use outline style for repost cancel button * use trans macro in JSX
* [Lightbox] Fix jump when zooming out on iOS (#6633)dan2024-11-221-2/+18
|
* Fix lightbox spinner (#6561)Paul Coroneos2024-11-222-6/+6
| | | | | | | | | | | | | * refactor imageitem useanimatedreaction logic * revert copy/paste fix * revert last commit * Fix conditions --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Android] Lower Feed maxRenderPerBatch (#6624)dan2024-11-221-2/+2
|
* Fix some overdraw (#6617)dan2024-11-211-3/+2
|
* Reduce <Text> nesting (#6615)dan2024-11-211-19/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move isOnlyEmoji out of RichText To fix Fast Refresh. * Make renderChildrenWithEmoji work with any children * Always go through UITextView for consistency It already contains the `selectable` and `iOS` checks inside. * Move `emoji` check into `renderChildrenWithEmoji` * Remove unnecessary intermediate UITextView nodes * Make childHasEmoji check recursive It didn't handle nested arrays etc correctly before. * Remove the "children must be string" limitation Should not be necessary now that we correctly handle nested arrays etc. * Fix unnecessary regex reallocation This doesn't have a global flag so it's okay to reuse. * Remove unnecessary <Text> wrapper in RichText
* Fix overflow issue on iOS autocomplete, among other things (#6611)Samuel Newman2024-11-213-40/+27
| | | | | | | | | | | * stop using ref in render * fix display name fallback on web * use unicode ellipsis for useGrapheme * fix overflow issue * sanitize handle/displayname on web
* Fix Fast Refresh in <Text> files (#6609)dan2024-11-213-4/+8
| | | | | | | | | | | * Separate non-components from components * Mark old Text as deprecated * Move emoji utilities to non-React file * Fix type * Fix import
* Remove unused RN.Animated code (#6584)dan2024-11-214-427/+3
| | | | | * Remove unused RN.Animated code * Rm more dead code
* Disable vertical scrollbars on Android only (#6586)dan2024-11-211-1/+2
|
* preserve video's last known time when scrolling away (#6239)Andrew Aquino2024-11-192-0/+13
|
* Render post menu items lazily (take two) (#6473)dan2024-11-192-672/+741
| | | | | | | | | | | | | | | * Revert "Revert "Render dropdown menu items lazily (#6437)" (#6470)" This reverts commit 0b38c77faa71dbc777d3d0162b86cb3e8695ff99. * Lazily initialize menu items * Split in two files * Make it work on mobile This is wonky because our useMenuDialog abstraction only has `isOpen` on web. I couldn't figure out a way to make it work xplat so I'm just tracking it myself manually. * Fix typo in comment
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-1961-66/+28
| | | | | | | | | 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
* Split FeedSlice into FlatList rows (#6507)dan2024-11-193-211/+188
|
* Attempted video perf improvements (#6519)Samuel Newman2024-11-193-38/+32
| | | | | | | * remove layout animations from video * only show button/spinner when necessary * use native activityindicator rather than loader
* Add useHandleRef as a lighter alternative for useAnimatedRef (#6500)dan2024-11-185-43/+29
|
* Hardcode Giphy embed height (#6475)dan2024-11-181-26/+4
|
* Extract RepostButton inner dialog (#6498)dan2024-11-181-79/+109
| | | | | | | | | * Extract RepostButton inner dialog * use `useDialogContext` instead of passing prop --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Fix layout jumps for images (#6474)dan2024-11-181-12/+15
|
* Revert "Render dropdown menu items lazily (#6437)" (#6470)dan2024-11-171-309/+278
| | | This reverts commit e9fe8d90ef5e9ca2ed4bc9649794c5288fb1232d.
* Use compiler-safe Reanimated get/set APIs (#6391)dan2024-11-1710-130/+152
| | | | | | | | | | | | | | | | | | | | | * Convert lightbox to get/set * Work around software-mansion/react-native-reanimated#6613 * Use get/set in more places * Port MainScrollProvider to get/set * Port more to get/set * Port composer to get/set * Remove unnecessary thread hops in composer * Port more things to get/set * Convert more to get/set, remove redundant runOnJS * Convert remaining cases to get/set
* fix video thumb cleanup (#6431)Samuel Newman2024-11-173-10/+17
|
* Render dropdown menu items lazily (#6437)dan2024-11-171-278/+309
|
* [Web] Clicking root link twice refreshes the screen (#6434)dan2024-11-171-4/+13
| | | | | | | * [Web] Clicking root link twice refreshes the screen * Scope it to navigation action In practice this means -- just for the bottom mobile web tab bar.
* use IAB for translate (#6421)Samuel Newman2024-11-162-2/+2
|
* [Statsig] Remove client downsampling (#6153)Hailey2024-11-154-13/+10
|
* [Lightbox] Make the animation faster (#6382)dan2024-11-151-2/+2
| | | | | * [Lightbox] Make the animation faster * Make it faster on Android too
* feat: Tweak shared element animation to make it much smoother (#6336)Marc Rousavy2024-11-141-4/+15
|
* Modify self labels for clarityPaul Frazee2024-11-131-18/+20
|
* [Lightbox] Small tweaks (#6301)dan2024-11-132-3/+6
| | | | | | | | | * Tweak lightbox springs * Speed up dismiss speed * Don't scroll to top while active lightbox * Make Android a bit faster
* Add subtle web hover to treeview replies (#6142)Samuel Newman2024-11-131-18/+22
| | | | | | | | | * add subtle web hover to treeview replies * don't highlight indentation * adjust position * clean up some styles
* Add backdated post indicator (#6156)Samuel Newman2024-11-121-68/+165
| | | | | | | | | | | | | | | * add backdate indicator * pill style * add indexedAt * update indicator - new copy, date in pill * complete alf migration * accidentally committed the missing indexedAt *again*! * copy tweak
* Add email verification prompts throughout the app (#6174)Hailey2024-11-121-0/+21
|
* dedupe date parsing (#6267)Samuel Newman2024-11-121-2/+4
|
* add subtle web hover to "View full thread" (#6256)Samuel Newman2024-11-121-1/+19
|
* use hairline for feedlike (#6257)Samuel Newman2024-11-122-3/+10
|
* Reduce Reanimated serialization traffic (#6219)dan2024-11-121-3/+14
|
* Update Node.js to 20.x in Dockerfile (#6099)Trivikram Kamat2024-11-111-1/+1
| | | | | | | | | | | * Update Node.js to 20.x in Dockerfile * Update Node.js types and engines entry to 20.x * Update Node.js version in .nvmrc * Use node version from .nvmrc in linting job * Use Type Assertion for clearTimeout
* Fix render loop on Android (#6213)dan2024-11-103-11/+23
|
* android scroll performance fixes pt. 1 (#6196)Hailey2024-11-091-34/+33
|
* Fix web image layout (#6195)dan2024-11-091-1/+1
|
* [Lightbox] Always rely on Expo Image cache (#6189)dan2024-11-0910-53/+104
| | | | | | | | | | | | | | | * Inline useImageAspectRatio * Switch AutoSizedImage to read dimensions from Expo Image cache * Include thumbnail dimensions in image data * Use dims from Expo Image cache in lightbox * Fix wiring so all thumbnails get dimensions * Fix type * Oops
* [Lightbox] Open animation (#6159)dan2024-11-0910-177/+594
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Measure all rects for embeds * Measure avi rects too * Animate lightbox in and out * Account for safe area in the animation * Tune spring times * Remove null checks for measurements * Remove superfluous view * Block swipe while opening * Interpolate width/height on native side for Android * Make it fast by animating only affine transforms * Fix tall image final state The initial animation frame is still off on both platforms. * Try to squeeze perf * Avoid blank images during animation on iOS * Fix bad rebase * Fix a huge memory issue due to expo/expo#24894 * Fix last frame flash * Fix thum dim calculation for tall images
* set includeFontPadding false for fixed TextInput height on Android (#6170)khuddite2024-11-091-1/+5
|
* [Settings] Ungate, and remove old settings (#6144)Samuel Newman2024-11-086-1002/+3
| | | | | | | | | | | | | | | | | | | * move export car dialog * move disableemail2fadialog * delete old settings screens * fix type error * Update Navigation.tsx * Delete AccountDropdownBtn.tsx * remove old change handle modal * delete add app paswords * forgot to actually delete the change handle modal
* options to checkbox (#6175)Hailey2024-11-081-3/+3
|
* fix 3 image grid in DMs (#6163)Samuel Newman2024-11-081-5/+4
|