8000 Fix lint issues · coder/coder@3591600 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3591600

Browse files
committed
Fix lint issues
1 parent c212445 commit 3591600

File tree

7 files changed

+5
-192
lines changed

7 files changed

+5
-192
lines changed

site/src/modules/resources/AgentRow.stories.tsx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ const meta: Meta<typeof AgentRow> = {
9595
logs_length: logs.length,
9696
},
9797
workspace: M.MockWorkspace,
98-
showApps: true,
9998
initialMetadata: defaultAgentMetadata,
10099
},
101100
decorators: [withProxyProvider(), withDashboardProvider, withWebSocket],
@@ -121,24 +120,6 @@ type Story = StoryObj<typeof AgentRow>;
121120

122121
export const Example: Story = {};
123122

124-
export const HideSSHButton: Story = {
125-
args: {
126-
hideSSHButton: true,
127-
},
128-
};
129-
130-
export const HideVSCodeDesktopButton: Story = {
131-
args: {
132-
hideVSCodeDesktopButton: true,
133-
},
134-
};
135-
136-
export const NotShowingApps: Story = {
137-
args: {
138-
showApps: false,
139-
},
140-
};
141-
142123
export const BunchOfApps: Story = {
143124
args: {
144125
agent: {
@@ -155,7 +136,6 @@ export const BunchOfApps: Story = {
155136
],
156137
},
157138
workspace: M.MockWorkspace,
158-
showApps: true,
159139
},
160140
};
161141

@@ -246,17 +226,13 @@ export const Outdated: Story = {
246226
args: {
247227
agent: M.MockWorkspaceAgentOutdated,
248228
workspace: M.MockWorkspace,
249-
serverVersion: "v99.999.9999+c1cdf14",
250-
serverAPIVersion: "1.0",
251229
},
252230
};
253231

254232
export const Deprecated: Story = {
255233
args: {
256234
agent: M.MockWorkspaceAgentDeprecated,
257235
workspace: M.MockWorkspace,
258-
serverVersion: "v99.999.9999+c1cdf14",
259-
serverAPIVersion: "2.0",
260236
},
261237
};
262238

site/src/modules/resources/AgentRow.test.tsx

Lines changed: 0 additions & 159 deletions
This file was deleted.

site/src/modules/resources/AgentRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import { TerminalLink } from "./TerminalLink/TerminalLink";
4444
import { VSCodeDesktopButton } from "./VSCodeDesktopButton/VSCodeDesktopButton";
4545
import { useAgentLogs } from "./useAgentLogs";
4646

47-
export interface AgentRowProps {
47+
interface AgentRowProps {
4848
agent: WorkspaceAgent;
4949
workspace: Workspace;
5050
template: Template;

site/src/modules/resources/PortForwardPopoverView.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const meta: Meta<typeof PortForwardPopoverView> = {
2828
args: {
2929
agent: MockWorkspaceAgent,
3030
template: MockTemplate,
31-
workspaceID: MockWorkspace.id,
31+
workspace: MockWorkspace,
3232
portSharingControlsEnabled: true,
3333
host: "coder.com",
3434
},

site/src/modules/resources/PortForwardPopoverView.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ describe("Port Forward Popover View", () => {
1919
<PortForwardPopoverView
2020
agent={MockWorkspaceAgent}
2121
template={MockTemplate}
22-
workspaceID={MockWorkspace.id}
2322
listeningPorts={MockListeningPortsResponse.ports}
2423
portSharingControlsEnabled
2524
host="host"
26-
username="username"
27-
workspaceName="workspaceName"
25+
workspace={MockWorkspace}
26+
sharedPorts={[]}
27+
refetchSharedPorts={jest.fn()}
2828
/>
2929
</QueryClientProvider>,
3030
);

site/src/modules/resources/SSHButton/SSHButton.stories.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ export const Closed: Story = {
1616
args: {
1717
workspaceName: MockWorkspace.name,
1818
agentName: MockWorkspaceAgent.name,
19-
sshPrefix: "coder.",
2019
},
2120
};
2221

2322
export const Opened: Story = {
2423
args: {
2524
workspaceName: MockWorkspace.name,
2625
agentName: MockWorkspaceAgent.name,
27-
sshPrefix: "coder.",
2826
},
2927
play: async ({ canvasElement }) => {
3028
const canvas = within(canvasElement);

site/src/pages/WorkspacePage/Workspace.stories.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export const Running: Story = {
7777
},
7878
handleStart: action("start"),
7979
handleStop: action("stop"),
80-
buildInfo: Mocks.MockBuildInfo,
8180
template: Mocks.MockTemplate,
8281
},
8382
};
@@ -219,7 +218,6 @@ export const RunningWithAppStatuses: Story = {
219218
},
220219
handleStart: action("start"),
221220
handleStop: action("stop"),
222-
buildInfo: Mocks.MockBuildInfo,
223221
template: Mocks.MockTemplate,
224222
},
225223
};

0 commit comments

Comments
 (0)
0