Skip to content

DEV: Ensure poll with @mentions and user statuses renders without errors #34014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 4, 2025

Conversation

megothss
Copy link
Contributor

@megothss megothss commented Jul 31, 2025

This PR ensures that polls including @mentions of users with active user statuses are rendered correctly without errors. It introduces a document validation check before rendering components, adds fixtures for polls with mentions, and provides acceptance tests to verify proper rendering of polls containing @mentions.

megothss added 3 commits July 31, 2025 16:31
Introduced `isElementInDocument` to ensure components are rendered only in valid DOM elements. Prevents application crashes caused by rendering into detached or removed elements.
Introduced a new poll fixture `/pie_chart_poll_with_mention.json` and an associated test to verify rendering of polls containing `@mention`.

Ensures the poll is rendered correctly.
@github-actions github-actions bot added the poll label Jul 31, 2025
@megothss megothss changed the title DEV: Add isElementInDocument method to validate target elements DEV: Fix poll rendering with @mentions and user statuses Jul 31, 2025
@megothss megothss changed the title DEV: Fix poll rendering with @mentions and user statuses DEV: Ensure poll with @mentions and user statuses renders without errors Jul 31, 2025
@megothss megothss merged commit e10517e into main Aug 4, 2025
19 checks passed
@megothss megothss deleted the dev/prevent-render-glimmer-in-detached-document branch August 4, 2025 20:50
martin-brennan pushed a commit that referenced this pull request Aug 5, 2025
…ors (#34014)

This commit ensures that polls including @mentions of users with active user
statuses are rendered correctly without errors. It introduces a document
validation check before rendering components, adds fixtures for polls
with mentions, and provides acceptance tests to verify proper rendering
of polls containing @mentions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants