Skip to content

feat(docs): Render SplitLayout as a single column - #19984

Closed
sentry-junior[bot] wants to merge 2 commits into
masterfrom
docs/single-column-split-layout
Closed

sentry-junior[bot] wants to merge 2 commits into
masterfrom
docs/single-column-split-layout

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Switches every page that uses SplitLayout to a single column. The SDK quick starts, OTLP pipeline guides, feature pages, and other pages that use it now show each section's text first, followed by its code sample, at every viewport width.

This changes only the component. The styles drop the two-column grid and the sticky code panel, which leaves the layout pages already used below 1024px. No MDX content changes, so this doesn't conflict with the open quick start template PRs (#19980, #19981, #19982, #19983). The <SplitLayout> wrappers in MDX keep working and can be removed in a later cleanup if we want.

The component README and doc comment are updated to describe the single-column behavior.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

via shannon.anahata.

--

View Junior Session [Sentry]

Co-Authored-By: Shannon Anahata <shannon.anahata@sentry.io>
@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
develop-docs Ready Ready Preview Oct 15, 2026 8:33pm UTC
sentry-docs Ready Ready Preview Oct 15, 2026 8:33pm UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Oct 14, 2026
@cursor

cursor Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Pages that pair text with a code sample now stack in one column at every width. The plan checks snippet copies, layout shift, largest paint, and client errors. An issue escalates when layout shift or errors rise, or when snippet copies collapse while page loads hold.

Services: sentry-docs, develop-docs.

Mention @change-monitor in a comment to update the plan.

Plan

What changed

Pages that use SplitLayout now show each section's text first, then its code sample, at every viewport width. The two-column grid and the sticky code panel are gone. sentry-docs must deploy before this layout is live. develop-docs also builds this shared component from the same source. No develop-docs page renders SplitLayout. Deploy config maps the Vercel projects sentry-docs and develop-docs to those catalog ids.

Risk

A bad stylesheet can hide code samples or make them overflow. Desktop pages get longer, so layout shift and largest paint can worsen. The client layout wrapper can throw during hydrate. Code tabs and copy buttons on these pages can become hard to use.

Intended effect

The stacked layout itself has no metric. Treat snippet copies on platform SDK paths as the proxy that code samples stay visible and usable. Absent looks like this: page loads on the SplitLayout routes hold, and docs.snippet_copy on those path prefixes stays at 0.

Signal Baseline Window Rule Source
docs.snippet_copy for page_path /platforms/javascript, /platforms/python, /platforms/dart 54-71 copies per 24h. Last 24h was 71. Seven-day daily mean was 54. 2026-10-13T22:11:00Z to 2026-10-14T22:11:00Z, and 2026-10-07T22:11:00Z to 2026-10-14T22:11:00Z Hold in this band. Confirmed if copies stay in band while the page-load row holds. Absent if copies stay at 0 while that page-load row holds. Sentry org sentry project docs. Query metric.name:docs.snippet_copy environment:production grouped by page_path.
docs.page.load on /platforms/javascript/guides/nextjs/, /platforms/python/, /platforms/javascript/guides/react/, /platforms/javascript/guides/nextjs/manual-setup/, /platforms/javascript/guides/angular/, /platforms/dart/guides/flutter/ 390-492 loads per 24h. Last 24h was 492. Seven-day daily mean was 390. 2026-10-13T22:11:00Z to 2026-10-14T22:11:00Z, and 2026-10-07T22:11:00Z to 2026-10-14T22:11:00Z Hold in this band. This is the volume next to snippet copies, not the layout itself. Sentry org sentry project docs. Query docs.page.load in production with those path values.

Regression watch

This stylesheet change can shift the page, delay first paint, or throw on hydrate. Pageload transactions use /:path*?, so layout shift is fleet-wide on this ship. If errors rise, inspect javascript and python platform URLs first. Last 24h those URLs had 19 TypeError events and 1 UnhandledRejection.

Signal Baseline Window Rule Source
CLS p75 and p95 on span.op:ui.webvital.cls p75 0.007-0.013. p95 0.107-0.109. Last 24h p75 0.0068 and p95 0.108. Seven-day p75 0.0125 and p95 0.108. 2026-10-13T22:11:00Z to 2026-10-14T22:11:00Z, and 2026-10-07T22:11:00Z to 2026-10-14T22:11:00Z Hold in this band. Detected if p75 rises above 0.013 or p95 rises above 0.109. Sentry org sentry project docs. Query span.op:ui.webvital.cls environment:production with p75(browser.web_vital.cls.value) and p95(browser.web_vital.cls.value).
LCP p75 and p95 on span.op:ui.webvital.lcp p75 904-1142ms. p95 2160-2680ms. Last 24h p75 904ms and p95 2160ms. Seven-day p75 1142ms and p95 2680ms. 2026-10-13T22:11:00Z to 2026-10-14T22:11:00Z, and 2026-10-07T22:11:00Z to 2026-10-14T22:11:00Z Hold in this band. Detected if p75 rises above 1142ms or p95 rises above 2680ms. Sentry org sentry project docs. Query span.op:ui.webvital.lcp environment:production with p75(browser.web_vital.lcp.value) and p95(browser.web_vital.lcp.value).
TypeError events in production 55-98 events per 24h. Last 24h was 55. Prior 24h was 98. Seven-day daily mean was 59. 2026-10-13T22:11:00Z to 2026-10-14T22:11:00Z, 2026-10-12T22:11:00Z to 2026-10-13T22:11:00Z, and 2026-10-07T22:11:00Z to 2026-10-14T22:11:00Z Hold in this band. Detected if the 24h count rises above 98. Sentry org sentry project docs. Query error.type:TypeError environment:production.
Rage-click replays on platform URLs 0 matching replays in 24h. 2026-10-13T22:11:00Z to 2026-10-14T22:11:00Z Hold at 0. Detected if rage-click replays appear on url:*platforms*. Sentry org sentry project docs. Replay query count_rage_clicks:>0 url:*platforms* in production.

Not observable

The stacked single-column layout itself has no queryable signal. CLS cannot be split by SplitLayout route because pageload transactions are /:path*?. develop-docs ships this stylesheet, but no develop-docs page uses SplitLayout, so that ship has no layout signal.

Co-Authored-By: Shannon Anahata <shannon.anahata@sentry.io>
@sentry-junior

sentry-junior Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #20017, which removes SplitLayout entirely instead of restyling it. The quick start template PRs (#19980–#19983) now drop their SplitLayout wrappers too.

sfanahata added a commit that referenced this pull request Oct 19, 2026
…20017)

## DESCRIBE YOUR PR

Removes the `SplitLayout` component everywhere. Pages that used it now
render their text and code as regular docs content, with the standard
docs spacing.

- Removes the `<SplitLayout>`, `<SplitSection>`, `<SplitSectionText>`,
and `<SplitSectionCode>` wrapper lines from all 169 MDX files that used
them, including the quick start guides. Only the tag lines and the blank
lines around them change. Parsing each file before and after shows the
same content once the wrappers are ignored.
- Deletes `src/components/splitLayout/` and its registration in
`src/mdxComponents.ts`.
- Drops the SplitLayout guidance from
`.claude/skills/technical-docs/SKILL.md`.

Step numbering is unaffected. `StepConnector` finds its `h2` headings
with a descendant selector, so it doesn't depend on these wrappers.

This replaces #19984, which made SplitLayout render as a single column.

### Merge order

Merge this **first**. After it merges, the quick start template PRs that
also edit these files (#19980 Ruby, #19981 Dart and Flutter, #19982
Python, #19983 JavaScript) will need `master` merged in. Those conflicts
are limited to the removed wrapper tags.

## IS YOUR CHANGE URGENT?

- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+

## PRE-MERGE CHECKLIST

- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)

<!-- junior-request-attribution:start -->
via **shannon.anahata**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AD0BB8KQT6MU%3A1792013336.218129 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AD0BB8KQT6MU%3A1792013336.218129)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0BB8KQT6MU%3A1792013336.218129/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Shannon Anahata <shannon.anahata@sentry.io>

This branch was successfully deployed

2 active deployments
Preview – sentry-docs — e9b95041 Deployed Oct 15, 2026 by vercel[bot]
Preview – develop-docs — e9b95041 Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants