about summary refs log tree commit diff
path: root/src/screens/Messages/Conversation/MessageInput.tsx
Commit message (Collapse)AuthorAgeFilesLines
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-231-1/+1
| | | | | | | | | | | | | * use appropriate icons for toasts * use info for session expiry * tweak size * message -> safeMessage --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [🐴] Option to share via chat in post dropdown (#4231)Samuel Newman2024-05-311-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add send via chat button to post dropdown (cherry picked from commit d8458c0bc344f993266f7bc7e325d47e40619648) * let usePostQuery take uris with DIDs (cherry picked from commit 16b577ce749fd07e1d5f8461e8ca71c5b874a936) * add embed preview in composer (cherry picked from commit 795ceb98d55b6a3ab5b83187a582f9656d71db69) * rm log (cherry picked from commit 374d6b8869459f08d8442a3a47d67149e8d9ddd4) * remove params properly, or at least as close to (cherry picked from commit c20e0062c2ca4d9c2b28324eee5e713a1a3ab251) * show images in preview (cherry picked from commit 5bb617a3ce00f67bfc79784b2f81ef8dcb5bfc25) * Register embed immediately (cherry picked from commit ee120d5438a2c91c8980288665576d6a29b4c7e7) * Add hover to match embeds (cherry picked from commit 5297a5b06e499f46a9f6da510124610005db2448) * Update post dropdown copy (cherry picked from commit bc7e9f6a4303926a53c5c889f1f1b136faf20491) * Embed preview style tweaks (cherry picked from commit 9e3ccb0f25ac2f3ce6af538bb29112a3e96e01b1) * use hydrated posts from API and just use postembed component (cherry picked from commit cc0b84db87ca812d76cc69f46170ae84cfdde4ef) * fix type error (cherry picked from commit 9c49b940e1248e8a7c3b64190c5cb20750043619) * undo needless export (cherry picked from commit 1186701c997c50c0b29a809637cb9bc061b8c0a0) * fix overflow (cherry picked from commit 8868d5075062d0199c8ef6946fabde27e46ea378) --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] send record via link in text (Record DMs - base PR) (#4227)Samuel Newman2024-05-311-1/+1
| | | | | * send record via link in text * re-trim text after removing link
* Decrease thickness of border on message input (#4196)Hailey2024-05-231-1/+1
|
* [🐴] Add new chat metrics (#4130)Hailey2024-05-201-1/+0
| | | | | | | | | | | | | | | * remove a comment * add types for event, add log to profile button * add `chat:open` * add to chat list items * fix types * oops * oops 2.0
* [🐴] Make message input layout resizing synchronous (#4123)Hailey2024-05-201-26/+46
| | | | | | | | | | | * make input resizing synchronous * remove a log * make scroll enable/disable sync * lint * start as undefined
* [🐴] Fully implement keyboard controller (#4106)Hailey2024-05-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "[🐴] Ensure keyboard gets dismissed when leaving screen (#4104)" This reverts commit 3ca671d9aacb6137e10e2cf3cd9bc170af798389. * getting somewhere * remove some now nuneeded code * fully implement keyboard controller * onStartReached check * fix new messages pill alignment * scroll to end on press * simplify pill scroll logic * update comment * adjust logic on when to hide the pill * fix backgrounding jank * improve look of deleting messages * add double tap on messages * better onStartReached logic * nit * add hit slop to the gesture * better gestures for press and hold * nits
* [🐴] 🤞 This should be the final message list change - Use ↵Hailey2024-05-181-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `dispatchCommand` so we don't need to know the content height (#4090) * handle keyboard scroll more elegantly simplify missing `runOnUI` better naming to avoid confusion nit remove unused function use `dispatchCommand` in `onContentSizeChanged` as well use `dispatchCommand` so we don't need to know the content height remove `isMomentumScrolling` * better timing * nit * another nit * handle message input resizes better too * account for other size changes like emoji keyboard opening * one last nit * just adding comments * account for dragging * make it easier to read * add a comment * 🤦‍♀️ * remove a little bit of that padding at the top
* [🐴] Reduce header size (#4078)Samuel Newman2024-05-171-1/+1
| | | | | | | * make text input container smaller * make header much smaller * improve web styling
* [🐴] Input hover and focus styles (#4064)Hailey2024-05-161-6/+15
| | | | | | | * styles for native input * web focus/hover * nit
* [🐴] Remove keyboard controller lib (#4038)Hailey2024-05-161-2/+1
| | | | | | | | | | | | | | | | | | | * remove library * implement using just reanimated * always return false for `keyboardIsOpening` on web * undo comment * handle input focus scroll more elegantly * add back minimal shell toggle on mobile web * adjust initialnumtorender * oops * nit
* [🐴] A few tweaks to message input on native (#4035)Hailey2024-05-161-1/+9
| | | | | | | | | * tweaks * only apply the padding on ios * use a hitslop of 10 instead * version bump
* [🐴] Tweak list on mobile web (#3958)Hailey2024-05-151-1/+1
| | | | | | | | | | | | | * mobile web tweaks chat screen * revert a change * remove unnecessary prop * Spacing tweaks --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Message drafts (#3993)Samuel Newman2024-05-141-2/+10
| | | | | | | | | | | * drafts * don't throw if no convo ID * Remove labs package --------- Co-authored-by: Eric Bailey <git@esb.lol>
* dont send message if >1000 graphemes (#3995)Samuel Newman2024-05-131-3/+9
|
* [🐴] List Adjustments (#3857)Hailey2024-05-041-1/+4
|
* Clipclop tweaks (#3851)Hailey2024-05-031-4/+6
| | | | | | | * scroll on input resize * add back the padding 🙊 * fix timestamps
* [Clipclops] Refactor message list (#3832)Hailey2024-05-031-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * rework the list for accessibility * Reverse reverse * progress * good to start testing * memo `MessageItem` * small hack * use our custom `List` impl * use `ScrollProvider` for `onScroll` event * remove use of `runOnJS` * actually, let's keep it * add some comments --------- Co-authored-by: Eric Bailey <git@esb.lol>
* visually align icon (#3831)Samuel Newman2024-05-031-1/+1
|
* [Clipclop] Input polish (#3819)Samuel Newman2024-05-021-37/+43
| | | | | * tweak input styles + add min-shell mode * android tweaks + hitslop
* [Clipclops] Replace 🐴 with real icon (#3802)Samuel Newman2024-05-011-2/+2
| | | | | * replace 🐴 with paper plane icon * replace envelope with plus
* [Clipclops] Dynamic input height (#3778)Hailey2024-05-011-10/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * input max height/scrollability * remove unused imports * add a web-specific version * enter and shift enter for web * missing onSubmit for native * missing attributes * improve layout of input on web * use the correct text color in the input * trim messages * remove `onSubmit` * move prop up * trim message on web * remove extra function call --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [Clipclops] adjust scroll position, keyboard color (#3771)Hailey2024-04-301-0/+1
| | | | | * use the correct keyboard appearance based on theme * i guess the min index should be 1
* [Clipclops] Use API data for clipclop list (#3769)Samuel Newman2024-04-301-1/+1
| | | | | | | | | | | | | | | * use real API * remove extra tab icon * messages list web layout + style improvements * use style's text color for input * make new chat button way more obvious --------- Co-authored-by: Hailey <me@haileyok.com>
* [Clipclops] Add screen to view and send clip clops (#3754)Hailey2024-04-291-0/+65
* add new routes with placeholder screens * add clops list * add a clop input * add some better padding to the clops * some more adjustments * add rnkc * implement rnkc * implement rnkc * be a little less weird about it * rename clop stuff * rename more clop * one more * [Clipclops] Temp codegenerated lexicon (#3749) * add codegenerated lexicon * replace hailey's types * use codegen'd types in components * fix error + throw if fetch failed * remove bad imports * update messageslist and messageitem * import useState * add clop service URL hook * add dm service url storage * use context * use context for service url (temp) * remove log * nits --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>