Compare commits

...

6 Commits

Author SHA1 Message Date
Eric Bailey e2b60f288d Remove unused index to fix lint 2025-04-07 15:14:14 -05:00
pfrazee 94fd12ff49 Nightly source-language update 2025-04-05 02:35:03 +00:00
Paul Frazee a181b0b935 Rework the visual design of the interests card in explore (#8135) 2025-04-04 18:10:13 -07:00
Paul Frazee a301e31f76 Fix the 'seen' metric in explore (#8134) 2025-04-04 17:28:02 -07:00
Eric Bailey 502d660eb4 [Explore] Invalidate queries post-interests edit (#8128)
* Insert fresh interests and reset relevant queries

* reset suggested users

---------

Co-authored-by: Hailey <me@haileyok.com>
2025-04-04 17:16:39 -07:00
Paul Frazee 6840fbb237 Update deps to support ios 18.4 (#8133) 2025-04-04 17:04:57 -07:00
9 changed files with 774 additions and 711 deletions
+40 -40
View File
@@ -86,12 +86,12 @@
"@radix-ui/react-focus-scope": "^1.1.2",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-menu/menu": "^1.1.7",
"@react-native-picker/picker": "2.10.2",
"@react-native-picker/picker": "2.9.0",
"@react-navigation/bottom-tabs": "^6.5.20",
"@react-navigation/drawer": "^6.6.15",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"@sentry/react-native": "6.9.1",
"@sentry/react-native": "~6.10.0",
"@tanstack/query-async-storage-persister": "^5.25.0",
"@tanstack/react-query": "^5.8.1",
"@tanstack/react-query-persist-client": "^5.25.0",
@@ -123,35 +123,35 @@
"emoji-mart": "^5.5.2",
"emoji-regex": "^10.4.0",
"eventemitter3": "^5.0.1",
"expo": "~52.0.19",
"expo-application": "^6.0.1",
"expo": "~52.0.42",
"expo-application": "~6.0.2",
"expo-blur": "^14.0.3",
"expo-build-properties": "^0.13.1",
"expo-camera": "~16.0.7",
"expo-clipboard": "^7.0.0",
"expo-dev-client": "^5.0.4",
"expo-device": "~7.0.1",
"expo-file-system": "^18.0.6",
"expo-font": "~13.0.1",
"expo-haptics": "^14.0.0",
"expo-image": "~2.0.3",
"expo-image-manipulator": "^13.0.5",
"expo-image-picker": "~16.0.3",
"expo-linear-gradient": "^14.0.1",
"expo-linking": "^7.0.3",
"expo-localization": "~16.0.0",
"expo-media-library": "~17.0.3",
"expo-navigation-bar": "~4.0.4",
"expo-notifications": "~0.29.11",
"expo-screen-orientation": "^8.0.2",
"expo-sharing": "^13.0.0",
"expo-splash-screen": "~0.29.18",
"expo-status-bar": "~2.0.0",
"expo-system-ui": "^4.0.4",
"expo-task-manager": "~12.0.3",
"expo-updates": "~0.26.10",
"expo-video": "^2.0.5",
"expo-web-browser": "~14.0.1",
"expo-build-properties": "~0.13.2",
"expo-camera": "~16.0.18",
"expo-clipboard": "~7.0.1",
"expo-dev-client": "~5.0.19",
"expo-device": "~7.0.3",
"expo-file-system": "~18.0.12",
"expo-font": "~13.0.4",
"expo-haptics": "~14.0.1",
"expo-image": "~2.0.7",
"expo-image-manipulator": "~13.0.6",
"expo-image-picker": "~16.0.6",
"expo-linear-gradient": "~14.0.2",
"expo-linking": "~7.0.5",
"expo-localization": "~16.0.1",
"expo-media-library": "~17.0.6",
"expo-navigation-bar": "~4.0.9",
"expo-notifications": "~0.29.14",
"expo-screen-orientation": "~8.0.4",
"expo-sharing": "~13.0.1",
"expo-splash-screen": "~0.29.22",
"expo-status-bar": "~2.0.1",
"expo-system-ui": "~4.0.9",
"expo-task-manager": "~12.0.6",
"expo-updates": "~0.27.4",
"expo-video": "~2.0.6",
"expo-web-browser": "~14.0.2",
"fast-text-encoding": "^1.0.6",
"history": "^5.3.0",
"hls.js": "^1.5.11",
@@ -169,12 +169,12 @@
"patch-package": "^6.5.1",
"postinstall-postinstall": "^2.1.0",
"psl": "^1.9.0",
"react": "18.2.0",
"react": "18.3.1",
"react-compiler-runtime": "19.0.0-beta-a7bf2bd-20241110",
"react-dom": "^18.2.0",
"react-dom": "18.3.1",
"react-image-crop": "^11.0.7",
"react-keyed-flatten-children": "^3.0.0",
"react-native": "0.76.6",
"react-native": "0.76.9",
"react-native-compressor": "1.10.3",
"react-native-date-picker": "^5.0.7",
"react-native-drawer-layout": "^4.1.1",
@@ -185,15 +185,15 @@
"react-native-ios-context-menu": "^1.15.3",
"react-native-keyboard-controller": "^1.14.5",
"react-native-mmkv": "^2.12.2",
"react-native-pager-view": "6.7.0",
"react-native-pager-view": "6.5.1",
"react-native-picker-select": "^9.3.1",
"react-native-progress": "bluesky-social/react-native-progress",
"react-native-qrcode-styled": "^0.3.3",
"react-native-reanimated": "3.17.0-nightly-20241211-17e89ca24",
"react-native-reanimated": "~3.16.1",
"react-native-root-siblings": "^4.1.1",
"react-native-safe-area-context": "4.14.0",
"react-native-screens": "~4.3.0",
"react-native-svg": "^15.8.0",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "~4.4.0",
"react-native-svg": "15.8.0",
"react-native-uitextview": "^1.4.0",
"react-native-url-polyfill": "^1.3.0",
"react-native-uuid": "^2.0.2",
@@ -201,7 +201,7 @@
"react-native-vision-camera": "^4.6.3",
"react-native-web": "~0.19.13",
"react-native-web-webview": "^1.0.2",
"react-native-webview": "13.12.3",
"react-native-webview": "13.12.5",
"react-remove-scroll-bar": "^2.3.6",
"react-responsive": "^9.0.2",
"react-textarea-autosize": "^8.5.3",
@@ -257,7 +257,7 @@
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"jest": "^29.7.0",
"jest-expo": "^52.0.2",
"jest-expo": "~52.0.6",
"jest-junit": "^16.0.0",
"lint-staged": "^13.2.3",
"lockfile-lint": "^4.14.0",
+181 -128
View File
@@ -13,8 +13,8 @@ msgstr ""
"Language-Team: \n"
"Plural-Forms: \n"
#: src/components/ProgressGuide/FollowDialog.tsx:570
#: src/screens/Search/modules/ExploreSuggestedAccounts.tsx:112
#: src/components/ProgressGuide/FollowDialog.tsx:579
#: src/screens/Search/modules/ExploreSuggestedAccounts.tsx:118
msgid "(active)"
msgstr ""
@@ -112,7 +112,7 @@ msgstr ""
msgid "{0, plural, one {repost} other {reposts}}"
msgstr ""
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:75
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:77
msgid "{0, plural, other {{1} posts}}"
msgstr ""
@@ -316,12 +316,12 @@ msgid "{profileName} joined Bluesky using a starter pack {0} ago"
msgstr ""
#. The trending topic rank, i.e. "1. March Madness", "2. The Bachelor"
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:104
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:108
msgid "{rank}."
msgstr ""
#. trending topic time spent trending. should be as short as possible to fit in a pill
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:199
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:203
msgid "{type}h ago"
msgstr ""
@@ -397,7 +397,7 @@ msgstr ""
msgid "a message"
msgstr ""
#: src/Navigation.tsx:382
#: src/Navigation.tsx:391
#: src/screens/Settings/AboutSettings.tsx:34
#: src/screens/Settings/Settings.tsx:215
#: src/screens/Settings/Settings.tsx:218
@@ -424,11 +424,11 @@ msgstr ""
msgid "Accessibility"
msgstr ""
#: src/Navigation.tsx:342
#: src/Navigation.tsx:343
msgid "Accessibility Settings"
msgstr ""
#: src/Navigation.tsx:358
#: src/Navigation.tsx:359
#: src/screens/Login/LoginForm.tsx:194
#: src/screens/Settings/AccountSettings.tsx:45
#: src/screens/Settings/Settings.tsx:153
@@ -652,7 +652,6 @@ msgstr ""
msgid "Advanced"
msgstr ""
#: src/screens/Search/modules/ExploreSuggestedAccounts.tsx:86
#: src/view/screens/Notifications.tsx:86
msgid "All"
msgstr ""
@@ -756,7 +755,7 @@ msgstr ""
msgid "An error occurred while compressing the video."
msgstr ""
#: src/screens/Search/modules/ExploreFeedPreviews.tsx:118
#: src/state/queries/explore-feed-previews.tsx:148
msgid "An error occurred while fetching the feed."
msgstr ""
@@ -843,7 +842,7 @@ msgstr ""
msgid "Anybody can interact"
msgstr ""
#: src/Navigation.tsx:390
#: src/Navigation.tsx:399
#: src/screens/Settings/AppIconSettings/index.tsx:67
#: src/screens/Settings/AppIconSettings/SettingsListItem.tsx:18
#: src/screens/Settings/AppIconSettings/SettingsListItem.tsx:23
@@ -880,7 +879,7 @@ msgstr ""
msgid "App passwords"
msgstr ""
#: src/Navigation.tsx:310
#: src/Navigation.tsx:311
#: src/screens/Settings/AppPasswords.tsx:51
msgid "App Passwords"
msgstr ""
@@ -916,7 +915,7 @@ msgstr ""
msgid "Appeal this decision"
msgstr ""
#: src/Navigation.tsx:350
#: src/Navigation.tsx:351
#: src/screens/Settings/AppearanceSettings.tsx:85
#: src/screens/Settings/Settings.tsx:183
#: src/screens/Settings/Settings.tsx:186
@@ -1007,8 +1006,8 @@ msgstr ""
msgid "Autoplay options have moved to the <0>Content and Media settings</0>."
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:107
#: src/screens/Settings/ContentAndMediaSettings.tsx:113
#: src/screens/Settings/ContentAndMediaSettings.tsx:116
#: src/screens/Settings/ContentAndMediaSettings.tsx:122
msgid "Autoplay videos and GIFs"
msgstr ""
@@ -1122,7 +1121,7 @@ msgstr ""
msgid "Blocked accounts"
msgstr ""
#: src/Navigation.tsx:159
#: src/Navigation.tsx:160
#: src/view/screens/ModerationBlockedAccounts.tsx:101
msgid "Blocked Accounts"
msgstr ""
@@ -1253,7 +1252,7 @@ msgstr ""
msgid "Browse starter pack {displayName}"
msgstr ""
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:84
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:88
msgid "Browse topic {0}"
msgstr ""
@@ -1268,7 +1267,7 @@ msgstr ""
#: src/components/LabelingServiceCard/index.tsx:62
#: src/components/moderation/ReportDialog/index.tsx:672
#: src/screens/Search/components/StarterPackCard.tsx:102
#: src/screens/Search/Explore.tsx:791
#: src/screens/Search/Explore.tsx:749
msgid "By {0}"
msgstr ""
@@ -1302,7 +1301,7 @@ msgstr ""
#: src/screens/Deactivated.tsx:158
#: src/screens/Profile/Header/EditProfileDialog.tsx:220
#: src/screens/Profile/Header/EditProfileDialog.tsx:228
#: src/screens/Search/Shell.tsx:347
#: src/screens/Search/Shell.tsx:349
#: src/screens/Settings/AppIconSettings/index.tsx:44
#: src/screens/Settings/AppIconSettings/index.tsx:225
#: src/screens/Settings/components/ChangeHandleDialog.tsx:76
@@ -1358,7 +1357,7 @@ msgstr ""
msgid "Cancel reactivation and sign out"
msgstr ""
#: src/screens/Search/Shell.tsx:339
#: src/screens/Search/Shell.tsx:341
#: src/view/com/modals/ListAddRemoveUsers.tsx:88
msgid "Cancel search"
msgstr ""
@@ -1449,7 +1448,7 @@ msgstr ""
msgid "Changes hosting provider"
msgstr ""
#: src/Navigation.tsx:407
#: src/Navigation.tsx:416
#: src/view/shell/bottom-bar/BottomBar.tsx:205
#: src/view/shell/desktop/LeftNav.tsx:535
#: src/view/shell/Drawer.tsx:422
@@ -1467,7 +1466,7 @@ msgctxt "toast"
msgid "Chat muted"
msgstr ""
#: src/Navigation.tsx:417
#: src/Navigation.tsx:426
#: src/screens/Messages/components/InboxPreview.tsx:24
msgid "Chat request inbox"
msgstr ""
@@ -1478,7 +1477,7 @@ msgid "Chat requests"
msgstr ""
#: src/components/dms/ConvoMenu.tsx:75
#: src/Navigation.tsx:412
#: src/Navigation.tsx:421
#: src/screens/Messages/ChatList.tsx:328
msgid "Chat settings"
msgstr ""
@@ -1598,7 +1597,7 @@ msgstr ""
#: src/components/dms/ReportDialog.tsx:390
#: src/components/NewskieDialog.tsx:146
#: src/components/NewskieDialog.tsx:153
#: src/components/ProgressGuide/FollowDialog.tsx:429
#: src/components/ProgressGuide/FollowDialog.tsx:436
#: src/components/StarterPack/Wizard/WizardEditListDialog.tsx:117
#: src/components/StarterPack/Wizard/WizardEditListDialog.tsx:123
#: src/view/com/modals/ChangePassword.tsx:279
@@ -1699,7 +1698,7 @@ msgstr ""
msgid "Comics"
msgstr ""
#: src/Navigation.tsx:300
#: src/Navigation.tsx:301
#: src/view/screens/CommunityGuidelines.tsx:34
msgid "Community Guidelines"
msgstr ""
@@ -1793,7 +1792,7 @@ msgstr ""
msgid "Contact support"
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:50
#: src/screens/Settings/ContentAndMediaSettings.tsx:51
msgid "Content & Media"
msgstr ""
@@ -1803,7 +1802,7 @@ msgstr ""
msgid "Content and media"
msgstr ""
#: src/Navigation.tsx:374
#: src/Navigation.tsx:375
msgid "Content and Media"
msgstr ""
@@ -1829,6 +1828,11 @@ msgstr ""
msgid "Content Not Available"
msgstr ""
#: src/screens/Settings/SettingsInterests.tsx:123
msgctxt "toast"
msgid "Content preferences updated!"
msgstr ""
#: src/components/moderation/ModerationDetailsDialog.tsx:50
#: src/components/moderation/ScreenHider.tsx:93
#: src/lib/moderation/useGlobalLabelStrings.ts:22
@@ -1972,11 +1976,16 @@ msgstr ""
msgid "Copy QR code"
msgstr ""
#. Confirm button text. Can be a short cheeky phrase that means "OK" e.g. "Copy that!"
#: src/screens/Search/modules/ExploreInterestsCard.tsx:48
msgid "Copy that!"
msgstr ""
#: src/screens/Settings/components/ChangeHandleDialog.tsx:426
msgid "Copy TXT record value"
msgstr ""
#: src/Navigation.tsx:305
#: src/Navigation.tsx:306
#: src/view/screens/CopyrightPolicy.tsx:31
msgid "Copyright Policy"
msgstr ""
@@ -2012,7 +2021,7 @@ msgstr ""
#: src/components/StarterPack/ProfileStarterPacks.tsx:178
#: src/components/StarterPack/ProfileStarterPacks.tsx:274
#: src/Navigation.tsx:442
#: src/Navigation.tsx:451
msgid "Create a starter pack"
msgstr ""
@@ -2341,7 +2350,7 @@ msgstr ""
msgid "Discourage apps from showing my account to logged-out users"
msgstr ""
#: src/screens/Search/Explore.tsx:420
#: src/screens/Search/Explore.tsx:362
msgid "Discover Feeds"
msgstr ""
@@ -2553,6 +2562,11 @@ msgstr ""
msgid "Edit interaction settings"
msgstr ""
#: src/screens/Search/modules/ExploreInterestsCard.tsx:98
#: src/screens/Search/modules/ExploreInterestsCard.tsx:105
msgid "Edit interests"
msgstr ""
#: src/view/screens/ProfileList.tsx:536
msgid "Edit list details"
msgstr ""
@@ -2561,7 +2575,7 @@ msgstr ""
msgid "Edit Moderation List"
msgstr ""
#: src/Navigation.tsx:315
#: src/Navigation.tsx:316
#: src/view/screens/Feeds.tsx:515
msgid "Edit My Feeds"
msgstr ""
@@ -2611,7 +2625,7 @@ msgstr ""
msgid "Edit your profile description"
msgstr ""
#: src/Navigation.tsx:447
#: src/Navigation.tsx:456
msgid "Edit your starter pack"
msgstr ""
@@ -2724,16 +2738,16 @@ msgstr ""
msgid "Enable this source only"
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:123
#: src/screens/Settings/ContentAndMediaSettings.tsx:137
#: src/screens/Settings/ContentAndMediaSettings.tsx:132
#: src/screens/Settings/ContentAndMediaSettings.tsx:146
msgid "Enable trending topics"
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:158
#: src/screens/Settings/ContentAndMediaSettings.tsx:167
msgid "Enable trending videos in your Discover feed"
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:144
#: src/screens/Settings/ContentAndMediaSettings.tsx:153
msgid "Enable trending videos in your Discover feed."
msgstr ""
@@ -2817,7 +2831,7 @@ msgstr ""
msgid "Enters full screen"
msgstr ""
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:232
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:236
msgid "Entertainment"
msgstr ""
@@ -2948,6 +2962,13 @@ msgstr ""
msgid "Explicit sexual images."
msgstr ""
#: src/Navigation.tsx:640
#: src/screens/Search/Shell.tsx:307
#: src/view/shell/desktop/LeftNav.tsx:617
#: src/view/shell/Drawer.tsx:370
msgid "Explore"
msgstr ""
#: src/screens/Settings/AccountSettings.tsx:137
#: src/screens/Settings/AccountSettings.tsx:141
msgid "Export my data"
@@ -2957,8 +2978,8 @@ msgstr ""
msgid "Export My Data"
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:83
#: src/screens/Settings/ContentAndMediaSettings.tsx:86
#: src/screens/Settings/ContentAndMediaSettings.tsx:84
#: src/screens/Settings/ContentAndMediaSettings.tsx:87
msgid "External media"
msgstr ""
@@ -2972,7 +2993,7 @@ msgstr ""
msgid "External media may allow websites to collect information about you and your device. No information is sent or requested until you press the \"play\" button."
msgstr ""
#: src/Navigation.tsx:334
#: src/Navigation.tsx:335
#: src/screens/Settings/ExternalMediaPreferences.tsx:31
msgid "External Media Preferences"
msgstr ""
@@ -3031,8 +3052,8 @@ msgstr ""
msgid "Failed to load conversations"
msgstr ""
#: src/screens/Search/Explore.tsx:459
#: src/screens/Search/Explore.tsx:498
#: src/screens/Search/Explore.tsx:401
#: src/screens/Search/Explore.tsx:440
msgid "Failed to load feeds preferences"
msgstr ""
@@ -3044,12 +3065,12 @@ msgstr ""
msgid "Failed to load past messages"
msgstr ""
#: src/screens/Search/Explore.tsx:452
#: src/screens/Search/Explore.tsx:491
#: src/screens/Search/Explore.tsx:394
#: src/screens/Search/Explore.tsx:433
msgid "Failed to load suggested feeds"
msgstr ""
#: src/screens/Search/Explore.tsx:356
#: src/screens/Search/Explore.tsx:314
msgid "Failed to load suggested follows"
msgstr ""
@@ -3067,6 +3088,11 @@ msgstr ""
msgid "Failed to remove emoji reaction"
msgstr ""
#: src/screens/Settings/SettingsInterests.tsx:128
msgctxt "toast"
msgid "Failed to save content prefefences."
msgstr ""
#: src/view/com/lightbox/Lightbox.tsx:46
msgid "Failed to save image: {0}"
msgstr ""
@@ -3111,7 +3137,7 @@ msgstr ""
msgid "Failed to verify handle. Please try again."
msgstr ""
#: src/Navigation.tsx:250
#: src/Navigation.tsx:251
msgid "Feed"
msgstr ""
@@ -3140,7 +3166,7 @@ msgctxt "toast"
msgid "Feedback sent!"
msgstr ""
#: src/Navigation.tsx:427
#: src/Navigation.tsx:436
#: src/screens/Search/SearchResults.tsx:68
#: src/screens/StarterPack/StarterPackScreen.tsx:185
#: src/view/screens/Feeds.tsx:508
@@ -3195,13 +3221,13 @@ msgstr ""
msgid "Find accounts to follow"
msgstr ""
#: src/components/ProgressGuide/FollowDialog.tsx:78
#: src/components/ProgressGuide/FollowDialog.tsx:88
#: src/components/ProgressGuide/FollowDialog.tsx:417
#: src/components/ProgressGuide/FollowDialog.tsx:85
#: src/components/ProgressGuide/FollowDialog.tsx:95
#: src/components/ProgressGuide/FollowDialog.tsx:424
msgid "Find people to follow"
msgstr ""
#: src/screens/Search/Shell.tsx:474
#: src/screens/Search/Shell.tsx:476
msgid "Find posts, users, and feeds on Bluesky"
msgstr ""
@@ -3305,7 +3331,7 @@ msgstr ""
msgid "Followed by <0>{0}</0>, <1>{1}</1>, and {2, plural, one {# other} other {# others}}"
msgstr ""
#: src/Navigation.tsx:204
#: src/Navigation.tsx:205
msgid "Followers of @{0} that you know"
msgstr ""
@@ -3339,12 +3365,12 @@ msgstr ""
msgid "Following {name}"
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:75
#: src/screens/Settings/ContentAndMediaSettings.tsx:78
#: src/screens/Settings/ContentAndMediaSettings.tsx:76
#: src/screens/Settings/ContentAndMediaSettings.tsx:79
msgid "Following feed preferences"
msgstr ""
#: src/Navigation.tsx:321
#: src/Navigation.tsx:322
#: src/screens/Settings/FollowingFeedPreferences.tsx:53
msgid "Following Feed Preferences"
msgstr ""
@@ -3382,6 +3408,10 @@ msgstr ""
msgid "For the best experience, we recommend using the theme font."
msgstr ""
#: src/screens/Search/modules/ExploreSuggestedAccounts.tsx:86
msgid "For You"
msgstr ""
#: src/components/dialogs/MutedWords.tsx:178
msgid "Forever"
msgstr ""
@@ -3545,7 +3575,7 @@ msgstr ""
msgid "Harassment, trolling, or intolerance"
msgstr ""
#: src/Navigation.tsx:397
#: src/Navigation.tsx:406
msgid "Hashtag"
msgstr ""
@@ -3624,6 +3654,10 @@ msgstr ""
msgid "Hide reply for me"
msgstr ""
#: src/screens/Search/modules/ExploreInterestsCard.tsx:110
msgid "Hide this card"
msgstr ""
#: src/view/com/util/forms/PostDropdownBtnMenuItems.tsx:756
msgid "Hide this post?"
msgstr ""
@@ -3688,8 +3722,8 @@ msgstr ""
msgid "Hold up! Were gradually giving access to video, and youre still waiting in line. Check back soon!"
msgstr ""
#: src/Navigation.tsx:626
#: src/Navigation.tsx:646
#: src/Navigation.tsx:635
#: src/Navigation.tsx:655
#: src/view/shell/bottom-bar/BottomBar.tsx:162
#: src/view/shell/desktop/LeftNav.tsx:599
#: src/view/shell/Drawer.tsx:396
@@ -3705,7 +3739,7 @@ msgstr ""
msgid "Hosting provider"
msgstr ""
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:187
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:191
msgid "Hot"
msgstr ""
@@ -3962,7 +3996,7 @@ msgstr ""
msgid "Language selection"
msgstr ""
#: src/Navigation.tsx:177
#: src/Navigation.tsx:178
msgid "Language Settings"
msgstr ""
@@ -4100,8 +4134,8 @@ msgid "Like this labeler"
msgstr ""
#: src/components/LikesDialog.tsx:85
#: src/Navigation.tsx:255
#: src/Navigation.tsx:260
#: src/Navigation.tsx:256
#: src/Navigation.tsx:261
msgid "Liked by"
msgstr ""
@@ -4136,7 +4170,7 @@ msgstr ""
msgid "Linear"
msgstr ""
#: src/Navigation.tsx:210
#: src/Navigation.tsx:211
msgid "List"
msgstr ""
@@ -4194,7 +4228,7 @@ msgctxt "toast"
msgid "List unmuted"
msgstr ""
#: src/Navigation.tsx:139
#: src/Navigation.tsx:140
#: src/view/screens/Lists.tsx:62
#: src/view/screens/Profile.tsx:221
#: src/view/screens/Profile.tsx:229
@@ -4207,15 +4241,11 @@ msgstr ""
msgid "Lists blocking this user:"
msgstr ""
#: src/screens/Search/Explore.tsx:66
#: src/screens/Search/Explore.tsx:68
msgid "Load more"
msgstr ""
#: src/screens/Search/Explore.tsx:392
msgid "Load more suggested accounts"
msgstr ""
#: src/screens/Search/Explore.tsx:480
#: src/screens/Search/Explore.tsx:422
msgid "Load more suggested feeds"
msgstr ""
@@ -4234,7 +4264,7 @@ msgstr ""
msgid "Loading..."
msgstr ""
#: src/Navigation.tsx:280
#: src/Navigation.tsx:281
msgid "Log"
msgstr ""
@@ -4279,8 +4309,8 @@ msgstr ""
msgid "Make sure this is where you intend to go!"
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:59
#: src/screens/Settings/ContentAndMediaSettings.tsx:62
#: src/screens/Settings/ContentAndMediaSettings.tsx:60
#: src/screens/Settings/ContentAndMediaSettings.tsx:63
msgid "Manage saved feeds"
msgstr ""
@@ -4362,7 +4392,7 @@ msgstr ""
msgid "Message options"
msgstr ""
#: src/Navigation.tsx:641
#: src/Navigation.tsx:650
msgid "Messages"
msgstr ""
@@ -4381,7 +4411,7 @@ msgstr ""
msgid "Misleading Post"
msgstr ""
#: src/Navigation.tsx:144
#: src/Navigation.tsx:145
#: src/screens/Moderation/index.tsx:89
#: src/screens/Settings/Settings.tsx:167
#: src/screens/Settings/Settings.tsx:170
@@ -4420,7 +4450,7 @@ msgstr ""
msgid "Moderation lists"
msgstr ""
#: src/Navigation.tsx:149
#: src/Navigation.tsx:150
#: src/view/screens/ModerationModlists.tsx:62
msgid "Moderation Lists"
msgstr ""
@@ -4429,7 +4459,7 @@ msgstr ""
msgid "moderation settings"
msgstr ""
#: src/Navigation.tsx:270
#: src/Navigation.tsx:271
msgid "Moderation states"
msgstr ""
@@ -4552,7 +4582,7 @@ msgstr ""
msgid "Muted accounts"
msgstr ""
#: src/Navigation.tsx:154
#: src/Navigation.tsx:155
#: src/view/screens/ModerationMutedAccounts.tsx:100
msgid "Muted Accounts"
msgstr ""
@@ -4642,7 +4672,7 @@ msgstr ""
msgid "Nevermind, create a handle for me"
msgstr ""
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:192
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:196
msgid "New"
msgstr ""
@@ -4721,7 +4751,7 @@ msgstr ""
#: src/screens/Onboarding/index.tsx:20
#: src/screens/Onboarding/state.ts:108
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:234
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:238
msgid "News"
msgstr ""
@@ -4813,7 +4843,7 @@ msgid "No result"
msgstr ""
#: src/components/dms/dialogs/SearchablePeopleList.tsx:204
#: src/components/ProgressGuide/FollowDialog.tsx:235
#: src/components/ProgressGuide/FollowDialog.tsx:242
msgid "No results"
msgstr ""
@@ -4871,7 +4901,7 @@ msgstr ""
msgid "Not followed by anyone you're following"
msgstr ""
#: src/Navigation.tsx:134
#: src/Navigation.tsx:135
#: src/view/screens/Profile.tsx:122
msgid "Not Found"
msgstr ""
@@ -4899,7 +4929,7 @@ msgstr ""
msgid "Notification filters"
msgstr ""
#: src/Navigation.tsx:422
#: src/Navigation.tsx:431
#: src/view/screens/Notifications.tsx:134
msgid "Notification settings"
msgstr ""
@@ -4916,7 +4946,7 @@ msgstr ""
msgid "Notification Sounds"
msgstr ""
#: src/Navigation.tsx:636
#: src/Navigation.tsx:645
#: src/view/screens/Notifications.tsx:128
#: src/view/shell/bottom-bar/BottomBar.tsx:236
#: src/view/shell/desktop/LeftNav.tsx:636
@@ -5295,11 +5325,11 @@ msgstr ""
msgid "People"
msgstr ""
#: src/Navigation.tsx:197
#: src/Navigation.tsx:198
msgid "People followed by @{0}"
msgstr ""
#: src/Navigation.tsx:190
#: src/Navigation.tsx:191
msgid "People following @{0}"
msgstr ""
@@ -5491,7 +5521,7 @@ msgstr ""
#: src/screens/Onboarding/index.tsx:34
#: src/screens/Onboarding/state.ts:111
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:228
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:232
msgid "Politics"
msgstr ""
@@ -5518,10 +5548,10 @@ msgstr ""
msgid "Post by {0}"
msgstr ""
#: src/Navigation.tsx:223
#: src/Navigation.tsx:230
#: src/Navigation.tsx:237
#: src/Navigation.tsx:244
#: src/Navigation.tsx:224
#: src/Navigation.tsx:231
#: src/Navigation.tsx:238
#: src/Navigation.tsx:245
msgid "Post by @{0}"
msgstr ""
@@ -5556,7 +5586,7 @@ msgstr ""
msgid "Post interaction settings"
msgstr ""
#: src/Navigation.tsx:165
#: src/Navigation.tsx:166
#: src/screens/ModerationInteractionSettings/index.tsx:34
msgid "Post Interaction Settings"
msgstr ""
@@ -5649,12 +5679,12 @@ msgstr ""
msgid "Privacy and security"
msgstr ""
#: src/Navigation.tsx:366
#: src/Navigation.tsx:367
#: src/screens/Settings/PrivacyAndSecuritySettings.tsx:36
msgid "Privacy and Security"
msgstr ""
#: src/Navigation.tsx:290
#: src/Navigation.tsx:291
#: src/screens/Settings/AboutSettings.tsx:51
#: src/screens/Settings/AboutSettings.tsx:54
#: src/view/screens/PrivacyPolicy.tsx:31
@@ -6413,22 +6443,19 @@ msgstr ""
#: src/components/dms/dialogs/SearchablePeopleList.tsx:491
#: src/components/forms/SearchInput.tsx:34
#: src/components/forms/SearchInput.tsx:36
#: src/Navigation.tsx:631
#: src/screens/Search/Shell.tsx:305
#: src/screens/Search/Shell.tsx:462
#: src/screens/Search/Shell.tsx:307
#: src/screens/Search/Shell.tsx:464
#: src/view/com/modals/ListAddRemoveUsers.tsx:76
#: src/view/shell/bottom-bar/BottomBar.tsx:182
#: src/view/shell/desktop/LeftNav.tsx:617
#: src/view/shell/Drawer.tsx:370
msgid "Search"
msgstr ""
#: src/Navigation.tsx:216
#: src/Navigation.tsx:217
#: src/screens/Profile/ProfileSearch.tsx:37
msgid "Search @{0}'s posts"
msgstr ""
#: src/components/ProgressGuide/FollowDialog.tsx:748
#: src/components/ProgressGuide/FollowDialog.tsx:757
msgid "Search by name or interest"
msgstr ""
@@ -6436,8 +6463,8 @@ msgstr ""
msgid "Search feeds"
msgstr ""
#: src/components/ProgressGuide/FollowDialog.tsx:578
#: src/screens/Search/modules/ExploreSuggestedAccounts.tsx:120
#: src/components/ProgressGuide/FollowDialog.tsx:587
#: src/screens/Search/modules/ExploreSuggestedAccounts.tsx:126
msgid "Search for \"{interestsDisplayName}\"{activeText}"
msgstr ""
@@ -6453,15 +6480,15 @@ msgstr ""
msgid "Search for feeds that you want to suggest to others."
msgstr ""
#: src/screens/Search/Explore.tsx:344
#: src/screens/Search/Explore.tsx:302
msgid "Search for more accounts"
msgstr ""
#: src/screens/Search/Explore.tsx:423
#: src/screens/Search/Explore.tsx:365
msgid "Search for more feeds"
msgstr ""
#: src/screens/Search/Shell.tsx:332
#: src/screens/Search/Shell.tsx:334
msgid "Search for posts, users, or feeds"
msgstr ""
@@ -6483,7 +6510,7 @@ msgid "Search posts"
msgstr ""
#: src/components/dms/dialogs/SearchablePeopleList.tsx:511
#: src/components/ProgressGuide/FollowDialog.tsx:767
#: src/components/ProgressGuide/FollowDialog.tsx:776
msgid "Search profiles"
msgstr ""
@@ -6496,7 +6523,7 @@ msgid "Search..."
msgstr ""
#: src/components/dms/dialogs/SearchablePeopleList.tsx:512
#: src/components/ProgressGuide/FollowDialog.tsx:768
#: src/components/ProgressGuide/FollowDialog.tsx:777
msgid "Searches for profiles"
msgstr ""
@@ -6618,6 +6645,7 @@ msgid "Select your date of birth"
msgstr ""
#: src/screens/Onboarding/StepInterests/index.tsx:192
#: src/screens/Settings/SettingsInterests.tsx:157
msgid "Select your interests from the options below"
msgstr ""
@@ -6721,7 +6749,7 @@ msgstr ""
msgid "Sets email for password reset"
msgstr ""
#: src/Navigation.tsx:172
#: src/Navigation.tsx:173
#: src/screens/Settings/Settings.tsx:80
#: src/view/shell/desktop/LeftNav.tsx:709
#: src/view/shell/Drawer.tsx:539
@@ -6810,7 +6838,7 @@ msgstr ""
msgid "Share your favorite feed!"
msgstr ""
#: src/Navigation.tsx:275
#: src/Navigation.tsx:276
msgid "Shared Preferences Tester"
msgstr ""
@@ -7116,7 +7144,7 @@ msgstr ""
#: src/screens/Onboarding/index.tsx:27
#: src/screens/Onboarding/state.ts:113
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:226
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:230
msgid "Sports"
msgstr ""
@@ -7138,8 +7166,8 @@ msgstr ""
msgid "Start chat with {displayName}"
msgstr ""
#: src/Navigation.tsx:432
#: src/Navigation.tsx:437
#: src/Navigation.tsx:441
#: src/Navigation.tsx:446
#: src/screens/StarterPack/Wizard/index.tsx:186
msgid "Starter Pack"
msgstr ""
@@ -7161,7 +7189,7 @@ msgstr ""
msgid "Starter pack is invalid"
msgstr ""
#: src/screens/Search/Explore.tsx:522
#: src/screens/Search/Explore.tsx:464
#: src/view/screens/Profile.tsx:228
msgid "Starter Packs"
msgstr ""
@@ -7183,7 +7211,7 @@ msgstr ""
msgid "Storage cleared, you need to restart the app now."
msgstr ""
#: src/Navigation.tsx:265
#: src/Navigation.tsx:266
#: src/screens/Settings/Settings.tsx:325
msgid "Storybook"
msgstr ""
@@ -7233,7 +7261,7 @@ msgstr ""
msgid "Success!"
msgstr ""
#: src/screens/Search/Explore.tsx:341
#: src/screens/Search/Explore.tsx:299
msgid "Suggested Accounts"
msgstr ""
@@ -7256,7 +7284,7 @@ msgctxt "Name of app icon variant"
msgid "Sunset"
msgstr ""
#: src/Navigation.tsx:285
#: src/Navigation.tsx:286
#: src/view/screens/Support.tsx:31
#: src/view/screens/Support.tsx:34
msgid "Support"
@@ -7343,7 +7371,7 @@ msgstr ""
msgid "Terms"
msgstr ""
#: src/Navigation.tsx:295
#: src/Navigation.tsx:296
#: src/screens/Settings/AboutSettings.tsx:43
#: src/screens/Settings/AboutSettings.tsx:46
#: src/view/screens/TermsOfService.tsx:31
@@ -7538,7 +7566,7 @@ msgstr ""
msgid "There was an issue fetching notifications. Tap here to try again."
msgstr ""
#: src/screens/Search/Explore.tsx:837
#: src/screens/Search/Explore.tsx:804
#: src/view/com/posts/PostFeed.tsx:607
msgid "There was an issue fetching posts. Tap here to try again."
msgstr ""
@@ -7826,8 +7854,8 @@ msgstr ""
msgid "Thread options"
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:67
#: src/screens/Settings/ContentAndMediaSettings.tsx:70
#: src/screens/Settings/ContentAndMediaSettings.tsx:68
#: src/screens/Settings/ContentAndMediaSettings.tsx:71
msgid "Thread preferences"
msgstr ""
@@ -7844,7 +7872,7 @@ msgstr ""
msgid "Threaded mode"
msgstr ""
#: src/Navigation.tsx:328
#: src/Navigation.tsx:329
msgid "Threads Preferences"
msgstr ""
@@ -7890,7 +7918,7 @@ msgstr ""
msgid "Top"
msgstr ""
#: src/Navigation.tsx:402
#: src/Navigation.tsx:411
msgid "Topic"
msgstr ""
@@ -8212,8 +8240,8 @@ msgstr ""
msgid "Use in-app browser"
msgstr ""
#: src/screens/Settings/ContentAndMediaSettings.tsx:93
#: src/screens/Settings/ContentAndMediaSettings.tsx:99
#: src/screens/Settings/ContentAndMediaSettings.tsx:102
#: src/screens/Settings/ContentAndMediaSettings.tsx:108
msgid "Use in-app browser to open links"
msgstr ""
@@ -8367,7 +8395,7 @@ msgstr ""
msgid "Video failed to process"
msgstr ""
#: src/Navigation.tsx:453
#: src/Navigation.tsx:462
msgid "Video Feed"
msgstr ""
@@ -8377,7 +8405,7 @@ msgstr ""
#: src/screens/Onboarding/index.tsx:39
#: src/screens/Onboarding/state.ts:103
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:230
#: src/screens/Search/modules/ExploreTrendingTopics.tsx:234
msgid "Video Games"
msgstr ""
@@ -8574,6 +8602,10 @@ msgstr ""
msgid "We ran out of posts from your follows. Here's the latest from <0/>."
msgstr ""
#: src/screens/Settings/SettingsInterests.tsx:150
msgid "We recommend selecting at least two interests."
msgstr ""
#: src/view/com/composer/state/video.ts:417
msgid "We were unable to determine if you are allowed to upload videos. Please try again."
msgstr ""
@@ -8599,7 +8631,7 @@ msgid "We'll use this to help customize your experience."
msgstr ""
#: src/components/dms/dialogs/SearchablePeopleList.tsx:92
#: src/components/ProgressGuide/FollowDialog.tsx:157
#: src/components/ProgressGuide/FollowDialog.tsx:164
msgid "We're having network issues, try again"
msgstr ""
@@ -8791,6 +8823,10 @@ msgstr ""
msgid "You are not following anyone."
msgstr ""
#: src/screens/Search/modules/ExploreInterestsCard.tsx:45
msgid "You can adjust your interests at any time from your \"Content and media\" settings."
msgstr ""
#: src/view/com/posts/FollowingEmptyState.tsx:63
#: src/view/com/posts/FollowingEndOfFeed.tsx:64
msgid "You can also discover new Custom Feeds to follow."
@@ -9153,6 +9189,19 @@ msgstr ""
msgid "Your full username will be <0>@{0}</0>"
msgstr ""
#: src/Navigation.tsx:383
#: src/screens/Search/modules/ExploreInterestsCard.tsx:43
#: src/screens/Search/modules/ExploreInterestsCard.tsx:67
#: src/screens/Settings/ContentAndMediaSettings.tsx:92
#: src/screens/Settings/ContentAndMediaSettings.tsx:95
#: src/screens/Settings/SettingsInterests.tsx:39
msgid "Your interests"
msgstr ""
#: src/screens/Search/modules/ExploreInterestsCard.tsx:94
msgid "Your interests help us find what you like!"
msgstr ""
#: src/components/dialogs/MutedWords.tsx:369
msgid "Your muted words"
msgstr ""
@@ -9192,3 +9241,7 @@ msgstr ""
#: src/components/dms/ReportDialog.tsx:200
msgid "Your report will be sent to the Bluesky Moderation Service"
msgstr ""
#: src/screens/Settings/SettingsInterests.tsx:53
msgid "Your selected interests help us serve you content you care about."
msgstr ""
-1
View File
@@ -330,7 +330,6 @@ export type MetricEvents = {
| 'suggestedFeeds'
| 'suggestedStarterPacks'
| `feed:${FeedDescriptor}`
index: number
}
'explore:module:searchButtonPress': {
module: 'suggestedAccounts' | 'suggestedFeeds'
+22 -32
View File
@@ -1,5 +1,5 @@
import {useCallback, useMemo, useRef, useState} from 'react'
import {View, type ViewabilityConfig, type ViewToken} from 'react-native'
import {View, type ViewabilityConfig} from 'react-native'
import {
type AppBskyActorDefs,
type AppBskyFeedDefs,
@@ -837,36 +837,26 @@ export function Explore({
// track headers and report module viewability
const alreadyReportedRef = useRef<Map<string, string>>(new Map())
const onViewableItemsChanged = useCallback(
({
viewableItems,
}: {
viewableItems: ViewToken<ExploreScreenItems>[]
changed: ViewToken<ExploreScreenItems>[]
}) => {
for (const {item, index} of viewableItems.filter(vi => vi.isViewable)) {
let module: MetricEvents['explore:module:seen']['module']
if (item.type === 'trendingTopics' || item.type === 'trendingVideos') {
module = item.type
} else if (item.type === 'profile') {
module = 'suggestedAccounts'
} else if (item.type === 'feed') {
module = 'suggestedFeeds'
} else if (item.type === 'starterPack') {
module = 'suggestedStarterPacks'
} else if (item.type === 'preview:header') {
module = `feed:feedgen|${item.feed.uri}`
} else {
continue
}
if (!alreadyReportedRef.current.has(module)) {
alreadyReportedRef.current.set(module, module)
logger.metric('explore:module:seen', {module, index: index ?? -1})
}
}
},
[],
)
const onItemSeen = useCallback((item: ExploreScreenItems) => {
let module: MetricEvents['explore:module:seen']['module']
if (item.type === 'trendingTopics' || item.type === 'trendingVideos') {
module = item.type
} else if (item.type === 'profile') {
module = 'suggestedAccounts'
} else if (item.type === 'feed') {
module = 'suggestedFeeds'
} else if (item.type === 'starterPack') {
module = 'suggestedStarterPacks'
} else if (item.type === 'preview:sliceItem') {
module = `feed:feedgen|${item.feed.uri}`
} else {
return
}
if (!alreadyReportedRef.current.has(module)) {
alreadyReportedRef.current.set(module, module)
logger.metric('explore:module:seen', {module})
}
}, [])
return (
<List
@@ -879,7 +869,7 @@ export function Explore({
keyboardDismissMode="on-drag"
stickyHeaderIndices={native(stickyHeaderIndices)}
viewabilityConfig={viewabilityConfig}
onViewableItemsChanged={onViewableItemsChanged}
onItemSeen={onItemSeen}
onEndReached={onLoadMoreFeedPreviews}
onEndReachedThreshold={3}
initialNumToRender={initialNumToRender}
@@ -8,6 +8,7 @@ import {usePreferencesQuery} from '#/state/queries/preferences'
import {useInterestsDisplayNames} from '#/screens/Onboarding/state'
import {atoms as a, useTheme} from '#/alf'
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
import {Shapes_Stroke2_Corner0_Rounded as Shapes} from '#/components/icons/Shapes'
import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
import {Link} from '#/components/Link'
import * as Prompt from '#/components/Prompt'
@@ -52,19 +53,20 @@ export function ExploreInterestsCard() {
onConfirm={onConfirmClose}
/>
<View style={[a.p_lg, a.pb_2xs]}>
<View style={[a.pb_2xs]}>
<View
style={[
a.p_lg,
a.rounded_md,
a.border,
a.gap_sm,
a.border_b,
a.gap_md,
t.atoms.border_contrast_medium,
t.atoms.bg_contrast_25,
]}>
<Text style={[a.text_md, a.font_bold, a.leading_tight]}>
<Trans>Your interests</Trans>
</Text>
<View style={[a.flex_row, a.gap_sm, a.align_center]}>
<Shapes />
<Text style={[a.text_xl, a.font_bold, a.leading_tight]}>
<Trans>Your interests</Trans>
</Text>
</View>
{preferences?.interests?.tags &&
preferences.interests.tags.length > 0 ? (
@@ -76,12 +78,11 @@ export function ExploreInterestsCard() {
a.justify_center,
a.align_center,
a.rounded_full,
a.border,
t.atoms.border_contrast_medium,
t.atoms.bg_contrast_25,
a.px_lg,
{height: 32},
]}>
<Text style={[a.text_sm, t.atoms.text_contrast_medium]}>
<Text style={[a.text_sm, t.atoms.text_contrast_high]}>
{interestsDisplayNames[tag]}
</Text>
</View>
@@ -89,10 +90,8 @@ export function ExploreInterestsCard() {
</View>
) : null}
<Text style={[a.text_sm, a.leading_snug, a.pb_xs]}>
<Trans>
Your selected interests help us serve you content you care about.
</Trans>
<Text style={[a.text_sm, a.leading_snug]}>
<Trans>Your interests help us find what you like!</Trans>
</Text>
<Link
@@ -110,15 +109,15 @@ export function ExploreInterestsCard() {
<Button
label={_(msg`Hide this card`)}
size="small"
variant="solid"
variant="ghost"
color="secondary"
shape="round"
onPress={onClose}
style={[
a.absolute,
{top: a.pt_xs.paddingTop, right: a.pr_xs.paddingRight},
{top: a.pt_sm.paddingTop, right: a.pr_sm.paddingRight},
]}>
<ButtonIcon icon={X} />
<ButtonIcon icon={X} size="md" />
</Button>
</View>
</View>
+21 -1
View File
@@ -10,6 +10,9 @@ import {
usePreferencesQuery,
} from '#/state/queries/preferences'
import {type UsePreferencesQueryResponse} from '#/state/queries/preferences/types'
import {createGetSuggestedFeedsQueryKey} from '#/state/queries/trending/useGetSuggestedFeedsQuery'
import {createGetSuggestedUsersQueryKey} from '#/state/queries/trending/useGetSuggestedUsersQuery'
import {createSuggestedStarterPacksQueryKey} from '#/state/queries/useSuggestedStarterPacksQuery'
import {useAgent} from '#/state/session'
import * as Toast from '#/view/com/util/Toast'
import {useInterestsDisplayNames} from '#/screens/Onboarding/state'
@@ -98,7 +101,24 @@ function Inner({
try {
await agent.setInterestsPref({tags: interests})
await qc.invalidateQueries({queryKey: preferencesQueryKey})
qc.setQueriesData(
{queryKey: preferencesQueryKey},
(old?: UsePreferencesQueryResponse) => {
if (!old) return old
old.interests.tags = interests
return old
},
)
await Promise.all([
await qc.resetQueries({
queryKey: createSuggestedStarterPacksQueryKey(),
}),
await qc.resetQueries({queryKey: createGetSuggestedFeedsQueryKey()}),
await qc.resetQueries({
queryKey: createGetSuggestedUsersQueryKey({}),
}),
])
Toast.show(
_(msg({message: 'Content preferences updated!', context: 'toast'})),
)
@@ -73,6 +73,7 @@ export type FeedPreviewItem =
key: string
slice: FeedPostSlice
indexInSlice: number
feed: AppBskyFeedDefs.GeneratorView
showReplyTo: boolean
hideTopBorder: boolean
}
@@ -202,6 +203,7 @@ export function useFeedPreviews(
key: slice.items[0]._reactKey,
slice: slice,
indexInSlice: 0,
feed: page.feed,
showReplyTo: false,
hideTopBorder: rowIndex === 0,
})
@@ -215,6 +217,7 @@ export function useFeedPreviews(
key: slice.items[beforeLast]._reactKey,
slice: slice,
indexInSlice: beforeLast,
feed: page.feed,
showReplyTo:
slice.items[beforeLast].parentAuthor?.did !==
slice.items[beforeLast].post.author.did,
@@ -225,6 +228,7 @@ export function useFeedPreviews(
key: slice.items[last]._reactKey,
slice: slice,
indexInSlice: last,
feed: page.feed,
showReplyTo: false,
hideTopBorder: false,
})
@@ -235,6 +239,7 @@ export function useFeedPreviews(
key: slice.items[i]._reactKey,
slice: slice,
indexInSlice: i,
feed: page.feed,
showReplyTo: i === 0,
hideTopBorder: i === 0 && rowIndex === 0,
})
@@ -11,7 +11,7 @@ import {useAgent} from '#/state/session'
export const DEFAULT_LIMIT = 5
export const createGetTrendsQueryKey = () => ['suggested-feeds']
export const createGetSuggestedFeedsQueryKey = () => ['suggested-feeds']
export function useGetSuggestedFeedsQuery() {
const agent = useAgent()
@@ -22,7 +22,7 @@ export function useGetSuggestedFeedsQuery() {
enabled: !!preferences,
refetchOnWindowFocus: true,
staleTime: STALE.MINUTES.ONE,
queryKey: createGetTrendsQueryKey(),
queryKey: createGetSuggestedFeedsQueryKey(),
queryFn: async () => {
const contentLangs = getContentLanguages().join(',')
const {data} = await agent.app.bsky.unspecced.getSuggestedFeeds(
+486 -489
View File
File diff suppressed because it is too large Load Diff