about summary refs log tree commit diff
path: root/src/view
Commit message (Collapse)AuthorAgeFilesLines
* Fix stutter when swiping feeds on Android (#6765)dan2024-11-261-4/+0
|
* Fix `<List>` types (#6756)Samuel Newman2024-11-268-148/+163
| | | | | | | * fix List and ScrollView types * add comment * rm omitting ref
* focus search input on soft reset in mobile (#5732)rshigg2024-11-251-0/+1
|
* Revert "Pass referrer on native (with an opt out) (#6648)" (#6732)dan2024-11-251-1/+1
| | | This reverts commit ac5b2cf31f2bb45f1bf8a180705249d3cce8017d.
* Don't re-sort already fetched post thread items (#6698)dan2024-11-241-0/+9
| | | | | | | | | | | | | | | * Don't reorder already seen posts in PostThread * Add sorting by generation * Rip out stable order cache It doesn't make sense because sort() doesn't call the callback for all A/B pairs, and the server returning a different ordering will cause cache misses which means there'll be no stability anyway. * Make hotness deterministic per fetched at * Cache random scores while in thread * Reorder for clarity
* Fix format number polyfill for gl locale (#6680)dan2024-11-241-0/+3
|
* Fix skeleton alignment (#6676)dan2024-11-231-6/+6
|
* perf: optimizations for composer with Tiptap (#6315)Nick Perez2024-11-231-8/+3
| | | | | | | | | | | | | * chore: update tiptap packages * perf: reduce number of re-renders * refactor: apply min height without a layout effect * Remove stale zeed-dom resolution --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix broken pagination for lists tab on profile page (#6221)Khuddite2024-11-233-4/+36
| | | | | | | | | | | | | | | | | * set onEndReachedThreshold to 2 for ProfileLists * Add a footer for ProfileLists component for consistency * Remove logs * Revert onEndReachedThreshold change on Feed component * Fix threshold defaults to match native * Align lists and feedgens --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix hovered repost button styling when logged out (#6222)Roland Crosby2024-11-231-3/+1
|
* Fix avi button hitslops (#6662)dan2024-11-233-21/+14
| | | | | | | | | | | | | | | | | * Remove web hack from non-web file * Remove hitSlop on the wrong Pressable It is not doing anything useful. * Extend avi column to prevent hit rect clipping You can't click outside the parent on Android. * Bump pressed opacity to .8 * Slightly reduce avi button hitslops * Asymmetric hit slop
* Fix inconsistent number formatting between mobile and web (#6384)Khuddite2024-11-232-6/+133
| | | | | | | | | | | | | | | | | * Manual truncation & identify factor points for each lang * Reduce indirection * Add test Co-authored-by: khuddite <biliie811028@hotmail.com> * Handle big numbers, clarify special case * Clarify the reason --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix Newline handling in Web's Composer (#6658)Horus Lugo2024-11-231-0/+20
|
* Fix translate button not working (#6657)Frudrax Cheng2024-11-231-5/+15
| | | | | | | | | * Update PostThreadItem.tsx * Fix in-app browser usage --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Pass referrer on native (with an opt out) (#6648)dan2024-11-221-1/+1
| | | | | | | | | | | | | | | | | * Pass referer on native * Add ChainLink3 * Add an opt out for sending utm * Remove noreferrer on links We do have <meta name="referrer" content="origin-when-cross-origin"> in HTML, should be sufficient. * Narrow down the condition slightly --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Remove indirection, insert between slices (#6645)dan2024-11-221-110/+43
|
* Fix leaking background (#6642)dan2024-11-221-1/+3
|
* Add ability to block account from post dropdown menu (#6091)rshigg2024-11-221-8/+48
| | | | | Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Hailey <hailey@blueskyweb.xyz>
* fix avi follow deadzone (#6639)Samuel Newman2024-11-221-9/+6
|
* Add gif support to web (#6433)Samuel Newman2024-11-227-114/+178
| | | | | | | | | | | | | * add gif support to web * rm set dimensions * rm effect from preview * rm log * rm use of {cause: error} * fix lint
* 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-212-9/+5
|
* 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-1977-82/+29
| | | | | | | | | 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-1711-131/+153
| | | | | | | | | | | | | | | | | | | | | * 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
|
* manually implement drawertype logic (#6419)Samuel Newman2024-11-161-0/+1
|
* [Statsig] Remove client downsampling (#6153)Hailey2024-11-155-19/+13
|