-
Notifications
You must be signed in to change notification settings - Fork 881
feat: add open in coder docs, fix missing templates #4124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@bpmct would love early feedback on these docs. Also, do we have an "Open in Coder" image asset we can use? |
Yep, we have https://cdn.coder.com/embed-button.svg |
f3b3d90
to
0ca4c35
Compare
docs/admin/open-in-coder.md
Outdated
|
||
The underlying link for this button consists of the following pieces: | ||
- <deployment-url>: where your Coder deployment lives i.e. https://dev.coder.com | ||
- <query-params>: optional query parameters to customize the experience |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add each query parameter here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in replace <query-params>
with each query param here? I think I know what you're saying but feel free to add a suggestion!
c9cceba
to
6831f8b
Compare
This adds new documentation for the "Open in Coder" button that admins can use to get their developers up and running faster.
Previously, we weren't handling a case where we tried to get a template that returned a 404 from the backend. Now we handle that case in our state machine and display the error message from the API on the frontend.
This adds support to navigate directly to a template from the index by using the `?template=<name>` query param.
6831f8b
to
bad7ffb
Compare
@bpmct This completes the work for support of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The machine looks good! I noticed that if I fake an SSE error, I see "an unknown error has occurred". This can be for a later PR but it would be good to have an informative error message.
I'm less familiar with how that should work so I'd love to pair on it in a later PR if you're up for it! |
This reverts commit bad7ffb. We decided to use the `/template/path` route instead.
@bpmct ready for another review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the plan for the additional functionality (e.g. autofill query parameters, detect if workspace exists, etc)? Are you planning on doing that after this in a separate PR?
Co-authored-by: Ben Potter <ben@coder.com>
Co-authored-by: Ben Potter <ben@coder.com>
Yes, exactly! Next PR after this will be |
Changes
README
Screenshots
This is what the new error looks like on the Template page

Part 1 of ? for #3981
Changes to address