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

feat: add devcontainer in the UI#16800

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 10 commits intomainfrombq/devcontainer
Mar 4, 2025
Merged

feat: add devcontainer in the UI#16800

BrunoQuaresma merged 10 commits intomainfrombq/devcontainer
Mar 4, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

image

Related to#16422

@BrunoQuaresmaBrunoQuaresma self-assigned thisMar 4, 2025
/>
</header>

<h4 className="m-0 text-xl font-semibold">Forwarded ports</h4>
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about removing this?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

I personally like that. I would think on removing it later on when we have more things to display on the screen.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe it could be a little smaller? This is just a nit though, and I'm totally fine with leaving it as-is.

agentName,
workspace.name,
workspace.owner_name,
location.protocol === "https" ? "https" : "http",
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

@johnstcn should we return the port protocol in the response? Here, I'm just using whatever the user is currently using in the UI but maybe, some apps use HTTP instead of HTTPS... I'm not sure if it makes sense tho 🤔

Copy link
Member

Choose a reason for hiding this comment

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

I think it's always going to be the same protocol as the Coder deployment?

If not, we can get that fromportAttributes:https://containers.dev/implementors/json_reference/#port-attributes

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

I think it's always going to be the same protocol as the Coder deployment?

I'm not sure but would be safest to rely in the devcontainer config.

Co-authored-by: Cian Johnston <cian@coder.com>
@BrunoQuaresmaBrunoQuaresma changed the titlefeat: display devcontainer in the UIfeat: add devcontainer in the UIMar 4, 2025
@BrunoQuaresma
Copy link
CollaboratorAuthor

@johnstcn I would really appreciate if you could QA those changes locally and see if they are working nicely. My main concerns are the terminal and "port forwarded" links.

Comment on lines 285 to 297
<section>
{containers.map((container) => {
return (
<AgentDevcontainerCard
key={container.id}
container={container}
workspace={workspace}
host={proxy.preferredWildcardHostname || window.location.host}
agentName={agent.name}
/>
);
})}
</section>
Copy link
Member

Choose a reason for hiding this comment

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

Should we skip showing a card for a stopped devcontainer? Or continue showing it but indicate it's stopped?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

I put some extra thoughts on this and I think we could just hide it for now since it would require design changes.

@johnstcn
Copy link
Member

johnstcn commentedMar 4, 2025
edited
Loading

@johnstcn I would really appreciate if you could QA those changes locally and see if they are working nicely. My main concerns are the terminal and "port forwarded" links.

Web terminal link is working fine locally! There should be no changes in behaviour required for the "forwarded port" links. They work similarly to the "listening ports" feature.

BrunoQuaresma reacted with thumbs up emoji

@BrunoQuaresma
Copy link
CollaboratorAuthor

@johnstcn I think what we have now is good to go and test on dev.coder.com 👍

component={AgentButton}
underline="none"
startIcon={<ExternalLinkIcon className="size-icon-sm" />}
href={portForwardURL(
Copy link
Member

Choose a reason for hiding this comment

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

I think we should only showportForwardURL if wildcard hostname is set. Otherwise you get a URL likehttp://localhost:12345 which won't work.

BrunoQuaresma reacted with thumbs up emoji
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Fixed ✅

Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

BrunoQuaresma reacted with heart emoji
@BrunoQuaresmaBrunoQuaresma merged commit861c4b1 intomainMar 4, 2025
30 checks passed
@BrunoQuaresmaBrunoQuaresma deleted the bq/devcontainer branchMarch 4, 2025 17:29
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 4, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@BrunoQuaresmaBrunoQuaresma

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@BrunoQuaresma@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp