Skip to content

[codex] simplify landing page DOM structure#1272

Open
jderochervlk wants to merge 5 commits intomasterfrom
vlk/simplify-landing-page-dom-structure
Open

[codex] simplify landing page DOM structure#1272
jderochervlk wants to merge 5 commits intomasterfrom
vlk/simplify-landing-page-dom-structure

Conversation

@jderochervlk
Copy link
Copy Markdown
Collaborator

Summary

Refactor the landing page route to remove unnecessary wrapper elements and keep layout styles on the surviving DOM nodes.

What Changed

  • removed single-child wrapper elements around landing page CTAs, text blocks, and decorative assets
  • moved spacing and alignment classes onto the remaining interactive/content elements where needed
  • added short inline comments where moved classes could have affected layout behavior
  • added visual snapshot coverage for the main landing page sections at desktop, tablet, and mobile widths
  • kept the existing playground-link regression test in place

Why

The landing page had several inert wrapper nodes that made the markup noisier and harder to reason about. This reduces DOM depth while keeping the rendered layout stable.

Impact

  • simpler landing page structure for future edits
  • responsive snapshot baselines for the major sections touched by the refactor
  • no intended behavior changes

Validation

  • yarn build:res
  • yarn vitest __tests__/LandingPage_.test.jsx --browser.headless --run

Simplify the landing page markup by removing single-child wrappers and moving layout classes onto the surviving elements where needed.

Add responsive visual snapshots for the major landing page sections at desktop, tablet, and mobile widths so the refactor has a stable regression baseline.
Render the full landing page in browser tests and target section roots by data-testid instead of route helper exports.
Refresh the existing landing page snapshots and increase the mobile viewport height so tall sections capture without extra white space.
Clone selected landing page sections into a top-level sandbox before screenshotting so Vitest captures the component instead of page scroll context.
Refresh the landing page snapshots and add the page-level getByTestId binding used by the new harness.
Mirror the landing page highlight.js registration in browser tests.
Add regression coverage for highlighted playground code in the live render and sandboxed snapshot copy.
Render selected landing sections inside a normal test wrapper before capturing screenshots.
Refresh the affected landing-page screenshots so the playground hero retains syntax highlighting in the stored baselines.
@github-actions
Copy link
Copy Markdown

Cloudflare deployment

Deployement ID: 4946c2e9-ee68-4072-8b20-5ad1a54fc269
Deployment Environment: preview

⛅️ wrangler 4.63.0 (update available 4.85.0)
─────────────────────────────────────────────
✨ Compiled Worker successfully
Uploading... (8028/8029)
Uploading... (8029/8029)
✨ Success! Uploaded 1 files (8028 already uploaded) (2.07 sec)

✨ Uploading _redirects
✨ Uploading Functions bundle
🌎 Deploying...
✨ Deployment complete! Take a peek over at https://4946c2e9.rescript-lang.pages.dev
✨ Deployment alias URL: https://vlk-simplify-landing-page-do.rescript-lang.pages.dev

@jderochervlk jderochervlk marked this pull request as ready for review April 25, 2026 15:03
@jderochervlk
Copy link
Copy Markdown
Collaborator Author

@codex

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 06c4fc19d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread vitest.setup.mjs
@jderochervlk jderochervlk enabled auto-merge (squash) April 25, 2026 16:19
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