Include recId with log event for suggested profiles (#10075)

This commit is contained in:
DS Boyce
2026-03-20 09:39:51 -07:00
committed by GitHub
parent 74d8ca8fa7
commit 0e1e790c34
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -521,6 +521,7 @@ export type Events = {
| 'InterstitialProfile'
| 'Profile'
| 'Onboarding'
recId?: number | string
}
'suggestedUser:dismiss': {
logContext: 'InterstitialDiscover' | 'InterstitialProfile'
+5 -1
View File
@@ -215,13 +215,14 @@ export function SuggestedFollows({feed}: {feed: FeedDescriptor}) {
}
export function SuggestedFollowsProfile({did}: {did: string}) {
const {profiles, onDismiss, isLoading, error} =
const {profiles, recId, onDismiss, isLoading, error} =
useSuggestedFollowsByActorWithDismiss({did})
return (
<ProfileGrid
isSuggestionsLoading={isLoading}
profiles={profiles}
recId={recId}
error={error}
viewContext="profile"
onDismiss={onDismiss}
@@ -275,6 +276,7 @@ export function ProfileGrid({
isSuggestionsLoading,
error,
profiles,
recId,
totalProfileCount,
viewContext = 'feed',
onDismiss,
@@ -283,6 +285,7 @@ export function ProfileGrid({
}: {
isSuggestionsLoading: boolean
profiles: {actor: bsky.profile.AnyProfileView; recId?: string}[]
recId?: string
totalProfileCount?: number
error: Error | null
viewContext: 'profile' | 'profileHeader' | 'feed'
@@ -572,6 +575,7 @@ export function ProfileGrid({
followDialogControl.open()
ax.metric('suggestedUser:seeMore', {
logContext: isFeedContext ? 'Explore' : 'Profile',
recId,
})
}}>
{({hovered}) => (
+1
View File
@@ -92,6 +92,7 @@ export function useSuggestedFollowsByActorWithDismiss({
return {
profiles,
recId: data?.recId,
onDismiss,
isLoading,
error,