about summary refs log tree commit diff
path: root/src/state
Commit message (Collapse)AuthorAgeFilesLines
* [🐴] Option to share via chat in post dropdown (#4231)Samuel Newman2024-05-312-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Shadows (#4265)Eric Bailey2024-05-315-5/+147
|
* Post controls update followup (#4276)Samuel Newman2024-05-301-8/+0
| | | | | | | | | * rm legacy repost modal * make repost button transparent * reduce gap between post and ctrls * remove old repost modal on web
* Replace getAgent() with reading agent (#4243)dan2024-05-2842-281/+253
| | | | | * Replace getAgent() with agent * Replace {agent} with agent
* [🐴] update convo list from message bus (#4189)Samuel Newman2024-05-245-226/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | * update convo list from message bus * don't increase unread count if you're the sender * add refetch interval back * Fix deleted message state copy * only enable if `hasSession` * Fix logged out handling * increase refetch interval to 60s * request 10s interval when message screen active * use useAppState hook for convo resume/background * Combine forces * fix useFocusEffect logic --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Recover from initial failed firehose state (#4211)Eric Bailey2024-05-241-0/+1
|
* Make sure failed messages enter error state (#4210)Eric Bailey2024-05-241-2/+9
|
* Improve moderation behaviors: show alert/inform sources and improve UX ↡Paul Frazee2024-05-241-15/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | around threads (#3677) * Dont show account or profile alerts and informs on posts * Sort threads to put blurred items at bottom * Group blurred replies under a single 'show hidden replies' control * Distinguish between muted and hidden replies in the thread view * Fix types * Modify the label alerts with some minor aesthetic updates and to show the source of a label * Tune when an account-level alert is shown on a post * Revert: show account-level alerts on posts again * Rm unused import * Fix to showing hidden replies when viewing a blurred item * Go ahead and uncover replies when 'show hidden posts' is clicked --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Privileged app passwords (#4200)Samuel Newman2024-05-231-2/+3
| | | | | | | | | | | | | | | | | | | * add checkbox to create privileged app password * add indicator to privileged app pwds to list * bump api * oops missed the yarnlock * adjust modal padding * lowercase * one more lowercase --------- Co-authored-by: Hailey <me@haileyok.com>
* Reduce polling (#4204)Eric Bailey2024-05-232-4/+4
| | | | | | | | | * Reduce polling a bit * Bump to 60 * Increase all * ok 3
* Remove `getProfile` calls when loading feed (#3881)Hailey2024-05-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove unnecessary `getProfile()` calls from feed load add comments ensure only if first simplify nit handle cases where the parent is removed add a comment remove unnecessary `getProfile()` calls from feed load limit only to the first post in the returned items move the logic out of the render and into the query add the grandparent properly update `FeedItem` bump package update `FeedItem` update `post-feed` query update `FeedSlice` * nit * simplify logic * always pass `parentAuthor` * oops! * update `DebugMod`
* Log error statuses from failed resume session calls (#4174)Eric Bailey2024-05-231-1/+11
| | | | | | | | | * Add log to track how resume fails * Use safe field name * Better log * Properly catch
* [🐴] Do not init event bus if no session (#4193)Eric Bailey2024-05-231-2/+24
| | | | | | | * Do not init event bus if no session * Be explicit * Simplify, fix log
* Reduce polling when app is backgrounded (#4192)Eric Bailey2024-05-232-1/+8
|
* [🐴] Suspend event bus when switching accounts (#4190)Eric Bailey2024-05-231-5/+4
| | | | | * Suspend event bus when switching accounts * Make effect symmetrical
* [Session] Dispose of stale agents immediatelyDan Abramov2024-05-231-0/+13
|
* [Session] Persist updates from inactive agentDan Abramov2024-05-232-17/+22
|
* [🐴] Invalidate list convos query on block (#4171)Samuel Newman2024-05-222-21/+25
| | | | | * more memoization * invalidate listconvos query on block
* More retries when resuming non-stale account (#4156)Eric Bailey2024-05-221-1/+1
|
* Only fallback to Discover if Following is first pinned (#4146)dan2024-05-201-15/+14
|
* remove DMs gate (#4112)Samuel Newman2024-05-201-16/+1
|
* [Statsig] Fix exposure logging for reduced onboarding (#4131)dan2024-05-211-1/+7
| | | | | | | * Add dangerouslyDisableExposureLogging option * Rename onboarding gate to v2 * Disable exposure logging for onboarding in PostFeed query
* [🐴] Add new chat metrics (#4130)Hailey2024-05-201-1/+1
| | | | | | | | | | | | | | | * 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
* Ensure deleted chats don't count towards unread (#4129)Eric Bailey2024-05-201-1/+4
|
* Conditionally set chat declaration (#4122)Eric Bailey2024-05-201-9/+12
|
* [🐴] DM button on profile (#4097)Samuel Newman2024-05-201-1/+31
| | | | | | | | | | | | | * 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
* [🐴] Don't retry sends (#4111)Eric Bailey2024-05-201-21/+16
| | | | | * Don't retry sends * Don't retry batch sends
* [🐴] Convo agent cleanup (#4109)Eric Bailey2024-05-192-33/+11
| | | | | | | | | * Move comment, remove unused code * Clean up sending * Remove temp hack * Remove debug
* Disable badge incrementing for DMs (#4088)Hailey2024-05-172-14/+5
| | | | | | | | | | | * disable badge increments for dms * revert decrementing in js for dms * reset badge on read notifications * remove some other code * prevent duplicate notification events
* [🐴] Mod disabled (#4089)Eric Bailey2024-05-174-5/+71
| | | | | * Handle send failures * Add chat disabled state
* [🐴] New chat dialog refresh (#4071)Eric Bailey2024-05-172-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Set chat declaration upon signup (#4084)Eric Bailey2024-05-172-2/+10
|
* [🐴] don't include blocked convos in unread count (#4082)Samuel Newman2024-05-171-3/+21
| | | | | | | | | | | | | * don't include blocked convos in unread count * Use moderateProfile * Handle blocked state in chat list * Fix logic formatting, add todo --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] NUX (#4062)Samuel Newman2024-05-171-1/+21
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Revert "Aggregate quickly-sent messages into batches (#4061)" (#4069)Eric Bailey2024-05-161-23/+17
| | | This reverts commit d424945eed752a366ac201470fdbb66d02999c86.
* 100% Real Dealβ„’ (#4070)Eric Bailey2024-05-161-1/+1
|
* Aggregate quickly-sent messages into batches (#4061)Eric Bailey2024-05-161-17/+23
|
* Reset leave chat optimistic update if fails (#4058)Eric Bailey2024-05-161-1/+17
|
* Properly update badge for other unread notifications (#4052)Hailey2024-05-161-8/+2
| | | | | | | | | | | | | | | * decrement badge count for chats * handle decrement in `useMarkAsRead` * remove async * remove setting badge count * oops * update the number correctly * nit
* [🐴] Decrement app badge when opening unread chat (#4040)Hailey2024-05-161-4/+13
| | | | | | | | | * decrement badge count for chats * handle decrement in `useMarkAsRead` * remove async * oops
* [🐴] Error recovery (#4036)Eric Bailey2024-05-164-59/+165
| | | | | | | | | | | | | | | | | | | | | * 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
* [🐴] infinite stale time (#4051)Hailey2024-05-161-0/+2
|
* Remove error for refresh, not necessary (#4034)Eric Bailey2024-05-151-11/+0
|
* [🐴] Better retry styling (#4032)Eric Bailey2024-05-152-28/+27
| | | | | | | | | | | | | * 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
* Reset after 5 min (#4026)Eric Bailey2024-05-142-7/+27
|
* [🐴] Block states, read only (#4022)Eric Bailey2024-05-142-1/+34
| | | | | | | | | | | * 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)
* remove serviceurl gate (#4019)Samuel Newman2024-05-141-4/+1
|
* [🐴] Settings screen (#3830)Samuel Newman2024-05-141-0/+64
| | | | | | | | | * create settings screen + api * update api package * use putrecord API with validate false * create new RadioGroup component
* [🐴] Message drafts (#3993)Samuel Newman2024-05-142-1/+87
| | | | | | | | | | | * drafts * don't throw if no convo ID * Remove labs package --------- Co-authored-by: Eric Bailey <git@esb.lol>