Abhineet Jain
e09cd3e9cf
feat: Update UI for error dialog and snackbar ( #1971 )
...
* feat: update ui for error dialog and snackbar
* update padding for buttons
2022-06-02 11:23:52 -04:00
Abhineet Jain
47c7eda670
feat: add a divider after Account menu item ( #1927 )
...
* add a divider after Account menu item
* test: improve Storybook tests
* add closed and open userdropdown tests
* add default isOpen
* extract UserDropdownContent into a single component
* remove the isOpen prop
* address nit comments
* update test name
2022-06-02 11:09:19 -04:00
Steven Masley
e6ee7dd652
chore: Add linting rule to help catch InTx misuse ( #1980 )
...
* chore: Add linting rule to help catch InTx misuse
This isn't perfect, as if you nest your misuse in another code block
like an if statement, it won't catch it :/. It is better
than nothing
2022-06-02 14:50:15 +00:00
Abhineet Jain
c463e7801c
feat: Update TTL language to Time until shutdown ( #1948 )
...
* feat: update ttl language in frontend
* Update TTL Helper text
Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com >
* update TTL helper string
Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com >
2022-06-02 10:15:36 -04:00
G r e y
ab69c22ddc
fix: missing FE ttl constraint validation ( #1952 )
...
Resolves : #1908
2022-06-02 10:14:42 -04:00
Steven Masley
b9983e417f
feat: Handle pagination cases where after_id does not exist ( #1947 )
...
* feat: Handle pagination cases where after_id does not exist
Throw an error to the user in these cases
- Templateversions
- Workspacebuilds
User pagination does not need it as suspended users still
have rows in the database
2022-06-02 09:01:45 -05:00
Kira Pilot
419dc6b036
feat: flexbox updates on workspace page ( #1963 )
...
* feat: flexbox work on workspace page
resolves 1910
* fixing cancel text
* chromatic fixes
* resolves #1953
no overflox text on smaller screens
2022-06-02 09:57:36 -04:00
Bruno Quaresma
3fd4dcd9d5
fix: Display member role when user has no role ( #1965 )
2022-06-02 08:46:06 -05:00
Cian Johnston
dcf03d8ba3
chore: refactor time.Duration -> int64 milliseconds for FE consumption ( #1944 )
...
* Changes all public-facing codersdk types to use a plain int64 (milliseconds) instead of time.Duration.
* Makes autostart_schedule a *string as it may not be present.
* Adds a utils/ptr package with some useful methods.
2022-06-02 11:23:34 +01:00
Mathias Fredriksson
51c420c90a
feat: Add support for --identity-agent in coder ssh ( #1954 )
2022-06-02 11:13:38 +03:00
Spike Curtis
9e3a625898
Show workspace name in WorkspaceBuildStats component ( #1933 )
...
* Show workspace name in WorkspaceBuildStats component
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix WorkspaceBuildPage tests
Signed-off-by: Spike Curtis <spike@coder.com >
2022-06-01 16:49:43 -07:00
Cian Johnston
b203d40123
fix: fix duplicate migrations ( #1968 )
2022-06-01 20:58:22 +00:00
Steven Masley
913c0f5e7f
feat: Longer lived api keys for cli ( #1935 )
...
* feat: Longer lived api keys for cli
* feat: Refresh tokens based on their lifetime set in the db
* test: Add unit test for refreshing
2022-06-01 14:58:55 -05:00
Presley Pizzo
bb400a4e82
fix: Show error message from backend on create existing user ( #1964 )
...
* Show error message from backend on create existing user
* Format
2022-06-01 15:52:54 -04:00
Ben Potter
46ffb67d60
feat: one-line install script ( #1924 )
...
* feat: one-line install script
* remove homebrew support
* remove arch linux
* use proper filename for packages
* fix variable format
* fix systemd instructions
* fixes to standalone script
* fix missing var bugs
* fix standalone install
* fix for MacOS
* format
* fix armv7 assets and zips
* remove windows
* update install docs
* support external sources with shellcheck
* shfmt
* add external sources to GitHub action & unfold
* change wording
* first template docs
* default to /usr/local instead
* add option for binary name
2022-06-01 14:15:09 -05:00
Bruno Quaresma
f5a8d17aa8
feat: Add copy button to the SSH Page ( #1962 )
2022-06-01 19:01:36 +00:00
Bruno Quaresma
b85de3ee79
feat: Improve empty states for workspaces and templates ( #1950 )
2022-06-01 17:32:55 +00:00
Dean Sheather
6be8a373e0
feat: run a terraform plan before creating workspaces with the given template parameters ( #1732 )
2022-06-02 00:44:53 +10:00
Steven Masley
cc87a0cf6b
feat: Implied 'member' roles for site and organization ( #1917 )
...
* feat: Member roles are implied and never exlpicitly added
* Rename "GetAllUserRoles" to "GetAuthorizationRoles"
* feat: Add migration to remove implied roles
* rename user auth role middleware
2022-06-01 09:07:50 -05:00
Presley Pizzo
2878346f19
Use backend error if possible ( #1938 )
2022-06-01 09:09:58 -04:00
Kyle Carberry
1fa50a9da1
fix: Race when writing to a closed pipe ( #1916 )
2022-06-01 07:59:03 -05:00
Cian Johnston
1c5d94ed5b
fix: add all regions to aws examples ( #1934 )
2022-06-01 11:20:14 +01:00
Cian Johnston
7b40c692eb
fix: coderd: dev mode should show verbose output by default ( #1898 )
...
* check buildinfo for devel prerelease tag and show verbose output if so
2022-06-01 11:00:42 +01:00
Steven Masley
7acb742218
feat: Prevent role changing on yourself. ( #1931 )
...
* feat: Prevent role changing on yourself.
Only allow changing roles on other users. Not much value in self changing
at the moment
2022-05-31 15:50:38 -05:00
Spike Curtis
4b0ed06a26
Remove set -u on yarn_install.sh to allow it to run on zsh ( #1930 )
...
Signed-off-by: Spike Curtis <spike@coder.com >
2022-05-31 13:50:18 -07:00
G r e y
56ec53d04b
fix: derive running ws stop time from deadline ( #1920 )
...
* refactor: isWorkspaceOn utility
Summary:
A utility is function is added that answers the question if a workspace
is on.
Impact:
This is a shared piece of logic in workspace scheduling presentations.
In particular it unblocks work in 1779, or at least allows an
implementation that shares details with the WorkspaceScheduleBanner.
Notes:
We could possibly instead return whether the workspace is "ON",
"UNKNOWN", or "OFF". Maybe a future improvement for that could be made
as the neds arrises.
* fix: derive running ws stop time from deadline
Summary:
When a workspace is on, the remaining time until shutdown needs to be
derived from the deadline timestamp, not implied from the TTL
2022-05-31 15:50:03 -04:00
G r e y
c6167a94ef
refactor: remove dangling comment ( #1929 )
2022-05-31 19:39:29 +00:00
Bruno Quaresma
65c17a04df
feat: Add selected template link at the template select field ( #1918 )
2022-05-31 18:28:22 +00:00
Bruno Quaresma
75bcb739f9
refactor: Make login headline one line and add auth method section ( #1922 )
2022-05-31 16:40:56 +00:00
Kira Pilot
555bf2461a
fix: change color of time icon for dark mode ( #1923 )
...
resolves #1791
2022-05-31 12:33:15 -04:00
G r e y
bdacbd4989
refactor: mock provisioner job typings ( #1919 )
...
An unnecessary type assertion was being made on the status property;
instead we just type the object as a ProvisionerJob
2022-05-31 15:16:15 +00:00
Presley Pizzo
6f7b7f0248
feat: Delete workspace ( #1822 )
...
* Add delete button
* Add confirmation dialog
* Extract dialog, storybook it, and test it
* Fix cancel and redirect
* Remove fragment
2022-05-31 10:43:31 -04:00
Abhineet Jain
9b19dc9154
refactor: rename SettingsPages directory to UserSettingsPage ( #1877 )
2022-05-31 14:16:17 +00:00
Bruno Quaresma
83edbee2e1
fix: Replace yes by true and add set -x ( #1914 )
2022-05-31 14:14:14 +00:00
Kira Pilot
dd55d4577d
chore: remove react imports ( #1867 )
...
reolves #1856
2022-05-31 10:01:37 -04:00
Steven Masley
26a2a169df
fix: Suspended users cannot authenticate ( #1849 )
...
* fix: Suspended users cannot authenticate
- Merge roles and apikey extract httpmw
- Add member account to make dev
- feat: UI Shows suspended error logging into suspended account
- change 'active' route to 'activate'
2022-05-31 08:06:42 -05:00
Cian Johnston
e02ef6f228
chore: executor_test: reduce test execution time ( #1876 )
...
Removes 5-second wait in autobuild.executor unit tests:
- Adds a write-only channel to Executor and plumbs through to unit tests
- Modifies runOnce to return an executor.RunStats struct and write to statsCh if not nil
2022-05-30 20:23:36 +01:00
Ketan Gangatirkar
ae4b2d88cd
added links to our issues to reduce necessary thinking to report issues
2022-05-30 14:19:48 -05:00
Cian Johnston
a8ae9b39b3
feat: enforce upper bounds on workspace TTL and Deadline ( #1902 )
...
* Enforces upper bound for workspace TTL
* Enforces upper bound for workspace deadline
2022-05-30 20:19:17 +01:00
Ketan Gangatirkar
17a57a44eb
added community links
2022-05-30 14:16:02 -05:00
Ketan Gangatirkar
02692402d8
added #coder in the most prominent least awkward place
2022-05-30 14:12:33 -05:00
Ben Potter
6850db2a47
chore: fix additional typo in templates doc
2022-05-28 08:14:46 -05:00
Ben Potter
80ec67f3fd
chore: fix typo in templates docs
2022-05-28 08:13:50 -05:00
Ben Potter
7ad68ca36b
example: docker: support Windows hosts ( #1880 )
2022-05-28 01:09:29 +00:00
Kyle Carberry
da7ed8b292
chore: Ignore scripts from code coverage ( #1878 )
...
Our CI scripts don't need to have thorough tests, and aren't
in the hot path of the product.
2022-05-27 22:25:24 +00:00
Garrett Delfosse
5598ac05dc
fix: prevent email from being altered ( #1863 )
2022-05-27 22:25:04 +00:00
Asher
cfa316be89
fix: incomplete message when intercepting console logger ( #1875 )
...
I was getting a message like "Warning: Failed type %s: %s%s".
2022-05-27 17:16:19 -05:00
Asher
dd1484e24f
fix: add missing key to resource row ( #1874 )
2022-05-27 17:16:04 -05:00
Garrett Delfosse
8222bdc3bc
feat: add user password change page ( #1866 )
2022-05-27 18:08:28 -04:00
Ben
8cd7d4fa9c
chore: update hero
2022-05-27 20:48:52 +00:00