Repository navigation
test(chore): mint Linux visual baselines - #507
Merged
Ducksss merged 1 commit intoAug 28, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Auto-generated by the
visual-baselinesworkflow. Commits the per-platformcomponents-visualsnapshot baselines so the visual-regression suite compares (instead of skipping) on the CI gate.