Skip to content

chore: update documentation links in UI components #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/kotlin/com/coder/gateway/help/CoderWebHelp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const val ABOUT_HELP_TOPIC = "com.coder.gateway.about"

class CoderWebHelp : WebHelpProvider() {
override fun getHelpPageUrl(helpTopicId: String): String = when (helpTopicId) {
ABOUT_HELP_TOPIC -> "https://coder.com/docs/coder-oss/latest"
else -> "https://coder.com/docs/coder-oss/latest"
ABOUT_HELP_TOPIC -> "https://coder.com/docs"
else -> "https://coder.com/docs"
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/com/coder/gateway/util/Error.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fun humanizeConnectionError(deploymentURL: URL, requireTokenAuth: Boolean, e: Ex
}
is SocketTimeoutException -> "Unable to connect to $deploymentURL; is it up?"
is ResponseException, is ConnectException -> "Failed to download Coder CLI: $reason"
is SSLHandshakeException -> "Connection to $deploymentURL failed: $reason. See the <a href='https://coder.com/docs/v2/latest/ides/gateway#configuring-the-gateway-plugin-to-use-internal-certificates'>documentation for TLS certificates</a> for information on how to make your system trust certificates coming from your deployment."
is SSLHandshakeException -> "Connection to $deploymentURL failed: $reason. See the <a href='https://coder.com/docs/user-guides/workspace-access/jetbrains#configuring-the-gateway-plugin-to-use-internal-certificates'>documentation for TLS certificates</a> for information on how to make your system trust certificates coming from your deployment."
else -> reason
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
row {
browserLink(
CoderGatewayBundle.message("gateway.connector.view.login.documentation.action"),
"https://coder.com/docs/coder-oss/latest/workspaces",
"https://coder.com/docs/user-guides/workspace-management",
)
}
row(CoderGatewayBundle.message("gateway.connector.view.login.url.label")) {
Expand Down Expand Up @@ -910,7 +910,7 @@
}

private class WorkspaceVersionColumnInfo(columnName: String) : ColumnInfo<WorkspaceAgentListModel, String>(columnName) {
override fun valueOf(workspace: WorkspaceAgentListModel?): String? = if (workspace == null) {

Check warning on line 913 in src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspacesStepView.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Redundant nullable return type

'valueOf' always returns non-null type
"Unknown"
} else if (workspace.workspace.outdated) {
"Outdated"
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/messages/CoderGatewayBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ gateway.connector.view.coder.workspaces.update.description=Update workspace
gateway.connector.view.coder.workspaces.create.text=Create Workspace
gateway.connector.view.coder.workspaces.create.description=Create workspace
gateway.connector.view.coder.workspaces.unsupported.os.info=Gateway supports only Linux machines. Support for macOS and Windows is planned.
gateway.connector.view.coder.workspaces.invalid.coder.version=Could not parse Coder version {0}. Coder Gateway plugin might not be compatible with this version. <a href='https://coder.com/docs/v2/latest/ides/gateway#creating-a-new-jetbrains-gateway-connection'>Connect to a Coder workspace manually</a>
gateway.connector.view.coder.workspaces.unsupported.coder.version=Coder version {0} might not be compatible with this plugin version. <a href='https://coder.com/docs/v2/latest/ides/gateway#creating-a-new-jetbrains-gateway-connection'>Connect to a Coder workspace manually</a>
gateway.connector.view.coder.workspaces.invalid.coder.version=Could not parse Coder version {0}. Coder Gateway plugin might not be compatible with this version. <a href='https://coder.com/docs/user-guides/workspace-access/jetbrains#manually-configuring-a-jetbrains-gateway-connection'>Connect to a Coder workspace manually</a>
gateway.connector.view.coder.workspaces.unsupported.coder.version=Coder version {0} might not be compatible with this plugin version. <a href='https://coder.com/docs/user-guides/workspace-access/jetbrains#manually-configuring-a-jetbrains-gateway-connection'>Connect to a Coder workspace manually</a>
gateway.connector.view.workspaces.connect.failed=Connection to {0} failed. See above for details.
gateway.connector.view.workspaces.connect.canceled=Connection to {0} canceled.
gateway.connector.view.coder.connect-ssh=Establishing SSH connection to remote worker...
Expand Down
Loading