diff --git a/packages/app/cypress/component/footer.cy.tsx b/packages/app/cypress/component/footer.cy.tsx index 449eeb2..15c1baa 100644 --- a/packages/app/cypress/component/footer.cy.tsx +++ b/packages/app/cypress/component/footer.cy.tsx @@ -28,13 +28,12 @@ describe('Footer', () => { it('shows the GitHub star CTA linking to GitHub repo', () => { cy.get('[data-testid="footer-star-cta"]').should('be.visible'); cy.get('[data-testid="footer-star-cta"]') - .find('a') .should('have.attr', 'href') .and('include', 'github.com/SemiAnalysisAI/InferenceX'); }); it('footer star CTA opens in new tab', () => { - cy.get('[data-testid="footer-star-cta"] a').should('have.attr', 'target', '_blank'); + cy.get('[data-testid="footer-star-cta"]').should('have.attr', 'target', '_blank'); }); it('shows social share buttons', () => { diff --git a/packages/app/src/components/footer/footer-star-cta.tsx b/packages/app/src/components/footer/footer-star-cta.tsx index 797a39c..f0b954b 100644 --- a/packages/app/src/components/footer/footer-star-cta.tsx +++ b/packages/app/src/components/footer/footer-star-cta.tsx @@ -1,5 +1,6 @@ 'use client'; +import { Button } from '@/components/ui/button'; import { track } from '@/lib/analytics'; import { Star } from 'lucide-react'; import Link from 'next/link'; @@ -8,33 +9,30 @@ import { useGitHubStars } from '@/hooks/api/use-github-stars'; const GITHUB_REPO_URL = 'https://github.com/SemiAnalysisAI/InferenceX'; -export function FooterStarCta() { +export function FooterStarButton() { const { data } = useGitHubStars(); const stars = data?.stars ?? null; return ( -
- InferenceX is open source. If this data helps your work, a star on GitHub goes a long way. -
track('footer_star_cta_clicked', { stars: stars ?? 0 })} > -Share InferenceX with your network
-+ InferenceX is open source. If this data helps your work, star us or share with your + network. +
+