restricted-site-access
restricted-site-access copied to clipboard
UX - Add button is little confusing in plugin setting area for end user point of view.
Is your enhancement related to a problem? Please describe.
This is more related to user experience related to a site admin user.
This plugin has a field named Unrestricted IP addresses and has a button to add values. https://i.imgur.com/YJKB28T.jpg
As per the user point of view, this button looks like adding a new text field for IP address but logically it works for adding value of the first field.
When a user fills the IP address in the first field and Saved the changes then it doesn't add that IP address in the setting.
User has to click Add button to add first IP address. If user just wants to add ONE IP address then they will just add an IP address and will save changes.
In this way, the IP address doesn't add in settings. The user has to come back here and need to add IP by clicking Add button.
Describe the solution you'd like
- In simple terms, please rename the
Addbutton toAdd this IPso the user will know this button is being used for adding the respective IP instead of adding a new text field.
OR
- Change the logic of this
Addbutton. Make it work for adding a new text field.
For example: If user has more than one IP address then the user will add a new text field. IF user only has one IP address then the user will just add in first text box and will save the changes.
Designs N/A
Additional context Refer for a better explanation - https://www.loom.com/share/820d3c6014a6464d91df09ce6f44ec73
Attaching image here for easier access/viewing:

@ankitguptaindia Clicking Save changes to save single IP or range makes sense to me. Would you mind creating a PR to fix that?