-
Notifications
You must be signed in to change notification settings - Fork 162
fix: Double click component card to edit #1598 #2447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
c87691d
to
218b65e
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2447 +/- ##
==========================================
- Coverage 94.64% 94.64% -0.01%
==========================================
Files 1187 1187
Lines 26220 26233 +13
Branches 5839 5682 -157
==========================================
+ Hits 24817 24829 +12
- Misses 1333 1345 +12
+ Partials 70 59 -11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
218b65e
to
ac6ef11
Compare
}); | ||
|
||
it('should remove component from collection and hides sidebar', async () => { | ||
jest.useFakeTimers(); // ✅ isolate fake timers for this test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Remove comment
// open sidebar | ||
fireEvent.click(await screen.findByText(displayName)); | ||
|
||
// ⏩ let the delayed sidebar open run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Here too.
openComponentInfoSidebar(usageKey); | ||
} | ||
}, [usageKey, openItemSidebar, openComponentInfoSidebar, componentPickerMode]); | ||
const selectComponent = useCallback( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do it without using the timeout approach? I mean, can we maintain a state to decide which sidebar should render?
I'd like to define consistent behavior in |
Description
Double click component card to edit #1598
Supporting information
Screen.Recording.2025-09-16.at.2.14.10.PM.mov