Skip to content

Conversation

@Christinarlong
Copy link
Contributor

@Christinarlong Christinarlong commented Nov 7, 2025

Update the frontend to process the blocks for the previews

What is looks like -
image

relies on #102975

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 7, 2025
@Christinarlong Christinarlong marked this pull request as ready for review November 7, 2025 23:19
</Text>
{displayFormat === ExampleDataFormat.FORMATTED ? (
<Text>{registration.example.body}</Text>
<Text>{JSON.stringify(registration.example.body)}</Text>
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Formatted Body View Displays Raw JSON.

The formatted display mode for body incorrectly shows JSON.stringify(registration.example.body) instead of rendering the body blocks properly. Since body is now NotificationBodyFormattingBlock[] instead of a string, the formatted view should use NotificationBodyRenderer to display the content, while only the raw view should show the stringified JSON.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this is for the sidebar so we should render as a JSON

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

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants