about summary refs log tree commit diff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Labeling & moderation updates [DRAFT] (#1057)Paul Frazee2023-08-033-1/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [APP-737] Accessible native dropdown menu (#988)Ansh2023-07-281-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix comments * add zeego package * get basic native dropdown working * add separator and icon components * refined native dropdown component * add android build properties to app.json * move `PostDropdownBtn` to its own component * fix selectors issue * move `PostDropdownBtn` to its own component * fix hitslop * fix post dropdown hitslop * fix android dropdown icons * move `UserAvatar.tsx` to native dropdown * use native dropdown in `ProfileHeader.tsx` * use native dropdown in `PostThreadItem.tsx` * use native dropdown in `UserBanner.tsx` * use native dropdown in `CustomFeed.tsx` * replace `testId` with `testID` (which is what is used everywhere) * move `Settings.tsx` to use native dropdown * create jest mocks for zeego * create jest mock for `zeego/dropdown-menu` * web styles for native dropdown * remove example native dropdown * adjust web styles * fix propagation * fix pressable in `Settings.tsx` * animate dropdown on web * add keyboard nav and hover styles * add hitslop to constants * add comments to NativeDropdown component * temporarily removed android icons * add testID to PostDropdownBtn * add testID back to all NativeDropdown button implementations * add postDropdownBtn testID * add testID to dropdown items * remove testID from dropdown menu item * refactor home-screen tests for native dropdown * refactor profile-screen tests for native dropdown * refactor thread-muting tests for native dropdown * refactor thread-screen tests for native dropdown * fix dropdown color for post dropdown button * remove icons from android dropdown menu * fix `create-account.test.ts` * fix `invite-codes.test.ts`
* [APP-782] Support invalid handles correctly (#1049)Paul Frazee2023-07-274-12/+33
| | | | | | | | | | | | | | | | | | | * Update profile link construction to support handle.invalid * Update list links to support using handles * Use did for isMe check to ensure invalid handles dont distort the check * Shift the red (error) colors away from the pink spectrum * Add ThemedText helper component * Add sanitizedHandle() helper to render invalid handles well * Fix regression: only show avatar in PostMeta when needed * Restore the color of likes * Remove users with invalid handles from default autosuggests
* fix: invisible url when only a protocol (#1059)Steven2023-07-271-1/+4
| | | | | | | * fix: invisible url when only a protocol - Fixes https://github.com/bluesky-social/social-app/issues/1058 * fix: handle more cases when url is not http/https
* Update icons.tsx - Simplify SatelliteDishIcon paths (#1048)David Buchanan2023-07-251-1/+1
| | | This prevents rendering jank
* [APP-775] Add Welcome screen after account creation (#1038)Ansh2023-07-192-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add comments to step 1-3 * add onboarding screen * add analytics for onboarding tracking * fix useEffect * change text * change icon size * put onboarding into bottom sheet modal instead of react navigation * wip * Simplify the type validation * Fix: only trigger onboarding modal when account creation succeeds * Add the 'session-ready' event which fires when the new session is stable * Use the 'session-ready' event to trigger the onboarding modal * update copy * update copy --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Post UI updates (Profile Preview on mobile) (#990)Paul Frazee2023-07-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | * Update postmeta to put the timestamp on the right side on mobile * Drop the two-line PostMeta mode * Add ProfilePreview modal * Tune PostMeta to give the best behavior possible for a given platform * Remove old showFollowBtn attributes * Fix style issue * Switch the follow button in the profile header to use the inverted color for consistency with the rest of the app * Fix lint * Fix darkmode * Tune the profile preview footer * Better analytics choice
* [APP-28] add status page link (#987)Ansh2023-07-061-0/+2
| | | | | | | * add status page to mobile * add status page URL to super slow loading screen * store STATUS_PAGE_URL in constants.ts
* [APP-736] Clarify hate-group moderation as it's currently used (#985)Paul Frazee2023-07-061-2/+3
| | | | | | | | | | | | * Clarify hate-group moderation as it's currently used * Update src/lib/labeling/const.ts Co-authored-by: Emily Liu <emilyliu7321@gmail.com> --------- Co-authored-by: Ansh <anshnanda10@gmail.com> Co-authored-by: Emily Liu <emilyliu7321@gmail.com>
* [APP-735] Post language improvements (#982)Paul Frazee2023-07-062-0/+38
| | | | | | | | | | | | | | | | | * Fix composer character-counter bouncing around UI elements * Fix composer toolbar padding when keyboard is dismissed on iOS * Use the full name of the language in the composer footer * Add headings to the DropdownButton * Update the composer language control to use a simpler dropdown * Fix lint * Add translate link to Post component used in notifications * Fix lint
* Update support links (#977)Paul Frazee2023-07-052-2/+21
| | | | | | | | | | | | | | | | | | | * Add the new zendesk feedback form URL * Dont wrap handle or display name in the drawer * Add help link * Tune drawer footer layout * Type fixes * make helpdesk urls more composable for future * fix typo --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* [APP-702] Render Custom Feed likes properly (#980)Ansh2023-07-051-1/+4
| | | | | | | | | * render href for custom feed likes properly * fix custom feed text in push notification * fix custom feed accessibility title * fix lint
* fix: typo in feed-manip.ts (#967)Ikko Eltociear Ashimine2023-07-051-1/+1
| | | prefered -> preferred
* Fix: re-add the scroll boundary to avoid minimal shell at top of screen (#956)Paul Frazee2023-07-031-2/+10
|
* don't throw, but log OTA listener errors (#958)Ansh2023-07-031-1/+4
|
* track successful account creation (#955)Ansh2023-07-031-0/+1
|
* Add permission checks before saving image (#945)Ansh2023-07-031-15/+3
| | | | | | | | | * catch permission errors when saving image to album * Save photos to media library alone (not an album) --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* fix: stabilize minimalShellMode toggling by introducing modified thresholds ↵Paul Frazee2023-07-021-6/+4
| | | | | | | | | | | | | (supersedes #938) (#942) * add separate scroll up/down thresholds to prevent rapid state changes * set `DY_LIMIT_DOWN` to 150 * Use a different scroll dy limit on web/mobile --------- Co-authored-by: Sehyun Chung <sehyun.chung@icloud.com>
* [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-716] Add 'save image' button to the lightbox (#926)Paul Frazee2023-06-302-2/+36
| | | | | | | * Add 'save image' button to the lightbox * Fix types * Fix types
* [APP-705] Metrics revamp pt2 (#896)Ansh2023-06-272-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * export track function from analytics.tsx * fix create account tracking * fix tracking sign in * add custom feed events * fix type errors * refactor create post event * add profile follow & unfollow events * refactor PostsFeedSliceModel into its own file * refactor PostThreadItemModel into its own file * reorganize code a lil bit * refactor post-thread-item to use post-feed-item model under the hood * add post events * add post reply tracking * track custom feed load more * track list subscribe and unsubscribe
* [APP-657] Add share list functionality (#863)Ansh2023-06-262-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replace delete list button text with icon * fix mute list styling on desktop * add share button to nav bar on a list * fix styling when on profile * bug: add key to ImageHorzList * clean up code & refactor * fix styling for ListItems * create a reusable ListActions component for actions on a list * remove dead styles * add keys to ListActions * add helpers to set list embed * render list embeds * fix list sharing on web * make style prop optional in ListCard * update `@atproto/api` to `0.3.13`
* [APP-690] better handling of post languages language filtering (#893)Ansh2023-06-233-9/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>