Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Update and fix video widget#9

Draft
BoDonkey wants to merge 2 commits intomainfrom
video-component-fix
Draft

Update and fix video widget#9
BoDonkey wants to merge 2 commits intomainfrom
video-component-fix

Conversation

@BoDonkey
Copy link
Copy Markdown
Contributor

Summary

Summarize the changes briefly, including which issue/ticket this resolves. If it closes an existing Github issue, include "Closes #[issue number]"
The newest version of Astro has bc breaks. One of these changed the handling of inline scripts. This caused the video widget component script to execute too early in the render cycle, before customElements was available. Adding defer to the script ensures it fires at the right time. This can also be accomplished using an event listener for DOM loaded.

I thought I would get it approved here first, and then move the change into the combined repo once you okay or vetoed the strategy.

What are the specific steps to test this change?

For example:

  1. Run the website and log in as an admin
  2. Open a piece manager modal and select several pieces
  3. Click the "Archive" button on the top left of the manager and confirm that it should proceed
  4. Check that all pieces have been archived properly
  1. Spin up a project
  2. Add a video widget

What kind of change does this PR introduce?

(Check at least one)

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated
  • Related documentation has been updated
  • Related tests have been updated

If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

@BoDonkey BoDonkey requested a review from boutell December 16, 2024 11:45
@BoDonkey BoDonkey marked this pull request as draft December 16, 2024 11:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants