Skip to content

Normalize Loom share links for embeds#1604

Open
cybercraftsolutionsllc wants to merge 1 commit into
stakwork:masterfrom
cybercraftsolutionsllc:codex/normalize-loom-embed-url-562
Open

Normalize Loom share links for embeds#1604
cybercraftsolutionsllc wants to merge 1 commit into
stakwork:masterfrom
cybercraftsolutionsllc:codex/normalize-loom-embed-url-562

Conversation

@cybercraftsolutionsllc
Copy link
Copy Markdown

Summary

  • normalize Loom /share/{id} URLs to /embed/{id} before rendering the bounty modal video iframe
  • render the iframe with React instead of dangerouslySetInnerHTML
  • add regression coverage for Loom share links with query params

Fixes stakwork/sphinx-tribes#562

Validation

  • REACT_APP_IS_TEST=true NODE_ENV=test node node_modules/jest/bin/jest.js --runTestsByPath src/people/utils/__tests__/LoomViewerRecorder.test.tsx --runInBand --no-coverage --silent --transformIgnorePatterns "./svg/"
  • git diff --check

Security note

  • This removes direct string interpolation into dangerouslySetInnerHTML for the Loom iframe path.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loom video not showing on main bounty popup modal

2 participants