Commit Graph

39 Commits

Author SHA1 Message Date
Bruno Quaresma 7c1d10b952
chore(site): upgrade storybook to v8 (#12831) 2024-04-01 16:12:17 -03:00
Bruno Quaresma 060033e4ef
fix(site): fix terminal size when displaying alerts (#12444)
Before - The terminal size does not fit the available space so the bottom is hidden.

https://github.com/coder/coder/assets/3165839/d08470b9-9fc6-476c-a551-8a3e13fc25bf

After - The terminal adjusts when there are alert changes.

https://github.com/coder/coder/assets/3165839/8cc32bfb-056f-47cb-97f2-3bb18c5fe906

Unfortunately, I don't think there is a sane way to automate tests for this but open to suggestions.

Close https://github.com/coder/coder/issues/7914
2024-03-08 07:38:40 -03:00
Kayla Washburn-Love 20dcefa156
add an interaction test to InfoTooltip (#11905) 2024-01-30 10:20:11 -07:00
Kayla Washburn-Love bb8ce7bc02
chore: move components/Resources to modules/resources (#11852) 2024-01-26 15:11:07 -07:00
Bruno Quaresma 130d5d68a0
refactor(site): refactor workspace notifications (#11520) 2024-01-12 15:55:31 -03:00
Bruno Quaresma cf17fabcc6
feat(site): refactor workspace header to be more slim (#11327) 2024-01-02 12:42:51 -03:00
Kayla Washburn 97f7a35a47
feat: add light theme (#11266) 2023-12-19 17:03:00 -07:00
Kayla Washburn ebd6c1b573
feat(site): bring back dark blue (#11071) 2023-12-08 14:38:35 -07:00
Bruno Quaresma 0f47b58bfb
feat(site): refactor health pages (#11025) 2023-12-05 13:58:51 -03:00
Kayla Washburn 8ddc8b3447
site: new dark theme (#10331) 2023-11-15 14:39:26 -07:00
Kayla Washburn 33761c9c7d
refactor: add experimental `NewTheme` (#10613) 2023-11-13 10:09:44 -07:00
Kayla Washburn ae113179b3
chore: alias react-query (#10118) 2023-10-06 17:15:03 -06:00
Kayla Washburn 2b5428e95f
refactor: start using emotion for styling (#9909) 2023-09-29 13:08:17 -06:00
Kayla Washburn 13acf5976c
chore: remove i18next (#9608) 2023-09-11 11:17:58 -06:00
Kayla Washburn 988c9af015
chore: format code with semicolons when using prettier (#9555) 2023-09-06 12:59:26 -06:00
Reuben Ellis 868ae06d4e
chore: add a base directory for TurboSnap (#9258)
* Add base dir for TurboSnap

* updated main workflow as well

* Add vite configuration

* remove the mergeConfig and return config
2023-08-23 15:12:00 -03:00
Bruno Quaresma b833861960
feat(site): display version message (#8435) 2023-07-13 10:36:10 -03:00
Bruno Quaresma f8f4ae8e2c
refactor(site): update build log to be displayed only on active statuses (#8459) 2023-07-12 13:34:07 -03:00
Bruno Quaresma d896b74fa2
feat(site): display build logs on workspace transitioning statuses (#8397) 2023-07-10 17:47:39 -03:00
Kyle Carberry 34467a3289
feat: add github device flow for authentication (#8232)
* feat: add github device flow for authentication

This will allow us to add a GitHub OAuth provider out-of-the-box
to reduce setup requirements.

* Improve askpass view

* Add routes to improve clarity of git auth

* Redesign the git auth page

* Refactor to add a page view

* Fix sideways layout

* Remove legacy notify

* Fix git auth redirects

* Add E2E tests

* Fix route documentation

* Fix imports

* Remove unused imports

* Fix E2E web test

* Fix friendly message appearance

* Fix layout shifting for full-screen sign-in

* Fix height going to 100%

* Fix comments
2023-06-29 18:58:01 +00:00
dependabot[bot] 33c0674d76
chore: bump react-router-dom from 6.4.1 to 6.12.1 in /site (#7950)
* chore: bump react-router-dom from 6.4.1 to 6.12.1 in /site

Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.4.1 to 6.12.1.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.12.1/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix what needs to be fixed

* fix storybook

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BrunoQuaresma <bruno_nonato_quaresma@hotmail.com>
2023-06-15 10:34:49 -03:00
Bruno Quaresma 6f62204d38
feat(site): Add template embed page (#7501) 2023-05-15 13:07:39 -03:00
Bruno Quaresma 816c37dd0d
chore(site): Upgrade to MUI v5 (#7437) 2023-05-10 19:42:40 +00:00
Bruno Quaresma 17bb1a1ff1
chore(site): Upgrade storybook to 7.0.4 (#7127) 2023-04-13 21:36:20 +00:00
Bruno Quaresma 175dde1c52
chore(site): Try to fix flake test (#6848) 2023-03-29 16:10:04 -03:00
Ammar Bandukwala 85c679597c
site: reduce printWidth to 80 (#4437)
Resolves #4435
2022-10-10 10:33:35 -07:00
Bruno Quaresma 8c4de49359
chore: Remove unused deps (#4273) 2022-09-30 10:37:23 -03:00
Kyle Carberry 2e1db6cc63
feat: Add latency indicator to the UI (#3846)
With Tailscale, we now get latency of all regions.
2022-09-02 20:09:05 +00:00
Kira Pilot 882ee55fd0
fix: storybook should use absolute paths (#3119) 2022-07-22 11:02:54 -04: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
Bruno Quaresma b9933d493a
refactor: camel case files (#1081) 2022-04-19 11:18:12 -05:00
G r e y 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
G r e y 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
G r e y c0a9eaca56
chore(site): organize imports (#876) 2022-04-05 10:27:41 -04:00
G r e y 2818b3ce6d
feat(site): configure global fonts (#503)
* feat(site): configure global fonts

Summary:

Installs fira code and Inter

Impact:

A more pleasant dashboard experience in v2 that matches our prefer font
families from v1
2022-03-22 13:57:12 -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
Bryan d8e530e1ec
refactor: Add 'src' folder in 'site' (#445)
This refactoring re-organizes the `site` folder to have a nested `src` folder.

Originally, [we wanted to keep the directory structure shallow](https://github.com/coder/coder/pull/8#issuecomment-1009578910) - but there were two points that motivated this change to introduce the `src` level.

1. We have several non-`src` folders now (`e2e`, `static`, `html_templates`, `.storybook`)
2. Having a `src` folder makes it easier to run XState Typegen

So given those two data points - I believe it makes sense to revisit that and introduce a `src` folder.
2022-03-16 04:06:03 +00:00
Bryan dfc353b1fd
fix: Fix storybook blockers (#443)
I was just testing `storybook` out on `main`, and saw some of the components had errors:

<img width="1564" alt="image" src="https://user-images.githubusercontent.com/88213859/158444846-773420f5-261a-4853-abe1-66521ed19901.png">

There were two problems:
- The `<Workspace />` component had new arguments, that don't seem to be validated by `yarn storybook:build`
- The top-level `react-router-dom` is not available in storybook. 

After fixing these, all the storybook components work:

<img width="1304" alt="image" src="https://user-images.githubusercontent.com/88213859/158445124-eec51500-967d-4e24-823f-c21f6ea63ba1.png">
2022-03-15 11:29:32 -07:00
Bryan 94f71feeba
refactor: Add storybook + initial story (#118)
This hooks up `storybook`, which the front-end team has enjoyed using in the v1 codebase - it makes it quick and easy to view and test components in isolation.

The `<LoadingButton />` has a simple story added now, so if you run `yarn storybook`, you can preview it in various states:

![2022-01-31 19 24 24](https://user-images.githubusercontent.com/88213859/151908656-27dac0a8-9c6e-4353-ad25-3eafee979bd4.gif)

This will be helpful as we bring more front-end devs to help build v2 out.
2022-02-04 08:36:58 -08:00