Repository navigation
Lint: use Link, drop leftovers, and defer compact quotes - #23
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Susan (Grok Bot)]
App version stays 1.2.0. No dependency, engine, CI, or
npm auditchanges.Commits
e23544a— Susansrc/_components/SiteFooter.tsx— Testimonials, Legal, and Privacy now useLinkfromnext/linkinstead 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 usesLinkinstead of<a href="/">. Class names and focus-visible styles are unchanged.src/_components/sections/GalleryGrid.tsx— removed the unusedTagimport.vitest.setup.ts— removed the unusedeslint-disable-next-line no-vardirective.74a10a6— Grantsrc/_components/HeaderNav.tsx— removedmounted/setMounted. The mobile menu renders whenmobileOpenis true.mobileOpenstartsfalse.src/_components/sections/CompactTestimonialQuote.tsx— new client component. Picks a snippet after mount and fades in the quote, attribution, and CTA together.aria-busywhile the snippet is unset.src/_components/sections/TestimonialSection.tsx— compact mode delegates to that component.temp.ts— deleted.7936e09— Susansrc/_components/sections/CompactTestimonialQuote.tsx—setSnippetnow runs insiderequestAnimationFrame, withcancelAnimationFrameon cleanup. This clearsreact-hooks/set-state-in-effect. The second effect (setVisiblein its own animation frame) is unchanged, so the fade-in is not skipped.src/_components/SectionRenderer.test.tsx— the compact-quote case waits withfindByText("View all testimonials"). The link is not in the document until that frame sets the snippet, so the previous synchronousgetByTextfailed. No other assertion changed.The file comment on
CompactTestimonialQuotestill matches: the snippet is chosen after mount, and the quote, attribution, and CTA reveal together. Noeslint-disablewas added.Checks
npm ci— succeeded (postinstallprisma 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 tomainand on pull requests it only runsnpm ciandnpm run test:run(Node 24). This PR does not change that workflow.