Skip to content

Conversation

@harbournick
Copy link
Collaborator

No description provided.

@harbournick harbournick self-assigned this Jan 17, 2026
@linear
Copy link

linear bot commented Jan 17, 2026

Copy link

@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


P2 Badge Gate 'first' section type on titlePg being enabled

In #computeExpectedSectionType the refactor now returns 'first' for every first page in a section, regardless of whether the document/section has titlePg enabled. Previously (in PresentationEditor#computeExpectedSectionType) the first-page variant was only chosen when titlePg was true; otherwise the first page used 'default'. This means a document without title pages will label the first page’s header/footer region as 'first', so double-clicking an empty header/footer can create or open a “first” variant that is never rendered, making edits appear to disappear on normal pages.


): HeaderFooterLayoutOptions['margins'] {
const footnoteReserve = (page as Page & { footnoteReserve?: number }).footnoteReserve ?? 0;
if (footnoteReserve <= 0) return margins;

P2 Badge Read footnoteReserved when stripping footer margins

The footer margin adjustment now reads page.footnoteReserve, but the layout engine populates Page.footnoteReserved (see contracts/layout-bridge). As a result, pages with footnotes won’t have their bottom margin reduced, so footer hit regions/decoration boxes can overlap the reserved footnote area. This is a regression from the previous implementation that used footnoteReserved.

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

@harbournick harbournick merged commit b6d2193 into main Jan 17, 2026
4 checks passed
@harbournick harbournick deleted the nick/sd-1514-layout-engine-infrastructure-presentationeditorts branch January 17, 2026 02:49
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.

2 participants