fix(core): select tagged text inside Agenda-style wrappers - #430
fix(core): select tagged text inside Agenda-style wrappers#430PARZIVAL7498 wants to merge 1 commit into
Conversation
pickInspectorTarget promoted tagged spans into untagged list wrappers, so findSlideSource could not resolve loc. Closes 1weiho#412
|
@PARZIVAL7498 is attempting to deploy a commit to the open-slide 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: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. WalkthroughThe inspector target picker now preserves tagged inline elements during ancestor traversal. New tests model the required DOM behavior and cover Agenda-style wrappers, nested marks, and null input. A patch Changeset documents the package release. ChangesInspector target selection
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change fixes inspector selection for Agenda-style wrapped text while preserving existing paragraph selection behavior; no actionable merge-blocking risk remains after normal checks and review. Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Title checkExplanation The pull request title 'fix(core): select tagged text inside Agenda-style wrappers' directly describes the main change. The fix addresses inspector selection for source-tagged inline text inside untagged Agenda/list wrappers by preserving the tagged inline element instead of promoting it to an untagged wrapper. The title is concise, specific, and accurately summarizes the primary objective of the changeset. Full details: Linked Issues checkExplanation The pull request satisfies all requirements from the linked issue Full details: Out of Scope Changes checkExplanation All changes are directly scoped to the fix for inspector selection in Agenda-style wrappers. The changeset file documents the patch release. The test file introduces fake DOM classes and tests the specific scenario of tagged inline text inside untagged list items. The pick-target.ts modification implements the core fix by tracking and returning tagged inline ancestors. No modifications to unrelated functionality, dependencies, build configuration, or other components are present. All changes serve the stated objective of fixing the inspector selection behavior. Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
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 |
|
Same #412 hole, after #424 extracted The keep still promotes a tagged inline into a tagged wrapper host. Walking past the loc-tagged span, then hitting This PR is unit tests only. #428 also has the Agenda e2e for that keep. I can rebase #428 on request. |
Summary
pickInspectorTarget()was promoting source-tagged inline text (e.g.<span data-slide-loc>) up into untagged Agenda/list wrappers (<li>).findSlideSource()only walks ancestors viaclosest('[data-slide-loc]'), so selection silently failed with no frame or panel.data-slide-loc; still promote marks into a tagged<p>as before.Fixes #412
Test plan
spanchildren in<li><p>a <strong>b</strong></p>still selects the paragraphpnpm test(pick-target.test.ts) andpnpm checkSummary by CodeRabbit
Bug Fixes
Tests