Skip to content

Commit eb5ab02

Browse files
committed
Merge branch 'main' into remember-token-when-switching-deployments
2 parents 54b3e0a + e4ce4c4 commit eb5ab02

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99

1010
### Fixed
1111

12+
- url on the main page is now refreshed when switching between multiple deployments (via logout/login or URI handling)
1213
- tokens are now remembered after switching between multiple deployments
1314

1415
## 0.2.2 - 2025-05-21
1516

16-
### Added
17-
1817
- render network status in the Settings tab, under `Additional environment information` section.
1918
- quick action for creating new workspaces from the web dashboard.
2019

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.coder.toolbox.util.DialogUi
99
import com.coder.toolbox.util.withPath
1010
import com.coder.toolbox.views.Action
1111
import com.coder.toolbox.views.AuthWizardPage
12+
import com.coder.toolbox.views.CoderPage
1213
import com.coder.toolbox.views.CoderSettingsPage
1314
import com.coder.toolbox.views.NewEnvironmentPage
1415
import com.coder.toolbox.views.state.AuthWizardState
@@ -341,7 +342,9 @@ class CoderRemoteProvider(
341342
this.client = client
342343
pollJob?.cancel()
343344
environments.showLoadingMessage()
345+
coderHeaderPage = NewEnvironmentPage(context, context.i18n.pnotr(client.url.toString()))
344346
pollJob = poll(client, cli)
347+
context.ui.showUiPage(CoderPage.emptyPage(context))
345348
goToEnvironmentsPage()
346349
}
347350

src/main/kotlin/com/coder/toolbox/views/CoderPage.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ abstract class CoderPage(
5353
)
5454
}
5555
}
56+
57+
companion object {
58+
fun emptyPage(ctx: CoderToolboxContext): UiPage = UiPage(ctx.i18n.pnotr(""))
59+
}
5660
}
5761

5862
/**

0 commit comments

Comments
 (0)