Skip to content

Conversation

ahtesham-quraish
Copy link
Contributor

@ahtesham-quraish ahtesham-quraish commented Sep 15, 2025

Description

Double click component card to edit #1598

Supporting information

Screen.Recording.2025-09-16.at.2.14.10.PM.mov

@ahtesham-quraish ahtesham-quraish force-pushed the ahtesham/#1598 branch 3 times, most recently from c87691d to 218b65e Compare September 15, 2025 09:45
Copy link

codecov bot commented Sep 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.64%. Comparing base (ab645ad) to head (ac6ef11).
⚠️ Report is 2 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

});

it('should remove component from collection and hides sidebar', async () => {
jest.useFakeTimers(); // ✅ isolate fake timers for this test

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

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(

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?

@bradenmacdonald
Copy link
Contributor

I'd like to define consistent behavior in BaseCard, not in each different type of card separately. See my comment at #2336 (comment)

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.

3 participants