about summary refs log tree commit diff
path: root/src/state
Commit message (Collapse)AuthorAgeFilesLines
...
* Stringify path error (#4379)Eric Bailey2024-06-111-1/+1
|
* Improve thread loading (#4402)Paul Frazee2024-06-111-2/+51
| | | | | | | * Increase the number of posts loaded when a self-thread is present * Increase depth to 10, detect cutoffs on self-threads and show continue link * Stacky the avis
* Revert to old modal on android (#4458)Samuel Newman2024-06-112-5/+8
| | | | | | | | | | | | | | | | | * revert to old modal on android * close alf dialogs before closing composer * Try to fix white area * Use hook * Fix Back button * oops --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Sort profile feedgens by likes (#4380)Eric Bailey2024-06-111-1/+4
| | | | | | | | | | | | | | | * Sort profile feedgens by likes * Sort entire set as we get more pages * Nah This reverts commit 3b8714fd97bb113cfd8c588d5cdfd063d395f553. * Update profile-feedgens.ts --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Only validate persisted data for existing users (#4465)Eric Bailey2024-06-101-0/+6
|
* Throttle instead of debounce (#4456)Samuel Newman2024-06-101-2/+6
| | | | | | | | | | | * throttle instead of debounce * trailing: true * Fix throttle call --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* debounce refetching listconvos (#4455)Samuel Newman2024-06-101-3/+16
|
* Use the proper logic on iOS to increment the badge (#4233)Hailey2024-06-071-2/+2
|
* Fix prettier (#4392)dan2024-06-061-1/+6
|
* cancel animations before updating value for min-shell animation (#4386)Hailey2024-06-061-1/+3
| | | | | * cancel animations before updating value * comment
* Switch to withSpring to work around Reanimated regression (#4391)dan2024-06-061-9/+3
|
* [🙅] Integrate deactivate (#4308)Eric Bailey2024-06-053-5/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update types (cherry picked from commit 27deac1f367825771ba76fa098ec1b0a62dcf64a) * Integrate into deactivate dialog (cherry picked from commit 84f299a447259cc1fbfc7be607e28197779e4ec1) * Integrate into Deactivated screen (cherry picked from commit 29193f34822ecdf11e2a407197fa230285dfe846) * Bump api sdk (cherry picked from commit 738c622d3e5a23bfbb0d3bdce3a6bdf01e54ca60) * Update permalink (cherry picked from commit c10bf5c071d76c3054bc4ce9d313c10b1820f038) * Bump sdk pkg * Update types to match backend * Loosen types for forwards compat * Hydrate status from persisted data * Refresh session when re-activating, clear query cache * Show app password error * Refactor dialog to clear state when closed * Add app password error to Deactivated screen
* Report persisted schema validation failures (#4358)Eric Bailey2024-06-041-2/+13
| | | | | * Report persisted schema validation failures * Make it safer
* [🙅] Remove fallback that's no longer valid (#4353)Eric Bailey2024-06-042-30/+30
| | | | | * Remove fallback that's no longer valid * Update test
* Use recent convos for share via dialog (#4352)Eric Bailey2024-06-041-1/+6
|
* [🙅] Disambiguation of the deactivation (#4267)Eric Bailey2024-06-045-37/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Disambiguation of the deactivation * Snapshot crackle pop * Change log context * [🙅] Add status to session state (#4269) * Add status to session state * [🙅] Add new deactivated screen (#4270) * Add new deactivated screen * Update copy, handle logout * Remove icons, adjust padding * [🙅] Add deactivate account dialog (#4290) * Deactivate dialog (cherry picked from commit 33940e2dfe0d710c0665a7f68b198b46f54db4a2) * Factor out dialog, add to delete modal too (cherry picked from commit 47d70f6b74e7d2ea7330fd172499fe91ba41062d) * Update copy, icon (cherry picked from commit e6efabbe78c3f3d9f0f8fb0a06a6a1c4fbfb70a9) * Update copy (cherry picked from commit abb0ce26f6747ab0548f6f12df0dee3c64464852) * Sizing tweaks (cherry picked from commit fc716d5716873f0fddef56496fc48af0614b2e55) * Add a11y label
* Support for Flickr album and group pool embeds (#3936)Thomas Dickerson2024-06-031-0/+1
| | | | | | | | | | | | | | | * Support for Flickr album and group pool embeds * Oops, forgot to add flickr to the persisted externalEmbeds schema * Need a bigint since our id can have more than 52 bits... * Remove unexpected trailing / from test data to match the expected behavior * nits --------- Co-authored-by: Hailey <me@haileyok.com>
* remove resolution from post thread (#4297)Hailey2024-06-035-32/+90
| | | | | | | | | | | | | | | | | | | | | * remove resolution from post thread nit completely remove did cache lookup move cache check for did to `usePostThreadQuery` remove resolution from post thread * helper function * simplify * simplify search too * fix missing check for root or parent quoted post 🤯 * fix thread traversal
* Fix filtering uris of fetchSubjects (#4324)Yoshihiro Sugi2024-06-031-1/+1
|
* [🐴] 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