-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: add support buttons #20339
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
feat: add support buttons #20339
Changes from all commits
b27a9cf
dded442
a5bc8df
7292551
2c1e91f
b0a7f3b
4c95e48
0bd22b6
b061909
e91d0df
62609a7
900099c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -983,9 +983,10 @@ func DefaultSupportLinks(docsURL string) []LinkConfig { | |
| Icon: "bug", | ||
| }, | ||
| { | ||
| Name: "Join the Coder Discord", | ||
| Target: "https://coder.com/chat?utm_source=coder&utm_medium=coder&utm_campaign=server-footer", | ||
| Icon: "chat", | ||
| Name: "Join the Coder Discord", | ||
| Target: "https://discord.gg/coder", | ||
| Icon: "chat", | ||
| Location: "navbar", | ||
| }, | ||
| { | ||
| Name: "Star the Repo", | ||
|
|
@@ -3325,7 +3326,9 @@ type SupportConfig struct { | |
| type LinkConfig struct { | ||
| Name string `json:"name" yaml:"name"` | ||
| Target string `json:"target" yaml:"target"` | ||
| Icon string `json:"icon" yaml:"icon" enums:"bug,chat,docs"` | ||
| Icon string `json:"icon" yaml:"icon" enums:"bug,chat,docs,star"` | ||
|
|
||
| Location string `json:"location,omitempty" yaml:"location,omitempty" enums:"navbar,dropdown"` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just asking because it sounds like I'll be helping out more with
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mainly swagger generator + if we enable go validation, then the field will have restricted values too. |
||
| } | ||
|
|
||
| // Validate checks cross-field constraints for deployment values. | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
i guess we could make a new coder.com/chat link? or at least add a utm_source to the discord.gg url which i think the statistics do give us (unsure, need to check)
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.
Thanks for flagging it! We can update the link in a follow up since I don't know who owns these links.