- Notifications
You must be signed in to change notification settings - Fork 415
RI-7640: Implement storybook #5138
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
Conversation
# Conflicts: # redisinsight/ui/src/components/connectivity-error/ConnectivityError.tsx # redisinsight/ui/src/components/inline-item-editor/InlineItemEditor.tsx # redisinsight/ui/src/components/item-list/components/delete-action/DeleteAction.tsx # redisinsight/ui/src/components/item-list/components/export-action/ExportAction.tsx # redisinsight/ui/src/components/query/query-actions/QueryActions.tsx # redisinsight/ui/src/components/query/query-card/QueryCardHeader/QueryCardHeader.tsx # redisinsight/ui/src/components/side-panels/panels/enablement-area/EnablementArea/components/InternalPage/InternalPage.tsx # redisinsight/ui/src/pages/browser/components/add-key/AddKeyHash/AddKeyHash.tsx # redisinsight/ui/src/pages/browser/components/add-key/AddKeyList/AddKeyList.tsx # redisinsight/ui/src/pages/browser/components/add-key/AddKeyReJSON/AddKeyReJSON.tsx # redisinsight/ui/src/pages/browser/components/add-key/AddKeySet/AddKeySet.tsx # redisinsight/ui/src/pages/browser/components/add-key/AddKeyStream/AddKeyStream.tsx # redisinsight/ui/src/pages/browser/components/add-key/AddKeyString/AddKeyString.tsx # redisinsight/ui/src/pages/browser/components/add-key/AddKeyZset/AddKeyZset.tsx # redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/components/edit-entire-item-action/EditEntireItemAction.tsx # redisinsight/ui/src/pages/browser/modules/key-details/components/set-details/add-set-members/AddSetMembers.tsx # redisinsight/ui/src/pages/database-analysis/components/header/Header.tsx # redisinsight/ui/src/pages/home/components/database-list-header/DatabaseListHeader.tsx # redisinsight/ui/src/pages/home/components/database-manage-tags-modal/ManageTagsModal.tsx # redisinsight/ui/src/pages/settings/components/cloud-settings/CloudSettings.tsx # redisinsight/ui/src/pages/settings/components/cloud-settings/components/user-api-keys-table/UserApiKeysTable.tsx # redisinsight/ui/src/pages/slow-log/components/Actions/Actions.tsx
* update ts and msw, fix tests Co-authored-by: Artsiom Kharuzhenka <artem.horuzhenko@redis.com>
…c.ts to use current version of msw handler
|
Kristiyan Ivanov seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Code Coverage - Integration Tests
|
Code Coverage - Backend unit tests
Test suite run success2965 tests passing in 287 suites. Report generated by 🧪jest coverage report action from b4d5126 |
Code Coverage - Frontend unit tests
Test suite run success5229 tests passing in 681 suites. Report generated by 🧪jest coverage report action from b4d5126 |
This pull request introduces Storybook integration for the project, enabling component-driven development, documentation, and visual testing. It adds Storybook configuration files, updates build and linting tools, and provides initial stories for several UI components. The changes also include theming, styling, and utility enhancements to support Storybook and improve the developer experience.
Storybook Integration and Configuration
.storybook/main.ts,.storybook/preview.tsx,.storybook/vite.config.ts,.storybook/tsconfig.json, and.storybook/redis-theme.ts, to enable and customize Storybook for the project. These files configure addons, theming, Vite integration, and global styles. [1] [2] [3] [4] [5].storybook/preview-head.htmlto set up global variables and CSS for Storybook docs and previews.Component Stories and Utilities
AnalyticsTabs,AutoRefresh,Button,DestructiveButton, andActionIconButtonto demonstrate usage and enable visual testing. [1] [2] [3] [4] [5].storybook/helpers/styles.ts,.storybook/RootStoryLayout.tsx, and.storybook/Story.context.ts, to provide styled containers, context, and layout customization for stories. [1] [2] [3]Build, Lint, and Babel Enhancements
package.jsonto add Storybook-related scripts (sb,build-sb), dependencies (@storybook/*,eslint-plugin-storybook, etc.), and upgradedmswto v2. [1] [2] [3] [4] [5].eslintrc.jsto extend withplugin:storybook/recommendedand addedeslint-plugin-storybookfor linting Storybook files. [1] [2]babel.config.cjsto include the@babel/plugin-proposal-decoratorsplugin for Storybook support.Component and Style Refactoring
FormFieldfrom@redis-ui/componentsto simplify imports in the codebase.These changes collectively establish a robust Storybook environment, streamline UI component development, and enhance the project's tooling and developer workflow.