Commit 3f2ab4f
committed
impl: show ssh network metrics in the Settings tab
Under the "Additional environment information". Unfortunately it was not
possible any other way. The description property is modifiable however
Toolbox renders the description label only as long as the SSH connection
is not established. As soon as an ssh connection is running the description
label is used as mechanism to notify users about available IDE updates.
It also appears that we can't have any other extra tab, other than "Tools",
"Projects" and "Settings". There is a secondary information attribute API,
but it is not usable to show recurring metrics info because it can only be
configured once, it is not a mutable field.
The best effort was to add the information in the Settings page, and it is
worth highlighting that the metrics are only refreshed when user either:
- switches between tabs
- expands/collapses teh "Additional environment information" section.
There is no programmatic mechanism to notify the information in the Settings
page changed1 parent 5e30b60 commit 3f2ab4f
File tree
3 files changed
+20
-4
lines changed- src/main
- kotlin/com/coder/toolbox
- sdk/v2/models
- resources/localization
3 files changed
+20
-4
lines changedLines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
179 | 184 | | |
180 | 185 | | |
181 | 186 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
134 | 137 | | |
0 commit comments