Title: Add checkbox input for boolean variable · Issue #2659 · coder/coder · GitHub
Open Graph Title: Add checkbox input for boolean variable · Issue #2659 · coder/coder
X Title: Add checkbox input for boolean variable · Issue #2659 · coder/coder
Description: Problem statement Terraform has a type = bool, for variables. Acceptance criteria On the create workspace screen, Coder renders parameters with type = bool with a checkbox or other true/false input. The CLI has a similar behavior. Origin...
Open Graph Description: Problem statement Terraform has a type = bool, for variables. Acceptance criteria On the create workspace screen, Coder renders parameters with type = bool with a checkbox or other true/false input...
X Description: Problem statement Terraform has a type = bool, for variables. Acceptance criteria On the create workspace screen, Coder renders parameters with type = bool with a checkbox or other true/false input...
Opengraph URL: https://github.com/coder/coder/issues/2659
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add checkbox input for boolean variable","articleBody":"## Problem statement\r\n\r\nTerraform has a `type = bool`, for variables. \r\n\r\n## Acceptance criteria\r\n\r\nOn the create workspace screen, Coder renders parameters with `type = bool` with a checkbox or other true/false input. The CLI has a similar behavior.\r\n\r\n## Original issue\r\n\r\n```\r\nvariable \"vnc\" {\r\n description = \"Do you want to enable VNC?\"\r\n default = true\r\n nullable = false\r\n type = bool\r\n\r\n validation {\r\n condition = contains([true, false], var.vnc)\r\n error_message = \"Invalid value!\"\r\n }\r\n}\r\n```\r\nI'm thinking of this way of representing it, the validation step is kinda useless though.\r\nbasically, if a variable's ``type`` is equal to ``bool`` then it would be nice to have it display as a checkbox rather than a textbox.","author":{"url":"https://github.com/phorcys420","@type":"Person","name":"phorcys420"},"datePublished":"2022-06-26T18:25:50Z","url":"https://github.com/coder/coder/issues/2659"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cdd48ac5-56dd-b99b-d8ef-5b2fd4c91b55 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5E0:363D8E:28D7126:33CC698:6B018747 |
| html-safe-nonce | b3e92d1411b132f248d3ff387da0cda14928c240a11610c8568e0834af7f939e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUUwOjM2M0Q4RToyOEQ3MTI2OjMzQ0M2OTg6NkIwMTg3NDciLCJ2aXNpdG9yX2lkIjoiNDU0OTc2NzgyNjA2MzMyOTA5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 00e872cd345ea0288aae0af1a35bc7428280af6012d7bc9a581d5bb959cb9f40 |
| hovercard-subject-tag | issue:1284996563 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/2659/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29058d0369b0178dfd73d4608e1754bbc3939f38685a0b3e43401be5502a0f01/coder/coder/issues/2659 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29058d0369b0178dfd73d4608e1754bbc3939f38685a0b3e43401be5502a0f01/coder/coder/issues/2659 |
| og:image:alt | Problem statement Terraform has a type = bool, for variables. Acceptance criteria On the create workspace screen, Coder renders parameters with type = bool with a checkbox or other true/false input... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | phorcys420 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width