* chore(deps): upgrade @material-ui/core to 4.12.4
This is the latest version which includes a fix for the warning we were
seeing while running our tests about `css` function being deprecated.
* refactor: use alpha() instead of fade
`fade()` was deprecated in favor of `alpha()` in a previous version of
`@material-ui/core/styles`.
* refactor: rows -> minRows
This was deprecated in a previous version of `@material-ui/core`.
* refactor: overlap circle -> circular
overlap="circle" was deprecated in favor of overlap="circular".
* refactor: createMuiTheme -> createTheme
This was deprecated and changed to `createTheme`.
* fixup!: chore(deps): upgrade @material-ui/core to 4.12.4
* fixup!: refactor: createMuiTheme -> createTheme
* fix: add SvgIconProps on icons
I couldn't find any release notes or breaking changes related to this
but it seems `props` can no longer be inferred on `SvgIcon`s so I had to
manually add the type.
* Revert "refactor: rows -> minRows"
This reverts commit 94dae6fea8.
* chore(deps): downgrade @material-ui/core to 4.12.0
* fixup!: fix: add SvgIconProps on icons
* fix: pass {} to useStyles
Looks like we may need to pass an empty object if some components in a
file use `props` in styles and some don't.
* fix: update types in Pill.tsx
We need to use generics so that `makeStyles` correctly infers the types
for the `Pill.tsx` styles.
I also updated the types to use `PillProps` directly to make sure they
stay in sync.
This was broken because of browser-only. This should fix it!
Signed-off-by: Kyle Carberry <kyle@carberry.com>
Signed-off-by: Kyle Carberry <kyle@carberry.com>
* docs: add open in coder
This adds new documentation for the "Open in Coder" button that admins
can use to get their developers up and running faster.
* fix: display error if template not found
Previously, we weren't handling a case where we tried to get a template
that returned a 404 from the backend.
Now we handle that case in our state machine and display the error
message from the API on the frontend.
* feat: support template query param in index
This adds support to navigate directly to a template from the index by
using the `?template=<name>` query param.
* Revert "feat: support template query param in index"
This reverts commit bad7ffb677.
We decided to use the `/template/path` route instead.
* fixup!: docs: add open in coder
* docs: add open in coder to dogfood readme
* Update docs/admin/open-in-coder.md
Co-authored-by: Ben Potter <ben@coder.com>
* Update docs/admin/open-in-coder.md
Co-authored-by: Ben Potter <ben@coder.com>
* Update docs/admin/open-in-coder.md
Co-authored-by: Ben Potter <ben@coder.com>
* Add info and text field to delete dialog
* Format
* Use DeleteDialog for Users, nix info except for Workspaces
* Format
* Update storybook
* Add and update tests
* Fix the worst of the UsersPage test bugs
* Fix users page tests
* Fix workspace tests
* Format
* docs: Add missing audit logs filtering fields
* Update docs/admin/audit-logs.md
Co-authored-by: Ben Potter <ben@coder.com>
Co-authored-by: Ben Potter <ben@coder.com>