Skip to content

fix(blog,site): refine blog UTM routing and changelog layout#7797

Merged
mhartington merged 2 commits intomainfrom
utm-fixing
Apr 14, 2026
Merged

fix(blog,site): refine blog UTM routing and changelog layout#7797
mhartington merged 2 commits intomainfrom
utm-fixing

Conversation

@mhartington
Copy link
Copy Markdown
Member

@mhartington mhartington commented Apr 14, 2026

Summary by CodeRabbit

  • Style & Layout

    • Updated changelog page with a new hero header, adjusted spacing, and left-aligned title for improved hierarchy
    • Removed redundant top margin on changelog entries
  • Navigation

    • Updated site navigation links to point to external documentation and partner pages
  • Behavior

    • Improved internal URL handling to ensure consistent in-app navigation when clicking internal links

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2026

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

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Apr 14, 2026 11:29am
docs Ready Ready Preview, Comment Apr 14, 2026 11:29am
eclipse Ready Ready Preview, Comment Apr 14, 2026 11:29am
site Ready Ready Preview, Comment Apr 14, 2026 11:29am

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 14, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d2a0b570-d196-4124-ba7b-fd62c1740ebd

📥 Commits

Reviewing files that changed from the base of the PR and between 0cd1608 and 9321eea.

📒 Files selected for processing (1)
  • apps/blog/src/components/utm-persistence.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/blog/src/components/utm-persistence.tsx

Walkthrough

Externalized two blog navigation URLs to prisma.io and adjusted blog internal-link routing to strip a blog prefix before pushing routes. Updated changelog pages’ layout and spacing: removed a top margin and moved/rewrote header and container structure for the changelog index and individual release pages.

Changes

Cohort / File(s) Summary
Blog Navigation & Link Handling
apps/blog/src/app/(blog)/layout.tsx, apps/blog/src/components/utm-persistence.tsx
Replaced internal "/partners" and "/docs" routes with external https://www.prisma.io/partners and https://www.prisma.io/docs in navigation. Adjusted click-intercept logic to compute internal router pushes by stripping BLOG_PREFIX from targetUrl.pathname (maps BLOG_PREFIX/) while anchor href still uses the original computed nextHref.
Changelog Styling
apps/site/src/app/changelog/[...slug]/page.tsx, apps/site/src/app/changelog/page.tsx
Removed mt-12 from the changelog release page and changed release title alignment from centered to left. Replaced header block on the changelog index with a hero-style wrapper, moved max-width/padding from main into a subsequent section, and adjusted typography and container constraints.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(blog,site): refine blog UTM routing and changelog layout' accurately captures the main changes across the pull request: UTM routing refinements in the blog components and changelog layout adjustments in the site app.

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

Warning

Review ran into problems

🔥 Problems

Timed out fetching pipeline failures after 30000ms


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 and usage tips.

@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Apr 14, 2026, 11:34 AM

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/blog/src/components/utm-persistence.tsx`:
- Around line 79-88: The code that builds nextInternalHref incorrectly strips
BLOG_PREFIX from any path starting with those characters (so "/blogroll" becomes
"/roll"); change the stripping to be segment-aware by only removing BLOG_PREFIX
when it is an exact segment or followed by a slash—update the logic around
targetUrl.pathname and nextInternalHref to use a regex like
^${BLOG_PREFIX}(?:/|$) or call the canonical strip function used in
apps/blog/src/lib/url.ts (refer to BLOG_PREFIX and the nextInternalHref
construction) so router.push receives the correct path.
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1d1c48d0-1b7f-4cd2-8eca-63c4894acbe8

📥 Commits

Reviewing files that changed from the base of the PR and between 1ac1177 and 0cd1608.

📒 Files selected for processing (4)
  • apps/blog/src/app/(blog)/layout.tsx
  • apps/blog/src/components/utm-persistence.tsx
  • apps/site/src/app/changelog/[...slug]/page.tsx
  • apps/site/src/app/changelog/page.tsx

Comment thread apps/blog/src/components/utm-persistence.tsx Outdated
Prevent the blog UTM click handler from stripping `/blog` out of unrelated paths like `/blogroll` while still routing base-path links correctly.

Made-with: Cursor
@mhartington mhartington changed the title fix(blog): update utm handling fix(blog,site): refine blog UTM routing and changelog layout Apr 14, 2026
@mhartington mhartington merged commit 57a12fa into main Apr 14, 2026
18 checks passed
@mhartington mhartington deleted the utm-fixing branch April 14, 2026 11:37
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