Skip to content

Trim templates gallery density - #494

Merged
Ducksss merged 3 commits into
devfrom
trim-templates-density-20260824
Aug 30, 2026
Merged

Ducksss merged 3 commits into
devfrom
trim-templates-density-20260824

Conversation

@tin-computer

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

Copy link
Copy Markdown
Contributor

Why

/templates was the highest-density audited page. This trim keeps the gallery focused without removing intentional internal navigation.

What changed

  • removed the 134-line starting-point explainer and sidebar
  • replaced it with one compact row that preserves templatesDescription
  • kept links to /components and /docs/installation
  • kept one poster-led detail destination per template card
  • revised the page contract comment to match the compact gallery
  • restored focused coverage for the two links and the catalog-to-templates path

Checks

  • Prettier on changed files
  • ESLint on changed files
  • pnpm source:build
  • TypeScript tsc --noEmit
  • tests/int/template-showcases.int.spec.ts: 114 passed
  • git diff --check

Visual baselines

This still changes rendered output. Both Linux and Darwin template baselines must be minted together before merge. This environment cannot mint Darwin.

This PR is review-only and targets dev.

@tin-computer
tin-computer Bot requested a review from Ducksss as a code owner August 24, 2026 10:46
@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 10:24pm
payload-components-97bf Ready Ready Preview Aug 29, 2026 10:24pm

@Ducksss

Ducksss commented Aug 27, 2026

Copy link
Copy Markdown
Owner

The title reads as cosmetic, but this removes internal navigation and the tests that guarded it. Worth making explicit before review.

Removed from /templates:

  • the links to /components and /docs/installation, with their assertions:
    -    await expect(page.locator('main a[href="/components"]')).toBeVisible()
    -    await expect(page.locator('main a[href="/docs/installation"]')).toBeVisible()
    
  • the whole test links the concepts to supported starting points and from the catalog, including the catalog→templates link check
  • the Choose the right starting point section and the templatesDescription intro

It also deletes the comment at the top of page.tsx that documents the page's contract — the one naming "the concept disclosure up top" as required. Deleting the section and the comment describing it in the same commit means the contract disappears rather than being revised, so the next person has no record that the disclosure was ever intentional.

Note that a sibling PR from this branch series (#490) is adding internal links to /docs/payload-blocks while this one removes links to /components and /docs/installation. If both merge, the net effect on the internal link graph is unclear and was never assessed as a whole.

Either keep the two links (density can be trimmed without removing navigation) or state in the PR body why they should go, and update the contract comment instead of deleting it.

@tin-computer
tin-computer Bot force-pushed the trim-templates-density-20260824 branch from ee9949a to 81d4a53 Compare August 27, 2026 22:24
@tin-computer

tin-computer Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Resolved the navigation-contract review. The 134-line section stays removed, but a compact starting-point row now keeps templatesDescription, /components, and /docs/installation. I also revised the page contract comment and restored focused coverage for both links plus the catalog-to-templates path. Checks passed: changed-file Prettier and ESLint, source:build, tsc --noEmit, 114 template-showcase integration tests, and git diff --check. The branch is rebased on current dev. Paired Linux and Darwin visual baselines still need a maintainer mint 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 the full diff. The 134-line explainer removal is a real density win and stays. Restored in 9fe07fb: the card's documented second action (full preview, with its gallery-source analytics event), the official Payload website template referral as a compact third link, and the e2e pins for both. tsc/lint/prettier/template-showcases.int all green locally.

Ducksss and others added 3 commits August 29, 2026 22:08
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>
…their pins

The density win here is the removed 134-line explainer section, and that
stays removed. But three things it took with it were page contract, not
density:

- the card's second action. The gallery card's documented contract is
  poster-led with exactly two actions — detail page, or raw full preview.
  Dropping 'Open full preview' also dropped the template_preview_open
  (source: gallery) analytics event, i.e. the funnel that tells us whether
  anyone uses previews from the gallery at all.
- the outbound referral to Payload's official website template. Pointing
  people with no project at the official starter instead of at us is part
  of the honest-positioning stance; it now lives as a third link in the
  compact starting-point row.
- the e2e assertions guarding both destinations.

Verified: tsc, eslint, prettier clean; template-showcases.int 114/114.

Co-Authored-By: Claude Fable 5 <[email protected]>

Co-authored-by: tin-computer[bot] <277149838+tin-computer[bot]@users.noreply.github.com>
@tin-computer
tin-computer Bot force-pushed the trim-templates-density-20260824 branch from a79ef41 to 7e63897 Compare August 29, 2026 22:16
@Ducksss
Ducksss merged commit 83a0341 into dev Aug 30, 2026
11 checks passed
@Ducksss
Ducksss deleted the trim-templates-density-20260824 branch August 31, 2026 14:13

This branch was successfully deployed

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