diff --git a/src/components/AppSidebar.test.tsx b/src/components/AppSidebar.test.tsx index 33dae8ea..312d5fae 100644 --- a/src/components/AppSidebar.test.tsx +++ b/src/components/AppSidebar.test.tsx @@ -123,6 +123,16 @@ describe('AppSidebar', () => { expect(mockNavigate).toHaveBeenCalledWith('/dmca'); }); + it('hides the sidebar imported Vines total', () => { + render( + + + , + ); + + expect(screen.queryByText(/vines (recovered|recuperados)/i)).not.toBeInTheDocument(); + }); + it('shows the App Store badge when Apple lookup finds the regional listing', async () => { setLanguages(['en-NZ']); diff --git a/src/components/AppSidebar.tsx b/src/components/AppSidebar.tsx index 915dda66..2e1aac7c 100644 --- a/src/components/AppSidebar.tsx +++ b/src/components/AppSidebar.tsx @@ -23,7 +23,6 @@ import { LoginArea } from '@/components/auth/LoginArea'; import { cn } from '@/lib/utils'; import { feedUrls } from '@/lib/feedUrls'; import { useRssFeedAvailable } from '@/hooks/useRssFeedAvailable'; -import { usePlatformStats } from '@/hooks/usePlatformStats'; import { LanguageMenu } from '@/components/LanguageMenu'; import { getTranslatedCategoryLabel } from '@/lib/constants/categories'; import { getPreferredAppStoreCountry, lookupAppStoreUrl, PLAY_STORE_URL } from '@/lib/mobileStoreLinks'; @@ -68,14 +67,12 @@ export function AppSidebar({ className }: { className?: string }) { const { data: unreadCount } = useUnreadNotificationCount(); const { data: unreadDmCount } = useUnreadDmCount(); const rssFeedAvailable = useRssFeedAvailable(); - const { data: platformStats } = usePlatformStats(); const [categoriesOpen, setCategoriesOpen] = useState(true); const [rssOpen, setRssOpen] = useState(false); const [divineOpen, setDivineOpen] = useState(false); const [termsOpen, setTermsOpen] = useState(false); const [appStoreUrl, setAppStoreUrl] = useState(null); const { data: categories } = useCategories(); - const classicVinesRecovered = platformStats?.vine_videos?.toLocaleString(); const isActive = (path: string) => location.pathname === path; const isDiscoveryActive = () => @@ -398,11 +395,6 @@ export function AppSidebar({ className }: { className?: string }) { >
{t('footer.aboutDivine')}
- {classicVinesRecovered && ( -
- {t('footer.vinesRecovered', { count: classicVinesRecovered })} -
- )}
{ + it('shows the profile video count stat', () => { + render( + + + + ); + + expect(screen.getByText('Videos')).toBeInTheDocument(); + expect(screen.getByText('10')).toBeInTheDocument(); + }); + it('shows clickable legacy socials for classic viners only', () => { render(