Skip to content

chore: trim #334 comments and dead test scaffolding#397

Open
jedrazb wants to merge 1 commit intomainfrom
cleanup/issue-334-followup
Open

chore: trim #334 comments and dead test scaffolding#397
jedrazb wants to merge 1 commit intomainfrom
cleanup/issue-334-followup

Conversation

@jedrazb
Copy link
Copy Markdown
Contributor

@jedrazb jedrazb commented May 5, 2026

Follow-up cleanup to #335 — pure diff polish, no behavior change.

Changes

  • packages/core/src/layout-painter/renderPage.ts — 6-line explanatory comment compressed to 3 lines, keeping the Page Margin Misalignment Bug #334 reference and the reason measurement and rendering must agree.
  • e2e/tests/edge-cases.spec.tspage font fallback matches measurement fallback (#334) simplified: drops the unused hasSegoe field and the multi-paragraph in-test essay, keeps the toContain('carlito') assertion that actually fails without fix(core): align page font fallback with measurement chain (fixes #334) #335 and passes with it.
  • .changeset/issue-334-cleanup.md — short patch entry.

Test plan

  • bun run typecheck passes.
  • Targeted Playwright run for edge-cases.spec.ts — the simplified test still asserts the same condition.

🤖 Generated with Claude Code

- renderPage.ts: 6 explanatory lines → 3.
- edge-cases.spec.ts: drop unused `hasSegoe`, simplify the page-font
  assertion to a single string check.
- changeset: shorter summary.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

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

Project Deployment Actions Updated (UTC)
docx-editor Ready Ready Preview, Comment May 5, 2026 5:41pm

Request Review

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