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

feat(ui): add storybook for testing #2994

Merged
merged 7 commits into from
Mar 10, 2022

Conversation

g1eny0ung
Copy link
Member

@g1eny0ung g1eny0ung commented Mar 8, 2022

Signed-off-by: Yue Yang g1enyy0ung@gmail.com

What problem does this PR solve?

After talking with @STRRL, we would like to introduce a place to test common UI components. Currently, storybook is the best choice that can provide a sandbox to build UIs in isolation.

What's changed and how it works?

  1. Add storybook as dev dependencies
  2. I have kept some default examples for some reference
  3. Add TextField and SelectFeild for testing

Note:

It's needed to run yarn workspace @ui/mui-extends build before yarn workspace @ui/mui-extends storybook due to the stories relying on the esm builds, not source code.

Related changes

  • Need to update chaos-mesh/website
  • Need to update Dashboard UI
  • Need to cheery-pick to release branches
    • release-2.1
    • release-2.0

Checklist

Tests

  • Unit test
  • E2E test
  • No code
  • Manual test (add steps below)

Side effects

  • Breaking backward compatibility

Release note

Please add a release note.

You can safely ignore this section if you don't think this PR needs a release note.

DCO

If you find the DCO check fails, please run commands like below (Depends on the actual situations. For example, if the failed commit isn't the most recent) to fix it:

git commit --amend --signoff
git push --force

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
@g1eny0ung g1eny0ung requested a review from STRRL March 8, 2022 10:23
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Mar 8, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • STRRL
  • cwen0

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Copy link
Member

@STRRL STRRL left a comment

Choose a reason for hiding this comment

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

That's awesome!

@g1eny0ung g1eny0ung requested a review from a team March 9, 2022 09:38
Copy link
Member

@cwen0 cwen0 left a comment

Choose a reason for hiding this comment

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

LGTM

@cwen0
Copy link
Member

cwen0 commented Mar 9, 2022

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 1310a50

@g1eny0ung
Copy link
Member Author

/run-e2e-test

@g1eny0ung g1eny0ung merged commit 0842a2d into chaos-mesh:master Mar 10, 2022
@g1eny0ung g1eny0ung deleted the feat/ui-storybook branch March 10, 2022 06:37
@STRRL STRRL mentioned this pull request Mar 14, 2022
9 tasks
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.

None yet

4 participants