Closed
Description
Motivation
Context: #15054 (comment)
We have a hard-coded list of countries in https://github.com/coder/coder/blob/main/site/src/pages/SetupPage/countries.tsx
This unfortunately means that the Go code in coder/coder doesn't have an easy way of utilizing it.
Proposed solution
Generate countries.tsx
from Go code. This would entail modifying countries.tsx
to Go syntax and using code generation to write countries.tsx
.
This should be a relatively small lift as we have extensive code generation already in place. It could possibly be generated by scripts/apitypings
.