Skip to content

chore: generate countries.tsx from Go code #15074

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy