topcoder-platform / micro-frontends-taas-admin-app

taas-admin-app for managing taas administrative activities
MIT License
0 stars 5 forks source link

[$30] Nice to have: Changes for Working Days field #50

Closed sandhiyakavi closed 3 years ago

sandhiyakavi commented 3 years ago

Description:

  1. Currently if we change the daysWorked for a resource, there is no way to ensure it's changed except refreshing. can we add a green colour blink or some checkmark near the field to denote it is updated to the server?

image

  1. Also is it possible to add some form of warning for the user to know that if the daysworked set (if user sets the days) for the first, second of first, last and second of last WP's are subjected to change if there is Change in the Resource Booking dates? Otherwise if user sets daysworked and then if RB dates changed, the daysworked will also be changed. User won't be aware of it.
maxceem commented 3 years ago

Also is it possible to add some form of warning for the user to know that if the daysworked set (if user sets the days) for the first, second of first, last and second of last WP's are subjected to change if there is Change in the Resource Booking dates? Otherwise if user sets daysworked and then if RB dates changed, the daysworked will also be changed. User won't be aware of it.

@sandhiyakavi I think if we add some message for the first and last WPs it would be not enough. Because if we change RB dates for example in half, then half of the WPs would be removed and WP which would be the new last/first one, would be also updated, even though, before it was in the middle.

So far I don't see a good solution for such edge cases. I think what we can do, is log this issue separately, and we could try to discuss it with Will or other end users of the TaaS Admin App. We could learn from them their usage patterns, or maybe they would have some idea regarding this, how do they feel would be natural for them.

maxceem commented 3 years ago

Sum up:

sandhiyakavi commented 3 years ago

@maxceem Currently if we try to increase WorkingDays beyond its fitting to the RB dates,error message is getting displayed but if we try to again change it back to its previous number(without refreshing), the green tick mark is getting displayed which should not happen as the number is not changed in this case.

https://user-images.githubusercontent.com/55895538/124448821-cd6d9380-ddbd-11eb-917c-562ea955b25c.mp4

maxceem commented 3 years ago

@sandhiyakavi this is a bit tricky issue.

The reason for this, when we increase the number it send to the server and gets error, but visually, the number stays as increased. When we decrease it back to previous value we send request to the server again, and this time server returns success - actually value is not changed we just send request to set the same value which is already there.

So the green tick kind of works correctly, it is shown when request is successful.

I'm not sure how it would be better to handle such case if error happened, but if you think we should do something about, I suggest logging a separate issue for this case.

sandhiyakavi commented 3 years ago

Verified on Dev Env. Working as expected.

image

maxceem commented 3 years ago

Paid via https://www.topcoder.com/challenges/dd90e9bb-eff7-4cbe-aa67-0c3791379de0

sandhiyakavi commented 3 years ago

Verified on Prod Env with @nkumar-topcoder