about summary refs log tree commit diff
path: root/src/view/com/composer
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Don't render `ComposerPills` when unnecessary (#5975)Hailey2024-10-281-0/+6
|
* Fix missing style (#5944)dan2024-10-251-1/+1
|
* Conditionally render labels button when media exists in post (#5942)Hailey2024-10-253-139/+120
| | | | | | | * conditionally render button * update labels on remove * tweak
* Split composer into smaller components (#5941)dan2024-10-253-357/+521
| | | | | | | | | | | | | | | * Extract ComposerTopBar * Rename state variables to align with props * Extract ComposerEmbeds * Extract ComposerPills * Extract ComposerFooter * Tweak condition to be simpler * Extract ComposerPost
* Display non-post embeds in composer preview (#5647)dan2024-10-242-36/+36
| | | | | | | | | | | | | * Display non-post embeds in composer preview * Remove starter pack special case from ExternalLinkEmbed This should not be needed because starter pack composer preview now goes through the record preview codepath, just like in the feed/post view. * Hide record ext links if quote is present * Align remove buttons Remove the implicit top padding in record embeds and make it conditional, which is similar to how we treat external link embeds. This makes the X button appear in the same place for record embeds as with links.
* Include hydrated responses for other records (#5646)dan2024-10-241-6/+22
| | | | | | | * Include hydrated responses for other records * Rename meta -> view This is actually all it is now.
* Refactor post meta to return PostView (#5645)dan2024-10-242-22/+8
|
* Put ExternalEmbedRemoveBtn on top (#5887)Eric Bailey2024-10-241-1/+1
|
* Move self-label button (#5780)Hailey2024-10-173-95/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * move self label button? * rm * make sure its usable on large font sizes * tweak wording * update icon * tweaks * change button label and change opacity when no media (#5794) * Tweak it moar (#5807) * Tweak it moar * Pluralize * Labels --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Eric Bailey <git@esb.lol>
* Add graphic media self label (#5758)Hailey2024-10-162-119/+174
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Composer - Self label dialog ALF rewrite (#4354)Samuel Newman2024-10-163-57/+180
|
* translate video state strings (#5762)surfdude292024-10-151-5/+5
|
* Link cards (#5677)Eric Bailey2024-10-142-25/+17
| | | | | | | | | | | | | | | * New link card styles * Cleanup of consituent parts, add hover state * Fix gif alt text view * Fix alt text view more * Remove dupe * Update remove button * Remove added margin on gif
* Fix keyboard hiding alt text input after viewing DMs on iOS (#5739)Hailey2024-10-142-9/+7
|
* Remove autofocus from alt text input (#5727)Hailey2024-10-112-7/+9
| | | | | * remove autofocus from alt text input * open to full height
* ext gif check (#5725)Hailey2024-10-111-0/+2
|
* one line btn (#5700)Hailey2024-10-101-1/+1
|
* Tweak threadgate button sizing in the composer on Web (#5692)Paul Frazee2024-10-101-1/+4
| | | | | * Adjust threadgate btn sizing in composer * Tweak threadgate button size on web
* Update the email verification dialog (#5663)Hailey2024-10-101-19/+18
|