Commit Graph

21 Commits

Author SHA1 Message Date
Marcin Tojek a7366a8b76
feat!: drop support for legacy parameters (#7663) 2023-06-02 11:16:46 +02:00
Pfau, Sascha ad9a29dfa6
feat(site): added URL param name to allow setting workspace name (#7528)
* feat: added URL param name to allow setting workspace name

* fix: format

---------

Co-authored-by: SaschaPfau <Sascha.Pfau@ilabnordlb.onmicrosoft.com>
2023-05-16 13:26:13 -03:00
Bruno Quaresma 17bb1a1ff1
chore(site): Upgrade storybook to 7.0.4 (#7127) 2023-04-13 21:36:20 +00:00
Kyle Carberry 7f226d4f90
feat: add support for `coder_git_auth` data source (#6334)
* Add git auth providers schema

* Pipe git auth providers to the schema

* Add git auth providers to the API

* Add gitauth endpoint to query authenticated state

* Add endpoint to query git state

* Use BroadcastChannel to automatically authenticate with Git

* Add error validation for submitting the create workspace form

* Fix panic on template dry-run

* Add tests for the template version Git auth endpoint

* Show error if no gitauth is configured

* Add gitauth to cliui

* Fix unused method receiver

* Fix linting errors

* Fix dbauthz querier test

* Fix make gen

* Add JavaScript test for git auth

* Fix bad error message

* Fix provisionerd test race

See https://github.com/coder/coder/actions/runs/4277960646/jobs/7447232814

* Fix requested changes

* Add comment to CreateWorkspacePageView
2023-02-27 10:18:19 -06:00
Marcin Tojek e27f7accd7
feat: Group immutable and mutable rich parameters (#5975) 2023-02-02 18:01:18 +01:00
Marcin Tojek f9ae105a26
feat: Adjust forms to include Rich Parameters (#5856)
* XService: GetTemplateParameters

* Rich parameter input shows up

* Render option icons

* Icons

* WIP

* For testing purposes: template

* Fix: useState

* WIP: dynamic validation

* Yup validation

* Translations

* Remove temporary template

* make fmt

* WIP

* Fix: tests

* Fix: fmt

* URL param

* Refactor

* Test: rich param value

* Storybook

* Fix

* Refactor for testing purposes

* Typo

* test: string validation

* Button: build parameters

* Full screen page

* Fix: navigate

* XState done

* refactor: postWorkspaceBuild

* RichParameterInput rendered

* Fix: bad initial value

* Validation works

* Maybe

* Fix

* Go back button

* GoBack button

* Form

* Fix

* Storybook

* Fix: CreateWorkspacePage

* fmt

* Test

* ns

* fmt

* All tests

* feat: WorkspaceActions depend on template parameters

* Fix
2023-02-01 18:13:11 +01:00
Bruno Quaresma a13614e93d
feat: Pre-fill param inputs with query string values (#5758) 2023-01-17 22:56:29 +00:00
Ammar Bandukwala 97dbd4dc5d
Implement Quotas v3 (#5012)
* provisioner/terraform: add cost to resource_metadata

* provisionerd/runner: use Options struct

* Complete provisionerd implementation

* Add quota_allowance to groups

* Combine Quota and RBAC licenses

* Add Opts to InTx
2022-11-14 17:57:33 +00:00
Bruno Quaresma f76e7b1dbd
refactor: Refactor create workspace page (#4862) 2022-11-02 20:44:41 +00:00
Ammar Bandukwala 85c679597c
site: reduce printWidth to 80 (#4437)
Resolves #4435
2022-10-10 10:33:35 -07:00
Garrett Delfosse 69c73b2d28
feat: workspace quotas (#4184) 2022-09-30 14:01:20 -04:00
Kira Pilot 776f287685
feat: allow admins to create workspaces for other users in UI (#4247)
* added permission for creating a workspace on behalf of a user

* committing stashed files

* hooked up autocomplete for users

* added label

* added translations

* wrote test

* added inputMargin prop

* fixed permissions

* added inputSTyle prop

* ran prettier

* fix lint
2022-09-29 14:32:38 -04:00
Ammar Bandukwala 2ee6acb2ad
Upgrade frontend to React 18 (#3353)
Co-authored-by: Kira Pilot <kira.pilot23@gmail.com>
2022-08-22 15:42:06 -05:00
Abhineet Jain 8bcf23e60a
fix: handle create workspace errors (#3346) 2022-08-02 13:19:00 -04:00
Garrett Delfosse b7234a6ce1
fix: push create workspace UX to templates page (#2142) 2022-06-09 18:43:49 -05:00
Kyle Carberry 7e8692b0fd
fix: Update routing for workspace schedule (#2113)
* fix: Update routing for workspace schedule

This was broken as part of #2101. It was a silly mistake,
but unfortunate our tests didn't catch it.

This is a rare change so unlikely to occur again, so I won't
make an issue adding tests.

* Update site/src/pages/WorkspaceSchedulePage/WorkspaceSchedulePage.tsx

Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com>

Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com>
2022-06-07 14:28:47 +00:00
Kyle Carberry 0ac37b146d
feat: Add page titles (#2070) 2022-06-06 08:34:10 -05:00
Kira Pilot dd55d4577d
chore: remove react imports (#1867)
reolves #1856
2022-05-31 10:01:37 -04:00
Bruno Quaresma 104d07f659
feat: Add the template page (#1754) 2022-05-26 16:19:11 +00:00
Bruno Quaresma fcd610ee7b
refactor: Update create workspace flow to allow creation from the workspaces page (#1684) 2022-05-24 08:37:44 -05:00
Kyle Carberry 3be356095f
feat: Add create workspace page (#1589) 2022-05-19 20:51:10 +00:00