feat(toolbar)!: move the AJAX chip into a menu beside Extensions; the bar keeps the page request instead of following AJAX tags. - #64
Conversation
… bar keeps the page request instead of following AJAX tags.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 2355 2355
===========================================
Files 165 165
Lines 8737 8737
===========================================
Hits 8737 8737 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Warning Review limit reachedNext included review available in 48 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (21)
💤 Files with no reviewable changes (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (4)
🧰 Additional context used🪛 ast-grep (0.45.3)resources/src/toolbar/element.js[warning] 245-252: Avoid assigning untrusted data to innerHTML/outerHTML or document.write (inner-outer-html) 🪛 OpenGrep (1.29.0)resources/src/toolbar/element.js[WARNING] 130-130: Setting innerHTML with dynamic content can lead to XSS. Use textContent or createElement with proper escaping instead. (coderabbit.xss.innerhtml-assignment) [WARNING] 246-253: Setting innerHTML with dynamic content can lead to XSS. Use textContent or createElement with proper escaping instead. (coderabbit.xss.innerhtml-assignment) 🔇 Additional comments (13)
📝 SummarySummary by CodeRabbit
WalkthroughThe toolbar replaces Extensions-only state with a shared named-menu system. The AJAX panel becomes a request menu with in-place refresh and focus handling. Loader rollback and tag-following behavior are removed. Tests and styles follow the new menu structure. ChangesToolbar menu system
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant User
participant ToolbarDrawer
participant ToolbarMenu
participant ToolbarDOM
User->>ToolbarDrawer: click .menu-toggle
ToolbarDrawer->>ToolbarMenu: resolve data-menu
ToolbarDrawer->>ToolbarDOM: set openMenu and sync menu state
ToolbarDOM-->>User: show one menu and focus its first action
Merge Risk: ⚪ Minimal · up to No concrete current-head defect remains, so the toolbar change is ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 52.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 25 functions across 16 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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. A rabbit hops where menu doors align Comment |
Pull Request