Skip to content

Support Toolbox 3.5 provider header rendering#316

Merged
fioan89 merged 2 commits into
mainfrom
toolbox-3-5-header-support
Jun 11, 2026
Merged

Support Toolbox 3.5 provider header rendering#316
fioan89 merged 2 commits into
mainfrom
toolbox-3-5-header-support

Conversation

@fioan89

@fioan89 fioan89 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Toolbox 3.5 removes the provider top section when canCreateNewEnvironments is false. Coder used that section to render the deployment URL and account dropdown, so the URL header stayed stuck on Coder and the dropdown never appeared.

Because we changed canCreateNewEnvironments to true, Toolbox 3.5 renders that top/header area again. But getAccountDropDown() always returns accountDropdownField, and its initial label is "". So I hid it until a real Coder session exists, then made it visible after login when we set the username.

As an extra I changed all calls to showPluginEnvironmentsPage(false) when returning to the provider page. There is no reason to expand the header bar right now because Coder only renders the URL and account button there.

Original Toolbox issue that was fixed in 3.5:
https://youtrack.jetbrains.com/issue/TBX-17235

Toolbox 3.5 removes the provider top section when canCreateNewEnvironments is false.
Coder used that section to render the deployment URL and account dropdown, so the URL
header stayed stuck on Coder and the dropdown never appeared.

As an extra I changed all calls to showPluginEnvironmentsPage(false)
when returning to the provider page. There is no reason to expand the header bar right
now because Coder only renders the URL and account button there.

Original Toolbox issue that was fixed in 3.5:
https://youtrack.jetbrains.com/issue/TBX-17235
@fioan89 fioan89 requested a review from code-asher June 10, 2026 20:41
@fioan89

fioan89 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

Expanded:
Screenshot 2026-06-10 at 23 03 34

Non expanded version:
Screenshot 2026-06-10 at 23 03 52

@matifali

Copy link
Copy Markdown
Member

Expanded: Screenshot 2026-06-10 at 23 03 34

Non expanded version: Screenshot 2026-06-10 at 23 03 52

Which of them is the new behavior? I don't understand what do we get from the expanded behaviour if it has nothing inside it.

@fioan89

fioan89 commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator Author

The new behavior is the non-expanded version. Previously, the flag did not matter because of canCreateNewEnvironments bug.

@matifali matifali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nota. code review, but for the new behavior ✅

@fioan89 fioan89 merged commit 01660ae into main Jun 11, 2026
6 checks passed
@fioan89 fioan89 deleted the toolbox-3-5-header-support branch June 11, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants