Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/grumpy-buttons-cheat.md
Comment thread
cheryl7114 marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@serverlessworkflow/diagram-editor": minor
---

Implemented Storybook enhancements including color theme selector, folder restructuring, test setup, collapsible sections, and removed boilerplate code.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
*/

import "../src/styles.css";
import type { Preview } from "@storybook/react-vite";
import type { Preview, Decorator } from "@storybook/react-vite";

const withColorMode: Decorator = (Story, context) => {
return <Story />;
};

const preview: Preview = {
parameters: {
Expand All @@ -33,6 +37,25 @@ const preview: Preview = {
test: "todo",
},
},

globalTypes: {
colorMode: {
description: "Global color mode for components",
defaultValue: "system",
toolbar: {
title: "Color Mode",
icon: "circlehollow",
items: [
{ value: "light", icon: "sun", title: "Light" },
{ value: "dark", icon: "moon", title: "Dark" },
{ value: "system", icon: "browser", title: "System" },
],
dynamicTitle: true,
},
},
},

decorators: [withColorMode],
};

export default preview;
2 changes: 2 additions & 0 deletions packages/serverless-workflow-diagram-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"@vitest/browser": "catalog:",
"@vitest/browser-playwright": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"jsdom": "catalog:",
Expand Down

This file was deleted.

51 changes: 0 additions & 51 deletions packages/serverless-workflow-diagram-editor/stories/Button.tsx

This file was deleted.

Loading
Loading