fix claude feedback

This commit is contained in:
Samuel Newman
2026-01-26 22:59:38 +02:00
parent c71db3172c
commit 4b4dd37f7e
2 changed files with 17 additions and 14 deletions
-1
View File
@@ -404,7 +404,6 @@ export function ProfileGrid({
profiles: {actor: bsky.profile.AnyProfileView; recId?: number}[] profiles: {actor: bsky.profile.AnyProfileView; recId?: number}[]
totalProfileCount?: number totalProfileCount?: number
error: Error | null error: Error | null
dismissingDids?: Set<string>
viewContext: 'profile' | 'profileHeader' | 'feed' viewContext: 'profile' | 'profileHeader' | 'feed'
onDismiss?: (did: string) => void onDismiss?: (did: string) => void
isVisible?: boolean isVisible?: boolean
+17 -13
View File
@@ -208,6 +208,15 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) {
} }
} }
if (
hasSearchText &&
!isFetchingSearchResults &&
!_items.length &&
!isSearchResultsError
) {
_items.push({type: 'empty', key: 'empty', message: _(msg`No results`)})
}
return _items return _items
}, [ }, [
_, _,
@@ -220,17 +229,9 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) {
currentAccount?.did, currentAccount?.did,
hasSearchText, hasSearchText,
resultsKey, resultsKey,
isSearchResultsError,
]) ])
if (
searchText &&
!isFetchingSearchResults &&
!items.length &&
!isSearchResultsError
) {
items.push({type: 'empty', key: 'empty', message: _(msg`No results`)})
}
const renderItems = useCallback( const renderItems = useCallback(
({item, index}: {item: Item; index: number}) => { ({item, index}: {item: Item; index: number}) => {
switch (item.type) { switch (item.type) {
@@ -284,10 +285,13 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) {
} }
} }
}, },
).current )
const viewabilityConfig = useRef({ const viewabilityConfig = useMemo(
itemVisiblePercentThreshold: 50, () => ({
}).current itemVisiblePercentThreshold: 50,
}),
[],
)
const onSelectTab = useCallback( const onSelectTab = useCallback(
(interest: string) => { (interest: string) => {