about summary refs log tree commit diff
path: root/src/state
Commit message (Collapse)AuthorAgeFilesLines
...
* | Move `PreferencesHomeFeed` to a screen instead of a modal (#1335)Ansh2023-08-301-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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-301-180/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Improvements to feed assembly to avoid possible state issues (#1318)Paul Frazee2023-08-281-1/+12
|/ | | | | * Avoid potential dropped posts due to pruning when checking for latest * Add a sanity check to ensure dup react keys never occur (close #1315)
* defer loading of feeds until visible (#1271)Eric Bailey2023-08-241-1/+1
| | | | | | | | | | | * defer loading of feeds until visible * Fix: use existing hasLoaded * Fix: dont query for latest during initial load --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* setup `isAuthenticatedUser` in profileUiModel inside an action (#1272)Ansh2023-08-241-3/+5
|
* [APP-786] Native notifications (#1095)Ansh2023-08-232-89/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Improve handling of unselecting languanges in composer language menu (#1093)Eric Bailey2023-08-231-14/+61
| | | | | | | | | | | | | | | | | | | | | | | * allow toggling off/on multiple from main composer lang menu * fix dropdown styles for long labels * udpate model to use new string field * update language UI * save langs to history on submit * remove edit * clean up use new fields * default to deviceLocales * fix default valu * feedback * use radio icon
* fix bad reference on nativeEric Bailey2023-08-231-1/+2
|
* Fix: update posts rendered in notifs on refresh (close #1196) (#1243)Paul Frazee2023-08-221-4/+16
|
* Add likes tab (#1227)Eric Bailey2023-08-222-25/+57
| | | | | | | | | | | | | | | | | * add likes tab (cherry picked from commit 6c5ffd964ca0b185ddfc37088d82712a006a1163) * only show Likes tab to authenticated user (cherry picked from commit ecc1254411d760158b6d7a4c5f05d940db872dfc) * Bump @atproto/api@0.6.5 * fix types --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* add title attr to text text links (#1228)Eric Bailey2023-08-221-1/+8
| | | | | | | | | | | | | | | * add title attr to text text links * Revert "add title attr to text text links" This reverts commit c028cd184efd3b2788d8f46134eecf521e5d7b07. * use css tooltips * add to expanded post state * handle theming * add to bskyweb
* [APP-834] Allow @ing someone in post directly from profile (#1241)Ansh2023-08-221-0/+1
| | | | | * setup `initMention` for mobile * setup creating post with profile tagged on web
* do not thread author media filtered feed (#1253)Eric Bailey2023-08-222-6/+27
|
* Dont suggest users that are muted or blocked (close #1185) (#1209)Paul Frazee2023-08-172-6/+28
|
* A set of composer fixes (#1187)Paul Frazee2023-08-161-0/+1
| | | | | | | * Don't insert a newline on cmd+entrl (close #1173) * Don't linkify selected text on url-paste (close #1149) * Disable the adult content controls if there is no media on the post (close #1169)
* Fix to "Load new posts" showing sometimes when there's nothing new to show ↵Paul Frazee2023-08-161-1/+10
| | | | | | | (#1191) * Fix to feed item react key value (hopefully) * Fix false-firing of load more (close #1028)
* use greater of indexedAt or machine clock (#1182)Eric Bailey2023-08-151-5/+16
| | | | | * use greater of indexedAt or machine clock * correct mobx usage
* :sparkles: Repurpose report post modal and re-use for list reporting (#1070)Foysal Ahamed2023-08-152-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | * :sparkles: Repupose report post modal and re-use for list reporting * :sparkles: Allow reporting a feed generator * :sparkles: :recycle: Refactor report modal into one shared component for reporting different collections * :white_check_mark: Adjust report option selector in tests * :white_check_mark: Add test for list reporting * :recycle: :sparkles: Refactor reason options and add options for list and feedgen * :broom: Cleanup remaining todo * Fix to mutelist react keys * Fix regression from rebase * Improve customfeed mobile header --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Clear caches on session change (#1179)Paul Frazee2023-08-151-0/+2
|
* Fix to feeds view in profiles (#1171)Paul Frazee2023-08-151-15/+8
| | | | | * Fix load of feeds tab * Add e2e test for profile feeds
* use user.handle response from getProfile, not getSession (#1165)Eric Bailey2023-08-151-1/+1
|
* Fixes #1124: Trim alt text before saving (#1159)Ansh2023-08-141-2/+2
| | | | | * trim alt text before setting * Drop `trim` from helpers.ts
* Adds profile media tab (#1137)Eric Bailey2023-08-102-28/+44
| | | | | | | | | | | | | | | | | * add media tab * fix loading state * cleanup * update naming * upgrade api package * fix load state * add scroll view to tabs * fix overflow on mobile web
* Add self-labeling controls (#1141)Paul Frazee2023-08-092-23/+31
| | | | | | | | | | | | | | | * 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-1/+1
|
* fix thread spacing and reply linesEric Bailey2023-08-081-1/+1
|
* Perf: switch to stable react keys (#1113)Paul Frazee2023-08-054-21/+12
|
* Collection of small UI fixes & improvements (#1104)Paul Frazee2023-08-041-1/+40
| | | | | | | | | * Fix black bar appearing in link card images * Include QPs in posts cache * Fix like color for feed likes in notifications * Fix post embed spacing
* Simplify the after-post logic to avoid a UI bug (#1105)Paul Frazee2023-08-041-19/+5
|
* Labeling & moderation updates [DRAFT] (#1057)Paul Frazee2023-08-0310-114/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Improve the profile preview with "swipe up to view" and local cache ↵Paul Frazee2023-08-032-5/+25
| | | | | | | | | | | | | optimization (#1096) * Update the ProfilePreview to use a swipe-up to navigate * Use the profile cache to optimize load performance * Hack to align the header in the profile preview against the screen view * Fix profiles cache logic to ensure cache is used * Fix dark mode on profile preview
* Use a post and handle-resolution cache to enable quick postthread loading ↵Paul Frazee2023-08-037-4/+96
| | | | | | | | | | | (#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
* List cleanup on remove (#1069)Foysal Ahamed2023-07-284-1/+29
| | | | | | | | | * :lipstick: Hide Add to List option on own profile * :sparkles: Remove Lists tab when last list is removed * :sparkles: Add listener to list delete on profile screen * :sparkles: Only show save changes in list modal when changes are made
* Search custom feeds (#1031)Ansh2023-07-281-2/+17
| | | | | | | | | | | * paginate custom feeds * basic search * update `@atproto/api` * use search from the API * debounce search for 200ms
* [APP-782] Support invalid handles correctly (#1049)Paul Frazee2023-07-275-4/+29
| | | | | | | | | | | | | | | | | | | * 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
* [APP-720] Paginate custom feeds (#1030)Ansh2023-07-211-3/+36
| | | | | | | * paginate custom feeds * Fix loading state bug * DRY code up
* [APP-775] Add Welcome screen after account creation (#1038)Ansh2023-07-193-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* wrap interval in runInAction (#1037)Eric Bailey2023-07-191-2/+4
|
* #984 Updating `indexedAt` timestamps (#1024)Eric Bailey2023-07-191-0/+9
| | | | | | | | | * add TimeElapsed util component, integrate into PostThreadItem * integrate into posts * use consistent naming * use mobx and single interval for TimeElapsed
* Fixes and improvements to the Profile Preview modal (#992)Paul Frazee2023-07-071-0/+18
| | | | | | | | | | | | | * Fix: use more reliable navigation method * Fix: show lightbox over the active modal * Fix: close the profile preview on navigation * Factor out UserPreviewLink and add preview behavior to notifications * Fix postmeta overflow on web * Fix lint
* Post UI updates (Profile Preview on mobile) (#990)Paul Frazee2023-07-061-0/+6
| | | | | | | | | | | | | | | | | | | | | | | * 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-735] Post language improvements (#982)Paul Frazee2023-07-061-0/+4
| | | | | | | | | | | | | | | | | * 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
* [APP-702] Render Custom Feed likes properly (#980)Ansh2023-07-051-1/+7
| | | | | | | | | * render href for custom feed likes properly * fix custom feed text in push notification * fix custom feed accessibility title * fix lint
* track successful account creation (#955)Ansh2023-07-031-0/+2
|
* Fix reply-root reference (fixes thread muting) (#957)Paul Frazee2023-07-032-2/+3
|
* Add alt text validation option to user preferences (supersedes #913) (#914)Paul Frazee2023-07-032-0/+17
| | | | | | | | | | | | | * Add alt text validation option to user preferences * Fix typos/linting issues * Update accessibility setting to match styles * Update the required alt text reminder to go away once it's added --------- Co-authored-by: Emma Fuller <emma@emmafuller.dev>
* [APP-708] Onboarding revamp (#939)Ansh2023-07-021-1/+1
| | | | | * Move Discover New Feeds button to the top of the MultiFeed * add discover custom feeds to empty following page
* Performance improvement (#937)Paul Frazee2023-07-011-5/+3
| | | | | | | * Perf: Wait until a feed is visible in the home screen before fetching data * perf: update feed checkForLatest to use limit=1 * Fix lint
* Fix thread muting (#932)Paul Frazee2023-06-301-1/+2
|
* Include a notice during account creation for under-18 users (#927)Paul Frazee2023-06-301-1/+9
|