Skip to content

Commit 4f0417c

Browse files
authored
Revert "feat: Add portforward to the UI (#3812)" (#4048)
This reverts commit 0552c36.
1 parent 0f8c2f5 commit 4f0417c

File tree

5 files changed

+1
-168
lines changed

5 files changed

+1
-168
lines changed

site/src/components/PortForwardButton/PortForwardButton.stories.tsx

-25
This file was deleted.

site/src/components/PortForwardButton/PortForwardButton.tsx

-131
This file was deleted.

site/src/components/Resources/Resources.tsx

-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { Skeleton } from "@material-ui/lab"
1010
import useTheme from "@material-ui/styles/useTheme"
1111
import { CloseDropdown, OpenDropdown } from "components/DropdownArrows/DropdownArrows"
1212
import { ErrorSummary } from "components/ErrorSummary/ErrorSummary"
13-
import { PortForwardButton } from "components/PortForwardButton/PortForwardButton"
1413
import { TableCellDataPrimary } from "components/TableCellData/TableCellData"
1514
import { FC, useState } from "react"
1615
import { getDisplayAgentStatus, getDisplayVersionStatus } from "util/workspace"
@@ -151,11 +150,6 @@ export const Resources: FC<React.PropsWithChildren<ResourcesProps>> = ({
151150
{canUpdateWorkspace && agent.status === "connected" && (
152151
<>
153152
<SSHButton workspaceName={workspace.name} agentName={agent.name} />
154-
<PortForwardButton
155-
username={workspace.owner_name}
156-
workspaceName={workspace.name}
157-
agentName={agent.name}
158-
/>
159153
<TerminalLink
160154
workspaceName={workspace.name}
161155
agentName={agent.name}

site/src/components/Tooltips/HelpTooltip/HelpTooltip.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,8 @@ const useStyles = makeStyles((theme) => ({
226226
},
227227

228228
link: {
229-
display: "inline-flex",
229+
display: "flex",
230230
alignItems: "center",
231-
width: "fit-content",
232231
},
233232

234233
linkIcon: {

site/webpack.common.ts

-4
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ import { Configuration, EnvironmentPlugin } from "webpack"
1414
const environmentPlugin = new EnvironmentPlugin({
1515
INSPECT_XSTATE: "",
1616
CODER_VERSION: "main",
17-
CODER_ENABLE_WILDCARD_APPS: "",
1817
})
1918
console.info(`--- Setting INSPECT_XSTATE to '${process.env.INSPECT_XSTATE || ""}'`)
2019
console.info(`--- Setting CODER_VERSION to '${process.env.CODER_VERSION || "main"}'`)
21-
console.info(
22-
`--- Setting CODER_ENABLE_WILDCARD_APPS to '${process.env.CODER_ENABLE_WILDCARD_APPS ?? ""}'`,
23-
)
2420
console.info(`--- Setting NODE_ENV to '${process.env.NODE_ENV || ""}'`)
2521

2622
/**

0 commit comments

Comments
 (0)