Skip to content

Commit db08dfa

Browse files
authored
fix: misleading "No workspaces yet" during manual authentication (#104)
There is a brief moment between manual authentication and workspace poller initialization and execution where we see a "No workspaces yet" which is misleading. Instead, a loading indicator/message should be displayed. - resolves #103
1 parent 9fdd99b commit db08dfa

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### Fixed
1010

1111
- rendering glitches when a Workspace is stopped while SSH connection is alive
12+
- misleading message saying that there are no workspaces rendered during manual authentication
1213

1314
## 0.2.0 - 2025-04-24
1415

src/main/kotlin/com/coder/toolbox/CoderRemoteProvider.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ class CoderRemoteProvider(
262262
// start initialization with the new settings
263263
this@CoderRemoteProvider.client = restClient
264264
coderHeaderPage = NewEnvironmentPage(context, context.i18n.pnotr(restClient.url.toString()))
265+
environments.showLoadingMessage()
265266
pollJob = poll(restClient, cli)
266267
}
267268
}
@@ -326,7 +327,14 @@ class CoderRemoteProvider(
326327
context.secrets.rememberMe = true
327328
this.client = client
328329
pollJob?.cancel()
330+
environments.showLoadingMessage()
329331
pollJob = poll(client, cli)
330332
goToEnvironmentsPage()
331333
}
334+
335+
private fun MutableStateFlow<LoadableState<List<RemoteProviderEnvironment>>>.showLoadingMessage() {
336+
this.update {
337+
LoadableState.Loading
338+
}
339+
}
332340
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy