Skip to content

Refresh home and about pages with editorial layout#27

Merged
Ring-wdr merged 3 commits intomainfrom
codex/about-author-fix-pr
Mar 31, 2026
Merged

Refresh home and about pages with editorial layout#27
Ring-wdr merged 3 commits intomainfrom
codex/about-author-fix-pr

Conversation

@Ring-wdr
Copy link
Copy Markdown
Owner

Summary

  • redesign the home page with a more editorial layout
  • redesign the about page, share the PretextStatement component, and add the about-page Playwright coverage
  • guard PretextStatement against lossy line splitting so localized headings fall back to plain text when needed
  • document the Windows local E2E port/env workflow in AGENTS.md

Validation

  • pnpm lint
  • pnpm exec tsc --noEmit
  • pnpm exec playwright test tests/about.spec.ts --project="Desktop Chrome" on port 3101

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

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

Project Deployment Actions Updated (UTC)
next-portfolio Ready Ready Preview, Comment Mar 31, 2026 4:43am

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: e8740b54f1

ℹ️ 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".

const lineHeight = parseLineHeight(computed.lineHeight, fontSize);
const targetLines = maxWidth < 560 ? 4 : 3;

setLocale(locale);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Move setLocale out of per-resize layout recomputation

setLocale(locale) is executed inside syncLayout, which runs on mount and on every ResizeObserver callback. In Pretext, changing locale clears internal caches, so this call forces cache invalidation on each resize and makes all subsequent measurements more expensive than necessary (including for other PretextStatement instances). Set the locale only when locale actually changes, not on every layout pass.

Useful? React with 👍 / 👎.


while (low <= high) {
const mid = Math.floor((low + high) / 2);
const { lineCount, prepared } = measureLineCount(text, font, mid);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reuse prepared segments during width search

The binary search repeatedly calls measureLineCount(...), and that helper rebuilds prepareWithSegments(text, font) each time even though text and font are constant for the whole pass. This defeats Pretext’s intended prepare-once/layout-many usage and turns resize/layout updates into repeated preprocessing work, which can cause avoidable jank on lower-end devices. Prepare once per syncLayout call and reuse that prepared object for all width probes.

Useful? React with 👍 / 👎.

@Ring-wdr Ring-wdr merged commit 3c27a95 into main Mar 31, 2026
2 of 3 checks passed
@Ring-wdr Ring-wdr deleted the codex/about-author-fix-pr branch March 31, 2026 04:46
Ring-wdr added a commit that referenced this pull request Mar 31, 2026
Refresh home and about pages with editorial layout
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