Commit Graph

29 Commits

Author SHA1 Message Date
Bruno Quaresma 23e3e4ce58
chore(site): upgrade msw to 2.0 (#12597)
Closes https://github.com/coder/coder/issues/11426
2024-03-19 09:30:20 -03:00
Kayla Washburn-Love 0fe109d517
chore: sort imports in our typescript code (#12417) 2024-03-05 16:31:22 -07:00
Kayla Washburn-Love dbaafc863c
chore: update no-restricted-imports lint rule (#12180)
- prevent importing from the "monolith" lodash module. individual modules are better for tree shaking.
- prevent importing `useTheme` and types from @mui/material/styles. prefer importing from @emotion/react.
2024-02-16 09:54:40 -07:00
Kayla Washburn-Love f74ef142d0
refactor: reorganize auth components and hooks (#11717) 2024-01-22 10:43:32 -07:00
Kayla Washburn 185400db11
refactor: remove usage of `<Box>` and `sx` (#10702) 2023-12-04 12:09:04 -07:00
Bruno Quaresma 2895c108c2
chore(site): remove Typography component (#10769)
* Remove Typography from NavbarView

* Remove Typography from EmptyState

* Remove Typography from Paywall

* Fix font size

* Remove Typography from CliAuthPage

* Remove Typography from Single SignOn

* Remove Typography from file dialog

* Remove from not found

* Remove from Section

* Remove from global snackbar

* Remove Typography component

* Add eslint role
2023-11-20 10:15:40 -03:00
Bruno Quaresma f677c4470b
chore(site): add custom popover component (#10319) 2023-10-19 09:13:21 -03:00
Kayla Washburn 2b5e02f5b2
refactor: improve e2e test reporting (#10304) 2023-10-17 16:11:42 -06:00
Kayla Washburn 2b5428e95f
refactor: start using emotion for styling (#9909) 2023-09-29 13:08:17 -06:00
Bruno Quaresma 77b0ca0b53
refactor(site): Improve workspaces filtering (#7681) 2023-05-30 14:52:13 -03:00
Bruno Quaresma 8e31ed4072
refactor(site): Refactor alerts (#7587) 2023-05-18 13:17:16 -03:00
Bruno Quaresma 816c37dd0d
chore(site): Upgrade to MUI v5 (#7437) 2023-05-10 19:42:40 +00:00
Rodrigo Maia 3d91fe8895
fix(site): fix redirection to login after logout/change password (#6870)
* fix(site): fix redirection to login after logout/change password

* chore: add login verification assert

* prettier
2023-03-29 21:39:56 +00:00
Bruno Quaresma 175dde1c52
chore(site): Try to fix flake test (#6848) 2023-03-29 16:10:04 -03:00
Josh Goldberg 43a441fe63
chore(site): align ESLint config to typescript-eslint's recommended-requiring-type-checking (#5797) 2023-01-26 10:32:50 -03:00
Bruno Quaresma e7b8318b87
refactor(site): Normalize avatar components (#5860) 2023-01-26 00:54:53 +00:00
Bruno Quaresma 36384aa3c1
chore(site): Use react-query and refactor the workspaces page to use it (#5838) 2023-01-24 16:22:42 -03:00
Kira Pilot 0171ccbf62
chore: forbid direct react import (#5658) 2023-01-10 13:30:48 -05:00
Kira Pilot a071bfa8aa
fix: Store dismissedBanner key in localStorage (#5388)
* fix: Store dismissedBanner key in localStorage

* cleanup

* removed comment

* spelling

* fixed eslint

* wote test
2022-12-12 16:17:29 -05:00
Joe Previte ffe461ae58
chore(site): enable eslint-plugin-eslint-comments (#4799)
* chore(site): enable eslint-plugin-eslint-comments

* chore: add descriptions to eslint-disable comments

* chore: update eslint-disable comments in main.go
2022-10-28 17:46:51 -03:00
Joe Previte 2b6586d542
chore: add ignoreRestSiblings to no-unused-vars ESLint rule (#4404)
* chore: add ignoreRestSiblings to eslint config

* fix(site): remove eslint warning in <Markdown />
2022-10-07 09:55:27 -07:00
Joe Previte 1bf2dc0cc3
chore: add explicit-length-check eslint rule (#4147)
* chore: add eslint rule explicit-length-check

* fix: add explicit-length-check
2022-09-21 15:42:10 -04:00
Joe Previte 18af9426c0
chore: add no implicit coercion eslint rule (#3909)
* chore: add no-implicit-coercion ESLint rule

This adds a new ESLint rule to prevent us from using implicit coercion
in the codebase. See https://eslint.org/docs/latest/rules/no-implicit-coercion

* chore: fix implicit coercion errors

* fixup: formatting
2022-09-06 21:27:10 +00:00
Joe Previte 94e96fa40b
chore: enable react/no-array-index-key eslint (#3696)
* chore: enable react/no-array-index-key eslint

* fix: add missing key to ResourcesTable
2022-08-25 11:20:24 -07:00
Kira Pilot dd55d4577d
chore: remove react imports (#1867)
reolves #1856
2022-05-31 10:01:37 -04:00
G r e y 8fde3ed52f
chore: improve eslint, sb, tsc configs (#483)
Summary:

This commit is a bit of a shotgun fix for various project settings.
Realistically, they could've been separate commits, but this is
convenience for just getting things into a green state to unblock
further work.

Details:

- Use our version of TS in vscode plugins
- organize vscode/settings.json
- fix tsconfig.test and tsconfig.prod (removes errors in test files)
- only use prod tsconfig in webpack
- point .eslintrc to both test and prod configs
- cleanup storybook
- running eslint in my workspace was OOMing. I configured
  maxWorkers like we had in v1 to fix this.
- remove .storybook from code coverage
- remove .js files from code coverage --> after moving away
  from Next.js, we don't allowJS in our tsconfig anymore. We only
  use JS for configurations, it's not allowed in src code!
2022-03-18 10:26:13 -04:00
G r e y 60f3cf6552
chore: configure eslint vs code plugin (#423)
Summary:

The .eslintrc.yaml is located in site, rather than the root of the
repository. The VS Code plugin has a CWD of the repository root, so it
looks for tsconfig.test.json in the root rather in site.

See Also:

- https://github.com/microsoft/vscode-eslint/issues/196
- https://github.com/typescript-eslint/typescript-eslint/issues/251
2022-03-13 20:02:49 -04:00
Bryan df13fef161
fix: Remove 'Create Project' button, replace with CLI prompt (#245)
For black-triangle and alpha builds, we won't be able to create projects in the UI, because they require collecting and tar'ing a set of assets associated with the project - so the CLI is going to be our entry point for creating projects.

This shifts the UI to remove the 'Create Project' button, and adds a prompt to copy a command to run.

__Before:__
<img width="1134" alt="image" src="https://user-images.githubusercontent.com/88213859/153534269-58dc95bd-0417-4bed-8e62-e2b6f479da61.png">

__After:__
![2022-02-10 19 38 01](https://user-images.githubusercontent.com/88213859/153534227-d22bd786-8c43-4858-bda6-3d9d1d614711.gif)
2022-02-10 21:37:58 -08:00
Bryan 78e652a268
refactor: Move package.json and other front-end collateral into 'site' (#128)
This refactors the front-end collateral to all live within `site` - so no `package.json` at the root.

The reason we had this initially is that the jest test run and NextJS actually require having _two_ different `tsconfig`s - Next needs `jsx:"preserve"`, while jest needs `jsx:"react"` - we were using `tsconfig`s at different levels at the hierarchy to manage this.

I changed this behavior to still use two different `tsconfig.json`s, which is mandatory - but just side-by-side in `site`.

Once that's fixed, it was easy to move everything into `site`

Follow up from: https://github.com/coder/coder/pull/118#discussion_r796244577
2022-02-01 13:34:43 -08:00
Renamed from .eslintrc.yaml (Browse further)