about summary refs log tree commit diff
path: root/src/lib/api
Commit message (Collapse)AuthorAgeFilesLines
...
* don't thread a self-repost of a self-reply (#1450)Eric Bailey2023-09-151-1/+4
| | | | | * don't thread a self-repost of a self-reply * typo
* Fix 1304 refresh notifications when a notif is clicked or received (#1339)Ansh2023-08-301-4/+0
| | | | | | | | | * refresh notifications when a notif is clicked * make notification syncing smarter * allow enabled appview proxy on mobile * put back syncqueue code
* Improvements to feed assembly to avoid possible state issues (#1318)Paul Frazee2023-08-281-3/+6
| | | | | * Avoid potential dropped posts due to pruning when checking for latest * Add a sanity check to ensure dup react keys never occur (close #1315)
* [APP-786] Native notifications (#1095)Ansh2023-08-231-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move `notifee.ts` to notifications folder * install expo notifications * add UIBackgroundMode `remote-notifications` to app.json * fix notifee import in Debug.tsx * add `google-services.json` * add `development-device` class to eas.json * Add `notifications.ts` for native notification handling * send push token to server * update `@atproto/api` * fix putting notif token to server * fix how push token is uploaded * fix lint * enable debug appview proxy header on all platforms * setup `notifications.ts` to work with app view notifs * clean up notification handler * add comments * update packages to correct versions * remove notifee * clean up code a lil * rename push token endpoint * remove unnecessary comments * fix comments * Remove old background scheduler * Fixes to push notifications API use * Bump @atproto/api@0.6.6 --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Shorten links in composer to reduce char usage (#1188)Paul Frazee2023-08-161-1/+3
| | | | | | | * Modify toShortUrl() to always include the full domain * Shorten links in the composer to save on characters * Apply some limits to the link card suggester
* Fix to "Load new posts" showing sometimes when there's nothing new to show ↵Paul Frazee2023-08-161-2/+2
| | | | | | | (#1191) * Fix to feed item react key value (hopefully) * Fix false-firing of load more (close #1028)
* Add self-labeling controls (#1141)Paul Frazee2023-08-091-0/+12
| | | | | | | | | | | | | | | * Add self-label modal * Use the shield-exclamation icon consistently on post moderation * Wire up self-labeling * Bump @atproto/api@0.6.0 * Bump @atproto/dev-env@^0.2.3 * Add e2e test for self-labeling * Fix types
* Fix to react-key uniqueness in feeds (#1136)Paul Frazee2023-08-081-0/+6
|
* Labeling & moderation updates [DRAFT] (#1057)Paul Frazee2023-08-031-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First pass moving to the new labeling sdk (it compiles) * Correct behaviors around interpreting label moderation * Improve moderation state rendering * Improve hiders and alerts * Improve handling of mutes * Improve profile warnings * Add profile blurring to profile header * Add blocks to test cases * Render labels on profile cards, do not filter * Filter profiles from suggestions using moderation * Apply profile blurring to ProfileCard * Handle blocked and deleted quote posts * Temporarily translate content filtering settings to new labels * Fix types * Tune ContentHider & PostHider click targets * Put a warning on profilecard label pills * Fix screenhider learnmore link on mobile * Enforce no-override on user avatar * Dont enumerate profile blur-media labels in alerts * Fixes to muted posts (esp quotes of muted users) * Fixes to account/profile warnings * Bump @atproto/api@0.5.0 * Bump @atproto/api@0.5.1 * Fix tests * 1.43 * Remove log * Bump @atproto/api@0.5.2
* Use a post and handle-resolution cache to enable quick postthread loading ↵Paul Frazee2023-08-031-4/+18
| | | | | | | | | | | (#1097) * Use a post and handle-resolution cache to enable quick postthread loading * Fix positioning of thread when loaded from cache and give more visual cues * Include parent posts in cache * Include notifications in cache
* fix: typo in feed-manip.ts (#967)Ikko Eltociear Ashimine2023-07-051-1/+1
| | | prefered -> preferred
* [APP-718] Improvements and fixes to language handling (#931)Paul Frazee2023-06-301-54/+4
| | | | | | | | | | | * Add locale helpers for narrowing languages * Add a translate link to posts in a different language * Update language filtering to use narrowing when multiple declared * Fix a few more RTL layout cases * Fix types
* [APP-690] better handling of post languages language filtering (#893)Ansh2023-06-232-9/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add SelectLangBtn * memoized objects that are created to reduce re-creation on re-render * add langs when uploading post * only send the top 3 languages otherwise backend will throw error * mv ContentLanguagesSettings to folder * add post languages settings modal and state * fix typos * modify feed manip to also check langs label on post * Fix tests * Remove log * Update feed-manip.ts * Fix syntax errors * UI tuneups * Show the currently selected languages in the composer * fix linting * Use a bcp-47 matching function * Fix a duplicate language issue * Fix web * Dont include lang in prompt * Make select language btn an observer * Keep device languages on top of language selection UIs * Fix android build settings * Enforce a max of 3 languages in posts * Fix tests * Fix types --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* fix: commentEric Bailey2023-06-161-1/+1
|
* feat: add home feed preferences settings modal and tunersEric Bailey2023-06-161-15/+54
|
* add checks to make sure we are on web (#879)Ansh2023-06-141-1/+7
|
* Add temporary appview-proxy header toggle (#874)Paul Frazee2023-06-131-0/+57
|
* Fix image-only posts not being visible in custom feeds.Markus Amalthea Magnuson2023-06-121-0/+6
|
* Fix a bunch of type errors and add a type-check to the github workflows (#837)Paul Frazee2023-06-022-17/+26
| | | | | | | | | | | | | | | * Add yarn type-check * Rename to yarn typecheck * Fix a collection of type errors * Add typecheck to automated tests * add `dist` to exluded folders tsconfig --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* More custom-feed behavior fixes [APP-678] (#831)Paul Frazee2023-06-021-137/+0
| | | | | | | | | | | | | | | | | | | | | * Remove extraneous custom-feed health check * Fixes to custom feed preference sync * Fix lint * Remove dead code (client-side suggested posts constructor) * Enforce the feed-fetch limit in the client if the generator fails to observe the parameter * Bump the number of items fetched in the multifeed per feed from 5 to 10 * Reset the currently active feed when the pinned feeds change * Some fixes to icons * Add a prompt to load latest to the multifeed * Remove debug
* Rework scaled dimensions and compression (#737)Ollie H2023-05-301-0/+1
| | | | | | | | | * Rework scaled dimensions and compression * Unbreak image / banner uploads --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Remove sorting in feed-manipPaul Frazee2023-05-251-3/+0
|
* Add feed sharingPaul Frazee2023-05-181-44/+49
|
* Remove the attempts to make the language filter more lenient (#569)Paul Frazee2023-05-031-11/+1
|
* [APP-549] Language controls for Whats Hot (#563)Paul Frazee2023-05-021-6/+4
| | | | | | | | | | | * 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
* Fix replies with <2 likes showing in the following feedPaul Frazee2023-05-021-2/+10
|
* [APP-610] Make the language filter more lenient (#562)Paul Frazee2023-05-021-2/+16
| | | | | | | | | | | | | * Tune the language filter to accept posts when a determination cant be made * use j instead of i since i has been declared in upper scope * use j instead of i since i has been declared in upper scope * Pass the j man --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* Add alt text support and rework image layout (#503)Ollie Hsieh2023-04-211-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Split image cropping into secondary step (#473)Ollie Hsieh2023-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Filter out bad mentions instead of erroring during post (close #391) (#422)Paul Frazee2023-04-071-0/+12
|
* Update AtUri import to use official package with fix for usernames that ↵Paul Frazee2023-04-071-1/+1
| | | | start with numbers (close #414) (#418)
* Fix repost rendering (#405)Paul Frazee2023-04-061-1/+1
|
* Give the unfiltered view if the language filter yields no results (close ↵Paul Frazee2023-04-031-6/+23
| | | | #358) (#382)
* Lex refactor (#362)Paul Frazee2023-03-315-121/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-13/+12
| | | | | | | | | * 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-221-21/+20
|
* Fix tscPaul Frazee2023-03-221-17/+0
|
* Add fulltext search for posts and profiles (closes #340) (#342)Paul Frazee2023-03-211-0/+69
| | | | | | | | | | | | | | | * 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
* A few fixes to ensure threads show up as often as possiblePaul Frazee2023-03-211-3/+6
|
* Raise the bar a bit more for showing replies in the feedPaul Frazee2023-03-211-3/+4
|
* Fix duplicates showing up in the feed due to reply parentsPaul Frazee2023-03-211-1/+9
|
* Fix: don't incorrectly assemble threads when somebody replies multiple times ↵Paul Frazee2023-03-211-1/+5
| | | | to the same post
* Add custom feeds selector, rework search, simplify onboarding (#325)Paul Frazee2023-03-191-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Get home screen's swipable pager working with the drawer * Add tab bar to pager * Implement popular & following views on home screen * Visual tune-up * Move the feed selector to the footer * Fix to 'new posts' poll * Add the view header as a feed item * Use the native driver on the tabbar indicator to improve perf * Reduce home polling to the currently active page; also reuse some code * Add soft reset on tap selected in tab bar * Remove explicit 'onboarding' flow * Choose good stuff based on service * Add foaf-based follow discovery * Fall back to who to follow * Fix backgrounds * Switch to the off-spec goodstuff route * 1.8 * Fix for dev & staging * Swap the tab bar items and rename suggested to what's hot * Go to whats-hot by default if you have no follows * Implement pager and tabbar for desktop web * Pin deps to make expo happy * Add language filtering to goodstuff
* Refactor feed manipulation and rendering to be more robust (#297)Paul Frazee2023-03-161-0/+186
|
* Move to expo and react-navigation (#288)Paul Frazee2023-03-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP - adding expo * WIP - adding expo 2 * Fix tsc * Finish adding expo * Disable the 'require cycle' warning * Tweak plist * Modify some dependency versions to make expo happy * Fix icon fill * Get Web compiling for expo * 1.7 * Switch to react-navigation in expo2 (#287) * WIP Switch to react-navigation * WIP Switch to react-navigation 2 * WIP Switch to react-navigation 3 * Convert all screens to react navigation * Update BottomBar for react navigation * Update mobile menu to be react-native drawer * Fixes to drawer and bottombar * Factor out some helpers * Replace the navigation model with react-navigation * Restructure the shell folder and fix the header positioning * Restore the error boundary * Fix tsc * Implement not-found page * Remove react-native-gesture-handler (no longer used) * Handle notifee card presses * Handle all navigations from the state layer * Fix drawer behaviors * Fix two linking issues * Switch to our react-native-progress fork to fix an svg rendering issue * Get Web working with react-navigation * Refactor routes and navigation for a bit more clarity * Remove dead code * Rework Web shell to left/right nav to make this easier * Fix ViewHeader for desktop web * Hide profileheader back btn on desktop web * Move the compose button to the left nav * Implement reply prompt in threads for desktop web * Composer refactors * Factor out all platform-specific text input behaviors from the composer * Small fix * Update the web build to use tiptap for the composer * Tune up the mention autocomplete dropdown * Simplify the default avatar and banner * Fixes to link cards in web composer * Fix dropdowns on web * Tweak load latest on desktop * Add web beta message and feedback link * Fix up links in desktop web
* Onboarding tweaks (#272)Paul Frazee2023-03-061-2/+19
| | | | | | | | | | | | | * Small fix to side menu rendering * Change onboarding to use an explicit 'is onboarding' mode to more clearly control the flow * Add a progress bar to the welcome banner * Dont show the 'unfollow button' on posts in weird times (close #271) * Improve the empty state of the feed * Only suggest recent posts
* 73-post-embeds (#253)Ansh2023-03-021-32/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update api to 0.1.3 * add repost modal with reposting functionality * add quote post UI * allow creation and view of quote posts * Validate the post record before rendering a quote post * Use createdAt in quote posts for now * add web modal support * Tune the quote post rendering * Make did and declarationCid optional in postmeta * Make did and declarationCid optional in postmeta * dont allow image or link preview if quote post * Handle no-text quote posts * Tune the repost modal * Tweak composer post text * Fix lint --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Increase network timeouts (closes #248) (#249)Paul Frazee2023-03-021-2/+6
| | | | | * Increase network timeouts (close #248) * Fix: on post error only update the ext link card if it's in use
* New onboarding (#241)Ansh2023-03-021-0/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * delete old onboarding files and code * add custom FollowButton component to Post, FeedItem, & ProfileCard * move building suggested feed into helper lib * show suggested posts/feed if follower list is empty * Update tsconfig.json * add pagination to getting new onboarding * remove unnecessary console log * fix naming, add better null check for combinedCursor * In locally-combined feeds, correctly produce an undefined cursor when out of data * Minor refactors of the suggested posts lib functions * Show 'follow button' style of post meta in certain conditions only * Only show follow btn in posts on the main feed and the discovery feed * Add a welcome notice to the home feed * Tune the timing of when the welcome banner shows or hides * Make the follow button an observer (closes #244) * Update postmeta to keep the follow btn after press until next render * A couple of fixes that ensure consistent welcome screen * Fix lint * Rework the welcome banner * Fix cache invalidation of follows model on user switch * Show welcome banner while loading * Update the home onboarding feed to get top posts from hardcode recommends * Drop unused helper function * Update happy path tests --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Implement image uploading in the web composerPaul Frazee2023-02-231-9/+43
|