rusk icon indicating copy to clipboard operation
rusk copied to clipboard

web-wallet: Improve experience when invalid Gas Limit is set on initialization and the user accesses Settings

Open nortonandreev opened this issue 11 months ago • 6 comments

Summary

I am seeing a problem with the experience, in case an invalid gas limit has been set in the ENV.

Screenshot 2024-03-18 at 13 46 21

If the user tries to access the Settings, the Back button will be disabled, as the Gas Limit is invalid. However, as the user hasn't changed anything in the view, I think it's not immediately clear why the Back is disabled.

This is more of a corner case, as the user has to have supplied an invalid value in their ENV. However, it is possible that the ENV gets messed up on Production, which would lead to users experiencing this.

Open to discussion.

nortonandreev avatar Mar 18 '24 11:03 nortonandreev

You make a valid point here, but still unsure if we should act on it now, or rather wait for some change I'm expecting like contracts defining their own gas settings limits (upper / lower) and defaults.

ascartabelli avatar Mar 19 '24 11:03 ascartabelli

You make a valid point here, but still unsure if we should act on it now, or rather wait for some change I'm expecting like contracts defining their own gas settings limits (upper / lower) and defaults.

Sure, it's a low-priority item. Just wanted to track it.

nortonandreev avatar Mar 19 '24 11:03 nortonandreev

This is actually a feature not a bug, I made it like this for the following edge case. We or the user change the ENVs which invalidate the preferred gas settings in the app. As we do not show that the ENVs have changed the only way to make the user change the preferred gas settings is to force him to change them when he goes to the settings page.

deuch13 avatar Mar 19 '24 11:03 deuch13

This is actually a feature not a bug, I made it like this for the following edge case. We or the user change the ENVs which invalidate the preferred gas settings in the app. As we do not show that the ENVs have changed the only way to make the user change the preferred gas settings is to force him to change them when he goes to the settings page.

The user will be forced to change them once they trigger a flow that makes use of the properties.

Screenshot 2024-03-19 at 14 20 14

And progressing to the next step being disabled due to invalid value is a well-known behavior, whereas disabling the back on the Settings doesn't feel intuitive.


Side note: I think that, invalid values for the Gas have been set for whatever reason, the Gas Settings pane should be expanded by default, otherwise why the user cannot proceed is not immediately clear.

Screenshot 2024-03-19 at 14 20 42

nortonandreev avatar Mar 19 '24 12:03 nortonandreev

This is actually a feature not a bug, I made it like this for the following edge case. We or the user change the ENVs which invalidate the preferred gas settings in the app. As we do not show that the ENVs have changed the only way to make the user change the preferred gas settings is to force him to change them when he goes to the settings page.

The user will be forced to change them once they trigger a flow that makes use of the properties.

Screenshot 2024-03-19 at 14 20 14 And progressing to the next step being disabled due to invalid value is a well-known behavior, whereas disabling the back on the Settings doesn't feel intuitive.

Indeed, but I do not know what the user will do first in the app so that is why I forced the user in the settings page to update the gas limits.

Side note: I think that, invalid values for the Gas have been set for whatever reason, the Gas Settings pane should be expanded by default, otherwise why the user cannot proceed is not immediately clear.

Screenshot 2024-03-19 at 14 20 42

This is strange as the pane should open if the gas limits are invalid, this indeed is a bug.

deuch13 avatar Mar 19 '24 13:03 deuch13

This is strange as the pane should open if the gas limits are invalid, this indeed is a bug.

I just checked, it seems to be working fine. Not sure what happened before.

nortonandreev avatar Mar 19 '24 16:03 nortonandreev