Skip to content

Trim blog index density - #495

Merged
Ducksss merged 5 commits into
devfrom
trim-blog-density-20260824
Aug 29, 2026
Merged

Ducksss merged 5 commits into
devfrom
trim-blog-density-20260824

Conversation

@tin-computer

@tin-computer tin-computer Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Why

The blog index cards repeated long descriptions and tag lists. This trim keeps the guide gateway and its internal navigation while making the article grid easier to scan.

What changed

  • kept the guide gateway and its three guide links
  • kept the /components catalog link
  • kept all 33 article destinations
  • switched index cards to the existing compact presentation
  • restored the gateway, link, and source-contract tests
  • removed the two Linux-only snapshot changes from this PR

Checks

  • Prettier on changed files
  • ESLint on changed files
  • pnpm source:build
  • TypeScript tsc --noEmit
  • focused Fumadocs site contract test passed
  • git diff --check

Visual baselines

The compact cards still change rendered output. A maintainer must mint both Linux and Darwin blog baselines together before merge.

This PR is review-only and targets dev.

@vercel

vercel Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview Aug 29, 2026 3:37pm
payload-components-97bf Ready Ready Preview Aug 29, 2026 3:37pm

@Ducksss

Ducksss commented Aug 27, 2026

Copy link
Copy Markdown
Owner

This needs darwin baselines before it can merge.

The diff updates blog-index-desktop-chromium-linux.png and blog-index-mobile-chromium-linux.png only. Their darwin counterparts are committed on dev:

tests/e2e/blog-visual.e2e.spec.ts-snapshots/blog-index-desktop-chromium-darwin.png
tests/e2e/blog-visual.e2e.spec.ts-snapshots/blog-index-mobile-chromium-darwin.png

A −165-line density trim across src/app/blog/page.tsx and src/components/blog/BlogCard.tsx changes what the index renders, so those two are now stale. CONTRIBUTING is explicit that any change altering what a page renders must update both platforms in the same pull request — each platform's images can only be generated on that platform, so CI passing on linux here is not evidence the pair is consistent.

Mint darwin locally with E2E_PORT=3100 pnpm test:e2e tests/e2e/blog-visual.e2e.spec.ts --update-snapshots and include both, or drop the two linux PNGs and let a maintainer mint both platforms.

@Ducksss

Ducksss commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Second point, separate from the baselines: this also removes the blog index's guide gateway and the assertions that pinned it.

Deleted coverage:

-      gateway.getByRole('link', { name: /Install a wired Payload block/ }),
-      gateway.getByRole('link', { name: /Wire a reusable block/ })
-      gateway.getByRole('link', { name: /Fix a block that will not render/ }),
-    expect(indexSource).toContain('href="/components"')
-    expect(indexSource).toContain("href: '/docs/installation'")
-    expect(indexSource).toContain("href: '/docs/payload-blocks'")
-    expect(indexSource).toContain("href: '/blog/anatomy-of-an-install'")
-    expect(indexSource).toContain('data-guide-gateway')

So "trim blog index density" removes four internal links plus the data-guide-gateway marker. That is a different kind of change from tightening spacing, and it points the opposite way from #490, which is adding an internal link to /docs/payload-blocks — the same page this PR stops linking to.

Please either preserve the gateway while trimming the density around it, or make the case in the PR body for dropping those links, so the decision is reviewable on its own terms rather than arriving inside a density change.

Ducksss and others added 3 commits August 27, 2026 22:14
Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
@tin-computer
tin-computer Bot force-pushed the trim-blog-density-20260824 branch from 80d0574 to 2b07bcb Compare August 27, 2026 22:24
@tin-computer

tin-computer Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Resolved both review points. The guide gateway, its three guide links, the /components link, and all related contract tests are restored. The article cards remain compact. I removed the two Linux-only PNG changes, so the PR no longer carries an unpaired baseline update. Checks passed: changed-file Prettier and ESLint, source:build, tsc --noEmit, the focused Fumadocs contract test, and git diff --check. The branch is rebased on current dev. A maintainer must mint both Linux and Darwin blog baselines before merge.

@Ducksss Ducksss left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reviewed: scope matches the title, diff checked file-by-file, CI green. Approving.

@Ducksss
Ducksss enabled auto-merge (squash) August 29, 2026 14:44
@Ducksss
Ducksss merged commit 947fed3 into dev Aug 29, 2026
9 of 11 checks passed
@Ducksss
Ducksss deleted the trim-blog-density-20260824 branch August 31, 2026 14:13

This branch was successfully deployed

2 active deployments
Preview – payload-components — 6649d4cd Deployed Aug 29, 2026 by vercel[bot]
Preview – payload-components-97bf — 6649d4cd Deployed Aug 29, 2026 by vercel[bot]
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