Skip to content

Handle AudioPlayer inside renderElement - #16456

Merged
frederickobrien merged 1 commit into
mainfrom
handle-audio-player-in-render-element
Jul 28, 2026
Merged

Handle AudioPlayer inside renderElement#16456
frederickobrien merged 1 commit into
mainfrom
handle-audio-player-in-render-element

Conversation

@frederickobrien

Copy link
Copy Markdown
Contributor

A further spinoff from #16133, this moves the rendering logic for AudioPlayer inside renderElement. Tidy!

@frederickobrien
frederickobrien requested a review from Jakeii July 24, 2026 19:00
@frederickobrien frederickobrien self-assigned this Jul 24, 2026
@frederickobrien frederickobrien added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Jul 24, 2026
@frederickobrien frederickobrien added this to the Interactives milestone Jul 24, 2026
@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.

@frederickobrien frederickobrien added the run_chromatic Runs chromatic when label is applied label Jul 24, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 24, 2026
@frederickobrien
frederickobrien force-pushed the handle-audio-player-in-render-element branch from 22dffe2 to d1ea756 Compare July 24, 2026 19:05
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

@frederickobrien frederickobrien added the run_chromatic Runs chromatic when label is applied label Jul 25, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 25, 2026

@Jakeii Jakeii left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice! I don't think there's any reason we don't want these elements rendering in the body as Jamie raised in the original thread

}) => {
const { renderingTarget } = useConfig();
const isApps = renderingTarget === 'Apps';
const audioData = getAudioData([element]);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Non-blocking, but does get audio data still need to accept an array?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Afraid so, everywhere else it's used it takes the full array of main media elements

@frederickobrien
frederickobrien added this pull request to the merge queue Jul 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jul 28, 2026
@frederickobrien
frederickobrien force-pushed the handle-audio-player-in-render-element branch from d1ea756 to 5d2eb90 Compare July 28, 2026 08:55
@frederickobrien frederickobrien added the run_chromatic Runs chromatic when label is applied label Jul 28, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 28, 2026
@frederickobrien
frederickobrien added this pull request to the merge queue Jul 28, 2026
Merged via the queue into main with commit 61bfa96 Jul 28, 2026
37 checks passed
@frederickobrien
frederickobrien deleted the handle-audio-player-in-render-element branch July 28, 2026 09:23
@gu-prout

gu-prout Bot commented Jul 28, 2026

Copy link
Copy Markdown

Seen on PROD (merged by @frederickobrien 12 minutes and 2 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

maintenance Departmental tracking: maintenance work, not a fix or a feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants