feat(core): editor shortcuts and inspector polish#153
Conversation
- Add I and D shortcuts to toggle the inspector and design panel. - Frame the inspector selection while a dashed hover frame tracks the cursor over other elements. - Keep the save bar unsaved/saved label on one line. - Add a crosshair icon to the inspector panel header and drop the stray hairline when there is no editable text. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
@ridemountainpig is attempting to deploy a commit to the Yiwei Ho 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 Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughAdds I/D editor shortcuts, makes the Inspector page-aware and resilient to DOM mutations, refactors the overlay to render separate selected/hover frames with variant styling, and polishes inspector header, separator behavior, save-card layout, and shortcut hint UI. ChangesEditor Keyboard Shortcuts and Inspector Refinements
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.changeset/editor-shortcuts-and-fixes.md:
- Around line 5-9: Replace the multi-line bullet list in the changeset body with
a single present-tense user-facing sentence; use this concise one-line
description: "Add I and D keyboard shortcuts to toggle the inspector and design
panel, keep the inspector selection framed while showing a dashed hover frame
for hovered elements, prevent the save bar label from wrapping, add an icon to
the inspector panel title, and remove the stray hairline under the inspector
header when the selected element has no editable text."
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8307c030-547e-4731-a719-839188a35f3e
📒 Files selected for processing (7)
.changeset/editor-shortcuts-and-fixes.mdpackages/core/src/app/components/inspector/inspect-overlay.tsxpackages/core/src/app/components/inspector/inspector-panel.tsxpackages/core/src/app/components/inspector/inspector-provider.tsxpackages/core/src/app/components/panel/save-card.tsxpackages/core/src/app/components/style-panel/style-panel.tsxpackages/core/src/app/routes/slide.tsx
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
@ridemountainpig hey Yen! |
Summary
Add
I/Dshortcuts to toggle the inspector and design panel, matching theF-for-present convention; keycap hints added to both toggle buttons.Split the inspector overlay into selected + hover frames so the selection stays framed while a dashed frame follows the cursor; re-resolve the selected anchor across DOM mutations and clear it on page change.
CleanShot.2026-05-21.at.23.22.25.1.mp4
Add a crosshair icon to the inspector panel header and only render the separator below content when there's editable text (drops the stray hairline).
Prevent the save bar's unsaved/saved label from wrapping onto two lines.
Test plan
pnpm devinapps/demo, toggle inspector withIand design panel withD; confirm shortcuts don't fire while typing in an input/textarea.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Ifor inspector,Dfor design panel).Improvements