Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Improve resource preview and first-time experience #946

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 21 commits into from
Apr 11, 2022
Merged

Conversation

kylecarbs
Copy link
Member

  • Adds resource preview table.
  • Reorganizes prompts on workspace create.
  • Improves english in various places.

asciicast

kylecarbs added 10 commits April 8, 2022 14:12
This enables a "kubernetes_pod" to attach multiple agents that
could be for multiple services. Each agent is required to have
a unique name, so SSH syntax is:

`coder ssh <workspace>.<agent>`

A resource can have zero agents too, they aren't required.
This enables a "kubernetes_pod" to attach multiple agents that
could be for multiple services. Each agent is required to have
a unique name, so SSH syntax is:

`coder ssh <workspace>.<agent>`

A resource can have zero agents too, they aren't required.
This command was `true` by default, which causes
a confusing user experience.
@kylecarbs kylecarbs self-assigned this Apr 10, 2022
@kylecarbs kylecarbs requested a review from a team as a code owner April 10, 2022 21:12
@codecov
Copy link

codecov bot commented Apr 10, 2022

Codecov Report

Merging #946 (683f87e) into main (19b4323) will increase coverage by 0.54%.
The diff coverage is 60.94%.

@@            Coverage Diff             @@
##             main     #946      +/-   ##
==========================================
+ Coverage   66.22%   66.76%   +0.54%     
==========================================
  Files         240      241       +1     
  Lines       14408    14582     +174     
  Branches      115      115              
==========================================
+ Hits         9542     9736     +194     
+ Misses       3904     3864      -40     
- Partials      962      982      +20     
Flag Coverage Δ
unittest-go-macos-latest 53.72% <60.42%> (+0.96%) ⬆️
unittest-go-postgres- 66.51% <60.94%> (+0.60%) ⬆️
unittest-go-ubuntu-latest 56.38% <60.42%> (+1.03%) ⬆️
unittest-go-windows-2022 53.01% <60.42%> (+0.96%) ⬆️
unittest-js 61.56% <ø> (ø)
Impacted Files Coverage Δ
cli/cliui/cliui.go 40.00% <ø> (ø)
cli/cliui/select.go 58.82% <0.00%> (-2.41%) ⬇️
cli/templatelist.go 10.00% <0.00%> (+1.30%) ⬆️
cli/templates.go 100.00% <ø> (+45.76%) ⬆️
cli/templateupdate.go 7.24% <0.00%> (ø)
cli/workspacedelete.go 26.08% <0.00%> (+8.43%) ⬆️
cli/workspacelist.go 7.01% <0.00%> (-2.51%) ⬇️
codersdk/workspaceresources.go 45.45% <ø> (ø)
cli/workspaceshow.go 20.00% <11.76%> (-30.00%) ⬇️
coderd/workspaceagents.go 58.66% <22.22%> (-9.73%) ⬇️
... and 35 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19b4323...683f87e. Read the comment docs.

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.

site/ changes LGTM ✔️

@@ -17,7 +17,7 @@ const config: PlaywrightTestConfig = {
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
webServer: {
// Run the coder daemon directly.
command: `go run -tags embed ${path.join(__dirname, "../../cmd/coder/main.go")} start --dev --tunnel=false`,
command: `go run -tags embed ${path.join(__dirname, "../../cmd/coder/main.go")} start --dev --skip-tunnel`,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 LGTM

Base automatically changed from updatetfprovider to main April 11, 2022 21:06
agent/agent.go Outdated
@@ -100,6 +100,10 @@ func (a *agent) run(ctx context.Context) {
}

func (a *agent) handlePeerConn(ctx context.Context, conn *peer.Conn) {
go func() {
<-a.closed
Copy link
Member

Choose a reason for hiding this comment

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

It feels strange to be doing this in one goroutine and waiting for conn.Closed() in another goroutine, just to call Done(). Can we not do it in one?

Co-authored-by: Cian Johnston <[email protected]>
@kylecarbs kylecarbs force-pushed the clihelp branch 2 times, most recently from c3ba120 to 5f2d858 Compare April 11, 2022 22:43
@kylecarbs kylecarbs force-pushed the clihelp branch 2 times, most recently from 00a9994 to 421dd0e Compare April 11, 2022 23:23
@kylecarbs kylecarbs enabled auto-merge (squash) April 11, 2022 23:37
@kylecarbs kylecarbs disabled auto-merge April 11, 2022 23:41
@kylecarbs kylecarbs merged commit fb9dc4f into main Apr 11, 2022
@kylecarbs kylecarbs deleted the clihelp branch April 11, 2022 23:54
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