616d37db53
chore(cli): skip scaletest tests when race detector enabled ( #16033 )
...
Fixes https://github.com/coder/internal/issues/265
This isn't an ideal solution but the race detector tends to make these
flake out.
2025-01-03 23:08:51 +02:00
1364368e73
chore: cleanup Makefile ( #16034 )
...
- add `.PHONY` to some jobs where it was missing
- improve the test-e2e job by ensuring the frontend build is up to date
- some small correctness tweaks
2025-01-03 13:27:26 -07:00
1ab10cf80c
fix(provisioner/terraform/tfparse): skip evaluation of unrelated parameters ( #16023 )
...
* Improves tfparse test coverage to include more parameter types and values
* Adds tests with unrelated parameters that should be ignored by tfparse
* Modifies tfparse to only attempt evaluation of parameters referenced by coder_workspace_tags
2025-01-03 19:32:17 +00:00
4e0963966d
docs: markdown fixes and edits ( #15527 )
...
- **docs: improve admonition for need to add useHttpPath**
- **docs: fix list item nesting**
- **docs: fix list item nesting**
- **docs: improve admonition for authentication**
- **docs: tidy and update vault guide**
- **docs: improve admonitions**
- **docs: improve admonitions**
- **docs: content edits, reference links to make copy easier to read**
previews:
- <https://coder.com/docs/@fix-guides-list-numbers/admin/external-auth >
-
<https://coder.com/docs/@fix-guides-list-numbers/admin/integrations/island >
---------
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
Co-authored-by: EdwardAngert <EdwardAngert@users.noreply.github.com >
2025-01-03 14:13:46 -05:00
f6d37f6fcc
fix(site): ensure Error Boundary catches render errors correctly ( #15963 )
...
## Changes made
- Replaced previous `ErrorBoundary` functionality with
`GlobalErrorBoundary` component
- Wired up `GlobalErrorBoundary` to React Router rather than the top of
the app
2025-01-03 12:26:14 -05:00
d788223688
chore: replace github.com/go-jose/go-jose/v3
with v4 ( #16031 )
...
Codebase currently uses both v3 and v4 versions of the `go-jose`
dependency. To maintain consistency, we should standardize on using only
the latest v4 version.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2025-01-03 11:21:49 -06:00
a7ed977ba9
chore: prevent db migrations from running on all cli commands ( #15980 )
2025-01-03 11:15:35 -06:00
813270d63a
chore: bump github.com/open-policy-agent/opa from 0.70.0 to 1.0.0 ( #16013 )
...
Opting into rego v1. Rego v1 requires `if` for all rule statements.
This PR updates the dependencies and the rego policy itself.
Golang imports upgraded for opa/rego
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-03 11:06:47 -06:00
4495db8ce8
chore: bump the vite group across 1 directory with 2 updates ( #15992 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-03 18:46:19 +05:00
d0037670b0
chore: only run pnpm when node_modules are out of date in Makefile ( #16017 )
...
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
2025-01-03 18:37:25 +05:00
94f5d52fdc
chore: adopt markdownlint and markdown-table-formatter for *.md ( #15831 )
...
Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com >
2025-01-03 13:12:59 +00:00
08463c27d8
feat: add OpenIn option to coder_app ( #15743 )
...
This PR is the coder/coder part of [the open_in parameter
issue](https://github.com/coder/terraform-provider-coder/issues/297 )
aiming to add a new optional parameter to choose how to open modules.
This PR is heavily linked [to this
PR](https://github.com/coder/terraform-provider-coder/pull/321 ).
ℹ️ For now, some integrations tests can not be pushed as it requires a
release on the terraform-provider repo.
2025-01-03 11:27:02 +01:00
3f1795fd92
docs: remove Coder from Quickstart title ( #16016 )
...
[preview](https://coder.com/docs/@quickstart-coder-coder/tutorials/quickstart )
2025-01-03 00:27:56 -05:00
add6923e4a
chore: remove leftover meticulous code ( #16018 )
...
Found a leftover dependency that got left in. No longer used!
2025-01-02 16:55:39 -07:00
73ec6b2635
chore: audit log entries for all idp sync changes ( #15919 )
2025-01-02 15:02:04 -06:00
761a19663f
docs: document issue with direnv and nix-shell on macOS ( #15990 ) ( #16015 )
...
- @paulroub's contribution to `CONTRIBUTING.md` adds a workaround and a
link to the direnv issue
- some editing to the format/layout of the doc
---------
Co-authored-by: Paul Roub <paul@roub.net >
2025-01-02 14:55:59 -05:00
cee365670d
chore: add spinner component ( #16014 )
...
This component is necessary to move forward with the "[Define a global
button style](https://github.com/coder/coder/issues/14978 )" issue, as it
requires buttons to support loading states with spinners. The `Spinner`
component is heavily inspired by the [Radix UI Spinner
component](https://www.radix-ui.com/themes/docs/components/spinner ) and
was developed with the help of [v0](https://v0.dev/ ).
**Preview**

---------
Co-authored-by: Jaayden Halko <jaayden.halko@gmail.com >
2025-01-02 16:10:38 -03:00
21a45cf4be
chore: bump react-syntax-highlighter from 15.5.0 to 15.6.1 in /site ( #16003 )
2025-01-02 11:13:56 -07:00
e6d6e3002a
chore: bump @radix-ui/react-dialog from 1.1.2 to 1.1.4 in /site ( #15999 )
...
Bumps @radix-ui/react-dialog from 1.1.2 to 1.1.4.
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 12:56:38 -05:00
82070944f1
chore(provisionerd): close completeChan exactly once ( #16011 )
...
Fixes https://github.com/coder/internal/issues/263
2025-01-02 15:14:06 +00:00
9c625476b7
fix(examples): add keep_locally to docker_image resources ( #16012 )
...
Fixes https://github.com/coder/coder/issues/15972
Adds `keep_locally = true` to other templates that use the
`docker_image` resource to prevent the docker provider from attempting
to remove the image upon workspace deletion.
We had set this in some other places (such as the `dogfood` template)
but had not set this consistently in other templates.
2025-01-02 13:17:53 +00:00
f3fe3bc785
feat: notify on workspace update ( #15979 )
...
Relates to https://github.com/coder/coder/issues/15845
When the `/workspace/<name>/builds` endpoint is hit, we check if the
requested template version is different to the previously used template
version. If these values differ, we can assume that the workspace has
been manually updated and send the appropriate notification. Automatic
updates happen in the lifecycle executor and bypasses this endpoint
entirely.
2025-01-02 12:19:34 +00:00
445392bdd8
chore(apiversion): add guidelines regarding bumping apiversion ( #16009 )
...
Adds some package-level documentation to reduce confusion on when it is
appropriate or warranted to bump apiversions.
2025-01-02 10:41:36 +00:00
18600d3620
docs: add note about TLD and wildcards ( #16008 )
...
Adds docs to hopefully help others avoid https://github.com/coder/coder/discussions/15708
2025-01-02 14:01:28 +04:00
75fa8cab9f
chore: bump @storybook/preview-api from 8.4.6 to 8.4.7 in /site ( #16002 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 14:31:18 +05:00
7152f4a740
ci: make sure golden files are actually up to date ( #15989 )
2025-01-02 11:05:11 +02:00
0e26a665ae
chore: bump eslint-config-next from 14.2.18 to 14.2.22 in /offlinedocs ( #15996 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-02 13:57:04 +05:00
7ad6733856
chore: bump @types/node from 20.17.6 to 20.17.11 in /site ( #16001 )
2025-01-02 11:26:48 +05:00
9ef489d3c5
chore: bump @types/node from 20.17.9 to 20.17.11 in /offlinedocs ( #15995 )
2025-01-02 11:26:32 +05:00
eee08c432a
chore: bump next from 14.2.16 to 14.2.22 in /offlinedocs ( #15993 )
2025-01-02 11:26:25 +05:00
efbb49c98a
chore: bump the mui group across 1 directory with 6 updates ( #15991 )
2025-01-02 11:25:43 +05:00
f517e5f3e0
fix(enterprise/cli): add missing defer close of closer funcs ( #15986 )
2024-12-31 14:39:19 +00:00
23b1c2d6b2
fix(cli/cliui): handle typed nil and null time in tables ( #15984 )
2024-12-31 14:36:46 +00:00
ca96e670ed
test: fix incorrectly placed cleanup defer in dbtestutil ( #15987 )
2024-12-31 16:28:29 +02:00
cc98bab30f
chore(scripts): remove unused ci-report ( #15988 )
2024-12-31 14:05:36 +00:00
64283abaf8
chore(Makefile): add convenience gen/db ( #15983 )
2024-12-31 15:47:47 +02:00
c9eb06eb97
chore: remove dead link to azure docs issues ( #15982 )
2024-12-31 16:17:59 +05:00
5294f7aae3
chore: add CONTRIBUTING.md
( #15981 )
2024-12-31 13:07:32 +05:00
49fadb801d
refactor: update the navbar to match the new designs ( #15964 )
...
Update the navbar to match the designs in [this Figma
file](https://www.figma.com/design/WfqIgsTFXN2BscBSSyXWF8/Coder-kit?node-id=656-2354&t=4a6pX5tQU5Ti2Oyi-0 ).
Related to https://github.com/coder/coder/issues/15617 .
**Desktop preview:**
https://github.com/user-attachments/assets/01ce7cd2-baaa-49c4-9e9a-bf6e675151da
**Mobile preview:**
https://github.com/user-attachments/assets/155e2521-7293-4368-a5f5-425179d76326
For a closer look, you can check Chromatic snapshots or test the changes
locally.
**A few considerations:**
- I made some adjustments to improve the design, such as removing the
chevron from the profile menu and reducing the size of the chevrons in
the dropdowns. I’ve documented these changes in the [Figma
file](https://www.figma.com/design/WfqIgsTFXN2BscBSSyXWF8/Coder-kit?node-id=656-2354&t=4a6pX5tQU5Ti2Oyi-0 )
so @chrifro can review them after returning from vacation.
- Some of the design questions involve how the proxy and account
dropdown menus should look on desktop and mobile. For desktop, I decided
to retain the current styles, and for mobile, I tried to infer how they
should look based on the existing design.
- There is some duplicated logic between the regular/desktop navbar
menus and the mobile menus, which could lead to inconsistencies and make
maintenance harder in the future. I plan to address this in a follow-up
PR to keep this review manageable.
- I’ve added tests to minimize inconsistencies and potential bugs while
working on this refactor.
2024-12-30 14:25:00 -03:00
459003fdb1
chore: update guts to first tagged release ( #15975 )
...
Changes error about name collision in generation to a warning. The name
collision still exists, just moved it to a warning rather than an error
in the logs.
2024-12-30 10:45:38 -06:00
14579fa55a
chore(Makefile): add shell safety to fmt/go ( #15974 )
...
This PR adds shell safety to `make fmt/go` as per
https://github.com/coder/coder/pull/15971#discussion_r1899423172
2024-12-30 12:56:22 +02:00
6434199a86
chore(Makefile): ensure that make fmt/go only formats go source files ( #15971 )
...
An unfortunate branch name resulted in failures when running `make
fmt/go` and consequently `make fmt`. fmt should not be run on the .git
directory. This PR excludes `.git` and anything else that's not a go
source file in the currently checked out branch from the consideration
of `make fmt/go`.
2024-12-30 11:45:06 +02:00
8befb34eca
feat(examples/templates/digitalocean-linux): add code-server and jetbrains gateway modules ( #15546 )
2024-12-27 21:45:29 +01:00
d02ff9069a
refactor: use apple emojis ( #15965 )
...
Closes https://github.com/coder/coder/issues/14998
2024-12-27 15:03:25 -03:00
638247c9a6
feat: allow entering non-default values in multi-select ( #15935 )
2024-12-27 16:45:46 +05:00
865969400b
chore: add Collapsible component ( #15961 )
...
This component is needed to complete the mobile menu for the [navbar
refactoring task](https://github.com/coder/coder/issues/15617 ). You can
check out the Figma design
[here](https://www.figma.com/design/WfqIgsTFXN2BscBSSyXWF8/Coder-kit?node-id=656-2354&t=jm6tERwCzB1TBeds-0 ).
2024-12-26 16:03:28 -03:00
03edd604a7
chore(examples/templates/digitalocean-linux): make template more friendly ( #15938 )
2024-12-25 00:52:23 +05:00
26b1f1c3a3
chore(docs/admin/infrastructure): call out and link to awsiamrds auth for aws rds ( #15955 )
...
Call out AWS IAM RDS db auth and clarify URL encoding requirement in postgres URL
2024-12-24 12:22:40 +00:00
314bb67dbe
chore: bump github.com/gohugoio/hugo from 0.139.4 to 0.140.0 ( #15951 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-23 13:32:54 +00:00
ec3e461b42
chore: bump google.golang.org/api from 0.213.0 to 0.214.0 ( #15949 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-23 18:16:46 +05:00