about summary refs log tree commit diff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move home feed and thread preferences to server (#1507)Paul Frazee2023-09-211-1/+1
| | | | | | | | | | | * Move home feed and thread preferences to server * Fix thread usage of prefs * Remove log * Bump @atproto/api@0.6.16 * Improve type usage
* Language settings updates, new primary language setting (#1471)Eric Bailey2023-09-211-0/+1
| | | | | | | | | | | | | | | * move content languages to screen * add dropdown library, style primary lang select * update settings button * show selected langauges in button * use primary language in translator link * update copy * lint
* add suggested follows metrics (#1503)Eric Bailey2023-09-201-0/+3
|
* Prefilter the mergefeed to ensure a better mix of following and custom feeds ↵Paul Frazee2023-09-203-20/+54
| | | | | | | | | | | | | | | (#1498) * Prefilter the mergefeed to ensure a better mix of following and custom feeds * Test suite improvements & tests for the mergefeed (#1499) * Disable invite codes test for now * Update test sim to latest iphone * Introduce TestCtrls driver * Add mergefeed tests
* add suggested follow section to profile header (#1481)Eric Bailey2023-09-201-0/+46
| | | | | | | | | | | | | * add suggested follow section to profile header * fix button overflow * don't even render on preview * fix useFollowDid and FollowButton race condition * add section header, close button, active state * lighten icon
* Add thread sort settings (#1475)Paul Frazee2023-09-191-0/+1
| | | | | | | | | * Add thread sorting preferences * UI tweaks * Tweak settings * Tune the copy
* :bug: Handle middle mouse click on feed list items (#1469)Foysal Ahamed2023-09-182-0/+45
| | | | | | | | | | | | | | | * :bug: Handle middle mouse click on feed list items * :recycle: Refactor the event listener and turn it into a dedicated hook for web * :broom: Cleanup unnecessary Link changes * Fix import * Create native version of useAuxClick --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Feed UI update working branch [WIP] (#1420)Paul Frazee2023-09-1810-62/+491
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Feeds navigation on right side of desktop (#1403) * Remove home feed header on desktop * Add feeds to right sidebar * Add simple non-moving header to desktop * Improve loading state of custom feed header * Remove log Co-authored-by: Eric Bailey <git@esb.lol> * Remove dead comment --------- Co-authored-by: Eric Bailey <git@esb.lol> * Redesign feeds tab (#1439) * consolidate saved feeds and discover into one screen * Add hoverStyle behavior to <Link> * More UI work on SavedFeeds * Replace satellite icon with a hashtag * Tune My Feeds mobile ui * Handle no results in my feeds * Remove old DiscoverFeeds screen * Remove multifeed * Remove DiscoverFeeds from router * Improve loading placeholders * Small fixes * Fix types * Fix overflow issue on firefox * Add icons prompting to open feeds --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * Merge feed prototype [WIP] (#1398) * POC WIP for the mergefeed * Add feed API wrapper and move mergefeed into it * Show feed source in mergefeed * Add lodash.random dep * Improve mergefeed sampling and reliability * Tune source ui element * Improve mergefeed edge condition handling * Remove in-place update of feeds for performance * Fix link on native * Fix bad ref * Improve variety in mergefeed sampling * Fix types * Fix rebase error * Add missing source field (got dropped in merge) * Update find more link * Simplify the right hand feeds nav * Bring back load latest button on desktop & unify impl * Add 'From' to source * Add simple headers to desktop home & notifications * Fix thread view jumping around horizontally * Add unread indicators to desktop headers * Add home feed preference for enabling the mergefeed * Add a preference for showing replies among followed users only (#1448) * Add a preference for showing replies among followed users only * Simplify the reply filter UI * Fix typo * Simplified custom feed header * Add soft reset to custom feed screen * Drop all the in-post translate links except when expanded (#1455) * Update mobile feed settings links to match desktop * Fixes to feeds screen loading states * Bolder active state of feeds tab on mobile web * Fix dark mode issue --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Ansh <anshnanda10@gmail.com>
* Sanitize BIDI characters from display names (#1462)Paul Frazee2023-09-151-1/+3
|
* 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
* add React Query and hook up to existing functionality (#1358)Ansh2023-09-152-107/+3
| | | | | | | | | | | | | | | | | * add React Query and hook up to existing functionality * wire in remote data, add error message * remove hard-coded feeds * oops fix logic * add loading state * fix loading on mobile --------- Co-authored-by: Eric Bailey <git@esb.lol>
* link out to more contextEric Bailey2023-09-151-0/+7
|
* clean up into hookEric Bailey2023-09-141-17/+22
|
* simplify logicEric Bailey2023-09-141-16/+11
|
* fix theme switching on web without refreshEric Bailey2023-09-141-0/+5
|
* Fix 651 Make followers and following button into a `<Link>` (#1429)Ansh2023-09-121-2/+6
| | | | | * make followers and following button into a Link * make buttons into `<a>` tags
* fix theme flashing (#1417)Eric Bailey2023-09-111-8/+28
| | | | | | | * fix theme flashing * remove memo * use AppState listener
* Lytic analytics migration (#1428)Ansh2023-09-111-1/+1
| | | | | * add new api event proxy * add new apiHost for analytics web
* add new api event proxy (#1400)Ansh2023-09-111-0/+1
|
* Update time.ts to handle very small or negative time differences (#1390)Bossett2023-09-081-1/+4
| | | | | | | | | | | * Update time.ts to handle very small or negative time differences Right now, posts can appear to be from the future with a negative time difference (i.e. -3s appears). This change defines 'NOW' as less than 5 seconds old, and returns 'now' in that case. It's not clear how localisation is handled - this may need translation. * Add test for 'now' in time/ago(...) Add tests for ago() for right now (i.e. 'now') and 10s ago to ensure the seconds case is still tested
* Upgrade to Expo 49 (#1331)Eric Bailey2023-09-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update to expo 49 * update expo-camera to fix console erorrs * run doctor again * fix ts errors * patch @sentry/react-native Getting `cannot read property 'ignoreLogs' of undefined` in this file. Ironically, this may be a cyclical imports problem. LogBox isn't enabled in production, so this patch should only affect dev/test. * fix type error * reinstall newer reanimated * pin expo-dev-client to fix reanimated dev-build issue * fix type errors, fix bad conflict res * Fix to notifications badge z-index on desktop --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Updates to use dynamic/responsive styles on web (#1351)Paul Frazee2023-09-051-7/+13
| | | | | | | | | | | | | | | | | | | * Move most responsive queries to the hook * Fix invalid CSS value * Fixes to tablet render of post thread * Fix overflow issues on web * Fix search header on tablet * Fix QP margin in web composer * Fix: only apply double gutter once to flatlist (close #1368) * Fix styles on discover feeds header * Fix double discover links in multifeed
* Improved mute alerting (#1355)Paul Frazee2023-09-011-0/+24
| | | | | | | * Use a simpler mute alert when viewing a post by a muted user * Dont mute self-QPs when we're overriding a mute * Fix types
* Fix 1304 refresh notifications when a notif is clicked or received (#1339)Ansh2023-08-302-6/+7
| | | | | | | | | * refresh notifications when a notif is clicked * make notification syncing smarter * allow enabled appview proxy on mobile * put back syncqueue code
* Merge branch 'ansh/app-812-add-custom-feed-discovery-to-onboarding' into mainPaul Frazee2023-08-303-2/+117
|\
| * More fixes to mobile onboardPaul Frazee2023-08-301-2/+8
| |
| * Rework web onboardingPaul Frazee2023-08-291-0/+107
| |
| * Move onboarding to the withAuthRequired HOCPaul Frazee2023-08-292-28/+0
| |
| * fix onboarding on webAnsh Nanda2023-08-291-0/+23
| |
| * add more trackingAnsh Nanda2023-08-281-0/+1
| |
| * add custom feed discovery to onboardingAnsh Nanda2023-08-281-0/+1
| |
| * move onboarding to screensAnsh Nanda2023-08-281-0/+5
| |
* | Move `PreferencesHomeFeed` to a screen instead of a modal (#1335)Ansh2023-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * move `PreferencesHomeFeed` to a screen instead of a modal * add web route for home feed preferences * upgrade `@miblanchard/react-native-slider` to fix lint * fix web route naming * fix desktop web styling * add `react-native-slider` mock
* | Moderation settings fixes (#1336)Paul Frazee2023-08-302-488/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Default isAdultContentEnabled to false on all devices. The original intent of setting the default based on the device was to make the maximally-permissive choice. It turns out this was a mistake as it created sync issues between devices; users would be confused by the lack of congruity between them. We have to go with false by default to ensure sync is retained. * Update preferences model to use new sdk api * Delete dead code * Dont show the iOS adult content warning in content filtering settings if adult content is enabled * Bump @atproto/api@0.6.8 * Codebase style consistency
* | handle stuck state with granular android permissionsEric Bailey2023-08-291-3/+8
| |
* | 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)
* Add analytics event for when the app is opened from a notification (#1270)Paul Frazee2023-08-242-0/+4
| | | | | * Add analytics event for when the app is opened from a notification * Tweak notification ID
* A couple quick notifications fixes (#1262)Paul Frazee2023-08-231-3/+6
| | | | | | | * Create separate .easignore to ensure google-services.json goes to eas * Set the notifications serviceDid according to the session host * Fix types
* [APP-786] Native notifications (#1095)Ansh2023-08-235-132/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix: include link-meta abort signal for timeout (close #1214) (#1240)Paul Frazee2023-08-221-0/+1
|
* add profiles sampling to sentry (#1237)Ansh2023-08-211-0/+5
|
* allow handles to start with a number (#1231)Eric Bailey2023-08-211-1/+1
| | | | | * allow handles to start with a number * don't allow leading hyphen
* Shorten links in composer to reduce char usage (#1188)Paul Frazee2023-08-163-9/+42
| | | | | | | * 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
* Tune up the link card to look nicer, show more info, and layout horizontally ↵Paul Frazee2023-08-161-1/+1
| | | | on web to user space more nicely (#1190)
* 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)
* [APP-798] add key to `ProfileCardPills` render method (#1158)Ansh2023-08-151-0/+13
| | | | | | | | | * add key to `ProfileCardPills` render method * More reliable key generation --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* More useful block-state information in embeds (#1150)Paul Frazee2023-08-101-2/+9
| | | | | * More useful block-state information in embeds * Tune copy
* Add self-labeling controls (#1141)Paul Frazee2023-08-093-6/+56
| | | | | | | | | | | | | | | * 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
* Add alerts to embeds (#1138)Paul Frazee2023-08-081-0/+10
| | | | | | | * Add alerts to embeds * Add images to the mock data * Fix types
* Fix to react-key uniqueness in feeds (#1136)Paul Frazee2023-08-081-0/+6
|