Skip to content

Lint: use Link, drop leftovers, and defer compact quotes - #23

Merged
glindsay65 merged 3 commits into
developfrom
cursor/lint-link-unused-imports-dee0
Nov 12, 2026
Merged

glindsay65 merged 3 commits into
developfrom
cursor/lint-link-unused-imports-dee0

Conversation

@glindsay65

@glindsay65 glindsay65 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

[Susan (Grok Bot)]

App version stays 1.2.0. No dependency, engine, CI, or npm audit changes.

Commits

e23544a — Susan

  • src/_components/SiteFooter.tsx — Testimonials, Legal, and Privacy now use Link from next/link instead of <a href="/testimonials">, <a href="/legal">, and <a href="/privacy">. Visible text, hrefs, and class names are unchanged. Resume and channel links stay <a>.
  • src/_components/SiteHeader.tsx — the logo lockup now uses Link instead of <a href="/">. Class names and focus-visible styles are unchanged.
  • src/_components/sections/GalleryGrid.tsx — removed the unused Tag import.
  • vitest.setup.ts — removed the unused eslint-disable-next-line no-var directive.

74a10a6 — Grant

  • src/_components/HeaderNav.tsx — removed mounted / setMounted. The mobile menu renders when mobileOpen is true. mobileOpen starts false.
  • src/_components/sections/CompactTestimonialQuote.tsx — new client component. Picks a snippet after mount and fades in the quote, attribution, and CTA together. aria-busy while the snippet is unset.
  • src/_components/sections/TestimonialSection.tsx — compact mode delegates to that component.
  • temp.ts — deleted.
  • Grant verified the Preview.

7936e09 — Susan

  • src/_components/sections/CompactTestimonialQuote.tsx — setSnippet now runs inside requestAnimationFrame, with cancelAnimationFrame on cleanup. This clears react-hooks/set-state-in-effect. The second effect (setVisible in its own animation frame) is unchanged, so the fade-in is not skipped.
  • src/_components/SectionRenderer.test.tsx — the compact-quote case waits with findByText("View all testimonials"). The link is not in the document until that frame sets the snippet, so the previous synchronous getByText failed. No other assertion changed.

The file comment on CompactTestimonialQuote still matches: the snippet is chosen after mount, and the quote, attribution, and CTA reveal together. No eslint-disable was added.

Checks

  • npm ci — succeeded (postinstall prisma generate).
  • npm run lint — exit 0. ESLint printed no problems.
  • npm run test:run — exit 0. 9 files, 68 tests passed (Vitest 4.1.8).
  • npx tsc --noEmit — exit 0, no diagnostics.

CI (.github/workflows/ci.yml) does not run lint. On push to main and on pull requests it only runs npm ci and npm run test:run (Node 24). This PR does not change that workflow.

Open in Web Open in Cursor 

Replace internal page anchors in the header and footer with next/link,
remove the unused Tag import, and drop a stale eslint-disable.

Co-authored-by: Grant Lindsay <glindsay65@users.noreply.github.com>
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 12, 2026 5:14pm UTC

Request Review

…nents

Deleted the unused temp.ts file containing outdated section types and interfaces. Updated the HeaderNav component to simplify mobile menu logic by removing the mounted state. Introduced a new CompactTestimonialQuote component for improved testimonial rendering, replacing the previous inline logic in TestimonialSection for compact mode.
Wait for that frame in the compact-quote renderer test before asserting
the testimonials link.

Co-authored-by: Grant Lindsay <glindsay65@users.noreply.github.com>
@cursor cursor Bot changed the title Lint: use Link and drop unused imports Lint: use Link, drop leftovers, and defer compact quotes Nov 12, 2026
@glindsay65
glindsay65 merged commit 172fd3c into develop Nov 12, 2026
4 checks passed
@glindsay65
glindsay65 deleted the cursor/lint-link-unused-imports-dee0 branch November 12, 2026 17:22

This branch was successfully deployed

1 active deployment
Preview — 7936e09c Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants