Skip to content

Show the newsletter Layout tab in Stand - #1102

Draft
georgerichmond wants to merge 3 commits into
mainfrom
feat/1056-newsletter-layout-tab
Draft

georgerichmond wants to merge 3 commits into
mainfrom
feat/1056-newsletter-layout-tab

Conversation

@georgerichmond

@georgerichmond georgerichmond commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

Adds a Layout tab to the Stand page for launched article-based newsletters, including legacy article-based newsletters. Editors can preview saved settings at 320, 375, 425 and 650px without leaving the newsletter page. Other categories do not show the tab.

Closes #1056. This is the first PR for #1055. Edit layout is shown only to editors with permission and temporarily opens the existing rendering-options page. The new Stand editor follows under #1058 and its field tickets; old-link redirects follow under #1064. No changes to email-rendering are needed.

How has this change been tested?

  • The full 352-test UI unit suite passed; this is the repository-wide UI count, not tests added by this PR.
  • All four preview Chromium scenarios passed after removing the mobile-width scenario and its helpers. They cover saved preview/reload and sandboxing, one unsupported-category redirect, permission failure, and render retry with warnings. Rendering responses are stubbed and requests are checked for saved identity/options. The complete category matrix remains in unit tests. The 41 unchanged detail-page scenarios passed in the preceding combined run.
  • UI lint, the production build, new browser-step lint, server-route lint and changed-file formatting checks passed.

Standalone TypeScript checks reproduce existing failures on unchanged main: missing unified/types and StandErrorBlock Button props in UI, and E2E project-reference settings. The existing detail-page step file also has an unused helper flagged by targeted ESLint. These are unchanged. Running the existing detail-page scenarios with three workers causes a fixed-identity fixture collision; the default single-worker run passes.

How can we measure success?

Editors can open, reload and switch back to the Layout tab, see the saved template at each supported width, and reach editing only when permitted. Drafts, other categories and Legacy pages keep their existing behaviour.

Have we considered potential risks?

The preview uses the existing sample endpoint, not a complete edition. Renderer warnings remain visible, failed rendering can be retried, and unavailable permissions do not block read-only previewing. Email HTML is sandboxed with scripts disabled and link clicks prevented from navigating the tool.

This PR does not save or change newsletter settings. Editor scroll-target matching and its generic missing-section warning are left to the editor follow-up. The full prototype remains on wip/stand-layout-preview.

Images

Design reference: Layout tab in Figma. No screenshots attached yet.

Review order

  1. newsletter-layout.ts, the newsletter routes and NewsletterDetailTabs.tsx — category eligibility and navigation.
  2. NewsletterLayoutView.tsx and NewsletterLayoutPreview.tsx — saved preview, permissions, sizing and error handling.
  3. The unit tests and newsletter-layout.feature — acceptance coverage and regression checks.

Accessibility

@georgerichmond georgerichmond added the feature Departmental tracking: work on a new feature label Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Launched page: show the Layout tab

1 participant