Open yadobler opened 3 days ago
This is done intentionally as editing uses the displayed list as a reference for the index and it is most intuitive for the user to immediately be able to see the edited contact. Changing the filtered/displayed list after edit will confuse the user and they will be unable to identify the index of the contact edited.
However, when adding a new person, the person will likely not be on the current filter. Hence, it is more intuitive to reset the filter list to show all people for the user to check that the contact was added successfully.
This difference in behaviour is intended for a more intuitive user experience.
Team chose [response.Rejected
]
Reason for disagreement: > Changing the filtered/displayed list after edit will confuse the user and they will be unable to identify the index of the contact edited.
I got confused when I edited the contact and the contact disappeared since it no longer matched the filter criterion. Lets say I realised I spelled "Bernice Yoh" as "Bernice Yu" wrongly and I also need to edit the game:
find Yu
Bernice Yu
as index 1
edit 1 n/Bernice Yoh
editgame
?How do I know the contact was successfully edited - the message says "success" but my first thought is "Did I just delete my contact or corrupted the address book?"
To be honest, "they will be unable to identify the index of the contact edited" is literally the current situation that I am in after the edit
command because, what is the index of the contact that is no longer visible?
From what I understand, the "intuitive" idea would be if the person list was not refreshed but only show the previous result with the new edits.
Also this is not documented in the UG. I will definitely assume the app deleted my contact after editing it, and wrongly assume the app is faulty and immediately give up.
Summary
After using the
find
command, using theedit
command will result in the list updating with the previousfind
constraint, butadd
results in the list being reset and all persons being shown.Steps to reproduce
Optional: enter
clear
to start with clean slate, but this works regardlessadd n/Bob
find Bob
. There should only be 1 person named named Bob that showsedit 1 n/Tom
bob
as per (2)list
to reset view. There should be one person calledTom
find Tom
. Similar to (2)add n/Josh
Expected
Either
find
constraint is maintained for both, or both commands reset the view.Observed
(2)
(4)
(6)
(8)
Tester Information
System Information:
Java version: