Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: generate countries.tsx from Go code #15074

Closed
@johnstcn

Description

@johnstcn

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.

Metadata

Metadata

Assignees

Labels

good first issueEasily solved issues suitable for starters and community contributors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions