From 49a1a4e98c6a2b6c0d5485b67bd06235affb36d7 Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Fri, 21 Jul 2023 15:08:51 -0700 Subject: [PATCH] autocomplete [nfc]: Fill in some `TODO(#...)` issue numbers --- lib/model/autocomplete.dart | 6 +++--- lib/widgets/autocomplete.dart | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/model/autocomplete.dart b/lib/model/autocomplete.dart index f06fb5bc85..2afbbd4946 100644 --- a/lib/model/autocomplete.dart +++ b/lib/model/autocomplete.dart @@ -267,7 +267,7 @@ class MentionAutocompleteView extends ChangeNotifier { } } } - return results; // TODO sort for most relevant first + return results; // TODO(#228) sort for most relevant first } } @@ -283,8 +283,8 @@ class MentionAutocompleteQuery { final List _lowercaseWords; bool testUser(User user, AutocompleteDataCache cache) { - // TODO test email too, not just name - // TODO test with diacritics stripped, where appropriate + // TODO(#236) test email too, not just name + // TODO(#237) test with diacritics stripped, where appropriate final List nameWords = cache.nameWordsForUser(user); diff --git a/lib/widgets/autocomplete.dart b/lib/widgets/autocomplete.dart index 74bd341ab3..6e538e671a 100644 --- a/lib/widgets/autocomplete.dart +++ b/lib/widgets/autocomplete.dart @@ -92,9 +92,9 @@ class _ComposeAutocompleteState extends State { // (maybe handle centrally in `widget.controller`) replacementString = '${mention(store.users[userId]!, silent: intent.query.silent, users: store.users)} '; case WildcardMentionAutocompleteResult(): - replacementString = '[unimplemented]'; // TODO + replacementString = '[unimplemented]'; // TODO(#234) case UserGroupMentionAutocompleteResult(): - replacementString = '[unimplemented]'; // TODO + replacementString = '[unimplemented]'; // TODO(#233) } widget.controller.value = intent.textEditingValue.replaced( @@ -110,12 +110,12 @@ class _ComposeAutocompleteState extends State { String label; switch (option) { case UserMentionAutocompleteResult(:var userId): - // TODO avatar + // TODO(#227) avatar label = PerAccountStoreWidget.of(context).users[userId]!.fullName; case WildcardMentionAutocompleteResult(): - label = '[unimplemented]'; // TODO + label = '[unimplemented]'; // TODO(#234) case UserGroupMentionAutocompleteResult(): - label = '[unimplemented]'; // TODO + label = '[unimplemented]'; // TODO(#233) } return InkWell( onTap: () {