Skip to content

Conversation

@davidmenendez
Copy link
Contributor

@davidmenendez davidmenendez commented Oct 3, 2025

Closes #8301

Still a work in progress depending on how granular we want to be with the parity between the web-component and react stories

@davidmenendez davidmenendez requested a review from a team as a code owner October 3, 2025 18:38
@davidmenendez davidmenendez requested review from jlongshore and matthewgallo and removed request for a team October 3, 2025 18:38
@netlify
Copy link

netlify bot commented Oct 3, 2025

Deploy Preview for ibm-products-web-components ready!

Name Link
🔨 Latest commit 6a94e89
🔍 Latest deploy log https://app.netlify.com/projects/ibm-products-web-components/deploys/691ffe9013fa21000811d07b
😎 Deploy Preview https://deploy-preview-8379--ibm-products-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Oct 3, 2025

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit 6a94e89
🔍 Latest deploy log https://app.netlify.com/projects/carbon-for-ibm-products/deploys/691ffe90fd9b780008cd1ee8
😎 Deploy Preview https://deploy-preview-8379--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Oct 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.01%. Comparing base (ef47aa3) to head (6a94e89).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8379   +/-   ##
=======================================
  Coverage   82.01%   82.01%           
=======================================
  Files         403      403           
  Lines       18548    18548           
  Branches     4189     4189           
=======================================
  Hits        15212    15212           
  Misses       3336     3336           
Components Coverage Δ
ibm-products 82.61% <ø> (ø)
ibm-products-web-components 81.19% <ø> (ø)
🚀 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.

Comment on lines 31 to 36
<c4p-side-panel
include-overlay
?open=${this.open}
size="md"
title="Create partitions"
>
Copy link
Contributor

@jlongshore jlongshore Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So something I noticed in this and in the stepped example, the side panel is controlled by the open state, but we aren't handling the open state updates when a user is closing the side panel either by the keyboard, clicking outside of the sidepanel, or by clicking the "X" close button. What is happening currently appears to require two clicks to re-open the side panel since the first click after the user manually closes the component, the state value is still true, and the button is a toggle so it would on first click, set the state to false (nothing appears to happen for the user), and then the second click would then toggle back to true, showing the side panel... Adding in the event listener and forcing a state change would fix this:

Suggested change
<c4p-side-panel
include-overlay
?open=${this.open}
size="md"
title="Create partitions"
>
<c4p-side-panel
include-overlay
?open=${this.open}
size="md"
title="Create partitions"
@c4p-side-panel-closed=${this._handleClose}
>

and before the render function, have something like this:

private _handleClose = () => {
  this.open = false;
};

Comment on lines 31 to 36
<c4p-side-panel
include-overlay
?open=${this.open}
size="md"
title="Create partitions"
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment on the default example.

@davidmenendez davidmenendez requested review from amal-k-joy, anamikaanu96, makafsal and szinta and removed request for matthewgallo November 11, 2025 19:44
Copy link
Contributor

@amal-k-joy amal-k-joy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good, 1 minor comment added.

"dev": "vite"
},
"dependencies": {
"@carbon/web-components": "^2.37.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering if we need to add @carbon/ibm-products-web-components as a dependancy to consume c4p-side-panel ?

Copy link
Contributor

@szinta szinta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example looks similar to the c4p-side-panel example with some additional form fields.

Based on the issue description, I assume we need to create a Side Panel example pattern with multiple steps, similar to the Patterns/Step flows/Side panel with steps story in the React Storybook.

Could you confirm if this assumption is correct, or let me know if I’ve missed any key details?

- [cds-text-input](https://web-components.carbondesignsystem.com/?path=/docs/components-text-input--overview)

> 💡 Check our
> [Stackblitz](https://stackblitz.com/github/carbon-design-system/ibm-products/tree/main/packages/ibm-products-web-components/examples/create-side-panel)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stackblitz example is not working as some dependencies are missing in package.json ( @amal-k-joy already added one review comment related to this )

@davidmenendez
Copy link
Contributor Author

@szinta thank you for providing that link! i was very confused about what stepping was mentioned because it's in a different section. i thought perhaps that was referring to something else. idunno... yes i will include that 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build create-side-panel pattern, via example code (web component)

4 participants