Skip to content

Add MiniMax supporter quote + randomize carousel starting quote#501

Merged
Oseltamivir merged 4 commits into
masterfrom
add-quote-minimax
Jun 26, 2026
Merged

Add MiniMax supporter quote + randomize carousel starting quote#501
Oseltamivir merged 4 commits into
masterfrom
add-quote-minimax

Conversation

@Oseltamivir

@Oseltamivir Oseltamivir commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  1. Adds a supporter quote from Ryan Lee (Head of DevRel, MiniMax) to the /quotes page and the homepage carousel.
  2. Restores per-load variety in the quote carousel by randomizing the starting quote — without reintroducing the CLS regression that Fix landing accessibility and layout stability #495 removed.

Changes

MiniMax quote

  • New entry in quotes-data.ts linking to x.com/RyanLeeMiniMax
  • Added public/logos/minimax.svg (monochrome currentColor mark from LobeHub, matching siblings rendered grayscale … dark:invert)
  • Added 'MiniMax' to CAROUSEL_ORGS

Carousel randomness (CLS-safe)

  • A post-hydration effect sets a random activeIndex. Since all quotes are grid-stacked at a fixed height and selection only toggles opacity/visibility, this never shifts layout.
  • SSR stays deterministic (server always renders index 0), so the crawled HTML is stable for SEO — this is what Fix landing accessibility and layout stability #495 fixed, and it's preserved here.
  • Sequential rotation continues from the random offset, so the appearance order also varies per load (no full shuffle needed).

Verification

  • pnpm lint, pnpm fmt, pnpm typecheck all pass (pre-commit hook)

Note

Low Risk
Marketing/content and client-only carousel UX with existing CLS/performance guards; no auth, data, or API changes.

Overview
Adds a MiniMax supporter quote (Ryan Lee) to the quotes list and homepage carousel, with a new minimax.svg logo and 'MiniMax' in CAROUSEL_ORGS.

The quote carousel picks a random active quote after hydration while SSR still starts at index 0, so layout stays fixed (no CLS) and crawled HTML stays stable. Auto-rotation continues sequentially from that offset. Org strip buttons prefetch logos on hover/focus so switching quotes paints faster without loading every logo on first paint.

The mobile landing performance test now expects fewer than three /logos/ fetches (SSR logo plus at most one post-hydration swap), instead of asserting no Hugging Face logo loads.

Reviewed by Cursor Bugbot for commit f850910. Bugbot is set up for automated code reviews on this repo. Configure here.

Adds a supporter quote from Ryan Lee (Head of DevRel, MiniMax) to the
quotes page, with the MiniMax logo, and includes MiniMax in the homepage
quote carousel.
@Oseltamivir Oseltamivir requested a review from adibarra as a code owner June 26, 2026 11:29
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
inferencemax-app Ready Ready Preview, Comment Jun 26, 2026 1:14pm

Request Review

Picks a random starting quote after hydration via a post-mount effect that
only sets activeIndex. Because all quotes are grid-stacked at a fixed height
and selection toggles opacity, this never shifts layout. SSR stays
deterministic (index 0), keeping the crawled HTML stable for SEO. Sequential
rotation continues from the random offset, varying appearance order per load.
@Oseltamivir Oseltamivir changed the title Add MiniMax supporter quote from Ryan Lee Add MiniMax supporter quote + randomize carousel starting quote Jun 26, 2026
Previously only the active quote's logo was in the DOM, so selecting a new
company mounted its <img> for the first time and waited on a network fetch +
decode before the logo appeared. Render every entry's logo instead: all
images load once up front and switching is instant. Layout-neutral — the img
matches the previous placeholder's 40px footprint and blocks are grid-stacked.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e7ea5c1. Configure here.

Comment thread packages/app/src/components/quote-carousel.tsx Outdated
@blacksmith-sh

This comment has been minimized.

Reverts eager rendering of all carousel logos, which regressed the tested
mobile-landing perf guarantee (React emits an image preload per SSR'd <img>,
so all 23 logos were preloaded/loaded). Instead, prefetch a company's logo on
hover/focus of its org button, warming the cache on user intent so the logo
paints instantly on select while the initial load still fetches only the
visible logo.

Updates the mobile perf test to assert the carousel never eager-loads the full
logo set (at most the SSR logo plus the random starting quote's logo), instead
of pinning a specific logo that the random start could now surface.
@Oseltamivir Oseltamivir merged commit 2b3e721 into master Jun 26, 2026
18 checks passed
@Oseltamivir Oseltamivir deleted the add-quote-minimax branch June 26, 2026 13:23
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.

1 participant