Repository navigation
Show the newsletter Layout tab in Stand - #1102
Draft
georgerichmond wants to merge 3 commits into
Draft
georgerichmond wants to merge 3 commits into
georgerichmond wants to merge 3 commits into
Conversation
georgerichmond
marked this pull request as draft
November 27, 2026 14:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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?
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
newsletter-layout.ts, the newsletter routes andNewsletterDetailTabs.tsx— category eligibility and navigation.NewsletterLayoutView.tsxandNewsletterLayoutPreview.tsx— saved preview, permissions, sizing and error handling.newsletter-layout.feature— acceptance coverage and regression checks.Accessibility