Skip to content

Add terminal link component #1538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 18, 2022
Merged

Add terminal link component #1538

merged 2 commits into from
May 18, 2022

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented May 17, 2022

I am not sure if the component is overkill or not but if so maybe we can pull it out once the resource card is ready? But I could see it being used in multiple places. I did not do anything with the styling so it is just a plain link right now.

Partially addresses #760 (we just need to drop it into the resources card once it is good to go).

Other than that the terminal already supported connecting to a specific workspace agent using a workspaceName.agentName syntax so all I had to do was fix a small bug with it (it only split it when fetching the agent and not when fetching the workspace so the workspace fetch would error; I just moved this logic out so it would apply to both calls).

The `workspace.agent` syntax was only used when fetching the agent and
not the workspace so it would try to fetch a workspace called
`workspace.agent` instead of just `workspace`.
Currently it does not show anywhere but we can drop it into the
resources card later.
Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me!

Copy link
Contributor

@greyscaled greyscaled left a comment

Choose a reason for hiding this comment

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

This looks good!

@code-asher code-asher marked this pull request as ready for review May 18, 2022 15:40
@code-asher code-asher requested review from presleyp and a team as code owners May 18, 2022 15:40
@code-asher code-asher merged commit e4e7e10 into main May 18, 2022
@code-asher code-asher deleted the asher/terminal-link branch May 18, 2022 15:54
kylecarbs pushed a commit that referenced this pull request Jun 10, 2022
* Fix not being able to specify agent when connecting to terminal

The `workspace.agent` syntax was only used when fetching the agent and
not the workspace so it would try to fetch a workspace called
`workspace.agent` instead of just `workspace`.

* Add terminal link component

Currently it does not show anywhere but we can drop it into the
resources card later.
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.

4 participants