866205c145
feat: Sign MacOS binaries ( #1060 )
...
This fixes virus warnings when launching Coder on darwin.
2022-04-18 14:57:41 -05:00
a5f36ad4e2
chore: bump @storybook/addon-links from 6.4.21 to 6.4.22 in /site ( #1022 )
...
Bumps [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/addons/links ) from 6.4.21 to 6.4.22.
- [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.22/addons/links )
---
updated-dependencies:
- dependency-name: "@storybook/addon-links"
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-18 19:55:50 +00:00
50751a2d6f
chore: bump @storybook/addon-essentials from 6.4.21 to 6.4.22 in /site ( #1020 )
...
Bumps [@storybook/addon-essentials](https://github.com/storybookjs/storybook/tree/HEAD/addons/essentials ) from 6.4.21 to 6.4.22.
- [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.22/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-18 15:34:39 -04:00
18819e37ee
chore: bump @storybook/react from 6.4.21 to 6.4.22 in /site ( #1054 )
...
Bumps [@storybook/react](https://github.com/storybookjs/storybook/tree/HEAD/app/react ) from 6.4.21 to 6.4.22.
- [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.22/app/react )
---
updated-dependencies:
- dependency-name: "@storybook/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-18 14:16:14 -04:00
d98b7ec469
fix: Test flake for DataDog agent logs ( #1026 )
...
Sometimes the DataDog agent would fail to connect and
angrily log using the standard lib logger. This would
fail tests. See:
https://github.com/coder/coder/runs/6038192436?check_suite_focus=true
2022-04-18 12:37:01 -05:00
1df750bf1a
feat: add GET /api/v2/users ( #1028 )
2022-04-18 17:19:47 +00:00
af672803a2
autostart/autostop: move to traditional 5-valued cron string for compatibility ( #1049 )
...
This PR modfies the original 3-valued cron strings used in package schedule to be traditional 5-valued cron strings.
- schedule.Weekly will validate that the month and dom fields are equal to *
- cli autostart/autostop will attempt to detect local timezone using TZ env var, defaulting to UTC
- cli autostart/autostop no longer accepts a raw schedule -- instead use the --minute, --hour, --dow, and --tz arguments.
- Default schedules are provided that should suffice for most users.
Fixes #993
2022-04-18 11:04:48 -05:00
3311c2f65d
refactor: replace Code by Detail in the http API error ( #1011 )
2022-04-18 11:02:54 -05:00
9faa39aa23
example: added docker local workspace ( #1025 )
2022-04-18 10:20:45 -05:00
48a6cd9cee
chore: bump @testing-library/user-event from 14.1.0 to 14.1.1 in /site ( #1055 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 14.1.0 to 14.1.1.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v14.1...v14.1.1 )
---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
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-18 10:11:32 -05:00
37c1c6840c
chore: bump @playwright/test from 1.20.2 to 1.21.0 in /site ( #1053 )
...
Bumps [@playwright/test](https://github.com/Microsoft/playwright ) from 1.20.2 to 1.21.0.
- [Release notes](https://github.com/Microsoft/playwright/releases )
- [Commits](https://github.com/Microsoft/playwright/compare/v1.20.2...v1.21.0 )
---
updated-dependencies:
- dependency-name: "@playwright/test"
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-18 14:04:47 +00:00
f5eb8a98ff
chore: bump @storybook/addon-actions from 6.4.21 to 6.4.22 in /site ( #1021 )
...
Bumps [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/addons/actions ) from 6.4.21 to 6.4.22.
- [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.22/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-18 08:55:25 -05:00
5e2b519b36
chore: bump @testing-library/react from 12.1.4 to 12.1.5 in /site ( #1019 )
...
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library ) from 12.1.4 to 12.1.5.
- [Release notes](https://github.com/testing-library/react-testing-library/releases )
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/react-testing-library/compare/v12.1.4...v12.1.5 )
---
updated-dependencies:
- dependency-name: "@testing-library/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-18 08:54:55 -05:00
65e0533d11
chore: bump @types/node from 14.18.12 to 14.18.13 in /site ( #1023 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.18.12 to 14.18.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
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-18 08:53:22 -05:00
f56eb87fed
chore: bump async from 2.6.3 to 2.6.4 in /site ( #1027 )
...
Bumps [async](https://github.com/caolan/async ) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases )
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md )
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4 )
---
updated-dependencies:
- dependency-name: async
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-18 08:52:52 -05:00
71acf4b8a1
chore: bump github.com/gohugoio/hugo from 0.96.0 to 0.97.2 ( #1052 )
...
Bumps [github.com/gohugoio/hugo](https://github.com/gohugoio/hugo ) from 0.96.0 to 0.97.2.
- [Release notes](https://github.com/gohugoio/hugo/releases )
- [Changelog](https://github.com/gohugoio/hugo/blob/master/goreleaser.yml )
- [Commits](https://github.com/gohugoio/hugo/compare/v0.96.0...v0.97.2 )
---
updated-dependencies:
- dependency-name: github.com/gohugoio/hugo
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-18 08:50:32 -05:00
e5a401fce8
chore: bump github.com/pion/webrtc/v3 from 3.1.28 to 3.1.29 ( #1051 )
...
Bumps [github.com/pion/webrtc/v3](https://github.com/pion/webrtc ) from 3.1.28 to 3.1.29.
- [Release notes](https://github.com/pion/webrtc/releases )
- [Commits](https://github.com/pion/webrtc/compare/v3.1.28...v3.1.29 )
---
updated-dependencies:
- dependency-name: github.com/pion/webrtc/v3
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-18 08:50:11 -05:00
6dedd0caac
ci: Don't run internal steps if forked ( #1048 )
...
This was causing CI to fail for contributions.
2022-04-16 13:51:01 -04:00
cf8a20d6f6
refactor: strong type for getFormHelpers name ( #1029 )
2022-04-15 16:31:23 -04:00
104a3c6b9c
fix: Prefix tmp directory for agent download with "coder" ( #1038 )
...
This makes it easier to find the temporary dir for the coder binary.
2022-04-15 15:30:37 -05:00
148e7cddd3
chore: update semantic types ( #1030 )
...
Summary:
PRs like #1025 feel like they deserve a doc: type, but we didn't have one.
Furthermore our definitions for correct and fix were stale.
2022-04-15 16:26:20 -04:00
a13cceea3b
chore: run github actions on pull_request instead of push ( #1035 )
2022-04-15 15:55:13 -04:00
88e30bec55
feat: add the preferences/account page ( #999 )
v0.4.2
2022-04-15 13:17:50 -04:00
c853eb3350
chore: bump cloud.google.com/go/compute from 1.5.0 to 1.6.0 ( #1018 )
...
Bumps [cloud.google.com/go/compute](https://github.com/googleapis/google-cloud-go ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases )
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-cloud-go/compare/redis/v1.5.0...pubsub/v1.6.0 )
---
updated-dependencies:
- dependency-name: cloud.google.com/go/compute
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-15 10:36:47 -05:00
721cb88225
chore: bump github.com/jedib0t/go-pretty/v6 from 6.3.0 to 6.3.1 ( #1017 )
...
Bumps [github.com/jedib0t/go-pretty/v6](https://github.com/jedib0t/go-pretty ) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/jedib0t/go-pretty/releases )
- [Commits](https://github.com/jedib0t/go-pretty/compare/v6.3.0...v6.3.1 )
---
updated-dependencies:
- dependency-name: github.com/jedib0t/go-pretty/v6
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-15 10:03:23 -05:00
b36ed2dec7
chore: bump github.com/pion/webrtc/v3 from 3.1.27 to 3.1.28 ( #1016 )
...
Bumps [github.com/pion/webrtc/v3](https://github.com/pion/webrtc ) from 3.1.27 to 3.1.28.
- [Release notes](https://github.com/pion/webrtc/releases )
- [Commits](https://github.com/pion/webrtc/compare/v3.1.27...v3.1.28 )
---
updated-dependencies:
- dependency-name: github.com/pion/webrtc/v3
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-15 10:01:39 -05:00
1c5557279a
feat: add footer to the login page ( #1012 )
2022-04-15 09:38:18 -03:00
732e0f063a
chore: add dependabot config for terraform examples ( #1014 )
2022-04-14 16:14:49 -04:00
76f8ff9f21
feat: Add Footer to every page with nav ( #1009 )
...
* Add Footer to AuthAndNav, rename
* Fix in preferences layout
* Remove double footer
2022-04-14 13:58:53 -04:00
82275a81c7
feat(site): Read users into basic UsersTable ( #981 )
...
* Start users
* Set up fake response
* Update handler
* Update types
* Set up page
* Start adding table
* Add header
* Add Header
* Remove roles
* Add UsersPageView
* Add test
* Lint
* Storybook error summary
* Strip Pager to just what's currently needed
* Clean up ErrorSummary while I'm here
* Storybook tweaks
* Extract language
* Lint
* Add missing $
Co-authored-by: G r e y <grey@coder.com >
* Lint
* Lint
* Fix syntax error
* Lint
Co-authored-by: G r e y <grey@coder.com >
2022-04-14 13:57:55 -04:00
f803e37505
chore: use workspace name as arg in coder workspaces create
( #1007 )
2022-04-14 17:23:20 +00:00
7090227d38
fix: GitSSH test flake on slow CI runs ( #1001 )
...
There was a 5s timeout on the context, which was occasionally
hit during slow runs. See:
https://github.com/coder/coder/runs/6025622326?check_suite_focus=true
I also removed the AWS authentication, because it added to the test
time for key-generation and such.
2022-04-14 11:38:54 -05:00
f3f39f3770
ci: remove building from test/js ( #1005 )
...
Summary:
There's no reason to build in `test/js`, since we have e2e tests that build.
Details:
- Remove superfluous `yarn build` from `test/js` step in CI
Relates to #1004 but does not fix it.
2022-04-14 16:32:34 +00:00
30877bb71f
ci: reduce maxWorkers in jest tests ( #1006 )
...
Summary:
When `maxWorkers` is high, there's a bug in `jest` that causes OOM kills.
Unfortunately, CI is experiencing this as well as local. For now, the best solution
is just reducing `maxWorkers`.
Resolves : #1004
2022-04-14 12:23:16 -04:00
3304db08dd
fix: Agent/SessionTTY flake waiting for terminal prompt ( #1002 )
...
For an unknown reason, the prompt wouldn't appear on Windows
randomly in CI. This shouldn't be a necessary check anyways,
because terminal input will be buffered.
2022-04-14 15:55:43 +00:00
fed02cdcdc
chore: replace cloudflare dev tunnel with frp ( #867 )
2022-04-14 11:29:40 -04:00
42e9956779
feat: workspace view for schedules ( #991 )
...
Summary:
This adds the client-side implementation to match the types introduced
in #879 and #844 as well as a card in the Workspaces page to present
workspace the data.
Details:
* Added a convenient line break in the example schedule.Weekly
* Added missing `json:""` annotations in codersdk/workspaces.go
* Installed cronstrue for displaying human-friendly cron strings
* Adjusted/Added client-side types to match codersdk/workspaces.go
* Added new component WorkspaceSchedule.tsx
Next Steps:
The WorkspaceSchedule.tsx card only presents data (on purpose). In order
to make it PUT/modify data, a few changes will be made:
- a form for updating workspace schedule will be created
- the form will wrapped in a dialog or modal
- the WorkspaceSchedule card will have a way of opening the modal which
will likely be generalized up to WorkspaceSection.tsx
Impact:
This is user-facing
This does not fully resolve either #274 or #275 (I may further decompose
that work to reflect reality and keep things in small deliverable
increments), but adds significant progress towards both.
2022-04-13 20:35:47 -04:00
027d89dd9b
chore: Add alias coder agent
( #986 )
2022-04-13 20:55:55 +00:00
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