Skip to content

test(chore): mint Linux visual baselines - #507

Merged
Ducksss merged 1 commit into
feat/hero-splitfrom
visual-baselines/feat-hero-split-33145837285
Aug 28, 2026
Merged

Ducksss merged 1 commit into
feat/hero-splitfrom
visual-baselines/feat-hero-split-33145837285

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Auto-generated by the visual-baselines workflow. Commits the per-platform components-visual snapshot baselines so the visual-regression suite compares (instead of skipping) on the CI gate.

@github-actions
github-actions Bot requested a review from Ducksss as a code owner August 28, 2026 05:50
@vercel

vercel Bot commented Aug 28, 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 28, 2026 5:51am
payload-components-97bf Ready Ready Preview Aug 28, 2026 5:51am

@Ducksss
Ducksss merged commit b4a6003 into feat/hero-split Aug 28, 2026
3 checks passed
@Ducksss
Ducksss deleted the visual-baselines/feat-hero-split-33145837285 branch August 28, 2026 06:34
Ducksss added a commit that referenced this pull request Aug 30, 2026
* feat(registry): add hero-split page block

A two-column hero: the shared heroFields copy on one side, an
editor-managed visual on the other. Fills the gap between hero-basic
(copy only) and the showpiece variants (video, tilt, aurora, kinetic) —
the layout most marketing pages actually open with.

mediaPosition is a field rather than a second component. Alternating
sides down a page is a layout decision an editor makes per block, not a
different kind of hero, so heroSplit carries a left/right select and the
component swaps lg:order-*. On small screens the visual always leads: a
stacked hero that opens with prose pushes the image below the fold for
no gain.

Full bundle per AGENTS.md: source, manifest with sampleContent, registry
item, docs page, demo twin, catalog entry, and installer coverage. No
new npm dependencies, so the install-state assertions stay clean.

Placed after hero-basic rather than appended: catalog order is curated
essentials-first, and a static split hero is an essential next to the
motion showpieces. Same position in registry.json, docs meta.json, the
CLI help list, and the README inventory table.

Darwin visual baseline minted in production server mode. Linux still
needs the visual-baselines workflow — the gate requires it on CI.

Closes #136

* fix(registry): name the hero-split upload field image, not media

The fresh-consumer smoke seeds every block from its manifest
sampleContent, and hydrates null upload references only for a fixed set
of field names — avatar, image, logo, poster, productImage, video
(tools/payload-components/smoke/fresh-payload-repo.ts). A field named
`media` fell outside that set, stayed null, and tripped Payload's
required-field validation:

  ValidationError: Content > Layout > Block 11 (Hero Split) > Media

Renamed the field to `image` rather than widening the allowlist: 11 of
the catalog's 12 upload fields are already `image`, so `media` was the
anomaly, and `relationTo: 'media'` already names the collection. The
select follows it to `imagePosition`.

Rendering is unchanged, so the minted baselines still match.

* test(chore): mint Linux visual baselines (components-visual) (#507)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* hero-split: actually lead with the visual on small screens

The component comment, the docs page, and the PR body all state that the
visual leads below lg regardless of imagePosition — but the markup rendered
DOM order there (copy first), since both order utilities were lg-only. The
media panel now carries order-first with an explicit lg reset
(lg:order-1 for left, lg:order-none for right — the reset is explicit
because cn() here is clsx without tailwind-merge, so stacking both classes
would leave the outcome to stylesheet order). Twin mirrors the same tokens.

Baseline-safe: the visual spec captures at 1280x800, above the lg
breakpoint, where nothing changes.

Verified: tsc, demo-twins + source-compiles int specs, prettier, eslint.

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

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <[email protected]>

This branch was successfully deployed

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