Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb08dfa

Browse files
authored
fix: misleading "No workspaces yet" during manual authentication (#104)
There is a brief moment between manual authentication and workspacepoller initialization and execution where we see a "No workspaces yet"which is misleading. Instead, a loading indicator/message should bedisplayed.-resolves#103
1 parent9fdd99b commitdb08dfa

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+
privatefun MutableStateFlow<LoadableState<List<RemoteProviderEnvironment>>>.showLoadingMessage() {
336+
this.update {
337+
LoadableState.Loading
338+
}
339+
}
332340
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp