Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 084dde6

Browse files
committed
feat(coderd): WIP: add sftp to apps
1 parent 9286a28 commit 084dde6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

coderd/insights.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,14 @@ func convertTemplateInsightsApps(usage database.GetTemplateInsightsRow, appUsage
461461
Icon: "/icon/terminal.svg",
462462
Seconds: usage.UsageSshSeconds,
463463
},
464+
{
465+
TemplateIDs: usage.SftpTemplateIds,
466+
Type: codersdk.TemplateAppsTypeBuiltin,
467+
DisplayName: codersdk.TemplateBuiltinAppDisplayNameSFTP,
468+
Slug: "sftp",
469+
Icon: "/icon/terminal.svg",
470+
Seconds: usage.UsageSftpSeconds,
471+
},
464472
}
465473

466474
// Use a stable sort, similarly to how we would sort in the query, note that

codersdk/insights.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ const (
207207
TemplateBuiltinAppDisplayNameJetBrains string = "JetBrains"
208208
TemplateBuiltinAppDisplayNameWebTerminal string = "Web Terminal"
209209
TemplateBuiltinAppDisplayNameSSH string = "SSH"
210+
TemplateBuiltinAppDisplayNameSFTP string = "SFTP"
210211
)
211212

212213
// TemplateAppUsage shows the usage of an app for one or more templates.

0 commit comments

Comments
 (0)