about summary refs log tree commit diff
path: root/src/view/com/composer
Commit message (Collapse)AuthorAgeFilesLines
* Add plural formatting, translate and tweak some accessibility strings in ↵surfdude292025-04-022-26/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | composer (#7997) * add plural formatting and translate accessibility strings * tweak accessibility label and add comments for translators * fix * tweak comments * make label conditionally plural * rm stray bracket * try to fix prettier * nope * lint * more lint * prettier --------- Co-authored-by: Hailey <me@haileyok.com>
* Simplify content warning dialog text (#7943)surfdude292025-04-021-3/+2
| | | | | | | | | | | | | * simplify content warning dialog text * tweak copy * Update src/view/com/composer/labels/LabelsBtn.tsx Co-authored-by: Hailey <hailey@blueskyweb.xyz> --------- Co-authored-by: Hailey <hailey@blueskyweb.xyz>
* Add plural formatting for alt text truncated string (#7994)surfdude292025-04-012-6/+12
| | | | | | | | | * add plural formatting in GifAltText.tsx * add plural formatting in ImageAltTextDialog.tsx * import Plural * format
* Preload emoji picker data for reactions on web (#8079)Eric Bailey2025-03-281-0/+24
| | | | | * Preload emoji picker data for reactions on web * Sort imports
* Revert "Small revert to be on the safe side (#7932)" (#7958)Samuel Newman2025-03-243-25/+19
| | | This reverts commit 0014b8b9cd0a5858ea7fad31361e5b611296e912.
* Update `VideoTooLargeError` strings (#7923)surfdude292025-03-121-1/+1
|
* Small revert to be on the safe side (#7932)Eric Bailey2025-03-073-19/+25
| | | | | | | | | * Revert "fix autocomplete (#7930)" This reverts commit f06a78017a92de96bb4df0812c5934023440df95. * Revert "#6861: Use available space to make focus on Composer TextInput easier (copy) (#7836)" This reverts commit e40656128d2fad41762ec1e7f022bc10fcdd25fc.
* fix autocomplete (#7930)Samuel Newman2025-03-072-2/+2
|
* tweak ci (#7916)Samuel Newman2025-03-062-9/+13
|
* Merge #7903 (#7917)Eric Bailey2025-03-062-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add missing msg macro calls for i18n (#7903) * Add missing msg macro calls for i18n * Update src/screens/Settings/AppIconSettings/useAppIconSets.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Apply surfdude29's suggestions from code review Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Format --------- Co-authored-by: Stanislas Signoud <signez@stanisoft.net> Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Fix for avatar preloading (#7816)Seth Wood2025-02-261-0/+1
| | | | | | | * mobile avatar profile preloading fix * updating fix to include moderation * removing comments, adding disableNavigation to PreviewableUserAvatarProps
* #6861: Use available space to make focus on Composer TextInput easier (copy) ↵Samuel Newman2025-02-252-24/+18
| | | | | | | | | | | | | | | | | | | | (#7836) * 6861: Use available space to make focus on Composer TextInput easier * Undo web * bluesky-social#6861: Adjust focus area for native platforms taking Embeds into consideration * use atoms * remove empty div * remove debug atom, whoopsie --------- Co-authored-by: GrizliK1988 <dgrachikov@gmail.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* make composer pills tappable when keyboard is active (#7717)gpp2025-02-231-0/+1
|
* Refine accessibilityHint (#7554)Minseo Lee2025-02-113-4/+4
| | | | | | | | | | | | | | | * `accessibilityHint` * accessibilityHint * Update Co-Authored-By: jason-me <mail@jason-hester.me> * Update LoginForm.tsx --------- Co-authored-by: jason-me <mail@jason-hester.me>
* [APP-1013] Configure and apply default post interaction settings from user ↵Eric Bailey2025-02-062-5/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | preferences (#7664) * Add interaction settings screen * Move header out of interaction settings form * WIP hook it up * Thread through default settings into composer * Update copy pasta * Handle edited state * Copy feedback * Sentence case Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update copy * Bump SDK * Fix new type error * Less in your face * Remove new dep * Add slot * Copy edit --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Fix Android composer padding: Director's Cut (#7412)Samuel Newman2025-01-091-7/+15
| | | | | | | * fix android 15 composer padding * while I'm here, alf some bits and pieces * add comments
* Localize lang selectors according to the app language (#6207)Stanislas Signoud2024-12-312-31/+44
| | | | | * Localize lang selectors according to the app language * Explicitly ignore RangeError when translating locale names
* Fix Emoji picker focus (#7217)Eric Bailey2024-12-202-37/+59
| | | | | | | | | | | | | | | | | | | * Only portal the emoji picker where needed * Add optional portal prop to emoji picker * Use FocusScope to our advantage * Pare back, add guards, fix focus trap * Don't return focus to emoji button * Set DM input position on emoji insert * Let the caller determine next focus node --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix emoji picker position (#7146)Eric Bailey2024-12-171-34/+37
|
* Immediately parse pre-filled links in composer state (#6974)Eric Bailey2024-12-063-5/+75
| | | | | | | * Immediately parse pre-filled links in composer state * Add hack to fix PasteInput height bug * Parse out ext links separately from post links
* clean rn 0.76 upgrade (#6887)Hailey2024-12-061-3/+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>
* 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 Newline handling in Web's Composer (#6658)Horus Lugo2024-11-231-0/+20
|
* 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
* 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-212-2/+2
| | | | | | | | | | | * Separate non-components from components * Mark old Text as deprecated * Move emoji utilities to non-React file * Fix type * Fix import
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-1917-22/+11
| | | | | | | | | 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
* Use compiler-safe Reanimated get/set APIs (#6391)dan2024-11-171-19/+27
| | | | | | | | | | | | | | | | | | | | | * 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
|
* Modify self labels for clarityPaul Frazee2024-11-131-18/+20
|
* Add email verification prompts throughout the app (#6174)Hailey2024-11-121-0/+21
|
* set includeFontPadding false for fixed TextInput height on Android (#6170)khuddite2024-11-091-1/+5
|
* options to checkbox (#6175)Hailey2024-11-081-3/+3
|
* Composer UI fixes (#6065)dan2024-11-013-7/+29
| | | | | | | | | * Fix close button overlap * Make footer actually sticky on web * Special toast for thread * Only stick to bottom for last post
* Fix duplicates in thread composer (#6068)dan2024-11-013-4/+22
|
* [Statsig] Track threads (#6057)dan2024-11-011-0/+7
| | | | | * [Statsig] Send thread length * Split events
* Fix character count with intent (#6056)dan2024-11-011-2/+6
|
* Fixes for thread composer on Android (#6045)dan2024-11-012-37/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Extract function to read contentHeight later * Remove autoscroll to bottom We're going to implement this in the UI layer instead. * Remove worklet from non-worklets to avoid confusion * Rename and invert hasScrolled* variables Their naming was too ambiguous (they used to represent "has scrolled _away_ from X"). I inverted them and clarified the naming. No functional changes. * This should not be necessary It's already called not just from UI thread. And it only sets shared values, which can be done from either thread. * Make hasScrolledTo* derived values It wasn't always correct to derive them manually because reading from .value is stale on JS thread. We could fix that by using the local variables but it makes more conceptualy sense to treat these as derived anyway. * Reimplement autoscroll-to-bottom in UI layer Doing it here ensures we also do it when you add an image at the end of the thread. Otherwise it's very confusing where it went. * Use fancy ScrollView This seems to fix ScrollView getting stuck after inserting images at the thread end on Android. * More aggressive scroll-to-bottom * "Fix" cursor getting stuck on Android * Revert "Use fancy ScrollView" This reverts commit 04e34a54e3b75f8a77de5062bff5fe6e76420bbb.
* Thread composer UI (#6050)dan2024-11-017-211/+455
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Basic adding of posts * Switch active post on focus * Conditionally show plus button * Insert posts midthread * Track active/inactive post * Delete posts in a thread * Focus after deletion * Tweak empty post detection * Mix height for active only * Move toolbar with post on web * Fix footer positioning * Post All button * Fix reply to positioning * Improve memoization * Improve memoization for clearVideo * Remove unnecessary argument * Add some manual memoization to fix re-renders * Scroll to bottom on add new * Fix opacity on Android * Add backdrop * Fix videos * Check alt for video too * Clear pending publish on error * Fork alt message by type * Separate placeholder for next posts * Limit hitslop to avoid clashes
* Implement posting threads (#6049)dan2024-11-011-1/+1
| | | | | | | | | | | | | | | * Implement posting a thread Co-authored-by: Dan Abramov <dan.abramov@gmail.com> * Fix native build * Remove dependency on web crypto API * Fix unrelated TS error (wtf) --------- Co-authored-by: Mary <148872143+mary-ext@users.noreply.github.com>
* Check video state for the entire thread (#5957)dan2024-11-013-76/+162
| | | | | | | | | | | | | * Switch to using post ID for post actions * Pass post-bound dispatch to ComposerPost * Check video state for entire thread * Always bind post actions to an ID * Rename variable for consistency * Fix clashing keys
* Sort imports (#6009)dan2024-10-297-20/+21
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Extend composer checks to all posts in a thread (#5955)dan2024-10-291-50/+65
| | | | | * Check all posts in a thread * Use thread for more checks
* Remove indirection when rendering composer state (#5954)dan2024-10-292-66/+40
| | | | | | | * Simplify onPressCancel dismiss condition * Remove alias variables * Move grapheme length calculation to reducer
* Refactor composer state for threads (#5945)dan2024-10-293-49/+112
| | | | | | | * Refactor composer state for threads * Remove unnecessary default case TS can see it's exhaustive.
* Disable Post button when empty (#5953)dan2024-10-291-32/+19
| | | | | | | * Disable Post button when empty * Use regular disabled button * Disable post on video error until cleared
* fix alt position (#5985)Samuel Newman2024-10-282-2/+2
|
* hailey/filter dupe labels (#5984)Hailey2024-10-281-2/+6
|
* Fix E2E tests (#5980)Hailey2024-10-281-1/+2
|
* Make composer min height conditional and align attachments (#5976)dan2024-10-283-4/+18
| | | | | | | * Make web composer min height condiitonal * Fix alignment * Fix alignment on mobile