Cristiano Rastelli 54b1fceca0
[VAULT-34798] UI: move the boolean block in FormField under the HDS block (#30771)
* [UI] Updated `FormField` to use `Hds::Form::Checkbox` for `type/editType=boolean` (#34798)

* [UI] Updated `FormField` tests for `type/editType=boolean` (#34798)

* [UI] Fixed failing test cases from `FormField` `boolean` updates (#34798)

* [UI] fixes raised in PR review (#34798)

* removed `this.labelString` guard per agreement

see https://github.com/hashicorp/vault/pull/30788

* [UI] replaced `assert.ok` with `assert.true` per code review suggestion

* updated `isHdsFormField` logic to reflect more accurately inital “logic” flow in the `form-field.hbs` template file

for context: https://hashicorp.slack.com/archives/C05DGFEBCP2/p1751023770911809

* fixed test that was erroneously changed in previous PR due to an undetected bug

the previous code was generating a `checkbox` instead of a `toggleButton`
it’s now been fixed (see previous commit)

* Update ui/lib/core/addon/components/form-field.hbs

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-06-30 16:45:35 +01:00
..
2025-04-23 09:27:01 -07:00
2025-04-23 09:27:01 -07:00
2023-12-13 11:16:44 -08:00