fix(ui): return focus to Compare trigger when SubnetCompareDrawer closes#6512
Conversation
…ation Updated the SubnetCompareDrawer component to utilize the Sheet component from the UI kit, improving the structure and accessibility of the comparison interface. Added SheetTrigger for the compare button and streamlined the form layout for better user experience. The input field and buttons were reorganized for clarity, and the clear button functionality was preserved. This refactor enhances the overall usability of the subnet comparison feature.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6512 +/- ##
=======================================
Coverage 97.85% 97.85%
=======================================
Files 174 174
Lines 22196 22196
Branches 8798 8798
=======================================
Hits 21721 21721
Misses 81 81
Partials 394 394 🚀 New features to boost your workflow:
|
Updated the description text in the SubnetCompareDrawer component to improve readability by adjusting line breaks. This change enhances the user experience when comparing subnets.
|
Warning ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-17 13:23:38 UTC
Review summary Nits — 7 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
This pull request changes UI/visual code but its screenshot evidence is incomplete. Every required viewport × theme combination needs its own before/after image pair in a labeled table row (e.g. "Desktop · Light | before | after"). Still missing: Desktop · Light, Desktop · Dark, Tablet · Light, Tablet · Dark, Mobile · Light, Mobile · Dark. Please resubmit with the remaining rows filled in. See https://github.com/JSONbored/metagraphed/blob/main/.claude/skills/metagraphed/SKILL.md for the exact format and examples. This is an automated maintenance action. |

Summary
<SheetTrigger asChild>so the Sheet owns the trigger (it was a plain sibling with a manualonClick).Closes #6420
Test plan
/subnets/1)Notes
A11y/focus behavior only — no visual layout change, so no before/after screenshot table.