File tree Expand file tree Collapse file tree 5 files changed +25
-29
lines changed Expand file tree Collapse file tree 5 files changed +25
-29
lines changed Original file line number Diff line number Diff line change 73
73
74
74
/** Related to https://github.com/radix-ui/primitives/issues/3251 */
75
75
html body [data-scroll-locked ] {
76
- --removed-body-scroll-bar-size : 0 !important ;
77
- margin-right : 0 !important ;
78
- }
76
+ --removed-body-scroll-bar-size : 0 !important ;
77
+ margin-right : 0 !important ;
78
+ }
79
79
}
Original file line number Diff line number Diff line change 1
1
import type { Meta , StoryObj } from "@storybook/react" ;
2
+ import { fn , userEvent , within } from "@storybook/test" ;
3
+ import { PointerEventsCheckLevel } from "@testing-library/user-event" ;
4
+ import type { FC } from "react" ;
2
5
import { chromaticWithTablet } from "testHelpers/chromatic" ;
3
- import { MobileMenu } from "./MobileMenu" ;
4
6
import {
5
7
MockPrimaryWorkspaceProxy ,
6
8
MockProxyLatencies ,
@@ -9,9 +11,7 @@ import {
9
11
MockUser2 ,
10
12
MockWorkspaceProxies ,
11
13
} from "testHelpers/entities" ;
12
- import { fn , userEvent , within } from "@storybook/test" ;
13
- import { PointerEventsCheckLevel } from "@testing-library/user-event" ;
14
- import type { FC } from "react" ;
14
+ import { MobileMenu } from "./MobileMenu" ;
15
15
16
16
const meta : Meta < typeof MobileMenu > = {
17
17
title : "modules/dashboard/MobileMenu" ,
Original file line number Diff line number Diff line change 1
1
import type * as TypesGen from "api/typesGenerated" ;
2
- import type { ProxyContextValue } from "contexts/ProxyContext" ;
3
- import { useState , type FC } from "react" ;
4
- import { Link } from "react-router-dom" ;
5
- import { cn } from "utils/cn" ;
2
+ import { Avatar } from "components/Avatar/Avatar" ;
6
3
import { Button } from "components/Button/Button" ;
7
4
import {
8
- ChevronRightIcon ,
9
- CircleHelpIcon ,
10
- MenuIcon ,
11
- XIcon ,
12
- } from "lucide-react" ;
5
+ Collapsible ,
6
+ CollapsibleContent ,
7
+ CollapsibleTrigger ,
8
+ } from "components/Collapsible/Collapsible" ;
13
9
import {
14
10
DropdownMenu ,
15
11
DropdownMenuContent ,
16
12
DropdownMenuItem ,
17
13
DropdownMenuSeparator ,
18
14
DropdownMenuTrigger ,
19
15
} from "components/DropdownMenu/DropdownMenu" ;
20
- import { Avatar } from "components/Avatar/Avatar" ;
16
+ import { FeatureStageBadge } from "components/FeatureStageBadge/FeatureStageBadge" ;
17
+ import { displayError } from "components/GlobalSnackbar/utils" ;
21
18
import { Latency } from "components/Latency/Latency" ;
19
+ import type { ProxyContextValue } from "contexts/ProxyContext" ;
22
20
import {
23
- Collapsible ,
24
- CollapsibleContent ,
25
- CollapsibleTrigger ,
26
- } from "components/Collapsible/Collapsible" ;
21
+ ChevronRightIcon ,
22
+ CircleHelpIcon ,
23
+ MenuIcon ,
24
+ XIcon ,
25
+ } from "lucide-react" ;
26
+ import { type FC , useState } from "react" ;
27
+ import { Link } from "react-router-dom" ;
28
+ import { cn } from "utils/cn" ;
27
29
import { sortProxiesByLatency } from "./proxyUtils" ;
28
- import { displayError } from "components/GlobalSnackbar/utils" ;
29
- import { FeatureStageBadge } from "components/FeatureStageBadge/FeatureStageBadge" ;
30
30
31
31
const itemStyles = {
32
32
default : "px-9 h-10 no-underline" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ describe("NavbarView", () => {
31
31
onSignOut = { noop }
32
32
canViewDeployment
33
33
canViewOrganizations
34
- canViewAllUsers
35
34
canViewHealth
36
35
canViewAuditLog
37
36
/> ,
@@ -49,7 +48,6 @@ describe("NavbarView", () => {
49
48
onSignOut = { noop }
50
49
canViewDeployment
51
50
canViewOrganizations
52
- canViewAllUsers
53
51
canViewHealth
54
52
canViewAuditLog
55
53
/> ,
@@ -67,7 +65,6 @@ describe("NavbarView", () => {
67
65
onSignOut = { noop }
68
66
canViewDeployment
69
67
canViewOrganizations
70
- canViewAllUsers
71
68
canViewHealth
72
69
canViewAuditLog
73
70
/> ,
@@ -87,7 +84,6 @@ describe("NavbarView", () => {
87
84
onSignOut = { noop }
88
85
canViewDeployment
89
86
canViewOrganizations
90
- canViewAllUsers
91
87
canViewHealth
92
88
canViewAuditLog
93
89
/> ,
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import { CoderIcon } from "components/Icons/CoderIcon";
4
4
import type { ProxyContextValue } from "contexts/ProxyContext" ;
5
5
import type { FC } from "react" ;
6
6
import { NavLink , useLocation } from "react-router-dom" ;
7
+ import { cn } from "utils/cn" ;
7
8
import { DeploymentDropdown } from "./DeploymentDropdown" ;
9
+ import { MobileMenu } from "./MobileMenu" ;
8
10
import { ProxyMenu } from "./ProxyMenu" ;
9
11
import { UserDropdown } from "./UserDropdown/UserDropdown" ;
10
- import { cn } from "utils/cn" ;
11
- import { MobileMenu } from "./MobileMenu" ;
12
12
13
13
export interface NavbarViewProps {
14
14
logo_url ?: string ;
You can’t perform that action at this time.
0 commit comments