Repository navigation
www: homepage - #47228
www: homepage#47228
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Caution Review failedAn error occurred during the review process. Please try again later. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/www/app/`(home)/_components/CommunitySectionV2.tsx:
- Around line 51-53: The Link component with
href="https://discord.supabase.com/" and target="_blank" is missing the
rel="noopener noreferrer" attribute, which creates a security vulnerability by
exposing window.opener. Add the rel="noopener noreferrer" attribute to this Link
component and apply the same fix to the other external link with target="_blank"
mentioned around lines 90-95 in the same file.
In `@apps/www/app/`(home)/_components/CTASection.tsx:
- Around line 27-54: The useContributors hook is making two unnecessary GitHub
API calls to fetch contributors data, but the only consumer of this data (around
line 156) is commented out and not actively being used. Remove or comment out
the invocation of useContributors on line 152 to eliminate these unnecessary API
requests on the homepage since there is no active consumer of the returned
contributors data. This will prevent the avoidable external I/O overhead on a
critical route.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: fe295cf8-08b3-483c-8803-76f820f39002
⛔ Files ignored due to path filters (18)
apps/www/public/images/customers/logos/chatbase-icon.svgis excluded by!**/*.svgapps/www/public/images/customers/logos/e2b-icon.svgis excluded by!**/*.svgapps/www/public/images/customers/logos/firecrawl-icon.svgis excluded by!**/*.svgapps/www/public/images/customers/logos/hyper-icon.svgis excluded by!**/*.svgapps/www/public/images/customers/logos/markprompt-icon.svgis excluded by!**/*.svgapps/www/public/images/customers/logos/mobbin-icon.svgis excluded by!**/*.svgapps/www/public/images/customers/logos/rally-icon.svgis excluded by!**/*.svgapps/www/public/images/customers/logos/resend-icon.svgis excluded by!**/*.svgapps/www/public/images/logos/frameworks/expo.svgis excluded by!**/*.svgapps/www/public/images/logos/frameworks/flutter.svgis excluded by!**/*.svgapps/www/public/images/logos/frameworks/langchain.svgis excluded by!**/*.svgapps/www/public/images/logos/frameworks/nestjs.svgis excluded by!**/*.svgapps/www/public/images/logos/frameworks/nextjs.svgis excluded by!**/*.svgapps/www/public/images/logos/frameworks/openai.svgis excluded by!**/*.svgapps/www/public/images/logos/frameworks/stripe.svgis excluded by!**/*.svgapps/www/public/images/logos/frameworks/vercel.svgis excluded by!**/*.svgapps/www/public/images/logos/publicity/bolt-team.pngis excluded by!**/*.pngapps/www/public/images/logos/publicity/lovable-team.pngis excluded by!**/*.png
📒 Files selected for processing (21)
apps/www/app/(home)/_components/BuiltWithSupabaseSection.tsxapps/www/app/(home)/_components/CTASection.tsxapps/www/app/(home)/_components/CommunitySectionV2.tsxapps/www/app/(home)/_components/CustomerStoriesSection.tsxapps/www/app/(home)/_components/DashboardFeaturesSection.tsxapps/www/app/(home)/_components/FrameworksSection.tsxapps/www/app/(home)/_components/FrameworksSectionClient.tsxapps/www/app/(home)/_components/Hero.tsxapps/www/app/(home)/_components/HomeContent.tsxapps/www/app/(home)/_components/LogosGrid.tsxapps/www/app/(home)/_components/OpenSourceSection.tsxapps/www/app/(home)/_components/logos/FrameworkLogos.tsxapps/www/app/(home)/_components/logos/PublicityLogos.tsxapps/www/app/(home)/layout.tsxapps/www/app/(home)/page.tsxapps/www/app/pricing/PricingContent.tsxapps/www/components/Hero/Hero.tsxapps/www/components/Modules/ModulesNav.tsxapps/www/components/Products/ProductCard.tsxapps/www/components/Products/ProductsNav.tsxapps/www/pages/index.tsx
💤 Files with no reviewable changes (2)
- apps/www/components/Hero/Hero.tsx
- apps/www/pages/index.tsx
🎭 Playwright Test ResultsDetails
Flaky testsFeatures › queue-table-operations.spec.ts › Queue Table Operations › reverted cell edit clears the pending change Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
dnywh
left a comment
There was a problem hiding this comment.
Just a few things to address!
dnywh
left a comment
There was a problem hiding this comment.
Tested on staging. Looks good. Thanks for addressing those comments!
Braintrust eval report
|
Before <img width="588" height="439" alt="Screenshot 2026-07-08 at 7 29 07 PM" src="https://github.com/user-attachments/assets/8a3380d3-571f-49cd-8f32-7b38650dd0e5" /> After <img width="578" height="436" alt="Screenshot 2026-07-08 at 7 29 55 PM" src="https://github.com/user-attachments/assets/09e74c31-e131-41d5-87da-b4518514cfb5" /> ## Summary On the homepage, the Postgres Database product card's elephant artwork renders over the card's description text at every viewport ≥1280px. I traced it to #47226 (merged June 24): standardizing the marketing container to `section-container` (`max-w-7xl` + `xl:px-24`) capped products-grid content at 1088px, shrinking the card to ~538px while its fixed geometry (250px text column + 398px right-anchored square artwork box) needs ~625px. Large monitors regressed hardest: before June 24 they got ~676px cards and no overlap. The app-router homepage move (#47228), the color system PR (#47288), and the artwork PNGs are all unrelated (verified against production DOM and full diffs). Two changes to the artwork span in `DatabaseVisual.tsx`: 1. Cap the box width at `calc(100% - 280px)` from `md` up, where 280 covers the text column's `md:max-w-[250px]` cap (in `ProductCard.tsx`'s `isDatabase` branch) plus card padding and breathing room. The art scales down through its existing `object-contain`. At md/lg the card is full-width (`md:col-span-12`), so the clamp never binds and rendering is unchanged there. 2. Remove the `xl:-right-12` bleed (base `right-0` stands, matching how 2xl already rendered). The bleed used to clip only the art's transparent canvas margin; with the clamped box the art fills its full width, so the 48px offset was cropping the elephant itself at 1280-1535px. The hover line-art SVG scales with the box and stays aligned with the PNG (identical aspect ratios: viewBox 390:430, PNG 585x645). ## Changes - Add `md:max-w-[calc(100%-280px)]` to the artwork span in `DatabaseVisual.tsx` so the Postgres card art can never cross its text column - Drop `xl:-right-12 2xl:right-0` from the same span so the smaller art isn't clipped at the card's right edge ## Testing Round 1 on the Vercel preview (commit e1ca671, measured via getBoundingClientRect + computed styles): - [x] Art clear of the text column at 1280/1440/1600/1920 (gap 54px at 1280/1440, 6px at 1600/1920); computed `max-width: calc(100% - 280px)` applies - [x] Hover at 1440 — SVG and PNG rects identical (pixel-exact alignment) - [x] 768/1024 — full-width card unchanged, span still a 398px square (clamp resolves but doesn't bind) - [x] Light theme at 1440 — same geometry, no overlap Round 1 also surfaced that the `xl:-right-12` bleed now cropped the elephant at 1280-1535px widths → second commit removes it. Round 2 (commit e28b408): - [x] 1280/1440/1512/1600/1920 — art fully visible (span right edge flush at the card's inner edge, e.g. 713 vs 714 at 1440), still clear of the text column (span left 457 vs text right 451) - [x] 768/1024 — unchanged (span still a right-anchored 398px square) - [x] Hover alignment still exact (PNG and SVG rects identical: 457,452,256,398) ## Linear - fixes GROWTH-971
The June/July marketing redesign (#47271, #47228) rebuilt the homepage and product pages off the Pages Router, silently dropping their `<link rel="alternate" type="text/markdown">` head tags, and llms-full.txt has been accidentally embedding every blog/customer/event page via an `MD_CONTENT` spread. I restored the tags behind a shared helper, added a CI drift test so a future redesign can't drop them silently again, and trimmed both llms files to the agreed docs-index shape. **Changed:** - **Markdown siblings advertised again**: homepage, the 5 product pages, pricing, and blog emit absolute `.md` alternate URLs via a new `mdAlternates(slug)` helper (the one documented consumer of the tag parses it from `<head>` and fetches the `.md` sibling, so tags must point at the sibling, never the page itself). - **Drift test**: a vitest file walks `content/md/**` and asserts every markdown-served slug's page wires the helper (or is covered by the Pages Router `_app.tsx` mechanism, whose alternate-link wiring the test also asserts directly so removing it fails CI too). Source-level assertions by design: page modules can't be imported under www's vitest config. Fails correctly when wiring is removed (verified by hiding a page and by altering the `_app.tsx` tag). - **Vector orphan fixed**: `content/md/vector.md` moved to `modules/vector` matching the live route (the page previously had no negotiation or tag, and `/modules/vector.md` 404'd); `/vector.md` now 308s to `/modules/vector.md` and the legacy `/llms/vector.txt` redirect no longer chains. - **llms.txt + llms-full.txt**: the `## Product Overview` sections are gone from both, each keeps a `## Pricing` section. This deletes the hand-maintained links array (a drift trap) and fixes the accidental ~470-page embed, shrinking llms-full.txt from ~9.8MB to ~4.9MB and dropping the 4.1MB generated content module from that route's serverless bundle. **Note:** this PR is scoped to apps/www only. The docs side (troubleshooting pages and the rest of the docs surface) is handled separately through a consolidated manifest-gated mechanism; an earlier troubleshooting-tag commit was reverted out of this branch to keep the scopes clean. <details> <summary>Why alternate tags matter (background)</summary> Agents ingest markdown far more efficiently than our rendered HTML: a fraction of the tokens and no extraction step. Since #47770 removed UA-based serving (UA sniffing broke a major AI app's fetcher and poisoned CDN caches), markdown is served only on explicit request: a `.md` suffix URL, an `Accept: text/markdown` header, or llms.txt. That's the right serving model, but it makes the markdown twin invisible to any agent that doesn't already know our URL convention, and the major AI fetchers send browser/wildcard Accept headers, so bare URLs hand them HTML. The `<link rel="alternate" type="text/markdown">` head tag is the standards-based advertisement of the sibling. It has a documented consumer today: an agent CLI that parses the tag from `<head>` and then fetches the `.md` sibling, which is also why the tag must point at a real sibling URL and never at the page itself. Peer docs sites ship this tag as table stakes. These www pages used to carry it until the June/July marketing redesign silently dropped it; the drift test in this PR turns that regression class into a CI failure. </details> ## To test Tested locally (www + docs dev servers): - [x] `/llms.txt` renders `## Documentation` + single-link `## Pricing`, no Product Overview - [x] `/llms-full.txt` renders `# Supabase` → `## Pricing` → `## Documentation`, no Product Overview, ~4.9MB - [x] Full www suite: 6 files / 71 tests green; drift test fails correctly when a page is removed or the `_app.tsx` wiring is altered - [x] `generateMdContent.mjs` emits `modules/vector`, bare `vector` slug gone On the Vercel preview (browser-verified with Playwright): - [x] Alternate tag present on `/`, `/auth`, `/database`, `/storage`, `/edge-functions`, `/realtime`, `/pricing`, and a blog post: exactly one tag each, href = preview origin + `.md` sibling - [x] `/vector.md` → 308 → `/modules/vector.md`, renders as markdown (`# Supabase Vector`) - [x] `/llms.txt` shows single-link `## Pricing`, no Product Overview - [x] Coverage sweep: all 482 `MD_PAGES` slugs + changelog index/entry curled on the preview; 471 pages carry exactly one tag, all `.md` siblings 200 as `text/markdown`. The 11 misses are legacy blog slugs whose HTML 308-redirects away (stale `MD_PAGES` entries predating this PR, no head to tag; follow-up tracked in Linear) Post-merge prod: - [ ] Full llms.txt link sweep (every linked URL 200s; previews can't cover the docs-hosted links) ## Linear - fixes GROWTH-1013 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Markdown alternate links across key product, pricing, blog, and troubleshooting pages. * Added Supabase Vector documentation covering features, use cases, workflows, and technical details. * Updated AI-focused documentation indexes with dedicated pricing content. * Added redirects for updated Vector documentation URLs. * **Tests** * Added coverage to verify Markdown documentation links stay aligned with available pages. <!-- end of auto-generated comment: release notes by coderabbit.ai -->

PR breakdown of #43455
Related: #47226 #47227 #47236
Summary by CodeRabbit
New Features
Style