about summary refs log tree commit diff
path: root/src/components/dms
Commit message (Collapse)AuthorAgeFilesLines
* [🐴] Embed backwards compat (#4302)Eric Bailey2024-05-311-1/+3
|
* [🐴] Add labels to chats (#4293)Eric Bailey2024-05-311-43/+64
| | | | | | | | | | | * Add labels to chat list * Add to convo header * Prevent click through on PostAlert buttons * Fix space * Fix alignment
* [🐴] Option to share via chat in post dropdown (#4231)Samuel Newman2024-05-317-344/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* [🐴] Record message (#4230)Samuel Newman2024-05-313-42/+188
| | | | | | | | | | | | | | | | | | | | | | | * send record via link in text * re-trim text after removing link * record message * only show copy text if message + add translate * reduce padding * adjust padding * Tweak spacing * Stop clickthrough for hidden content * Update bg to show labels --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Add follow button to feed item avatar (#3560)Samuel Newman2024-05-311-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add follow button to feed item avatar * remove confirmation * add confirmation (just system alert) * Shrink the avi follow indicator a smidge * gate the follow button * remove from your own posts * add to post thread item * hide the follow button locally to component * Use native dropdown * Add follow btn to notifications and search * UI tweaks * Hide on PWI * Add toast for confirmation * Check gate last * compiler * Rm unused * Use names --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Replace getAgent() with reading agent (#4243)dan2024-05-281-2/+2
| | | | | * Replace getAgent() with agent * Replace {agent} with agent
* [🐴] Overfetch follow for default new dialog state (#4205)Eric Bailey2024-05-231-3/+1
|
* Remove added radius, add to specific location (#4160)Eric Bailey2024-05-211-0/+2
|
* flip order (#4152)Samuel Newman2024-05-211-1/+1
|
* fix to negative top of component so it moves with container growth (#4151)Samuel Newman2024-05-211-1/+1
|
* [🐴] only try to initialize once in the NUX (#4142)Hailey2024-05-201-2/+5
| | | | | * only try to initialize once * nit
* [🐴] Empty chat prompt (#4132)Eric Bailey2024-05-201-0/+98
| | | | | | | | | | | | | | | | | | | * Add empty chat pill * Tweak padding * move to `components`, place inside `KeyboardStickyView` * cleanup unused vars * add a new animation type * (unrelated) add haptic to long press * adjust shrink and pop --------- Co-authored-by: Hailey <me@haileyok.com>
* [🐴] Add new chat metrics (#4130)Hailey2024-05-202-4/+19
| | | | | | | | | | | | | | | * 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
* [🐴] Appeal form for disabled DMs (#4126)Samuel Newman2024-05-201-5/+11
| | | | | | | * add appeal dialog * use useMutation for the labels on me dialog * replace text button with small button
* in-convo muted chat indicator (#4127)Samuel Newman2024-05-201-0/+8
|
* [🐴] Handle deleted accounts, restructure ChatListItem (#4114)Eric Bailey2024-05-201-66/+81
| | | | | | | | | | | | | * Handle deleted accounts, restructure ChatListItem * Remove triggerOpacity option * account for handle change in screen reader * simplify the check --------- Co-authored-by: Hailey <me@haileyok.com>
* Maybe? (#4125)Eric Bailey2024-05-201-0/+1
|
* [🐴] Switch back to encouraging users to report messages (#4117)Eric Bailey2024-05-204-45/+39
| | | | | * Swap prompt back in * Remove unused convoAccount affordances
* convo button skeleton (#4115)Samuel Newman2024-05-201-18/+50
|
* [🐴] Screenreader accessibility actions for individual chat items (#4116)Hailey2024-05-201-1/+9
| | | | | | | | | | | | | * add accessibility tap to messages * add a label for the accessibility action * improve accessibility actions on chat list items * adjust types * more consistent wording * make the strings localizable
* [🐴] DM button on profile (#4097)Samuel Newman2024-05-201-0/+39
| | | | | | | | | | | | | * add profile button * separate out button to component * normalise subscribe to labeller button size * infinite staletime * use Link rather than Button and change icon * adjust icon position
* [🐴] Fully implement keyboard controller (#4106)Hailey2024-05-193-63/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [🐴] Ensure keyboard gets dismissed when leaving screen (#4104)Hailey2024-05-181-1/+2
|
* Make generic convo report dialog (#4085)Eric Bailey2024-05-175-60/+94
|
* [🐴] New chat dialog refresh (#4071)Eric Bailey2024-05-174-278/+498
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Checkpoint, header styled, empty * Checkpoint, styles * Show recent follows in initial state, finesse some styles * Add skeleton * Add some limits * Fix autofocus on web, use bottom sheet input on native * Ignore type * Clean up edits * Format * Tweak icon placement * Fix type * use prop for dismissing keyboard --------- Co-authored-by: Hailey <me@haileyok.com>
* [🐴] Block Info (#4068)Hailey2024-05-177-86/+489
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * get the damn thing in there 😮‍💨 * more cleanup and little fixes another nit nit small annoyance add a comment only use `scrollTo` when necessary remove now unnecessary styles * move padding out * add unblock function * rm need for moderationpts * ? * ?? * extract leaveconvoprompt * move `setHasScrolled` to `onContentSizeChanged` * account for block footer * wrap up nit make sure recipient is loaded before showing refactor to hide chat input typo squigglie add report dialog finalize delete implement custom animation add configurable replace animation add leave convo to block options * correct functionality for report * moev component to another file * maybe... * fix chat item * improve * remove unused gtmobile * nit * more cleanup * more cleanup * fix merge * fix header * few more changes * nit * remove old
* [🐴] NUX (#4062)Samuel Newman2024-05-171-0/+172
| | | | | | | | | | | | | | | | | | | | | | | * remove type assertion * DMs NUX * delete button for testing * tweak styles and copy * rm log * style tweaks * reduce amount of words * Fix not showing on first load * Spacing tweaks --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Fix delete message error (#4065)Eric Bailey2024-05-161-14/+2
|
* [🐴] Error recovery (#4036)Eric Bailey2024-05-161-10/+15
| | | | | | | | | | | | | | | | | | | | | * Handle block state when sending messages * Handle different pending failures * Use existing profile data to handle blocks * Better cleanup, leave room for more * Attempt recover upon next send * Reset pending failure * Capture unexpected error * Gracefully handle network errors and recovery * Re-align error components and types * Include history fetching in recoverable states
* [🐴] Only scroll down one "screen" in height when foregrounding (#4027)Hailey2024-05-161-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maintain position after foreground * one possibility * don't overscroll when content size changes. * ignore the rule on 1 item * fix * [🐴] Pill for additional unreads when coming from background (#4043) * create a pill with some animatons * add some basic styles to the pill * make the animations reusable * bit better styling * rm logs --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * import --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [🐴] Copy tweaks (#4042)Hailey2024-05-162-5/+5
| | | | | | | | | * `notifications` -> `conversation` * `users` -> `people` * `other participants` -> `the other participant` * rename
* [🐴] Tweak list on mobile web (#3958)Hailey2024-05-152-2/+1
| | | | | | | | | | | | | * mobile web tweaks chat screen * revert a change * remove unnecessary prop * Spacing tweaks --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Better retry styling (#4032)Eric Bailey2024-05-152-51/+93
| | | | | | | | | | | | | * Pass whole object to MessageItem for clarity * Add retry to pending-message * Style send failure, retry * Group pending messages * Remove todos * Fix types with fake message
* [🐴] Show if user can be messaged in new chat search (#4021)Samuel Newman2024-05-152-7/+48
| | | | | | | | | | | | | * show if user can be messaged * allow 2 lines in handle field due to new text * cannot -> can't * rework canBeMessaged logic and move to new file --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Block states, read only (#4022)Eric Bailey2024-05-141-11/+83
| | | | | | | | | | | * Refactor ChatListItem for mod state * Refactor Conversation Header for mod state * Invalidate query for list when blocking/unblocking * Remove unused prop, restore border * Add mutations, hook up profile shadow to list query, use shadow-aware query for convo (#4024)
* [🐴] Make status checks easier, fix load state (#4010)Eric Bailey2024-05-141-5/+2
| | | | | | | | | * Make status checks easier, fix load state * Make naming more clear * Split up types for easier re-use * Replace hacky usage
* [🐴] Swap in new package, update usages (#3992)Eric Bailey2024-05-146-12/+8
| | | | | | | * Swap in new package, update usages * Remove uneccessary patch * Override type in safe place
* [🐴] Report message dialog (#3941)Samuel Newman2024-05-104-14/+288
| | | | | | | | | | | | | | | * message report dialog * report chat prompt * typo * 100% height sheet on android * messages-specific report options * restore unwanted sexual content * chat -> conversation
* remove 12hr time (#3954)Samuel Newman2024-05-101-2/+0
|
* bump max width of message (#3955)Hailey2024-05-102-2/+2
|
* [🐴] Mutate data instead of invalidating queries when muting or unmuting ↵Hailey2024-05-101-24/+19
| | | | | | | | | | | | | | | | | | | | | (#3946) * mutate for mutes * mutate data for mutes * add initial data, `useConvoQuery` in `ConvoMenu` * `useInitialData` * don't use `identifier` for notifications, use `dates` instead * better implementation * simplify * simplify * fix types
* [🐴] Rich text in messages (#3926)Samuel Newman2024-05-091-6/+14
| | | | | | | | | | | | | | | | | * add facets to message * richtext messages * undo richtexttag changes * whoops, don't redetect facets * dont set color directly * shorten links and filter invalid facets * fix link shortening * pass in underline style
* [🐴] Add hover context menu for convo list on web (#3923)Hailey2024-05-093-33/+30
| | | | | | | | | | | | | | | | | | | | | * remove some unnecessary props * add hover trigger on web for convo list * lint * use `UserAvatar` to not affect accessibility * remove extra wrapper * add `label` * always show on mobile * adjust size of dots * make the message trigger dots the same size * ❓
* [🐴] Adjust press and hold delay on messages (#3918)Hailey2024-05-081-5/+7
| | | | | * adjust press and hold delay on messages * adjust hit slop
* [🐴] Mark as read in convo menu (#3913)Samuel Newman2024-05-081-0/+19
| | | | | | | * add mark as read option * optimistic update + link up menu * rm messageid
* [🐴] Reorg convo files (#3909)Eric Bailey2024-05-071-6/+6
| | | | | * Remove unused prop * Reorganize
* [Clipclops] Delete message in dialog (#3849)Hailey2024-05-051-3/+24
| | | | | | | | | | | | | * delete and copy * add retry dialog if message send fails * add layout animation * fix `nextMessage` being incorrect --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [🐴] Improve message pressing (#3864)Samuel Newman2024-05-051-1/+2
| | | | | | | | | | | * allow tapping message when keyboard open * dismiss keyboard on open msg menu * show message info on press * Revert "show message info on press" This reverts commit 61d039a7024c27583aed7d1e9f1ff5b919dc7d30.
* [🐴] Dismiss keyboard before opening convo menu (#3862)Samuel Newman2024-05-051-1/+6
| | | | | * Dismiss keyboard before opening convo menu * call `props.onPress()` instead
* Assorted clipclop fixes (#3853)Samuel Newman2024-05-043-19/+62
| | | | | | | | | | | | | | | * empty state for new chat dialog * use terniary * dark mode pending state * copy message text option * fix service url input (scrollview ftw) * whoops, fix equality * slightly reduce horizontal message padding