Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

DS Boyce and committed by
GitHub
0e1e790c 74d8ca8f

+7 -1
+1
src/analytics/metrics/types.ts
··· 521 521 | 'InterstitialProfile' 522 522 | 'Profile' 523 523 | 'Onboarding' 524 + recId?: number | string 524 525 } 525 526 'suggestedUser:dismiss': { 526 527 logContext: 'InterstitialDiscover' | 'InterstitialProfile'
+5 -1
src/components/FeedInterstitials.tsx
··· 215 215 } 216 216 217 217 export function SuggestedFollowsProfile({did}: {did: string}) { 218 - const {profiles, onDismiss, isLoading, error} = 218 + const {profiles, recId, onDismiss, isLoading, error} = 219 219 useSuggestedFollowsByActorWithDismiss({did}) 220 220 221 221 return ( 222 222 <ProfileGrid 223 223 isSuggestionsLoading={isLoading} 224 224 profiles={profiles} 225 + recId={recId} 225 226 error={error} 226 227 viewContext="profile" 227 228 onDismiss={onDismiss} ··· 275 276 isSuggestionsLoading, 276 277 error, 277 278 profiles, 279 + recId, 278 280 totalProfileCount, 279 281 viewContext = 'feed', 280 282 onDismiss, ··· 283 285 }: { 284 286 isSuggestionsLoading: boolean 285 287 profiles: {actor: bsky.profile.AnyProfileView; recId?: string}[] 288 + recId?: string 286 289 totalProfileCount?: number 287 290 error: Error | null 288 291 viewContext: 'profile' | 'profileHeader' | 'feed' ··· 572 575 followDialogControl.open() 573 576 ax.metric('suggestedUser:seeMore', { 574 577 logContext: isFeedContext ? 'Explore' : 'Profile', 578 + recId, 575 579 }) 576 580 }}> 577 581 {({hovered}) => (
+1
src/state/queries/suggested-follows.ts
··· 92 92 93 93 return { 94 94 profiles, 95 + recId: data?.recId, 95 96 onDismiss, 96 97 isLoading, 97 98 error,