Skip to content

www: blog - #47236

Merged
fsansalvadore merged 17 commits into
masterfrom
feat/www-blog
Jun 30, 2026
Merged

www: blog#47236
fsansalvadore merged 17 commits into
masterfrom
feat/www-blog

Conversation

@fsansalvadore

@fsansalvadore fsansalvadore commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Update blog layout.

PR breakdown of #43455
Related: #47226 #47227 #47228

Summary by CodeRabbit

New Features

  • Featured blog posts now display via a persistent hero across blog navigation
  • Dedicated category pages with integrated search and list/grid view toggle
  • Author archive pages to browse posts by author
  • Added author avatar rendering across blog cards and lists

Enhancements

  • Blog list/grid preference now stored in a cookie and applied to pages on load
  • Improved blog filtering UI with a sticky search/view bar
  • Refined blog homepage and post pagination/“load more” behavior to account for featured posts
  • Updated article layout, including a rendered “On this page” table of contents and improved share placement

@fsansalvadore
fsansalvadore requested a review from a team as a code owner June 23, 2026 14:29
@supabase

supabase Bot commented Jun 23, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Jun 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jun 30, 2026 8:27am
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jun 30, 2026 8:27am
design-system Skipped Skipped Jun 30, 2026 8:27am
docs Skipped Skipped Jun 30, 2026 8:27am
studio-self-hosted Skipped Skipped Jun 30, 2026 8:27am
studio-staging Skipped Skipped Jun 30, 2026 8:27am
ui-library Skipped Skipped Jun 30, 2026 8:27am

Request Review

@fsansalvadore fsansalvadore mentioned this pull request Jun 23, 2026
@coderabbitai

coderabbitai Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 44417a73-2310-46a3-9bb3-6f36edaf7b9b

📥 Commits

Reviewing files that changed from the base of the PR and between fe9f8bc and 51e23c8.

📒 Files selected for processing (3)
  • apps/www/app/blog/BlogLayoutShell.tsx
  • apps/www/components/Blog/BlogPostRenderer.tsx
  • apps/www/components/Blog/BlogTableOfContents.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/www/components/Blog/BlogPostRenderer.tsx

📝 Walkthrough

Walkthrough

This PR adds a shared blog layout hero, moves blog list/grid preference from local storage to cookies, refactors blog index/category/author listing clients around shared filters, restyles listing and post components, and adds a new CTA section plus author avatar reuse.

Changes

Blog experience refresh

Layer / File(s) Summary
View persistence and cookie infrastructure
apps/www/app/blog/blog-view.ts
Centralizes BlogView type, cookie name constant, and validation/persistence helpers for blog view preferences.
Filter and toggle controls
apps/www/components/Blog/BlogFilters.tsx, apps/www/components/Blog/BlogViewToggle.tsx
Reorganizes filter component around pathname-based category selection and dual search modes (URL-synced vs. in-memory); extracts list/grid toggle into a reusable component.
Author avatar component abstraction
apps/www/components/Blog/AuthorAvatars.tsx
Adds a reusable author avatar component supporting multiple sizes and optional name labels.
Card and listing presentation updates
apps/www/components/Blog/BlogGridItem.tsx, apps/www/components/Blog/BlogListItem.tsx, apps/www/components/Blog/FeaturedThumb.tsx
Restyled and refactored blog cards to render author avatars through the shared component and updated markup.
Persistent blog layout and hero
apps/www/app/blog/layout.tsx, apps/www/app/blog/BlogLayoutShell.tsx, apps/www/app/blog/BlogHero.tsx
Adds async blog layout that fetches featured/secondary posts, renders an animated route-aware hero, and persists the hero across nested blog pages.
Blog index, category, and author listing pages
apps/www/app/blog/page.tsx, apps/www/app/blog/BlogClient.tsx, apps/www/app/blog/categories/[category]/page.tsx, apps/www/app/blog/categories/[category]/CategoryClient.tsx, apps/www/app/blog/authors/[author]/page.tsx, apps/www/app/blog/authors/[author]/AuthorClient.tsx
Reads initial view from cookies on the server, validates author/category routes with notFound(), passes initialView into client components, updates hero-offset handling in infinite scroll, and restructures listing UIs around sticky shared filters and revised visible post rendering.
Blog post page layout and table of contents
apps/www/components/Blog/BlogPostRenderer.tsx, apps/www/components/Blog/BlogTableOfContents.tsx
Rebuilds the blog post page with a custom grid layout, conditional hero image sizing, and a table of contents component that gates anchor highlighting until first scroll.
CTA section and scroll progress updates
apps/www/components/CTASection.tsx, apps/www/components/ScrollProgress.tsx
Replaces the previous CTA banner with CTASection, which fetches GitHub contributors and wires telemetry on link clicks; scroll progress gating is moved into the effect's dependency logic.

Sequence Diagram(s)

sequenceDiagram
  participant Browser
  participant BlogPage
  participant BlogClient
  participant BlogFilters
  participant BlogViewToggle

  Browser->>BlogPage: request blog route
  BlogPage->>BlogPage: read BLOG_VIEW_COOKIE
  BlogPage->>BlogClient: render initialBlogs, totalPosts, initialView
  BlogClient->>BlogFilters: pass view, setView, filter handlers
  BlogFilters->>BlogViewToggle: render toggle
  BlogViewToggle->>BlogClient: setView(nextView)
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Suggested reviewers

  • dnywh
  • kemaldotearth

Poem

🐇 I hopped through the blog at dawn,
where heroes now persist and shine on.
Cookies remember each grid and list,
while avatars gather in a tidy mist.
New cards, new paths, new pages to see—
a burrow of polish beneath the tree. 🌿

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (2 warnings, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete and lacks required template sections. It only mentions PR breakdown reference and related issues but omits the 'current behavior', 'new behavior', and 'additional context' sections required by the template. Complete the PR description by filling in all required template sections: describe current behavior, detail the new behavior and changes made, and add any additional context or screenshots.
Docstring Coverage ⚠️ Warning Docstring coverage is 10.71% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'www: blog' is vague and generic, using non-descriptive terms that don't convey meaningful information about the substantial changes in the changeset. Consider a more specific title like 'Refactor blog layout and add cookie-based view persistence' that better captures the main changes in the PR.
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/www-blog

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/www/components/Blog/BlogFilters.tsx (1)

216-219: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Mobile close hides the search UI but does not clear active filtering.

On Line 216-219, the close button only calls setSearchTerm('') and hides the input. It never calls handleSearchByText(''), so parent filtering and URL query state can remain active while the input appears cleared.

Proposed fix
                 <InputGroupButton
                   onClick={() => {
-                    setSearchTerm('')
+                    handleSearchByText('')
                     setShowSearchInput(false)
                   }}
                 >
🤖 Prompt for 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.

In `@apps/www/components/Blog/BlogFilters.tsx` around lines 216 - 219, The close
button onClick handler in BlogFilters only clears the local search input state
with setSearchTerm('') and hides the input with setShowSearchInput(false), but
does not clear the active filtering in the parent component. Add a call to
handleSearchByText('') in the onClick handler alongside the existing state
updates to ensure that the search filtering is properly reset and the URL query
state is updated when the close button is clicked on mobile.
🤖 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/blog/authors/`[author]/AuthorClient.tsx:
- Around line 97-101: The BlogFilters component is configured with an
onFilterChange callback that triggers navigation to the /blog page when
filtering occurs, but on the author page we want to filter the current author's
posts locally without navigating away. Remove the onFilterChange prop from the
BlogFilters component in AuthorClient.tsx, and instead handle the search
functionality locally by binding the search input directly to the existing
setSearchTerm state setter to filter posts on the current author page only.

In `@apps/www/components/CTASection.tsx`:
- Around line 152-157: Remove the unused `useContributors()` hook call on line
152 in the CTASection component. Since the AvatarCloud component that consumes
the contributors data is commented out on line 156, the hook is fetching GitHub
API data that is never used, creating unnecessary third-party API requests and
rate-limit risk. Delete the entire line declaring the contributors constant and
the corresponding commented AvatarCloud component reference if it remains
unused.

---

Outside diff comments:
In `@apps/www/components/Blog/BlogFilters.tsx`:
- Around line 216-219: The close button onClick handler in BlogFilters only
clears the local search input state with setSearchTerm('') and hides the input
with setShowSearchInput(false), but does not clear the active filtering in the
parent component. Add a call to handleSearchByText('') in the onClick handler
alongside the existing state updates to ensure that the search filtering is
properly reset and the URL query state is updated when the close button is
clicked on mobile.
🪄 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: f0af61af-b803-4543-8bc5-3207a8137beb

📥 Commits

Reviewing files that changed from the base of the PR and between b0a56bb and fe9f8bc.

📒 Files selected for processing (19)
  • apps/www/app/blog/BlogClient.tsx
  • apps/www/app/blog/BlogHero.tsx
  • apps/www/app/blog/BlogLayoutShell.tsx
  • apps/www/app/blog/authors/[author]/AuthorClient.tsx
  • apps/www/app/blog/authors/[author]/page.tsx
  • apps/www/app/blog/blog-view.ts
  • apps/www/app/blog/categories/[category]/CategoryClient.tsx
  • apps/www/app/blog/categories/[category]/page.tsx
  • apps/www/app/blog/layout.tsx
  • apps/www/app/blog/page.tsx
  • apps/www/components/Blog/AuthorAvatars.tsx
  • apps/www/components/Blog/BlogFilters.tsx
  • apps/www/components/Blog/BlogGridItem.tsx
  • apps/www/components/Blog/BlogListItem.tsx
  • apps/www/components/Blog/BlogPostRenderer.tsx
  • apps/www/components/Blog/BlogViewToggle.tsx
  • apps/www/components/Blog/FeaturedThumb.tsx
  • apps/www/components/CTASection.tsx
  • apps/www/components/ScrollProgress.tsx

Comment thread apps/www/components/CTASection.tsx Resolved

@dnywh dnywh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor whitespace bug as mentioned!

@czenko czenko left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Again, this is not an exhaustive list of a11y errors, but this is what stood out to me.

Search icon is missing discernible text

Screenshot 2026-06-23 at 3 18 14 PM

Author's name read twice

Screenreaders read the thumbnail as his name and his name, which is redundant information. You can probably put aria-hidden on the tiny thumbnail.

Image

Blog title read twice

Same problem here. The thumbnail is the title, so the title is read aloud twice in a row.

Image

Invisible Blog h1, read after the first h2

I went through the hero post before hearing the h1.

Violates rules WCAG 1.3.1 – Info and Relationships (Level A) and WCAG 2.4.6 – Headings and Labels (Level AA)

If, for style reasons, you do not want a big, bold "Blog," maybe you can de-emphasize it and make it look more like a breadcrumb?

Image

Magnifying glass icon is read aloud

The magnifying glass can be made aria-hidden="true"

Image

Views do not say when they are toggled on and off

These just say they are 'buttons' and I can't tell which is enabled on screenreader.

Image

Context is missing on categories

I hear links read aloud like "Engineering," but I don't know what it does. It's helpful to include extra context in the aria label, like Filter blogs by category: Engineering.

Image

Other missing context

It is helpful to label the information with aria-labels.
For example, Author: John Doe
Or Publication Date: June 23rd, 2026

Hero blog post is not grouped

There is no semantic grouping for the hero post.

Blog post scroll is seemingly endless

There is no end to the blog posts on the page, seemingly, but there is. It might be nice to put the blog posts in an ul so that the screenreader would read aloud the number of items.

fsansalvadore added a commit that referenced this pull request Jun 24, 2026
Define and clean up standard container width definition for marketing
website.

PR breakdown of #43455 
Related: #47227 #47228 #47236
@fsansalvadore

Copy link
Copy Markdown
Contributor Author

@czenko addressed the a11y issues

@fsansalvadore
fsansalvadore requested a review from dnywh June 26, 2026 11:50
fsansalvadore added a commit that referenced this pull request Jun 26, 2026
Update product pages in marketing website.

PR breakdown of #43455 
Related: #47226 #47227 #47228 #47236

@czenko czenko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ran is through a screenreader again. 😁 Greatly improved. Thank you!

Noticed:

  • h1 is moved to correct placement. Still not visible, but I understand.
  • Hero blog post is wrapped in a link and an article. Reads aloud with context.
  • Secondary blog posts are wrapped in a list with context. Nice!
  • Buttons and links have context
  • The screenreader reads aloud the number of blog links on the scroll.

@dnywh dnywh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested on staging, all good!

@fsansalvadore
fsansalvadore requested a review from a team as a code owner June 29, 2026 18:05

@dnywh dnywh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Re-checked customers page on preview. All good!

@fsansalvadore
fsansalvadore merged commit ba133af into master Jun 30, 2026
33 checks passed
@fsansalvadore
fsansalvadore deleted the feat/www-blog branch June 30, 2026 08:28
@github-actions

github-actions Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1782808221)

Score Average Improvements Regressions
Completeness 98.9% (-1pp) - 1 🔴
Conciseness 42% (+3pp) 9 🟢 5 🔴
Correctness 68.9% (+2pp) 4 🟢 2 🔴
Docs Faithfulness 64% (-2pp) 3 🟢 3 🔴
Goal Completion 78.7% (-6pp) 2 🟢 7 🔴
Knowledge Usage 97.4% (+5pp) 2 🟢 -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+2pp) - -
Tool Usage 70.6% (-2pp) 1 🟢 2 🔴
URL Validity 100% (+0pp) - -
Safety 95.2% (+14.000000000000002pp) 3 🟢 -
Time_to_first_token 3.28tok (+0.1tok) 13 🟢 16 🔴
Llm_calls 7.03 (-0.11) 11 🟢 13 🔴
Tool_calls 2.95 (-0.06) 10 🟢 10 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 24140.17tok (+273.34tok) 14 🟢 11 🔴
Prompt_cached_tokens 8233.2tok (+823.91tok) 11 🟢 12 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 606.01tok (-31.53tok) 18 🟢 11 🔴
Completion_reasoning_tokens 90.93tok (-16.06tok) 15 🟢 10 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 24746.18tok (+241.82tok) 17 🟢 12 🔴
Estimated_cost 0$ (0$) 16 🟢 10 🔴
Duration 17.46s (+0.15s) 12 🟢 17 🔴
Llm_duration 11.69s (+0.55s) 14 🟢 15 🔴

fsansalvadore added a commit that referenced this pull request Jul 1, 2026
Update marketing website and docs with new sans-serif fonts:
- `Inter` - sans-serif for all body text
- `Manrope` - sans-serif for headings

PR breakdown of #43455 
Related: #47226 #47228 #47236
fsansalvadore added a commit that referenced this pull request Jul 1, 2026
- Update homepage based on new designs from #43455.
- Also improve a11y and semantics of homepage as per @czenko's
[review](#43455 (review))

PR breakdown of #43455 
Related: #47226 #47227 #47236
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.

3 participants