Skip to content

Commit ccb05b8

Browse files
committed
Add more stories for deployment dropdown
1 parent 185f2c0 commit ccb05b8

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

site/src/modules/dashboard/Navbar/NavbarView.stories.tsx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ const meta: Meta<typeof NavbarView> = {
1010
component: NavbarView,
1111
args: {
1212
user: MockUser,
13+
canViewAllUsers: true,
1314
canViewAuditLog: true,
1415
canViewDeployment: true,
15-
canViewAllUsers: true,
1616
canViewHealth: true,
17+
canViewOrganizations: true,
1718
},
1819
decorators: [withDashboardProvider],
1920
};
@@ -23,13 +24,36 @@ type Story = StoryObj<typeof NavbarView>;
2324

2425
export const ForAdmin: Story = {};
2526

27+
export const ForAuditor: Story = {
28+
args: {
29+
user: MockUser2,
30+
canViewAllUsers: false,
31+
canViewAuditLog: true,
32+
canViewDeployment: false,
33+
canViewHealth: false,
34+
canViewOrganizations: false,
35+
},
36+
};
37+
38+
export const ForOrgAdmin: Story = {
39+
args: {
40+
user: MockUser2,
41+
canViewAllUsers: false,
42+
canViewAuditLog: true,
43+
canViewDeployment: false,
44+
canViewHealth: false,
45+
canViewOrganizations: true,
46+
},
47+
};
48+
2649
export const ForMember: Story = {
2750
args: {
2851
user: MockUser2,
52+
canViewAllUsers: false,
2953
canViewAuditLog: false,
3054
canViewDeployment: false,
31-
canViewAllUsers: false,
3255
canViewHealth: false,
56+
canViewOrganizations: false,
3357
},
3458
};
3559

0 commit comments

Comments
 (0)