Bruno Quaresma
0ffcc47f32
fix: Fix log order in the workspace build page ( #1604 )
2022-05-19 21:19:28 +00:00
Kyle Carberry
3be356095f
feat: Add create workspace page ( #1589 )
2022-05-19 20:51:10 +00:00
Bruno Quaresma
0b1a35f7b8
feat: Add workspace build logs page ( #1598 )
2022-05-19 15:34:42 -05:00
Cian Johnston and G r e y
d72c45e483
refactor: workspace autostop_schedule -> ttl ( #1578 )
...
Co-authored-by: G r e y <grey@coder.com >
2022-05-19 15:09:27 -04:00
Steven Masley
6c1117094d
chore: Force codersdk to not import anything from database ( #1576 )
...
* chore: Force codersdk to not import anything from database (linter rule)
* chore: Move all database types in codersdk out
2022-05-19 13:04:44 -05:00
G r e y
a0834404f7
chore: rm dead code; add check:all ( #1595 )
2022-05-19 12:40:40 -05:00
G r e y
67333b6186
feat: getWorkspaces filter site api ( #1564 )
2022-05-19 12:08:55 -04:00
G r e y
e0165c5d89
fix: static data in mocks ( #1574 )
2022-05-19 11:36:14 -04:00
Bruno Quaresma
3f770e1111
fix: User permissions on UI ( #1570 )
2022-05-19 15:10:18 +00:00
Kyle Carberry and Cian Johnston
38ee519f42
feat: Expose the values contained in an HCL validation string to the API ( #1587 )
...
* feat: Expose the values contained in an HCL validation string to the API
This allows the frontend to render inputs displaying these values!
* Update codersdk/parameters.go
Co-authored-by: Cian Johnston <cian@coder.com >
* Call a spade a space
* Fix linting errors with type conversion
Co-authored-by: Cian Johnston <cian@coder.com >
2022-05-19 13:29:36 +00:00
Spike Curtis
9f402fa27f
Spike/222 workspace build order ( #1534 )
...
* chore: refactor before_id/after_id to build_number
Signed-off-by: Spike Curtis <spike@coder.com >
* pagination of workspace_builds
Signed-off-by: Spike Curtis <spike@coder.com >
* Disable parallel on postgres tests
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix lint
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix workspace build postgres query
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix JS tests
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix workspace builds postgres query
Signed-off-by: Spike Curtis <spike@coder.com >
2022-05-18 16:33:33 +00:00
Asher
e4e7e10690
feat: add terminal link component ( #1538 )
...
* Fix not being able to specify agent when connecting to terminal
The `workspace.agent` syntax was only used when fetching the agent and
not the workspace so it would try to fetch a workspace called
`workspace.agent` instead of just `workspace`.
* Add terminal link component
Currently it does not show anywhere but we can drop it into the
resources card later.
2022-05-18 10:53:59 -05:00
Steven Masley
a3556b12da
feat: Single query for all workspaces with optional filter ( #1537 )
...
* feat: Add single query for all workspaces using a filter
2022-05-18 10:09:07 -05:00
dependabot[bot]
894646cb7c
chore: bump @testing-library/user-event from 14.1.1 to 14.2.0 in /site ( #1521 )
...
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 14.1.1 to 14.2.0.
- [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.1...v14.2 )
---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
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-05-18 11:01:28 -04:00
Kira Pilot
85a932bfaf
bug: fixed menu height diff ( #1546 )
...
resolves #1229
2022-05-18 10:34:56 -04:00
Kyle Carberry
76fc59aa79
feat: Add templates page ( #1510 )
...
* feat: Add template page
* Create xService
* Update column names
* Show create template conditionally
* Add template description
* Route to templates
* Add empty states
* Add tests
* Add loading indicator
* Requested changes
2022-05-18 09:05:18 -05:00
Bruno Quaresma
b7481489b1
feat: Add timeline in the workspace page ( #1533 )
2022-05-18 13:54:06 +00:00
Colin Adler
98ccd0eb89
feat: add README parsing to template versions ( #1500 )
2022-05-17 15:00:48 -05:00
dependabot[bot]
0f9559a784
chore: bump cronstrue from 2.4.0 to 2.5.0 in /site ( #1518 )
...
Bumps [cronstrue](https://github.com/bradymholt/cronstrue ) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/bradymholt/cronstrue/releases )
- [Commits](https://github.com/bradymholt/cronstrue/compare/v2.4.0...v2.5.0 )
---
updated-dependencies:
- dependency-name: cronstrue
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-05-17 15:03:45 -04:00
Kira Pilot
65acfc9bef
bug: using NavLink for menus ( #1530 )
...
* bug: using NavLink for menus
resolves #955
* lets fix our story
2022-05-17 15:01:53 -04:00
dependabot[bot]
841b792e8e
chore: bump @typescript-eslint/parser from 5.23.0 to 5.25.0 in /site ( #1517 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 5.23.0 to 5.25.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.25.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-05-17 11:36:03 -04:00
dependabot[bot]
c0b80ef899
chore: bump sql-formatter from 4.0.2 to 6.1.1 in /site ( #1514 )
...
Bumps [sql-formatter](https://github.com/zeroturnaround/sql-formatter ) from 4.0.2 to 6.1.1.
- [Release notes](https://github.com/zeroturnaround/sql-formatter/releases )
- [Changelog](https://github.com/zeroturnaround/sql-formatter/blob/master/.release-it.json )
- [Commits](https://github.com/zeroturnaround/sql-formatter/compare/v4.0.2...v6.1.1 )
---
updated-dependencies:
- dependency-name: sql-formatter
dependency-type: direct:development
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-05-17 11:35:29 -04:00
dependabot[bot]
5227a74ae3
chore: bump webpack-dev-server from 4.8.1 to 4.9.0 in /site ( #1511 )
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.8.1 to 4.9.0.
- [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.8.1...v4.9.0 )
---
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-05-17 11:35:04 -04:00
dependabot[bot]
3eaca0d436
chore: bump @pmmmwh/react-refresh-webpack-plugin in /site ( #1484 )
...
Bumps [@pmmmwh/react-refresh-webpack-plugin](https://github.com/pmmmwh/react-refresh-webpack-plugin ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/pmmmwh/react-refresh-webpack-plugin/releases )
- [Changelog](https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/CHANGELOG.md )
- [Commits](https://github.com/pmmmwh/react-refresh-webpack-plugin/compare/v0.5.5...v0.5.6 )
---
updated-dependencies:
- dependency-name: "@pmmmwh/react-refresh-webpack-plugin"
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-05-17 11:33:52 -04:00
dependabot[bot]
bb2740e7c3
chore: bump @playwright/test from 1.21.1 to 1.22.1 in /site ( #1512 )
...
Bumps [@playwright/test](https://github.com/Microsoft/playwright ) from 1.21.1 to 1.22.1.
- [Release notes](https://github.com/Microsoft/playwright/releases )
- [Commits](https://github.com/Microsoft/playwright/compare/v1.21.1...v1.22.1 )
---
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-05-17 11:12:50 -04:00
dependabot[bot]
8dd32e2a0a
chore: bump eslint from 8.14.0 to 8.15.0 in /site ( #1344 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.14.0 to 8.15.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.14.0...v8.15.0 )
---
updated-dependencies:
- dependency-name: eslint
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-05-17 11:08:26 -04:00
dependabot[bot]
d5a500a73f
chore: bump @fontsource/inter from 4.5.7 to 4.5.10 in /site ( #1251 )
...
Bumps [@fontsource/inter](https://github.com/fontsource/fontsource/tree/HEAD/fonts/google/inter ) from 4.5.7 to 4.5.10.
- [Release notes](https://github.com/fontsource/fontsource/releases )
- [Changelog](https://github.com/fontsource/fontsource/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fontsource/fontsource/commits/HEAD/fonts/google/inter )
---
updated-dependencies:
- dependency-name: "@fontsource/inter"
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-05-17 11:05:28 -04:00
G r e y
d177937e1c
chore: clean site dependencies ( #1509 )
...
* delete package-lock.json
* pin dayjs
* pin uuid, @types/uuid
* pin xterm dependencies
* pin jest deps
2022-05-17 10:45:51 -04:00
Kyle Carberry
668a6712e6
fix: Use relative timestamp for workspaces page Storybook ( #1505 )
2022-05-17 07:58:18 -05:00
Kyle Carberry
55bd7aa747
fix: Run "make gen" to regenerate queries ( #1504 )
...
This is broken in our CI, and should be fixed!
I'll likely tackle in a future PR.
2022-05-16 23:47:31 -05:00
Kyle Carberry
22ec366535
feat: Redesign workspaces page ( #1450 )
...
* feat: Improve navbar to be more compact
The navbar was unnecessarily large before, which made
the UI feel a bit bloaty from my perspective.
* Attempt to remove overrides
* Update theme
* Add text field
* Update theme to dark!
* Fix import ordering
* Fix page location
* Fix requested changes
* Add storybook for workspaces page view
* Add empty view
* Add tests for empty view
* Remove templates page
* Fix local port
* Remove templates from nav
* Fix e2e test
* Remove time.ts
* Remove dep
* Add background color to margins
* Merge status checking from workspace page
* Fix requested changes
* Fix workspace status tests
2022-05-16 16:52:54 -05:00
Colin Adler
e925818526
feat: add template description ( #1489 )
2022-05-16 20:56:11 +00:00
G r e y
9d4182b189
fix: CreateWorkspaceForm name validation ( #1453 )
...
* refactor: allow helperText in getFormHelpers
By passing in helperText, we will not accidentally overwrite it.
* fix: CreateWorkspaceForm name validation
Resolves : #1421
2022-05-16 15:29:59 -04:00
Bruno Quaresma
4103ba0b71
chore: Rename Preferences to Settings ( #1487 )
2022-05-16 18:53:07 +00:00
dependabot[bot]
abc2257624
chore: bump xstate from 4.31.0 to 4.32.1 in /site ( #1481 )
...
Bumps [xstate](https://github.com/statelyai/xstate ) from 4.31.0 to 4.32.1.
- [Release notes](https://github.com/statelyai/xstate/releases )
- [Commits](https://github.com/statelyai/xstate/compare/xstate@4.31.0...xstate@4.32.1 )
---
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-05-16 13:03:50 -05:00
dependabot[bot]
b73be75aeb
chore: bump @typescript-eslint/eslint-plugin in /site ( #1475 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.21.0 to 5.23.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.23.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-05-16 12:19:08 -05:00
dependabot[bot]
0655742147
chore: bump eslint-plugin-jest from 26.1.5 to 26.2.2 in /site ( #1474 )
...
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest ) from 26.1.5 to 26.2.2.
- [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.5...v26.2.2 )
---
updated-dependencies:
- dependency-name: eslint-plugin-jest
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-05-16 12:18:48 -05:00
Bruno Quaresma
abbe548d5c
feat: Add SSH Keys page on /preferences/ssh-keys ( #1478 )
2022-05-16 12:15:45 -05:00
Presley Pizzo and G r e y
b06ef0ae6e
feat: Workspace StatusBar ( #1362 )
...
* Move component and prep
* Make WorkspaceSection more reusable
* Lay out elements
* Layout tweaks
* Add outdated to Workspace type
* Fill out status bar component
* Format
* Add transition to types
* Add api handlers for build toggle
* Format
* Parallelize machine
* Lay out basics of build submachine
* Pipe start and stop events through - needs status
* Attempt at a machine
It's so big, but collapsing start and stop made it hard to distinguish retry from toggle
* Update mock
* Render status and buttons
* Fix type error on template page
* Move Settings
* Format
* Keep refreshed workspace
* Make it switch workspaces
* Lint
* Fix relative api path
* Test
* Fix polling
* Add loading workspace state
* Format
* Add stub settings page
* Format
* Lint
* Get rid of let
* Add update
* Make start use version id
Important for update
* Fix imports
* Add polling for outdated
* Rely on context instead of finite state for status
* Handle canceling
* Fix tests
* Format
* Display errors so users know when button presses didn't work
* Fix api typo, remove logging
* Lint
* Simplify type
Co-authored-by: G r e y <grey@coder.com >
* Add type, extract helper
Co-authored-by: G r e y <grey@coder.com >
2022-05-16 16:34:22 +00:00
Bruno Quaresma
8857c0d076
refactor: Update start coder command ( #1476 )
2022-05-16 13:37:42 +00:00
Kyle Carberry
dbd5b4a47b
feat: Add workspace owner name to response ( #1448 )
...
This will be rendered in the workspace page!
2022-05-13 20:41:21 -05:00
G r e y
e061715315
fix: error when clicking on login screen ( #1445 )
...
Resolves : #1435
2022-05-13 20:07:54 -04:00
Bruno Quaresma
50ad2f8e31
refactor: Improve the load state for the list pages ( #1428 )
2022-05-13 14:12:35 -05:00
G r e y
89e44da899
fix: remove account description ( #1427 )
...
Resolves : #1419
2022-05-13 11:53:14 -04:00
Bruno Quaresma
e6168ba238
feat: Add permissions for links ( #1407 )
2022-05-13 14:25:57 +00:00
Steven Masley
64e408c954
feat: Check permissions endpoint ( #1389 )
...
* feat: Check permissions endpoint
Allows FE to query backend for permission capabilities.
Batch requests supported
2022-05-12 20:56:23 +00:00
Asher
6f7d9bb1e4
fix: remove unimplemented account pages ( #1411 )
...
It appears unclear as of now when/if these will be implemented so I
opted to remove them (as opposed to commenting them out) to avoid having
them rot (they are easily added back anyway).
Closes #1232 .
2022-05-12 13:34:49 -05:00
Kyle Carberry
7b5300d0cc
fix: Improve develop script to start tunnel by default ( #1409 )
...
This allows for running the development script to actually
build workspaces!
2022-05-12 12:37:51 -05:00
Bruno Quaresma
a629a705d0
refactor: Add vertical space to the footer ( #1410 )
2022-05-12 12:28:20 -05:00
Asher
26b04cc96f
chore: switch to generated types ( #1394 )
...
* Make column renderer use the same type as its key
That way the renderer only takes `string` for example when rendering the
name field instead of `string | number` when the interface has some
fields that are strings and some fields are numbers.
This will be necessary when switching to generated types since some of
the fields are numbers (like the owner count on a template).
* Switch fully to generated types
In some places the organization ID is part of the URL but not part of
the request so I separated out the ID into a separate argument in the
relevant API functions.
Otherwise this was a straightforward replacement where I mostly only
needed to change some of the interface names (User instead of
UserResponse for example) and add a few missing but required properties.
I kind of winged the template form; I am not sure what the difference
between a template and template version is or why the latter comes
before the former so the form just returns all the data required to
create both.
* Delete handwritten types
Except for UserAgent which seems to be purely frontend and
ReconnectingPTYRequest which is not in codersdk so I am just leaving it
for now.
* Remove implemented omitempty as a future idea
This was implemented in 2d3dc436a8 .
* Add missing optionalities to generated request interfaces
2022-05-12 10:01:28 -05:00