-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add autocomplete #69
Add autocomplete #69
Conversation
Codecov Report
@@ Coverage Diff @@
## master #69 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 8 8
Lines 829 856 +27
======================================
- Misses 829 856 +27
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome to see these improvements 🎉
todo.AddCommand(pop) | ||
|
||
send := model.NewAutocompleteData("send", "[user] [todo]", "Sends a Todo to a specified user") | ||
send.AddTextArgument("Whom to send", "[@awesomePerson]", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While testing this I've noticed that after picking a user from the @
mention picker the autocomplete stays closed. Should I file a JIRA?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a known issue and is run by UX as well as @aaronrothschild. If you press space autocomplete will continue suggesting. Fix will need a rework of the at_mention_provider as well as suggestions component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iomodo Is there a JIRA that we can link here for reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a small question about the version.
go.mod
Outdated
@@ -3,7 +3,7 @@ module github.com/mattermost/mattermost-plugin-todo | |||
go 1.13 | |||
|
|||
require ( | |||
github.com/mattermost/mattermost-server/v5 v5.20.0 | |||
github.com/mattermost/mattermost-server/v5 v5.3.2-0.20200527124843-dea705969ca4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand this is targetting certain commit or branch. Couldn't we target a proper version? (5.23? 5.24?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, we will target 5.24 when it is cut.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely convinced on the UX of /todo list
, but that's fine to fix in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and passed
- All commands work
- All commands are correct and description is Accurate
- Regression tested plugin on previous server version without auto-complete for proper functionality
LGTM!
Thanks @iomodo for updating this one. Since ToDo has a command that takes an optional argument at the end of the command, I did notice a concern with having to type space twice to remove the list. Maybe it's just me but, I find that this may not be obvious to users who want to send without either argument. As this is not specific to any plugin I wrote a Jira task here https://mattermost.atlassian.net/browse/MM-26282 please share any feedback you may have. |
Summary
This PR will add slash command autocomplete functionality to a Todo plugin.