about summary refs log tree commit diff
path: root/src/state/models
Commit message (Collapse)AuthorAgeFilesLines
...
* | [APP-635] Mutelists (#601)Paul Frazee2023-05-119-5/+636
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add lists and profilelist screens * Implement lists screen and lists-list in profiles * Add empty states to the lists screen * Switch (mostly) from blocklists to mutelists * Rework: create a new moderation screen and move everything related under it * Fix moderation screen on desktop web * Tune the empty state code * Change content moderation modal to content filtering * Add CreateMuteList modal * Implement mutelist creation * Add lists listings * Add the ability to create new mutelists * Add 'add to list' tool * Satisfy the hashtag hyphen haters * Add update/delete/subscribe/unsubscribe to lists * Show which list caused a mute * Add list un/subscribe * Add the mute override when viewing a profile's posts * Update to latest backend * Add simulation tests and tune some behaviors * Fix lint * Bump deps * Fix list refresh after creation * Mute list subscriptions -> Mute lists
* Update web image editor (#588)Ollie H2023-05-093-10/+205
| | | | | | | | | | | | | | | | | | | | | | | * Update web image editor * Delete type-assertions.ts * Re-add getKeys * Uncomment rotation code * Revert "Uncomment rotation code" This reverts commit 6269f3b928c2e5cacaf5d0ff5323fe975ee48eab. * Shuffle dependencies and update mobile resolution * Update ImageEditor modal layout for mobile * Avoid accidental closes of the EditImage modal --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* [APP-639] Improve nsfw handling & force hidden on iOS (#605)Paul Frazee2023-05-091-4/+11
| | | | | | | | | | | * Identify adult content labels and handle them more specifically * Change adult content defaults to more conservative settings * Add an adultcontentenabled override that prohibits access on iOS * Improve usability of the content hider * Fix lint
* [APP-615] COPPA-compliant signup (#570)Paul Frazee2023-05-081-5/+14
| | | | | | | | | * Rework account creation to be COPPA compliant * Fix lint * Switch android datepicker to use the spinner mode * Fix type signatures & usages
* Add the !filter and !warn imperative labels (#580)Paul Frazee2023-05-041-1/+10
|
* [APP-539] Rework lightbox and alt-image behaviors (#573)Paul Frazee2023-05-041-9/+8
| | | | | | | | | | | | | | | | | | | | | * Replace the long press on the lightbox with footer controls * Remove long-press from images in the feed * Tune the lightbox footer control ui * Replace the AltImageRead modal with the ability to view all alt text in the lightbox footer * Tune lightbox footer for iOS * Add alt text to the web lightbox * Fix lint * a11y slight changes --------- Co-authored-by: renahlee <renahlee@outlook.com>
* Remove some confusing horizontal lines in threads (#566)Paul Frazee2023-05-021-2/+2
|
* [APP-601] Add muted accounts list (#565)Paul Frazee2023-05-021-0/+106
| | | | | * Add muted accounts list * Fix icon for muted accounts
* [APP-549] Language controls for Whats Hot (#563)Paul Frazee2023-05-023-16/+40
| | | | | | | | | | | * Add a content-language preference control * Update whats hot to only show the selected languages and to refresh on lang pref changes * Fix lint * Fix tests * Add missing accessibility role
* Add keyboard shortcuts: new, escape, and hard break (#552)Ollie H2023-05-021-1/+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>
* Pre-web image changes refactor (#560)Ollie H2023-05-022-13/+4
| | | | | * Pre-web image changes refactor * Remove unneeded async behavior
* Image alt text view modal (#551)Ollie H2023-05-011-1/+7
| | | | | | | | | * Image alt text view modal * Minor style tweaks --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Implement blocks (#554)Paul Frazee2023-04-285-3/+207
| | | | | | | | | | | | | | | | | | | | | | | | | * Quick fix to prompt * Add blocked accounts screen * Add blocking tools to profile * Blur avis/banners of blocked users * Factor blocking state into moderation dsl * Filter post slices from the feed if any are hidden * Handle various block UIs * Filter in the client on blockedBy * Implement block list * Fix some copy * Bump deps * Fix lint
* Refactor moderation to apply to accounts, profiles, and posts correctly (#548)Paul Frazee2023-04-276-220/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ScreenHider component * Add blur attribute to UserAvatar and UserBanner * Remove dead suggested posts component and model * Bump @atproto/api@0.2.10 * Rework moderation tooling to give a more precise DSL * Add label mocks * Apply finer grained moderation controls * Refactor ProfileCard to just take the profile object * Apply moderation to user listings and banner * Apply moderation to notifications * Fix lint * Tune avatar & banner blur settings per platform * 1.24
* Load previous state in alt text modal (#546)Ollie Hsieh2023-04-272-2/+3
|
* Fix: dont request more than 25 posts at a time (close [APP-561]) (#534)Paul Frazee2023-04-251-4/+10
|
* [APP-562] Persist 'copied' state of invite codes (#535)Paul Frazee2023-04-251-1/+19
| | | | | * Persist 'copied' state of invite codes (close APP-562) * Dont show copied message if invite used
* If adding the user's post when empty, just refresh (#530)Paul Frazee2023-04-241-0/+3
|
* Rework how recently-created posts are added to the feed (repeat posts issue) ↵Paul Frazee2023-04-241-24/+23
| | | | | | | | | (#527) * Rework new-post behavior to just add the user's created post to the top * Only add post to top when not a reply * Fix: run update in action
* Update hardcoded suggested actors (#524)Paul Frazee2023-04-241-72/+11
| | | | | * Update the hardcoded suggested follows * Update the suggested actors to just use hardcoded list since there's now the foaf system
* Performance fixes with new getPosts (#525)Paul Frazee2023-04-243-73/+84
| | | | | | | | | * Update notifications to fetch in a batch using getPosts * Improve search perf with getPosts * Bump @atproto/api@0.2.9 * Just use post uri for key
* Feed fixes: repeat posts & nonreplies showing up in the wrong place (#516)Paul Frazee2023-04-221-6/+4
| | | | | * Fix the repeat posts issue on the home feed * Fix: replies no longer show up in the no-replies feed
* Android fixes (#515)Paul Frazee2023-04-221-0/+24
| | | | | | | | | * Fix profile screen performance on android and remove dead code * Correctly handle android hardware back btn * Fix EditProfile modal for android * Fix lint
* Fix link opening (#512)Paul Frazee2023-04-212-3/+9
|
* [APP-522] Create & revoke App Passwords within settings (#505)Ansh2023-04-212-2/+64
| | | | | | | | | | | | | | | | | | | | | | | * create and delete app passwords * add randomly generated name * Tweak copy and layout of app passwords * Improve app passwords on desktop web * Rearrange settings * Change app-passwords route and add to backend * Fix link * Fix some more desktop web * Remove log --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Add alt text support and rework image layout (#503)Ollie Hsieh2023-04-213-8/+43
| | | | | | | | | | | | | | | | | | | | | | | | | * Add alt text support and rework image layout * Add additional BottomSheet implementation to account for nested Composer modal * Use mobile gallery layout on mobile web * Missing key * Fix lint * Move altimage modal into the standard modal system * Fix overflow wrapping of images * Fixes to the alt-image modal * Remove unnecessary switch * Restore old imagelayoutgrid code --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Fix profile link 404s on session change & handle change [APP 523] (#507)Paul Frazee2023-04-211-0/+2
| | | | | * Use DID to link to the user profile to gracefully handle... handle changes * Reset nav state on active profile change
* Improvements to notifications screen [APP-520] (#501)Paul Frazee2023-04-201-8/+6
| | | | | | | | | | | * Refresh or sync notifications when the tab is navigated to * Fix to bad textnode render * Speed up initial session load * Fix lint * Restore updateSessionState() on session resumption
* Thread muting [APP-29] (#500)Paul Frazee2023-04-206-11/+148
| | | | | | | * Implement thread muting * Apply filtering on background fetched notifs * Implement thread-muting tests
* Feed and notifs improvements (#498)Paul Frazee2023-04-193-121/+81
| | | | | | | | | | | | | | | | | * Reduce frequency of the notifications sync * Reduce frequency of home feed polling * Ensure loading spinner is visible in notifications * Render notifications loading spinner in the flatlist * Fixes and performance improvements to notifications * Render 30+ on notifications if at max * Fix issue with repeating posts in home feed * Dont check for unread notifs if we're already at max
* #420: add updateDataOptimistically utility to disallow like counter out of ↵Ansh2023-04-192-62/+86
| | | | | | | | | | | | | | | sync (#446) * add isLikedPressed flag to disallow like counter out of sync * create revertible helper for updateDataOptimistically * test implementation * Update updateDataOptimistically() and apply to reposts --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* [APP 513] Label tuning (#496)Paul Frazee2023-04-191-1/+3
| | | | | * Label updates: break out sexual into 3 categories; tune defaults; improve descriptions * Fix misapplication of warning in notifications
* Rework search suggestions for performance (#492)Paul Frazee2023-04-181-6/+10
|
* Split image cropping into secondary step (#473)Ollie Hsieh2023-04-175-14/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Add first round of labeling tools (#467)Paul Frazee2023-04-125-140/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework notifications to sync locally in full and give users better control * Fix positioning of load more btn on web * Improve behavior of load more notifications btn * Fix to post rendering * Fix notification fetch abort condition * Add start of post-hiding by labels * Create a standard postcontainer and improve show/hide UI on posts * Add content hiding to expanded post form * Improve label rendering to give more context to users when appropriate * Fix rendering bug * Add user/profile labeling * Implement content filtering preferences * Filter notifications by content prefs * Update test-pds config * Bump deps
* Fix: correctly track when profile state was last updatedPaul Frazee2023-04-071-0/+1
|
* Update AtUri import to use official package with fix for usernames that ↵Paul Frazee2023-04-074-4/+4
| | | | start with numbers (close #414) (#418)
* Small fix: run in actionPaul Frazee2023-04-071-1/+3
|
* Fix repost rendering (#405)Paul Frazee2023-04-061-1/+1
|
* Add user invite codes (#393)Paul Frazee2023-04-054-19/+154
| | | | | | | | | | | * Add mobile UIs for invite codes * Update invite code UIs for web * Finish implementing invite code behaviors (including notifications of invited users) * Bump deps * Update web right nav to use real data; also fix lint
* Analytics fixes (closes #386) (#387)Paul Frazee2023-04-051-0/+2
| | | | | | | * Only send analytics events when the user is logged in * Only send analytics events when the user is logged in (web) * Add analytics identify() call
* Rework the me.follows cache to reduce network load (#384)Paul Frazee2023-04-039-65/+70
|
* Improve "Load more" error handling in feeds (#379)Paul Frazee2023-04-032-17/+48
| | | | | | | * Add explicit load-more error handling to posts feed * Add explicit load-more error handling to notifications feed * Properly set hasMore to false after an error
* Reorganize state models for clarity (#378)Paul Frazee2023-04-0316-84/+88
|
* Lex refactor fixes (#368)Paul Frazee2023-04-024-3/+9
| | | | | | | | | | | | | * Fix: handle validation failures correctly in feed-view * Fix: convert the off-spec feed view to lex objects * Fix to fetching all follows during init * Bump @atproto/api@0.2.1 * Fix: properly group together like notifications * 1.12
* Lex refactor (#362)Paul Frazee2023-03-3124-444/+327
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Feed updates (Closes #344) (#356)Paul Frazee2023-03-221-56/+33
| | | | | | | | | * Rework feed polling to correctly detect when new content is available (close #344) * Tweak how the tuner works for consistency * Improve the feed-update behavior after posting * Load latest notifications when opening the tab
* Filter content by your device's configured languages (#354)Paul Frazee2023-03-223-1/+48
|
* Merge the suggested actors model with the general suggestion system (#343)Paul Frazee2023-03-211-2/+2
|
* Add fulltext search for posts and profiles (closes #340) (#342)Paul Frazee2023-03-211-0/+51
| | | | | | | | | | | | | | | * Refactor mobile search screen * Remove 'staleness' fetch trigger on search * Implement a temporary fulltext search solution * Add missing key from profile search result * A few UI & UX improvements to the search suggestions * Update web search suggestions * Implement search in web build