about summary refs log tree commit diff
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
| * Tweak email verification dialog (#6397)Hailey2024-11-151-22/+45
| |
| * [Statsig] Remove client downsampling (#6153)Hailey2024-11-152-4/+4
| |
| * NewChatDialog: remove extra padding on web (#6333)Bartosz Kaszubowski2024-11-141-1/+2
| |
| * Make `ToggleButton` full width everywhere (#6302)Eric Bailey2024-11-131-5/+4
| | | | | | | | | | | | | | | | | | * Fix 'Show badge' button label being cut off (#6215) * Make em full width --------- Co-authored-by: Khuddite <62555977+khuddite@users.noreply.github.com>
| * Add backdated post indicator (#6156)Samuel Newman2024-11-121-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-124-39/+126
| |
| * add subtle web hover to "View full thread" (#6256)Samuel Newman2024-11-122-6/+10
| |
* | Allow use of Dutch translations [ER].Guido Leenders2024-11-121-0/+2
|/
* Update error component of lists to take up the full height instead of its ↵Khuddite2024-11-111-1/+1
| | | | | content height (#6236) Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* deleted account (#6224)Minseo Lee2024-11-111-1/+1
|
* fix error screen (#6235)Samuel Newman2024-11-111-1/+1
|
* [Settings] Improved account switcher (#6131)Samuel Newman2024-11-082-0/+80
| | | | | | | | | | | | | | | * move out avatarstack to own file * improved settings switch * prefix with @ * fix types * up chevron * respect reduced motion setting * respect reduced motion in other place
* Improve chat performance (#6157)Samuel Newman2024-11-081-1/+2
| | | | | * fix worklet funcs on gestures * don't access .value in render
* Update Reanimated (#6126)dan2024-11-051-1/+1
| | | | | | | | | * Update Reanimated * Fix types * Fix Reanimated value access warnings * Fix types
* Fixed issue 5845 (#6085)Rohit Bansal2024-11-051-1/+1
|
* fix(a11y): avoid plain `div`s as button or tabs (#6084)Cynthia2024-11-033-2/+8
| | | | Co-authored-by: Hailey <me@haileyok.com>
* allow emoji in link facets (#6039)Samuel Newman2024-10-311-1/+2
|
* [Settings] Thread prefs revamp (#5772)Samuel Newman2024-10-313-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * thread preferences screen * minor tweaks * more spacing * replace gate with IS_INTERNAL * [Settings] Following feed prefs revamp (#5773) * gated new settings screen * Following feed prefs * Update src/screens/Settings/FollowingFeedPreferences.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/screens/Settings/FollowingFeedPreferences.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * replace pref following feed gate * Update src/screens/Settings/FollowingFeedPreferences.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * use "Experimental" as the header --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * [Settings] External media prefs revamp (#5774) * gated new settings screen * external media prefs revamp * replace gate ext media embeds * Update src/screens/Settings/ExternalMediaPreferences.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * add imports for translation * alternate list style on native --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * [Settings] Languages revamp (partial) (#5775) * language settings (lazy restyle) * replace gate * fix text determining flex space * [Settings] App passwords revamp (#5777) * rework app passwords screen * Apply surfdude's copy changes Thanks @surfdude29! Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * format * replace gate * use admonition for input error and animate --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * [Settings] Change handle dialog (#5781) * new change handle dialog * animations native only * overflow hidden on togglebutton animation * add a low-contrast border * extract out copybutton * finish change handle dialog * invalidate query on success * web fixes * error message for rate limit exceeded * typo * em dash! Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * another em dash Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * set maxwidth of suffixtext * Copy tweak Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * [Settings] Notifs settings revamp (#5884) * rename, move, and restyle notif settings * bold "experimental:" --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* add Thai Language translation support (#5879)Nawapon Boonjua2024-10-301-0/+2
| | | | | | | | | | | | | | | | | | | | | * add Thai Language support * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Update messages.po --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* fix warning on labeler profile: emoji detected but emoji not enabled (#6011)Ben Harris2024-10-301-3/+5
|
* Sort imports (#6009)dan2024-10-2919-49/+50
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* width full on text container (#6007)Samuel Newman2024-10-291-1/+1
|
* Add subtle web hover to interactive rows (#5989)dan2024-10-292-0/+51
| | | | | | | * Add subtle web hover to interactive rows * Adjust numbers * Ignore touch devices
* Settings revamp (#5745)Samuel Newman2024-10-2919-17/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * start building storybook * add title * add some styles * try out new icons * more settings list component parts * make text do the spacing * clean up storybook * gated new settings screen * switch account * add current profile * use Layout.Screen * Layout.Header and Layout.Content * translate helpdesk text thanks @surfdude29! Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * add account settings * undo changes to export car dialog * privacy and security screen * Translate protect account stuff Thanks @surfdude29! Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * content and media settings * about settings * 2fa copy Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * a11y and appearance * use new components for appearance settings * redesign accessibility settings * Update ContentAndMediaSettings.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * add divider * remove a11y and appearance middleman screen * fix web settingslist styles * new SettingsList.Group component * explain how portal magic works * hide pwioptout in old location * Update Settings.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * replace gate with `IS_INTERNAL` * add IS_INTERNAL to app-info.web * fix profile area growing * add close button to switch account --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>