fix: responsive embed credentialless attribute#485
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Disabled knowledge base sources:
📝 WalkthroughWalkthroughThe ChangesResponsiveEmbed credentialless iframe refactoring
🎯 2 (Simple) | ⏱️ ~8 minutes
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
unraid-docs | 5d0008f | Commit Preview URL Branch Preview URL |
May 21 2026, 12:55 AM |
Summary
credentiallessiframe attribute inResponsiveEmbed.Root cause
PR #407 changed
ResponsiveEmbedfrom{...{ credentialless: "" }}to the JSX boolean shorthandcredentialless. React treatscredentiallessas a non-boolean iframe attribute, socredentialless={true}is omitted during render. On docs pages served withCross-Origin-Embedder-Policy: credentialless, that omission breaks cross-origin video embeds such as YouTube.Validation
pnpm exec vitest run src/components/ResponsiveEmbed/__tests__/ResponsiveEmbed.test.tsxgit diff --checkpnpm run buildbuild/unraid-os/getting-started/set-up-unraid/internal-boot-faq/index.htmlcontainscredentialless=""on both YouTube iframes.Build notes
pnpm run typecheckcurrently fails before source validation because TypeScript 6 reports the repo'sbaseUrldeprecation.pnpm exec tsc --noEmit --ignoreDeprecations 6.0 --pretty falsethen reports existing unrelated errors inRedirectList,ReleasesList, andLayout, with no errors inResponsiveEmbedafter this change.