Skip to content

Add preview-* parameter forwarding to SDC requests - #16367

Merged
juabara merged 7 commits into
mainfrom
feat/jm-separate-preview-feature
Jul 15, 2026
Merged

juabara merged 7 commits into
mainfrom
feat/jm-separate-preview-feature

Conversation

@juabara

@juabara juabara commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Forward preview-* URL query parameters to the SDC API alongside existing force-* parameters. Force takes priority when both are present. Includes preview param support in the SDC package's getModuleData and updates the DCR gutter component to import getGutterLiveblog from the SDC package's main entry point.

@juabara juabara added the feature Departmental tracking: work on a new feature label Jul 13, 2026
@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown

@juabara
juabara marked this pull request as ready for review July 14, 2026 16:28
@juabara
juabara requested a review from a team as a code owner July 14, 2026 16:28
@github-actions

Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

return;
}
const hideSupportMessagingForUser = shouldHideSupportMessaging(
isSignedIn as boolean,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hideSupportMessagingForUser is of type: boolean | "Pending". In previous version if it was pending, the function in useEffect returned undefined, no request was sent, but in current implementation request will be sent for hideSupportMessagingForUser == 'Pending" and then one more time, when hideSupportMessagingForUser settles with boolean.

Comment thread dotcom-rendering/src/components/LiveblogGutterAskWrapper.island.tsx
@juabara juabara added the run_chromatic Runs chromatic when label is applied label Jul 15, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 15, 2026
@juabara
juabara merged commit 82b01f6 into main Jul 15, 2026
36 checks passed
@juabara
juabara deleted the feat/jm-separate-preview-feature branch July 15, 2026 13:19
@gu-prout

gu-prout Bot commented Jul 15, 2026

Copy link
Copy Markdown

Seen on PROD (merged by @juabara 14 minutes and 24 seconds ago) Please check your changes!

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 Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants