Conversation
|
@nrps9909 is attempting to deploy a commit to the afc163's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. Walkthrough本次变更为动态 CSS 操作增加空容器保护。 Changes动态 CSS 容器安全处理
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 小兔看守空容器, Comment |
|
Rebase please. |
b1d5901 to
dfed9b0
Compare
|
Rebased onto current
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #811 +/- ##
==========================================
+ Coverage 86.77% 86.90% +0.13%
==========================================
Files 41 41
Lines 1096 1107 +11
Branches 397 402 +5
==========================================
+ Hits 951 962 +11
Misses 143 143
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
CI failed. |
|
Follow-up at signed/GitHub-Verified head The failed code checks were Codecov patch/project thresholds: three new guard-return lines lacked coverage. Added public-API regressions for removal while head/body are detached and containers disappearing during style creation, then verified recovery after restoration. Both new cases fail on the pre-fix source. Full run: 30 suites / 201 tests pass, 1 skipped; all changed executable lines in CI update: the exact-head test workflow, React Doctor, CodeQL, Surge preview, and both Codecov patch/project checks pass. The only remaining failed status is Vercel team authorization. |
Summary
nullwhen style injection runs during a transient document state with neither<head>nor<body>updateCSS, removal, and container-sync paths without changing insertion order for valid containersinjectCSSandupdateCSSwith regressions that remove and then restore the document style containersCloses #603.
Why a new fix
The older #455 exact head (
903dfe1) still throws atcontainer.appendChild(styleNode)for both public paths. It also skips insertion for prepend mode when a valid container is empty, becauseinsertBefore(styleNode, null)was replaced with a conditional. This PR keeps the standard empty-container insertion behavior and returns early only when the container itself is absent. I left the exact-head reproduction details on #455.Verification — September 20, 2026
Follow-up at signed/GitHub-Verified head
0a7b162f207c9f67ba3f90172af861497437f28e.The failed code checks were Codecov patch/project thresholds: three new guard-return lines lacked coverage. Added public-API regressions for removal while head/body are detached and containers disappearing during style creation, then verified recovery after restoration. Both new cases fail on the pre-fix source. Full run: 30 suites / 201 tests pass, 1 skipped; all changed executable lines in
dynamicCSS.tsare covered locally. TypeScript and focused lint/format checks pass. Runtime code is unchanged. Vercel team authorization is a separate upstream gate.Remote checks for this new commit are separate from the local results above.
AI assistance disclosure
Codex assisted with implementation, conflict resolution, regression tests, and validation.
Summary by CodeRabbit