aws-amplify / aws-amplify/amplify-studio

User management group form

Open
#1,036 1 comment 0 reactions 0 assignees View on GitHub
bug studio-ui user-management
Dominant language
No language data
Stars
135
Forks
32
PR merge metrics
No merged PRs in 30d

Description

### Before opening, please confirm:

- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-adminui/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-adminui/blob/main/CONTRIBUTING.md#bug-reports).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

### App Id

djtfurtwddxxx

### Region

us-east-1

### Environment name

dev

### Figma File Version (if applicable)

_No response_

### Amplify CLI Version

_No response_

### If applicable, what version of Node.js are you using?

_No response_

### What operating system are you using?

Mac

### Browser type?

Chrome

### Describe the bug

Behaviours observed:

1. when adding a user to a group that does not exist and clicking add the button goes into `adding user` status then becomes disabled
![image](https://github.com/aws-amplify/amplify-studio/assets/87995712/1d4ab88b-bd53-409f-b6f1-5794fa78f849)
closing the form and reopening shows the same status

2. no validation on the form where if a auth has email as signup, you can add nothing(yes nothing) and click the add button.
Same for phone number

3. the validation also misses the email format check, you can add a single character it still allows to submit
![image](https://github.com/aws-amplify/amplify-studio/assets/87995712/4a356495-1116-4e59-90e9-b011093c792c)

4. even if we add valid user and submit. re-opening the add user form does not reset the button.

workaround: refreshing the page resets it

### Expected behavior

validation on user groups

### Reproduction steps

1. create a auth resource
2. go to user management
3. create a group
4. click add user

### Project Identifier

_No response_

### Additional information

_No response_

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Reproduce the add-user flow from the listed steps in Chrome, then trace the user-management group form's loading and validation behavior. Done means invalid or empty email and phone submissions are rejected, valid submissions work, and reopening the form resets the button state.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.