about summary refs log tree commit diff
path: root/src/view/com/util
Commit message (Collapse)AuthorAgeFilesLines
* Remove the environment indirections (#7089)dan2024-12-131-2/+1
| | | | | * Use raw underlying globals for environment * Set dev EXPO_PUBLIC_ENV by exclusion
* Gate bitdrift integration (#7088)dan2024-12-131-2/+3
| | | | | | | | | * Move Statsig init call earlier * Gate Bitdrift init call * Remove IS_TEST env constant * Mock statsig
* Increase scrubber height if touch device (#7081)Samuel Newman2024-12-121-2/+6
| | | | | | | | | * further increase target area of scrubber * make scrubber bigger if touch device --------- Co-authored-by: Antonio Sarcevic <sarcevicantonio@gmail.com>
* Cache Reanimated worklets (#7068)dan2024-12-121-19/+6
| | | | | | | * Undo perf hackfix * Bump Reanimated to include https://github.com/software-mansion/react-native-reanimated/pull/6758 * Bump to 3.17.0-nightly-20241211-17e89ca24
* refine plural marks (#7065)Minseo Lee2024-12-122-16/+32
|
* Remove rounding mode hack (#7055)Samuel Newman2024-12-112-135/+3
| | | | | | | | | | | * bump formatjs and remove hack * maybe fix tests? * Revert "maybe fix tests?" This reverts commit f1b448e5b8f7ee2bf70967a631308c226c10be80. * rm test
* Revert "[Video] Revert safari hackfix (#5367)" (#7001)dan2024-12-071-0/+7
| | | This reverts commit 94e7bfbe40ba6766361caaba99feff74a187613a.
* clean rn 0.76 upgrade (#6887)Hailey2024-12-063-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * package upgrades * upgrade system ui * update patches * rename patch * rm * use .set/.set * resolve yarnlock * fix accidentally removed package * fix use permissions hook * fix some type errors * type fixes * more tweaking * clean * Discard changes to src/screens/Onboarding/StepProfile/index.tsx * oops * fix splash * use ios/android in config * Fix tests * add back patch * add to rn patch * fullscreen? * Revert "add to rn patch" This reverts commit 4716d2c643a29fc77b871ca8555d8d78cb4ac427. * try this * test with revert * test * maybe this * fix config * Bump @react-native-picker/picker * Bump some packages * Rm unused * Update lockfile * Rename expo-notifications+0.29.8.patch.md to expo-notifications+0.29.10.patch.md * Update react-native+0.76.3.patch.md * Update react-native+0.76.3.patch.md * Inline splash configs Jumping around the file is annoying and makes it harder to understand how this is structured. * Start fixing Android splash * Downgrade compressor This version isn't building for me due to https://github.com/numandev1/react-native-compressor/issues/322. * Make Android splash empty for now * Work around a bug * Bump the compressor * Bump again * Include splash fixes * Try updating * No custom Android splash * Revert to using icons * welp * Fix sizes * Make sizing work * Bump size --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Layout] Base (#6907)Eric Bailey2024-12-057-464/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add common gutter styles as hook * Add computed scrollbar gutter CSS vars * Add new layout components * Replace layout components in settings screens * Remove old back button * Invert web border logic for easier migration * Clean up Slot API * Port over FF handling of scrollbar offset * Trade boilerplate for ease of use * Limit to one line * Allow two lines, fix wrapping * Fix alignment * sticky headers * set max with on header and center * [Layout] Notifications Header (#6910) * Replace notifications screen header * fix cropped indicator --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * Replace Hashtag header (#6928) * [Layout] ChatList header (#6929) * Replace ChatList header * update chat settings as well --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * Add web borders to Chat settings * Remove unused var * Move ChatList header outside center * Replace empty chat layout * fix breakpoints * [Layout] Scrollbar gutters (#6908) * Fix sidebar alignment * Make sure scrollbars don't hide * Gift left nav more space * Use stable one-edge, update logic in RightNav * Ope * Increase width * Reset * Add transform to sidebars * Remove bg in sidebars * Handle shifts in layout components * Replace scroll-removal handling * Make react-remove-scroll an explicit dep * Remove unused script * use correct scroll insets (#6950) * [Layout] Feeds headers (#6913) * Replace ViewHeader internals, duplicate old ViewHeader * Replace Feeds header * Replace SavedFeeds header * Visual alignment * Uglier but clear * Use old ViewHeader for SavedFeeds * use Layout.Center instead of Layout.Content * use left-aligned header for feed edit * delete unused old view header --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * [Layout] Every other screen (#6953) * attempt to fix double borders on every other screen * delete ListHeaderDesktop * delete `SimpleViewHeader` and fix screens (#6956) * Make Layout.Center not full height * Refactor List to use Layout.Center, remove built-in borders * Fix Home screen * Refactor PagerWithHeader to use Layout components * Replace components in ProfileFeed and ProfileList * Borders on Profile * Search screen replacements * use new header for profile subpage header (#6958) * Search AutocompleteResults * use new header for starter pack wizard (#6957) * Fix post thread * Enable borders by default * Moderation muted and blocked accounts * Fix scrollbar offset on Labeler * Remove ScrollView from Moderation * Remove ScrollView from Deactivated * Remove ScrollView from onboarding * Remove ScrollView from SignupQueued * Mark deprecations * fix lint * Fix double borders on profile load * Remove unneeded CenteredView from noty Feed * Remove double Center layout on Notifications screen * Remove double Center layout on ChatList screen * Handle scrollbar offset in chat * Use new atom for other scrollbar offsets * Remove borders from old views * Better doc * Remove temp migration prop * Fix new atom usage on native * Clean up Hashtag screen * Layout docs * Clarify usage in Pager * Handle nested offset contexts * Clean up Layout * fix feeds page * asymmetric header on native (#6969) * Reusable header const * Fix up home header * Add back button to convo * Add hitslop to header buttons * Comment * Better handling on native for new atom * Format * Fix nested flatlist on mod screens * Use react-remove-scroll-bar directly * Fix notification count overflow on web * Clarify doc --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* adjust feed scroll bar top offset (#6940)Foster2024-12-041-1/+1
| | | Co-authored-by: skipness <ckhf@proton.me>
* Fix scroll gesture alignment (#6898)dan2024-12-031-11/+11
|
* "Contain" images with missing dimensions instead of cropping them (#6828)dan2024-11-281-7/+7
| | | | | | | * Show unknown aspect as "contain" for autosize * Fix a flash of wrong position when opening in lightbox * Fix last frame flash on Android
* Fix stutter when swiping feeds on Android (#6765)dan2024-11-261-4/+0
|
* Fix `<List>` types (#6756)Samuel Newman2024-11-265-140/+155
| | | | | | | * fix List and ScrollView types * add comment * rm omitting ref
* Revert "Pass referrer on native (with an opt out) (#6648)" (#6732)dan2024-11-251-1/+1
| | | This reverts commit ac5b2cf31f2bb45f1bf8a180705249d3cce8017d.
* Fix format number polyfill for gl locale (#6680)dan2024-11-241-0/+3
|
* Fix skeleton alignment (#6676)dan2024-11-231-6/+6
|
* Fix broken pagination for lists tab on profile page (#6221)Khuddite2024-11-231-2/+2
| | | | | | | | | | | | | | | | | * 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-231-19/+5
| | | | | | | | | | | | | | | | | * 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>
* 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>
* 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>
* 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
* 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
* 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 Fast Refresh in <Text> files (#6609)dan2024-11-211-2/+6
| | | | | | | | | | | * 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-213-423/+0
| | | | | * 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-1924-24/+8
| | | | | | | | | 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
* 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-184-32/+22
|
* 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-173-27/+30
| | | | | | | | | | | | | | | | | | | | | * 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
* 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-161-1/+1
|
* [Lightbox] Small tweaks (#6301)dan2024-11-131-0/+3
| | | | | | | | | * Tweak lightbox springs * Speed up dismiss speed * Don't scroll to top while active lightbox * Make Android a bit faster
* dedupe date parsing (#6267)Samuel Newman2024-11-121-2/+4
|
* 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-101-3/+7
|
* android scroll performance fixes pt. 1 (#6196)Hailey2024-11-091-34/+33
|
* Fix web image layout (#6195)dan2024-11-091-1/+1
|