about summary refs log tree commit diff
path: root/src/view/com/composer/text-input
Commit message (Collapse)AuthorAgeFilesLines
...
| * fix: design adjustmentsMary2024-01-211-2/+3
| |
| * fix: always call preventDefaultMary2024-01-211-4/+12
| |
| * refactor: use right borderDarkMary2024-01-211-5/+1
| |
| * feat: new designMary2024-01-211-35/+81
| |
| * feat: web composer image drag and dropMary2024-01-211-9/+54
| |
* | New Web Layout (#2126)dan2024-01-221-1/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rip out virtualization on the web * Screw around with layout * onEndReached * scrollToOffset * Fix background * onScroll * Shell bars * More scroll * Fixes * position: sticky * Clean up 1 * Clean up 2 * Undo PagerWithHeader changes and fork it * Trim down both versions * Cleanup 3 * Memoize, lint * Don't scroll away modal or lightbox * Add content-visibility for rows * Fix composer * Fix types * Fix borked scroll animation * Fixes to layout * More FlatList parity * Layout fixes * Fix more layout * More layout * More layouts * Fix profile layout * Remove onScroll * Display: none inactive pages * Add an intermediate List component * Fix type * Add onScrolledDownChange * Port pager to use onScrolledDownChange * Fix on mobile * Don't pass down onScroll (replacement TBD) * Remove resetMainScroll * Replace onMainScroll with MainScrollProvider * Hook ScrollProvider to pager * Fix the remaining special case * Optimize a bit * Enforce that onScroll cannot be passed * Keep value updated even if no handler * Also memo it * Move the fork to List.web * Add scroll handler * Consolidate List props a bit * More stuff * Rm unused * Simplify * Make isScrolledDown work * Oops * Fixes * Hook up context scroll handlers * Scroll restore for tabs * Route scroll restoration POC * Fix some issues with restoration * Remove bad idea * Fix pager scroll restoration * Undo accidental locale changes * onContentSizeChange * Scroll to post * Better positioning * Layout fixes * Factor out navigation stuff * Cleanup * Oops * Cleanup * Fixes and types * Naming etc * Fix crash * Match FL semantics * Snap the header scroll on the web * Add body scroll lock * Scroll to top on search * Fix types * Typos * Fix Safari overflow * Fix search positioning * Add border * Patch react navigation * Revert "Patch react navigation" This reverts commit 62516ed9c20410d166e1582b43b656c819495ddc. * fixes * scroll * scrollbar * cleanup unrelated * undo unrel * flatter * Fix css * twk
* Internationalize more strings (#2440)Stanislas Signoud2024-01-091-1/+2
| | | Co-authored-by: Ansh <anshnanda10@gmail.com>
* emoji picker improvements (#2392)Hailey2024-01-023-57/+90
| | | | | | | | | | | | | * rework emoji picker * dynamic position * always prefer the left if it will fit * add accessibility label * Update EmojiPicker.web.tsx oops. remove accessibility from fake button
* Bump react-native to 0.73.1, expo to 50 (#2214)Eric Bailey2023-12-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump to react-native@0.73, bump expo@next Includes bumps for all expo deps and dev dependencies. Updates react-native patch and others, and removes the babel-preset-expo patch. * Remove duplicate Splash ref * Bump more deps * Properly install expo-notifications * Bump webview dep * Bump packages according to expo fix; remove pager-view patch as it is no longer needed * Don't access expo-camera from Web * Fix crypto dep on web * Fix some type issues * Build esnext modules to support dynamic imports --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Web composer improvements (#2257)Paul Frazee2023-12-201-1/+1
| | | | | * Keep the emoji picker in the tablet width (close #1880) * Support pressing tab to select a mention (close #1831)
* Restore autofocus on emoji drop down (#1821)Elie Michel2023-12-201-1/+1
|
* Set numberOfLines for Android text input (#2238)Eric Bailey2023-12-181-1/+7
| | | | | * Set numberOfLines for Android text input * Let's go with 4
* Add "Who can reply" controls [WIP] (#1954)Paul Frazee2023-12-101-1/+2
| | | | | | | | | | | | | | | | | | | | | * Add threadgating * UI improvements * More ui work * Remove comment * Tweak colors * Add missing keys * Tweak sizing * Only show composer option on non-reply * Flex wrap fix * Move the threadgate control to the top of the composer
* Hackfix to composer focus on web (#2057)Paul Frazee2023-12-031-0/+10
|
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-161-3/+2
| | | | | | | | | | | | | | | | | | | | | * Update login page to use service query * Update modal to use session instead of store * Move image sizes cache off store * Update settings to no longer use store * Update link-meta fetch to use agent instead of rootstore * Remove deprecated resolveName() * Delete deprecated link-metas cache * Delete deprecated posts cache * Delete all remaining mobx models, including the root store * Strip out unused mobx observer wrappers
* Autocomplete updates (react-query refactor) (#1911)Paul Frazee2023-11-153-21/+23
| | | | | | | | | | | | | * Unify the autocomplete code; drop fuse * Persist autocomplete results while they're in progress * Commit lockfile * Use ReturnType helper --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-144-30/+40
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Simplify loading emoji data (#1790)dan2023-11-012-2/+4
|
* Don't highlight tags in composer yet (#1665)Eric Bailey2023-10-101-10/+13
|
* Dont trim before posting (close #1621) (#1622)Paul Frazee2023-10-051-1/+1
| | | | | * Dont trim before posting (close #1621) * Tweak: do trim end
* fix link highlighting with mention present (#1544)Eric Bailey2023-09-272-80/+29
|
* make sure click events on the emoji picker don't bubble up to the mask (#1427)Ansh2023-09-111-15/+21
|
* composer: inhibit Cmd-Enter from inputting newline (#1421)uakci2023-09-111-0/+1
|
* Fix autocomplete avatar alignment (#1414)dan2023-09-081-1/+1
|
* Give explicit names to MobX observer components (#1413)dan2023-09-071-77/+75
| | | | | | | | | * Consider observer(...) as components * Add display names to MobX observers * Temporarily suppress nested components * Suppress new false positives for react/prop-types
* Add ESLint React plugin (#1412)dan2023-09-073-279/+272
| | | | | * Add eslint-plugin-react * Enable display name rule
* Fix caret jumps for web composer (#1374)dan2023-09-051-5/+2
| | | | | * Fix caret jumps for web composer * Autofocus at the end on mount
* Fix #1328 fix emoji picker scroll on firefox and chrome (#1332)Ansh2023-08-301-16/+36
| | | | | | | | | * fix emoji picker scroll on firefox and chrome * click outside emoji picker to dismiss * dynamically position emoji picker * dynamically placing picker
* Replace web editor link behavior (#1319)Paul Frazee2023-08-282-26/+123
| | | | | * Replace web editor link behavior (close #1293) (close #1292) * Update link decorator to match rich text link detector
* [APP-836] Emoji picker for web (#1254)Ansh2023-08-232-12/+106
| | | | | | | | | | | | | | | | | | | | | | | | | * add emoji-mart package for emoji dropdown picker * remove emoji picker modal * load emoji mart data not as part of the main bundle * remove @emoji-mart/data * setup emoji insertion with events * get emoji data from local static assets * close emoji picker after one emoji has been inserted * Switch emoji picker trigger to an icon * Update emoji-mart-data.js * make grabbing emoji data work on more browsers --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* [APP-834] Allow @ing someone in post directly from profile (#1241)Ansh2023-08-221-1/+59
| | | | | * setup `initMention` for mobile * setup creating post with profile tagged on web
* Update the web composer textinput to an emitter (close #1193) (#1205)Paul Frazee2023-08-171-9/+22
| | | | | | | The tiptap useEditor() hook creates an awkward challenge for passing event handlers into its plugins and native events. By introducing a memoized editor, we should be able to shuttle events out of tiptap without retriggering the useEditor hook. The emitter can then change its registered handlers with each state update.
* A set of composer fixes (#1187)Paul Frazee2023-08-161-0/+2
| | | | | | | * Don't insert a newline on cmd+entrl (close #1173) * Don't linkify selected text on url-paste (close #1149) * Disable the adult content controls if there is no media on the post (close #1169)
* Shorten links in composer to reduce char usage (#1188)Paul Frazee2023-08-161-0/+1
| | | | | | | * Modify toShortUrl() to always include the full domain * Shorten links in the composer to save on characters * Apply some limits to the link card suggester
* #929 Wrap `PasteInput` updates in a `setTimeout` (#1033)Eric Bailey2023-07-191-39/+51
| | | | | * wrap PasteInput updates in a setTimeout * just wrap the whole callback
* [APP-692] Accessibility font-scaling fixes (#922)Paul Frazee2023-06-281-0/+1
| | | | | | | | | | | * Fix: enable font scaling in the composer text input * Fix: cancel button in search no longer wraps * Fix: report modals no longer clip off the bottom with scaled fonts * Fix scrolling on android * Allow wrapping in dropdown items until we can handle proper sizing
* Make autocomplete pressable (#620)Ollie H2023-05-151-4/+8
|
* Add avatar to mobile autocomplete and create grapheme hook (#602)Ollie H2023-05-093-66/+110
| | | | | * Add avatar to mobile autocomplete and create grapheme hook * Remove comment, update filename, cut out redundant logic
* Visual improvements to web autocomplete (#591)Ollie H2023-05-081-14/+108
| | | | | * Visual improvements to web autocomplete * Remove stray styling
* Fix hardbreak formattingrenahlee2023-05-051-0/+2
|
* Add keyboard shortcuts: new, escape, and hard break (#552)Ollie H2023-05-021-0/+2
| | | | | | | | | | | | | | | | | | | | | * Add keyboard shortcuts: new, escape, and hard break * Add preferences modal * Remove code accidentally re-added due to rebase * Fix incorrect copy and lint * Put stuff back so diffs are clearer * Re-add invite codes to settings * Address comments * Tune the copy --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* React Native accessibility (#539)Ollie H2023-05-013-26/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * React Native accessibility * First round of changes * Latest update * Checkpoint * Wrap up * Lint * Remove unhelpful image hints * Fix navigation * Fix rebase and lint * Mitigate an known issue with the password entry in login * Fix composer dismiss * Remove focus on input elements for web * Remove i and npm * pls work * Remove stray declaration * Regenerate yarn.lock --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Support Ctrl + Enter for non-Mac (#544)Ollie Hsieh2023-04-271-1/+1
|
* Add undo to web composer (#542)Ollie Hsieh2023-04-271-0/+2
|
* Support CMD + Enter to publish postrenahlee2023-04-192-0/+13
|
* Split image cropping into secondary step (#473)Ollie Hsieh2023-04-172-56/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Split image cropping into secondary step * Use ImageModel and GalleryModel * Add fix for pasting image URLs * Move models to state folder * Fix things that broke after rebase * Latest -- has image display bug * Remove contentFit * Fix iOS display in gallery * Tuneup the api signatures and implement compress/resize on web * Fix await * Lint fix and remove unused function * Fix android image pathing * Fix external embed x button on android * Remove min-height from composer (no longer useful and was mispositioning the composer on android) * Fix e2e picker --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Web darkmode fixes (#474)Paul Frazee2023-04-131-31/+45
| | | | | | | * Change dark mode borders to be slightly lighter than the bg rather than slightly darker * Add dark mode styling to web composer * Fix editprofile darkmode
* Fix darkmode placeholder text in composer (#406)Paul Frazee2023-04-061-0/+1
| | | | | * Remove old comment * Fix darkmode placeholder text in composer (close #401)
* Reorganize state models for clarity (#378)Paul Frazee2023-04-034-8/+8
|
* Lex refactor (#362)Paul Frazee2023-03-312-30/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove the hackcheck for upgrades * Rename the PostEmbeds folder to match the codebase style * Updates to latest lex refactor * Update to use new bsky agent * Update to use api package's richtext library * Switch to upsertProfile * Add TextEncoder/TextDecoder polyfill * Add Intl.Segmenter polyfill * Update composer to calculate lengths by grapheme * Fix detox * Fix login in e2e * Create account e2e passing * Implement an e2e mocking framework * Don't use private methods on mobx models as mobx can't track them * Add tooling for e2e-specific builds and add e2e media-picker mock * Add some tests and fix some bugs around profile editing * Add shell tests * Add home screen tests * Add thread screen tests * Add tests for other user profile screens * Add search screen tests * Implement profile imagery change tools and tests * Update to new embed behaviors * Add post tests * Fix to profile-screen test * Fix session resumption * Update web composer to new api * 1.11.0 * Fix pagination cursor parameters * Add quote posts to notifications * Fix embed layouts * Remove youtube inline player and improve tap handling on link cards * Reset minimal shell mode on all screen loads and feed swipes (close #299) * Update podfile.lock * Improve post notfound UI (close #366) * Bump atproto packages