about summary refs log tree commit diff
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* Remove the environment indirections (#7089)dan2024-12-132-5/+3
| | | | | * Use raw underlying globals for environment * Set dev EXPO_PUBLIC_ENV by exclusion
* Fix web Home header (#7086)dan2024-12-121-2/+2
| | | | | * Fix header disappearing on web * Make border nicer
* Revert "Edit string to avoid churning translations (#6737)" (#7087)dan2024-12-121-1/+1
| | | This reverts commit 9d3bdbb2b9df8bbee7fe8ed4df87226b2e498f03.
* Fix double border due to progress guide (#7084)dan2024-12-121-19/+3
|
* Fix share button not working for some users (#5849)Hailey2024-12-123-27/+48
| | | | | | | | | | | | | | | * fix share button * Revert "fix share button" This reverts commit 3521c241729dc9bbe3dd7b62fc6e3e61e011cdf9. * tweak * Clean up context --------- Co-authored-by: Eric Bailey <git@esb.lol>
* New profile feed header (#7056)Eric Bailey2024-12-122-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Init hacking * Lil baby button checkpoint * Playing around * Revert "Playing around" This reverts commit f58a7fafa12269035d440cfa2d8cb1dbd562305f. * Mostly there * Cleanups * Cleanup * Fix report dialog nesting * Remove transform on native * Rename header * Fix layout, overflowing FAB buttons * Remove hack * Couple of fixes * Keep Pin primary CTA (#7061) * Update src/screens/Profile/components/ProfileFeedHeader.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Simplify, use old string * Wrap Trans better --------- Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* [Layout] Bleed profile banner into safe area (#6967)Samuel Newman2024-12-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | * bleed profile banner into safe area (cherry picked from commit 50b3a4d0c6fd94b583ffe4efa65de35c81ae7f4e) * pointer events none when hidden (cherry picked from commit bae2c7b2dd6d7f858a98812196628308c0877755) * fix web (cherry picked from commit e3f9597170375f2903b6e567b963f008ec95aed1) * add status bar shadow * rm log * rm mini header * speed up animation * pass bool rather than int in light status bar
* refine plural marks (#7065)Minseo Lee2024-12-123-19/+26
|
* More exact counts (#7059)Samuel Newman2024-12-111-2/+2
| | | | | | | | | * post liked by * rm unnecessary layout.center * do post quotes/reposts * set height of header to prevent layout shifts
* fix: typo in filename list-converations (#7036)Renan Mav2024-12-101-1/+1
|
* Disambiguate feed component naming (#7040)dan2024-12-101-2/+2
| | | | | * Rename posts/Feed* -> posts/PostFeed* * Rename notifications/Feed* -> notifications/NotificationFeed*
* Refactor sidebar (#6971)Eric Bailey2024-12-102-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor RightNav (cherry picked from commit 96bb02acfd2d7452df18a0e7410e6a7169a583ed) * Better gutter handling * Clean up styles * Memoize breakpoints * Format * Comment * Loosen spacing, handle overflow, smaller text to match prod * Fix circular imports on native * Return 0 instead of undefined for easier calculations * Re-assign * Fix * Port over fix from subs/base * Space out right nav feeds, widen sidebar to match prod * Fix lost padding on home header * Fix perf by not actually linking to new URL * Remove underline on focus * Foramt --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* clean rn 0.76 upgrade (#6887)Hailey2024-12-064-34/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Trim back prefs exposure in NUXs, make naming more friendly (#6980)Eric Bailey2024-12-061-11/+6
|
* [Layout] Base (#6907)Eric Bailey2024-12-0512-154/+617
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Add some icons (#6976)Eric Bailey2024-12-055-0/+29
|
* simplify date picker theme (#6926)Samuel Newman2024-12-031-1/+1
|
* Update VideoClip icon - Fix pixel grid alignment (#6923)David Buchanan2024-12-031-1/+1
| | | | | * Update VideoClip.tsx * minify path
* Fix title/buttons in date picker not being visible on Android in dark mode ↵Ryan McLeod2024-12-031-0/+3
| | | | (#6880)
* Add new languages to `CFBundleLocalizations` key (#6835)surfdude292024-12-021-1/+1
| | | | | | | | | | | | | | | * Order tweak in lingui.config.js * Add new languages to `CFBundleLocalizations` key * Order tweak in dates.ts * hyphen to en-dash * change two `zh` tags to use script rather than region * `zh_HK` ➡️ `yue-Hant` * `pt` ➡️ `pt-BR`
* fix iOS language picker style in dark mode (#6804)Foster2024-11-281-0/+1
| | | Co-authored-by: skipness <ckhf@proton.me>
* Fix ast (#6774)Frudrax Cheng2024-11-271-2/+1
|
* Add "ast" locale support (#6411)Softastur2024-11-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" translations This commit adds preliminary translation support for "ast" locale. Around 20% is translated. * Update "ast" locale translations * Update "ast" translations Fixes minor spelling mistakes and translates many strings more * Update messages.po With this commit we reach the 55% of strings translated after the last code sync --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Add Aragonese language ('an') support and l10n (#6638)Juan Pablo Martínez2024-11-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update languages.ts * Update i18n.web.ts * Update i18n.ts * Update helpers.ts * Create messages.po * Update lingui.config.js * Update dates.ts * Add files via upload * Update src/components/hooks/dates.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/components/hooks/dates.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update i18n.ts * Update messages.po * Update src/locale/i18n.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Edit string to avoid churning translations (#6737)dan2024-11-251-1/+1
|
* Revert "Pass referrer on native (with an opt out) (#6648)" (#6732)dan2024-11-252-7/+2
| | | This reverts commit ac5b2cf31f2bb45f1bf8a180705249d3cce8017d.
* Ensure react-native-keyboard-controller enabled state doesn't get ↵Samuel Newman2024-11-251-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | overwritten (#6727) * revert to prev state instead of false * add dep array * use ref counting approach * patch keyboard controller to allow changing the enabled prop * remove state from patch * change patched prop name * remove Math.max check, log if < 0 * use noop provider * rm patch, use `useRef` * Style nits * Rm on web --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* fix: keyboard handler memoization (#6719)Kirill Zyusko2024-11-251-5/+8
| | | | | * fix: keyboard handler memoization * fix: return missing dependency
* Make quote post enabled switch label text static (#6720)Evan2024-11-251-5/+1
| | | | | | | | | | | * Make quote post enabled switch label text static * Update PostInteractionSettingsDialog.tsx * meh this is better --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Merge branch 'main' into mainPaul Frazee2024-11-2363-664/+542
|\
| * Added Galician language localization (#6463)xurxogp2024-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update languages.ts added galician language * Update i18n.web.ts added import of galician translations file * Update i18n.ts added galician language * Update helpers.ts added galician to sanitizeLanguage function * galician messages First commit * Second commit * Third commit * fourth commit * fifth commit * Update lingui.config.js change to make available Galician language * galician translation by Carlos Vieito and Alexandre Espinosa --------- Co-authored-by: Alexandre Espinosa Menor <aemenor@gmail.com>
| * Vietnamese Localization (Continued from #2524) (#6564)Quang Phan2024-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Vietnamese localization * Complete Vietnamese Translations * Add date localization for Vietnamese * Fix typos and wording in Vietnamese translation * Update Vietnamese translation * Add @vinhphm to Vietnamese translator list --------- Co-authored-by: CromNguyen <nguyenthietmanh98@gmail.com>
| * Fix jumpy web animation for modal backdrop (#6673)dan2024-11-232-18/+29
| |
| * derive bottom padding from header height for profiles list (#6152)Khuddite2024-11-231-1/+1
| |
| * fix: nothing selected bug (#6260)Luke Lucas2024-11-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | * fix: nothing selected bug * fix: consolidate related logic for audience settings * simplify --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
| * Pass referrer on native (with an opt out) (#6648)dan2024-11-222-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
| * Simplify play icon shadow (#6641)dan2024-11-221-26/+10
| | | | | | | | | | * Simplify play icon shadow * Make it consistent across themes
| * Reduce <Text> nesting (#6615)dan2024-11-213-20/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-134/+11
| | | | | | | | | | | | | | | | | | | | | | * Separate non-components from components * Mark old Text as deprecated * Move emoji utilities to non-React file * Fix type * Fix import
| * Don't underline links on native hover (#6588)dan2024-11-212-23/+13
| |
| * fix change handle dialog on android (#6563)Samuel Newman2024-11-201-5/+3
| |
| * Implement Polish translation (#6283)axiand2024-11-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial polish translation sweep * rewrite feeds page flavor text * bring up to date with dev branch, revisit some strings * redoing some more... * bring up to date * rm dead strings, try out a different phrasing for threaded mode str prev translation was nonsensical - we're already calling threads "wątki". let's try "recursive tree" instead to describe what threaded mode does * tweaks here and there * more tweaks. sign translation file TL note: trying a new space-saving translation for send via direct message, old one made the context menu stretch * space-saving translations for profile tabs * up to date * tl latest changes * some small fixes * few more tweaks around profile editing strings * i dislike gendered languages * yet more tweaks * Update dates.ts * Review suggestions (1) * tiny fixes * Review suggestions (2) * Review suggestions (3) * Review suggestions (4) * "Anuluj wyciszenie" * A few new strings * Remove dead strings again * Review suggestions (5) * te -> to --------- Co-authored-by: Frudrax Cheng <i@cynosura.one>
| * Fix post interaction selectable text being cut off (#6527)Evan2024-11-191-2/+2
| |
| * Remove aria-pressed attr from button. Closes #6325 (#6402)Paul Coroneos2024-11-191-1/+0
| |
| * Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-1930-31/+7
| | | | | | | | | | | | | | | | | | 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
| * Fix TagMenu initial render perf (#6483)dan2024-11-182-151/+165
| | | | | | | | | | | | | | * Split tag menu dialog content * Log the actual error please * Fix it on native
| * Optimize ContentHider (#6501)dan2024-11-181-9/+31
| |
| * Use compiler-safe Reanimated get/set APIs (#6391)dan2024-11-176-46/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Remove typography NUX and consistently call upsertProfile (#6424)dan2024-11-162-133/+10
| | | | | | | | | | | | | | | | | | * Make profile upsert unconditional * Remove Typography NUX * Early exit NUXes on unknown creation date * Clarify via comment
| * use IAB for translate (#6421)Samuel Newman2024-11-161-1/+1
| |