Skip to content

Commit bf8150c

Browse files
docs: add storybook migrated badge (#3690)
Adds the migrated status to components that have been migrated fully to S2. A migrated badge to the storybook toolbar should now appear for those components.
1 parent 67cf21a commit bf8150c

File tree

46 files changed

+148
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+148
-11
lines changed

.storybook/preview.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ export const parameters = {
8585
color: "#fff",
8686
description: "Should not be used and will not receive updates.",
8787
},
88+
migrated: {
89+
background: "rgb(84, 36, 219)",
90+
color: "#fff",
91+
description: "Migrated to Spectrum 2.",
92+
},
8893
},
8994
},
9095
// Set an empty object to avoid the "undefined" value in the ComponentDetails doc block

components/actionbutton/stories/actionbutton.stories.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ export default {
103103
story: {
104104
height: "auto",
105105
},
106-
}
106+
},
107+
status: {
108+
type: "migrated",
109+
},
107110
},
108111
decorators: [
109112
withDownStateDimensionCapture,

components/actiongroup/stories/actiongroup.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ export default {
9999
},
100100
packageJson,
101101
metadata,
102+
status: {
103+
type: "migrated",
104+
},
102105
},
103106
tags: ["migrated"],
104107
};

components/alertbanner/stories/alertbanner.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ export default {
7575
},
7676
packageJson,
7777
metadata,
78+
status: {
79+
type: "migrated",
80+
},
7881
},
7982
tags: ["migrated"],
8083
};

components/avatar/stories/avatar.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export default {
5959
},
6060
packageJson,
6161
metadata,
62+
status: {
63+
type: "migrated",
64+
},
6265
},
6366
tags: ["migrated"],
6467
};

components/breadcrumb/stories/breadcrumb.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ export default {
139139
},
140140
packageJson,
141141
metadata,
142+
status: {
143+
type: "migrated",
144+
}
142145
},
143146
};
144147

components/button/stories/button.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ export default {
101101
},
102102
packageJson,
103103
metadata,
104+
status: {
105+
type: "migrated",
106+
},
104107
},
105108
decorators: [
106109
withDownStateDimensionCapture,

components/buttongroup/stories/buttongroup.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ export default {
6464
},
6565
packageJson,
6666
metadata,
67+
status: {
68+
type: "migrated",
69+
},
6770
},
6871
tags: ["migrated"],
6972
};

components/checkbox/stories/checkbox.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ export default {
6161
},
6262
packageJson,
6363
metadata,
64+
status: {
65+
type: "migrated",
66+
},
6467
},
6568
};
6669

components/closebutton/stories/closebutton.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export default {
5252
},
5353
packageJson,
5454
metadata,
55+
status: {
56+
type: "migrated",
57+
},
5558
},
5659
tags: ["migrated"],
5760
};

0 commit comments

Comments
 (0)