300c6d0824
feat: add global notification component ( #996 )
...
* feat: add global notification component
* fix: update yarn.lock
* fix: pin @testing-library/react-hooks
* fix: update yarn.lock
* refactor: remove displayError
2022-04-13 13:34:06 -05:00
5ecc8236b8
chore: fix storybook warnings ( #989 )
...
* chore: fix storybook deprecation warning
Removes a deprecated CLI option and uses main.js staticDirs instead.
See: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#64-deprecations
* chore: fix storybook babel warning
Resolves : #533
2022-04-13 12:03:46 -04:00
0536a140ed
chore: fix storybook fonts ( #988 )
...
Summary:
Configures storybook with MUI themes as according to their
documentation. We were previously not aligned with their example.
See: https://storybook.js.org/addons/@react-theming/storybook-addon
Details:
- configure a providerFn for MUI with CssBaseline. We were previously
missing the CssBaseline implementation, causing the inconsistency.
Impact:
Resolves inconsistency between Storybook and production. I had tested
the Tabpanel in production vs Storybook. In storybook, the font had
fallen back to Times New Roman, whereas in production it had fallen back
to Inter. This was because of CssBaseline being configured as a child of
ThemeProvider.
Resolves : #914
2022-04-13 12:03:30 -04:00
6edd7cb036
fix: typo in create workspaces command hint ( #995 )
...
Resolves : #994
2022-04-13 15:30:58 +00:00
770c567123
feat: Add RBAC package for managing user permissions ( #929 )
...
This PR adds an RBAC package for managing using permissions:
- The top-level `authz.Authorize` function is the main user-facing entrypoint to the package.
- Actual permission evaluation is handled in `policy.rego`.
- Unit tests for `authz.Authorize` are in `authz_test.go`
- Documentation for the package is in `README.md`.
Co-authored-by: Cian Johnston <cian@coder.com >
2022-04-13 08:35:35 -05:00
103d7eab14
chore: bump @types/react from 17.0.43 to 17.0.44 in /site ( #969 )
...
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 17.0.43 to 17.0.44.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-12 23:45:18 -04:00
fb70b3abf3
chore: bump webpack-dev-server from 4.7.4 to 4.8.1 in /site ( #970 )
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.7.4 to 4.8.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.4...v4.8.1 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-12 23:45:04 -04:00
ce4996668a
chore: bump @types/react-dom from 17.0.14 to 17.0.15 in /site ( #968 )
...
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ) from 17.0.14 to 17.0.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
---
updated-dependencies:
- dependency-name: "@types/react-dom"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-12 16:37:12 -04:00
e3458277df
fix: Multiple builds using the incorrect agent token ( #983 )
...
This was an issue with our in-memory database that caused
newer builds to return an outdated agent, which would then
be rejected.
A test case has been added to ensure this can't happen again!
2022-04-12 20:11:57 +00:00
e8b310166f
fix: Remove resource addresses ( #982 )
...
These were added under the impression that there was significant
user-experience impact if multiple resources share the same name.
This hasn't proven to be true yet, so figured we'd take this out
until it becomes necessary.
2022-04-12 14:38:02 -05:00
52271ff9f8
fix: use httapi.Write instead of render ( #980 )
2022-04-12 16:29:07 +00:00
d9d4599ba9
chore: idea: unify http responses further ( #941 )
2022-04-12 10:17:33 -05:00
4f0f216015
ci: Add timeouts to limit hanging execution ( #976 )
...
For some reason, CI hung for ~6hours last night on `main`.
https://github.com/coder/coder/runs/5982978236?check_suite_focus=true
The fact that it went this long is bad, but it should have cancelled
much earlier.
2022-04-12 09:35:17 -05:00
63d1465019
feat: Add update profile endpoint ( #916 )
2022-04-12 14:05:21 +00:00
db9d5b7e8c
fix: Rename coder
to sshd
on Windows for VS Code Remote support ( #974 )
...
On Windows, VS Code Remote requires a parent process of the
executing shell to be named sshd, otherwise it fails. See:
https://github.com/microsoft/vscode-remote-release/issues/5699
v0.4.1
2022-04-11 21:14:30 -05:00
e8b1a57929
feat: Add support for VS Code and JetBrains Gateway via SSH ( #956 )
...
* Improve CLI documentation
* feat: Allow workspace resources to attach multiple agents
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.
* Add tree view
* Improve table UI
* feat: Allow workspace resources to attach multiple agents
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.
* Rename `tunnel` to `skip-tunnel`
This command was `true` by default, which causes
a confusing user experience.
* Add disclaimer about editing templates
* Add help to template create
* Improve workspace create flow
* Add end-to-end test for config-ssh
* Improve testing of config-ssh
* Fix workspace list
* feat: Add support for VS Code and JetBrains Gateway via SSH
This fixes various bugs that made this not work:
- Incorrect max message size in `peer`
- Incorrect reader buffer size in `peer`
- Lack of SFTP support in `agent`
- Lack of direct-tcpip support in `agent`
- Misuse of command from session. It should always use the shell
- Blocking on SSH session, only allowing one at a time
Fixes #833 too.
* Fix config-ssh command with socat
2022-04-12 00:17:18 +00:00
fb9dc4f346
feat: Improve resource preview and first-time experience ( #946 )
...
* Improve CLI documentation
* feat: Allow workspace resources to attach multiple agents
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.
* Add tree view
* Improve table UI
* feat: Allow workspace resources to attach multiple agents
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.
* Rename `tunnel` to `skip-tunnel`
This command was `true` by default, which causes
a confusing user experience.
* Add disclaimer about editing templates
* Add help to template create
* Improve workspace create flow
* Add end-to-end test for config-ssh
* Improve testing of config-ssh
* Fix workspace list
* Fix config ssh tests
* Update cli/configssh.go
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
* Fix requested changes
* Remove socat requirement
* Fix resources not reading in TTY
Co-authored-by: Cian Johnston <public@cianjohnston.ie >
2022-04-11 18:54:30 -05:00
19b4323512
feat: Allow workspace resources to attach multiple agents ( #942 )
...
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.
2022-04-11 16:06:15 -05:00
2835bb45e5
chore: bump @testing-library/user-event from ^13.5.0 to 14.1.0 ( #972 )
2022-04-11 20:33:52 +00:00
c97180c18d
chore: bump @xstate/react from 2.0.1 to 3.0.0 in /site ( #966 )
...
Bumps [@xstate/react](https://github.com/statelyai/xstate ) from 2.0.1 to 3.0.0.
- [Release notes](https://github.com/statelyai/xstate/releases )
- [Commits](https://github.com/statelyai/xstate/compare/@xstate/react@2.0.1...@xstate/react@3.0.0 )
---
updated-dependencies:
- dependency-name: "@xstate/react"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 16:31:50 -04:00
3cb11fc906
chore: bump webpack from 5.71.0 to 5.72.0 in /site ( #965 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.71.0 to 5.72.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.71.0...v5.72.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 16:07:57 -04:00
ffa450ddd4
chore: bump eslint from 8.12.0 to 8.13.0 in /site ( #952 )
...
* chore: bump eslint from 8.12.0 to 8.13.0 in /site
Bumps [eslint](https://github.com/eslint/eslint ) from 8.12.0 to 8.13.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.12.0...v8.13.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* more updates
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: G r e y <grey@coder.com >
2022-04-11 16:06:41 -04:00
f7b72ddc7a
chore: bump xstate from 4.30.6 to 4.31.0 in /site ( #962 )
...
Bumps [xstate](https://github.com/statelyai/xstate ) from 4.30.6 to 4.31.0.
- [Release notes](https://github.com/statelyai/xstate/releases )
- [Commits](https://github.com/statelyai/xstate/compare/xstate@4.30.6...xstate@4.31.0 )
---
updated-dependencies:
- dependency-name: xstate
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 15:08:30 -04:00
0dfba86744
chore: bump @typescript-eslint/parser from 5.18.0 to 5.19.0 in /site ( #960 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.18.0 to 5.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.19.0/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 15:07:53 -04:00
6186594332
chore: bump @storybook/addon-actions from 6.4.20 to 6.4.21 in /site ( #953 )
...
Bumps [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/addons/actions ) from 6.4.20 to 6.4.21.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.21/addons/actions )
---
updated-dependencies:
- dependency-name: "@storybook/addon-actions"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:57:16 -04:00
a7c4c059e9
chore: bump @typescript-eslint/eslint-plugin in /site ( #958 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.18.0 to 5.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.19.0/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:52:40 -04:00
e13c38f0e4
chore: bump @storybook/addon-essentials from 6.4.19 to 6.4.21 in /site ( #950 )
...
Bumps [@storybook/addon-essentials](https://github.com/storybookjs/storybook/tree/HEAD/addons/essentials ) from 6.4.19 to 6.4.21.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.21/addons/essentials )
---
updated-dependencies:
- dependency-name: "@storybook/addon-essentials"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:40:00 -04:00
78e727a1c4
chore: consolidate js, ts/js labels ( #957 )
...
Dependabot automagically applies the `javascript` label, but we use `typescript/js` elsewhere.
2022-04-11 18:29:35 +00:00
8c26d934b7
chore: bump eslint-plugin-jest from 26.1.3 to 26.1.4 in /site ( #951 )
...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest ) from 26.1.3 to 26.1.4.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases )
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v26.1.3...v26.1.4 )
---
updated-dependencies:
- dependency-name: eslint-plugin-jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:22:22 -04:00
b3f69a8d1d
chore: bump chromatic from 6.5.3 to 6.5.4 in /site ( #949 )
...
Bumps [chromatic](https://github.com/chromaui/chromatic-cli ) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/chromaui/chromatic-cli/releases )
- [Changelog](https://github.com/chromaui/chromatic-cli/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chromaui/chromatic-cli/compare/v6.5.3...v6.5.4 )
---
updated-dependencies:
- dependency-name: chromatic
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:16:38 -04:00
99a685b7df
chore: bump github.com/lib/pq from 1.10.4 to 1.10.5 ( #947 )
...
Bumps [github.com/lib/pq](https://github.com/lib/pq ) from 1.10.4 to 1.10.5.
- [Release notes](https://github.com/lib/pq/releases )
- [Commits](https://github.com/lib/pq/compare/v1.10.4...v1.10.5 )
---
updated-dependencies:
- dependency-name: github.com/lib/pq
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 11:00:37 -05:00
9474f66d27
chore: bump actions/setup-go from 2 to 3 ( #948 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 08:54:24 -05:00
3f21ea472f
feat(site): Add Admin Dropdown menu ( #885 )
...
* Start porting components for Admin menu
* More porting, wip
* Add icons
* Extract arrow components, navHeight
* Add Admin Dropdown
* Format
* Delete types
* Fix styles
* Lint
* Add stub pages
* Use navHeight constant
* Move files
* Add and organize stories
* Storybook and organize text stories
* Add test
* Lint
* Lint
* Fix double navigation
* Lint
* Wrap new routes in AuthAndNav
* Undo unrelated storybook changes
* Refactor according to conventions
2022-04-08 18:25:53 -04:00
4c1ef38280
chore: remove CodeCov annotations ( #928 )
...
* chore: remove CodeCov annotations
* Format
2022-04-08 15:57:28 -04:00
0a2903c5c5
chore: assign soft ownership for xServices ( #932 )
2022-04-08 15:17:24 -04:00
b317f9a83a
fix: preferences routing and dropdown positioning ( #930 )
...
* fix: preferences routing
* fix: Fix popover miss correct position
2022-04-08 14:58:51 -04:00
cbd1c3e0be
fix: Remove excessive margin on the right ( #931 )
2022-04-08 17:45:20 +00:00
35a0acc9c6
fix: Disable Terraform plugin cache on Darwin ( #927 )
...
It was occasionally failing without any clear indication of
what to fix on our side. The plugins weren't being found
by Terraform.
We already disable this on Windows, so figured it's fine on
Darwin too considering most production deployments will be Linux.
2022-04-08 12:30:31 -05:00
53db17803a
feat: cli: add autostart and autostop commands ( #922 )
...
* feat: cli: add autostart and autostop commands
* fix: autostart/autostop: add help and usage, hide for now
2022-04-08 16:29:07 +00:00
cb5b228a21
fix: Disable raw using confirm prompt on Darwin ( #926 )
...
This caused cancel errors on prompt, but would have caused incorrect
content in parameter values if it surfaced.
Fixes #915 .
2022-04-08 11:25:19 -05:00
0bf9dee7e3
chore(site): rename userXService to authXService ( #924 )
...
* chore(site): rename userXService to authXService
* Rename contents of xService
2022-04-08 11:42:57 -04:00
94ab6f3d8e
feat: add debug-level request logging ( #923 )
...
This commit adds a small middleware to coderd that logs all requests at DEBUG level.
2022-04-08 14:35:29 +00:00
38f074254b
feat: wrap ssh with coder key ( #894 )
2022-04-07 22:40:27 +00:00
b7d7e19606
fix: rename projects to templates in README ( #920 )
2022-04-07 17:58:17 -04:00
c6a0078c35
fix: assign labels for issue templates ( #919 )
2022-04-07 21:04:56 +00:00
75ef1f4b26
feat: Add preferences pages ( #893 )
2022-04-07 16:44:08 -03:00
17848b3b86
chore: add feature request issue template ( #913 )
...
* chore: add feature request issue template
* Update .github/ISSUE_TEMPLATE/feature.md
Co-authored-by: G r e y <grey@coder.com >
* Update .github/ISSUE_TEMPLATE/feature.md
Co-authored-by: G r e y <grey@coder.com >
Co-authored-by: G r e y <grey@coder.com >
2022-04-07 10:35:32 -07:00
18595791c0
feat: add version to footer ( #882 )
...
* Add endpoint for getting build info
* Add build info XService
* Add version with link to page footer
Partially addresses #376 .
* Lift buildinfo package
2022-04-07 12:18:58 -05:00
2e5859f226
chore: bump codecov/codecov-action from 2 to 3 ( #898 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-07 11:41:35 -05:00
313b51d3fb
chore: bump @xstate/cli from 0.1.5 to 0.1.6 in /site ( #900 )
...
Bumps @xstate/cli from 0.1.5 to 0.1.6.
---
updated-dependencies:
- dependency-name: "@xstate/cli"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-07 12:08:17 -04:00