Open FelberMartin opened 1 week ago
I just looked into the code and found the behaviour that I described as a bug, seems to be intentional. At least the code communicates that a tag continues over a single whitespace and only the second whitespace terminates it. https://github.com/ls1intum/artemis-android/blob/7a2f61d5ea1d05ab58850bab8322d5abc97a826b/feature/metis/conversation/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/ReplyTextField.kt#L625-L660 @TimOrtel Do you know what the reasoning for this behaviour was?
In the WebApp the Autocompletion disappears after typing the first space. On iOS the behaviour is different again, there the Autocompletion does not disappear at all until you click a entry from the list. But I assume this can be considered a bug (@anian03) ?
In the WebApp the Autocompletion disappears after typing the first space. On iOS the behaviour is different again, there the Autocompletion does not disappear at all until you click a entry from the list. But I assume this can be considered a bug (@anian03) ?
From what I know on iOS this was intentional at the time because we had no way of knowing where the cursor is, and we assumed the user still wanted to pick an exercise. But I agree with you that we should also consider changing this on iOS as well.
My take on the single whitespace: Some people might search for an exercise using # name-here
, and a freestanding hashtag is unlikely to occur in a message anyways, so this makes some sense
Pretty sure it is because when tagging people they have a space between first name and last name.
After going to sleep I just realised that, thanks for the hint :D
Bug
Current behaviour When typing a tagging ("#" or "@") character and my search term, the autocompletion list is shown as expected. After typing a space character, the list is still shown and I have to close it manually by tapping outside of the list.
Expected behaviour After typing a space, the autocompletion list should not be shown anymore.
Update: This behaviour is intended for tagging users with the first and surname. See comments below
UI Enhancement
The autocompletion list currently is partly drawn over the Preview and Edit buttons and could visually be more separated from the rest of the UI.