Jaayden Halko
0697308a0b
fix: correctly display loading spinner ( #16167 )
...
Update the usages of the new spinner component to correctly set the
loading prop
2025-01-17 09:14:23 -05:00
Ethan
14cd58dc3b
fix(site): fix typo on new workspace screen ( #16099 )
...
Closes #16084 .
2025-01-13 03:10:45 +00:00
Bruno Quaresma
cb6facb53a
refactor: use the new button component on forms and dialogs ( #16050 )
...
This is a significant PR that will impact many parts of the UI, so I’d
like to ask you, @jaaydenh, for a very thorough review of the Storybook
stories on Chromatic. I know it’s a bit of a hassle with around 180
stories affected, but it’s all for a good cause 💪
Main changes:
- Update the `Button` component to match the [new buttons
design](https://www.figma.com/design/WfqIgsTFXN2BscBSSyXWF8/Coder-kit?node-id=3-1756&p=f&m=dev ).
- Update forms and dialogs to use the new `Button` component.
Related to https://github.com/coder/coder/issues/14978
2025-01-07 14:28:58 -03:00
Bruno Quaresma
300ad87c2e
refactor: replace and remove deprecated Avatar component ( #15930 )
...
Close https://github.com/coder/coder/issues/14997
2024-12-20 09:57:51 -03:00
Bruno Quaresma
badebc79cb
chore: add new avatar component ( #15882 )
...
Related to https://github.com/coder/coder/issues/14997
- Add a new `Avatar` component based on the [new avatar
design](https://www.figma.com/design/WfqIgsTFXN2BscBSSyXWF8/Coder-kit?node-id=711-383&t=xqxOSUk48GvDsjGK-0 ).
- Deprecate existent `Avatar` component.
2024-12-17 05:55:31 -03:00
Kayla Washburn-Love
03f05e25f6
chore(site): make info gray ( #14356 )
2024-08-20 11:59:23 -06:00
Kayla Washburn-Love
95a7c0c4f0
chore: use tabs for prettier and biome ( #14283 )
2024-08-15 14:53:53 -06:00
Kayla Washburn-Love
d15f16fa2e
chore: replace eslint with biome ( #14263 )
2024-08-15 13:26:29 -06:00
Kayla Washburn-Love
efbd6257e4
chore: remove global organization id state ( #14135 )
2024-08-05 10:33:58 -06:00
Kayla Washburn-Love
7125b37545
feat(site): allow selecting an organization when creating a template ( #14061 )
2024-08-01 18:04:21 -06:00
Kayla Washburn-Love
bf4b7abf14
chore(coderd): allow creating workspaces without specifying an organization ( #14048 )
2024-07-30 10:44:02 -06:00
Kayla Washburn-Love
4dcbd7179f
fix: hardcode default organization id in DashboardProvider ( #13940 )
2024-07-18 16:55:38 -06:00
Bruno Quaresma
6bf7e5af91
feat(site): support match option for auto create workspace flow ( #13836 )
2024-07-09 16:14:08 +00:00
Kayla Washburn-Love
8c1bd32c33
feat(site): add basic organization management ui ( #13288 )
2024-06-17 11:02:39 -06:00
Kayla Washburn-Love
a8a0be98b8
chore: expose all organization ids from AuthContext ( #13268 )
2024-05-14 10:48:15 -06:00
Michael Smith
f13b1c9af6
refactor: improve test isolation for Axios API logic ( #13125 )
...
* wip: commit progress on code split-up
* wip: commit more progress
* wip: finish initial version of class implementation
* chore: update all import paths to go through client instance
* fix: remove temp comments
* refactor: smoooooooosh the API
* refactor: update import setup for tests
2024-05-12 19:05:22 +00:00
Kayla Washburn-Love
0966fe2560
fix: create workspace with optional auth providers ( #12729 )
2024-03-22 13:26:02 -06:00
Kayla Washburn-Love
9028717c9b
fix: disable auto-create if external auth requirements aren't met ( #12538 )
2024-03-19 16:42:40 -06:00
Steven Masley
410a7d54ee
chore: external auth flow opens new window, it does not need an href ( #12586 )
2024-03-14 09:17:50 -05:00
Bruno Quaresma
489b0ec497
chore(site): refactor useAuth and related hooks ( #12567 )
...
Close https://github.com/coder/coder/issues/12487
2024-03-13 13:24:18 -03:00
Michael Smith
4d42c07c72
chore(site): update and refactor all custom hook tests that rely on React Router ( #12219 )
...
* chore: rename useTab to useSearchParamsKey and add test
* chore: mark old renderHookWithAuth as deprecated (temp)
* fix: update imports for useResourcesNav
* refactor: change API for useSearchParamsKey
* chore: let user pass in their own URLSearchParams value
* refactor: clean up comments for clarity
* fix: update import
* wip: commit progress on useWorkspaceDuplication revamp
* chore: migrate duplication test to new helper
* refactor: update code for clarity
* refactor: reorder test cases for clarity
* refactor: split off hook helper into separate file
* refactor: remove reliance on internal React Router state property
* refactor: move variables around for more clarity
* refactor: more updates for clarity
* refactor: reorganize test cases for clarity
* refactor: clean up test cases for useWorkspaceDupe
* refactor: clean up test cases for useWorkspaceDupe
2024-03-08 18:31:01 -05:00
Michael Smith
a92853c72d
fix: ensure auto-workspace creation waits until all parameters are ready ( #12419 )
...
* fix: ensure auto-workspace creation waits until all parameters are ready
* refactor: move creation blocking logic to main callback
* fix: let creation start if experimental feature is off
2024-03-05 18:42:50 -05:00
Kayla Washburn-Love
0fe109d517
chore: sort imports in our typescript code ( #12417 )
2024-03-05 16:31:22 -07:00
Kayla Washburn-Love
b24ad1bbf0
refactor: show parameter suggestions from user history below field ( #12340 )
2024-02-28 15:29:48 -07:00
Kayla Washburn-Love
7e6cb66a50
feat(site): allow creating a workspace without connecting optional external auth providers ( #12251 )
2024-02-22 10:27:36 -07:00
Kayla Washburn-Love
b8a53230c7
chore: revert "refactor(site): verify external auth before display ws form ( #11777 )" ( #12183 )
2024-02-22 09:44:30 -07:00
Bruno Quaresma
a827185b6d
refactor: move auto fill feature into an experiment ( #12230 )
2024-02-21 11:48:34 -03:00
Bruno Quaresma
0021c2f906
fix(site): fix parameters field size ( #12231 )
2024-02-20 13:54:07 -03:00
Marcin Tojek
57bf997369
feat: support custom validation errors for number-typed parameters ( #12224 )
2024-02-20 16:32:03 +01:00
Kayla Washburn-Love
b73e66e9a9
feat: show workspace name suggestions below the name field ( #12001 )
2024-02-05 10:40:15 -07:00
Kayla Washburn-Love
e070a55142
refactor: stabilize theme.roles ( #11969 )
2024-02-01 09:53:26 -07:00
Ammar Bandukwala
adbb025e74
feat: add user-level parameter autofill ( #11731 )
...
This PR solves #10478 by auto-filling previously used template values in create and update workspace flows.
I decided against explicit user values in settings for these reasons:
* Autofill is far easier to implement
* Users benefit from autofill _by default_ — we don't need to teach them new concepts
* If we decide that autofill creates more harm than good, we can remove it without breaking compatibility
2024-01-30 16:02:21 -06:00
Kayla Washburn-Love
c85fc3c8fe
refactor: add more fill variants to the experimental theme ( #11827 )
2024-01-26 10:28:59 -07:00
Bruno Quaresma
0ba035a16d
refactor(site): improve parameters field ( #11802 )
2024-01-26 11:31:52 -03:00
Bruno Quaresma
6145da8a9e
refactor(site): verify external auth before display ws form ( #11777 )
2024-01-24 09:45:22 -03:00
Bruno Quaresma
e828daba6e
refactor(site): simplify create workspace form ( #11771 )
...
This is the first PR of a series of PRs trying to simplify and improve the create workspace flow.
- Use the existent template header and remove the selected template card
- Move the owner field to the general section so we don't have "anemic" sections with single fields
Before:
<img width="1512" alt="Screenshot 2024-01-23 at 10 22 45" src="https://github.com/coder/coder/assets/3165839/6a2ba6b4-9ffb-4576-9282-7901691f45ee ">
Now:
<img width="1512" alt="Screenshot 2024-01-23 at 10 22 56" src="https://github.com/coder/coder/assets/3165839/84301548-4af9-4de0-96ff-2a6363fc8cf7 ">
2024-01-23 15:39:23 -03:00
Bruno Quaresma
369821ea19
feat(site): generates unique workspace names by default ( #11772 )
2024-01-23 15:55:29 +00:00
Bruno Quaresma
910f17f4e7
refactor(site): refactor external auth component ( #11758 )
...
Recommended improvements:
- Rename component for clarity
- Simplify interface for contextual relevance
- Handle polling errors based on section, not every button
Before:
<img width="1511" alt="Screenshot 2024-01-22 at 15 24 26" src="https://github.com/coder/coder/assets/3165839/cfb8c0bc-f5a2-4708-bd97-fdfc46bd1eee ">
Now:
<img width="1512" alt="Screenshot 2024-01-22 at 15 24 41" src="https://github.com/coder/coder/assets/3165839/5aaad448-1bb2-45ea-9250-cd374a072be2 ">
2024-01-23 12:26:12 -03:00
Kayla Washburn-Love
f74ef142d0
refactor: reorganize auth components and hooks ( #11717 )
2024-01-22 10:43:32 -07:00
Kayla Washburn
9f5a59d5c5
feat(site): improve icon compatibility across themes ( #11457 )
2024-01-08 14:12:40 -07:00
Bruno Quaresma
099be249a7
fix(site): fix external auth button loading state ( #11373 )
2024-01-02 18:30:05 +00:00
Kayla Washburn
97f7a35a47
feat: add light theme ( #11266 )
2023-12-19 17:03:00 -07:00
Steven Masley
b376b2cd13
feat: add user/settings page for managing external auth ( #10945 )
...
Also add support for unlinking on the coder side to allow reflow.
2023-12-06 08:41:45 -06:00
Kayla Washburn
185400db11
refactor: remove usage of <Box> and sx ( #10702 )
2023-12-04 12:09:04 -07:00
Kira Pilot
88f4490ad6
fix: clear workspace name validation on field dirty ( #10927 )
2023-11-29 10:53:45 -05:00
Kayla Washburn
ca6e6213bf
chore: use px values instead of theme.spacing and theme.shape.borderRadius ( #10519 )
2023-11-06 09:43:06 -07:00
Michael Smith
744c73394a
feat: allow users to duplicate workspaces by parameters ( #10362 )
...
* chore: add queries for workspace build info
* refactor: clean up logic for CreateWorkspacePage to support multiple modes
* chore: add custom workspace duplication hook
* chore: integrate mode into CreateWorkspacePageView
* fix: add mode to CreateWorkspacePageView stories
* refactor: extract workspace duplication outside CreateWorkspacePage file
* chore: integrate useWorkspaceDuplication into WorkspaceActions
* chore: delete unnecessary function
* refactor: swap useReducer for useState
* fix: swap warning alert for info alert
* refactor: move info alert message
* refactor: simplify UI logic for mode alerts
* fix: prevent dismissed Alerts from affecting layouts
* fix: remove unnecessary prop binding
* docs: reword comment for clarity
* chore: update msw build params to return multiple params
* chore: rename duplicationReady to isDuplicationReady
* chore: expose root component for testing/re-rendering
* chore: get tests in place (still have act warnings)
* refactor: move stuff around for clarity
* chore: finish tests
* chore: revamp tests
2023-11-03 18:23:09 -04:00
Kayla Washburn
921b6eb4ee
chore: use emotion for styling (pt. 9) ( #10474 )
2023-11-02 17:51:23 +00:00
Kayla Washburn
5284d974ef
chore: use emotion for styling (pt. 7) ( #10431 )
2023-11-01 09:28:26 -06:00
Bruno Quaresma
ac322724b0
chore(site): replace custom LoadingButton from the one in MUI ( #10351 )
2023-10-20 09:57:27 -03:00