Skip to content

fix: resolve widget shortcut conflict, CSP loading, and selection highlight#24

Open
yepzdk wants to merge 1 commit intomainfrom
feature/fix-widget-shortcut-csp-highlight
Open

fix: resolve widget shortcut conflict, CSP loading, and selection highlight#24
yepzdk wants to merge 1 commit intomainfrom
feature/fix-widget-shortcut-csp-highlight

Conversation

@yepzdk
Copy link
Copy Markdown
Collaborator

@yepzdk yepzdk commented Apr 8, 2026

Summary

  • Shift+C shortcut conflict: Fixed Shadow DOM focus detection so typing capital "C" in the feedback textarea no longer triggers annotation mode
  • html2canvas CSP failure: Replaced <script> tag injection with fetch() + new Function() to avoid script-src CSP restrictions when loaded via browser extension
  • Selected element highlight: Added a persistent blue highlight around the selected element while the feedback panel is open

Test plan

  • Activate widget with Shift+C, click an element, type a message starting with capital "C" — should stay in the feedback panel
  • Use Chrome extension to activate widget on a page, submit feedback with screenshot — html2canvas should load without CSP errors
  • Select an element — blue highlight should remain visible while the panel is open, and disappear when closed

🤖 Generated with Claude Code

…add selection highlight

- Shift+C no longer triggers annotation mode while typing in the feedback
  panel textarea (Shadow DOM focus was not detected by document.activeElement)
- html2canvas now loads via fetch + new Function instead of script injection,
  avoiding CSP script-src restrictions in browser extension context
- Selected element is highlighted with a blue border while the feedback panel
  is open, giving users a visual indicator of their selection

Co-authored-by: Claude <noreply@anthropic.com>
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.

1 participant