Skip to content
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

fix: playGround story issue in NumberInput #17389

Merged
merged 13 commits into from
Sep 12, 2024

Conversation

2nikhiltom
Copy link
Contributor

@2nikhiltom 2nikhiltom commented Sep 9, 2024

Closes #17164

This PR fixes the Playground story for NumberInput where the screen freezes and website crashes when steppers (+/-) are clicked rapidly

Playground story was throwing "allocation size overflow" error.
I suspect it was because of Complex props structure leading to JSON serialization problem

Changelog

Simplified Playground story with internal state management.
Moved props to Playground.args and Playground.argTypes

Testing / Reviewing

Open deploy preview and go to NumberInput - Playground story
click on steppers , verify that no errors are seen in console, and that website do not freeze/crash
verify that all props in playground works as expected

Copy link

netlify bot commented Sep 9, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit ce27eec
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66e28e10c212d40008768bb4
😎 Deploy Preview https://deploy-preview-17389--carbon-elements.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 site configuration.

Copy link

netlify bot commented Sep 9, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ce27eec
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66e28e10c212d40008768bb2
😎 Deploy Preview https://deploy-preview-17389--v11-carbon-react.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 site configuration.

@2nikhiltom 2nikhiltom marked this pull request as ready for review September 10, 2024 12:55
@2nikhiltom 2nikhiltom requested review from a team as code owners September 10, 2024 12:55
@2nikhiltom 2nikhiltom changed the title refactor: updated type for 'value' fix: playGround story issue in NumberInput Sep 10, 2024
Copy link
Contributor

@Gururajj77 Gururajj77 left a comment

Choose a reason for hiding this comment

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

Looks Good 🚀

Copy link
Member

@annawen1 annawen1 left a comment

Choose a reason for hiding this comment

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

LGTM! No freezing up 🥶 !

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.82%. Comparing base (a6f1b23) to head (ce27eec).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #17389   +/-   ##
=======================================
  Coverage   76.82%   76.82%           
=======================================
  Files         408      408           
  Lines       13966    13966           
  Branches     4336     4336           
=======================================
  Hits        10730    10730           
- Misses       3062     3063    +1     
+ Partials      174      173    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@riddhybansal riddhybansal added this pull request to the merge queue Sep 12, 2024
Merged via the queue into carbon-design-system:main with commit fdb31d9 Sep 12, 2024
36 checks passed
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.

[Bug] [NumberInput] - Playground: Screen freezes and crashes when Steppers (+/-) are clicked rapidly
4 participants