Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1c009dd

Browse files
committed
chore: add story for multi org
1 parent0afc73d commit1c009dd

File tree

1 file changed

+57
-1
lines changed

1 file changed

+57
-1
lines changed

‎site/src/pages/TemplatesPage/MultiOrgTemplatePage/TemplatesPageView.stories.tsx

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const meta: Meta<typeof TemplatesPageView> = {
1818
exportdefaultmeta;
1919
typeStory=StoryObj<typeofTemplatesPageView>;
2020

21-
exportconstWithTemplates:Story={
21+
exportconstWithTemplatesSingleOrgs:Story={
2222
args:{
2323
canCreateTemplates:true,
2424
error:undefined,
@@ -68,6 +68,62 @@ export const WithTemplates: Story = {
6868
},
6969
};
7070

71+
exportconstWithTemplatesMultipleOrgs:Story={
72+
args:{
73+
canCreateTemplates:true,
74+
error:undefined,
75+
templatesByOrg:getTemplatesByOrg([
76+
MockTemplate,
77+
{
78+
...MockTemplate,
79+
organization_id:"fc0774ce-cc9e-48d4-80ae-88f7a4d4a8a1",
80+
organization_name:"first-org",
81+
organization_display_name:"First Org",
82+
active_user_count:-1,
83+
description:"🚀 Some new template that has no activity data",
84+
icon:"/icon/goland.svg",
85+
},
86+
{
87+
...MockTemplate,
88+
organization_id:"fc0774ce-cc9e-48d4-80ae-88f7a4d4a8a1",
89+
organization_name:"first-org",
90+
organization_display_name:"First Org",
91+
active_user_count:150,
92+
description:"😮 Wow, this one has a bunch of usage!",
93+
icon:"",
94+
},
95+
{
96+
...MockTemplate,
97+
description:
98+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ",
99+
},
100+
{
101+
...MockTemplate,
102+
name:"template-without-icon",
103+
display_name:"No Icon",
104+
description:"This one has no icon",
105+
icon:"",
106+
},
107+
{
108+
...MockTemplate,
109+
name:"template-without-icon-deprecated",
110+
display_name:"Deprecated No Icon",
111+
description:"This one has no icon and is deprecated",
112+
deprecated:true,
113+
deprecation_message:"This template is so old, it's deprecated",
114+
icon:"",
115+
},
116+
{
117+
...MockTemplate,
118+
name:"deprecated-template",
119+
display_name:"Deprecated",
120+
description:"Template is incompatible",
121+
},
122+
]),
123+
examples:[],
124+
},
125+
};
126+
71127
exportconstEmptyCanCreate:Story={
72128
args:{
73129
canCreateTemplates:true,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp