Commit graph

11 commits

Author SHA1 Message Date
Michal Gold
49fa0ee735 Wizard: Refactor HookValidatedInput component
This commit splits the HookValidatedInput component into three separate functions to improve modularity and readability:

- `getValidationState`: Calculates the validation state ('default', 'success', 'error') based on whether the input is pristine and if there is an error message.
- `ValidatedInputAndTextArea`: Renders the TextInput or TextArea component, utilizing the `getValidationState` output.
- `ErrorMessage`: Displays validation error messages.

This refactoring enhances code maintainability and testability, and the updated structure is now implemented for the username field.
2025-03-05 16:07:36 -06:00
Michal Gold
6e36232e1a Wizard: Add remove user button in users step
this adds remove user button and add unit test as well.
2025-01-27 14:30:22 -06:00
Michal Gold
aa8086176b wizard: create new component with add eyeIcon button inside textInput
this commit create new component with add eyeIcon button inside textInput,
for password field
2025-01-27 13:35:18 -06:00
Michal Gold
771a582916 wizard: add support of TextArea for ssh_key field
this commit add support of TextArea for ssh_key field
2025-01-25 17:07:53 -06:00
Michal Gold
25f124077c wizard: add Administrator checkbox to users step (HMS-4903)
this commit add Administrator checkbox to users step
2025-01-21 13:29:25 +01:00
regexowl
30d77faeb5 this commit add validation to name field in Users step 2025-01-21 11:36:33 +01:00
Michal Gold
b3a8597b66 Revert "wizard: add confirm password to users step (HMS-4903)"
This reverts commit ba70753a80.
2025-01-08 12:47:05 -06:00
Michal Gold
ba70753a80 wizard: add confirm password to users step (HMS-4903)
this commit add confirm password to users step
2025-01-08 11:10:29 +01:00
regexowl
4af4b56332 this commit adds ssh_key to users step 2025-01-06 13:05:41 +01:00
regexowl
5f9f30d97b Wizard: Fix "form in form" warning
This resolves `Warning: validateDOMNesting(...): <form> cannot appear as a descendant of <form>.` warning in test output. There were two `<Form>` components nested in each other.
2025-01-02 13:18:00 +01:00
Michal Gold
d0f2317649 wizard: add user information step (HMS-4903)
This commit introduces the user information step with the following fields:
(*) `userName` field
(*) `password` field
(*) add unit tests for create and edit mode
2024-12-20 12:35:15 -06:00