Many of the times, customers tend to share their queries directly in the chat, such as reporting a bug or something like a feature request, adding an action button in the list of actions beside a message that pops up a modal which helps in opening an issue can be a very good addition for a user convenience.
Acceptance Criteria fulfillment
[x] Register the action button, in Command's Main Function.
[x] Make Action Handler to the Button and check for auth.
[x] Modify the New User Modal, for shared support for both SlashCommandContext and also with Action Button Context
[x] Launch the Modal with message.text as data.template for the NewIssueModal
Shortcuts
Use your message text in the format to embed repository name in the modal as well <owner/repositor> | <issue>, this will take the repository name and pass it to modal with the issue text as well
Hey @samad-yar-khan, as we discussed, I have added an action button, for quickly opening issues from messages,
Please have a look, leading to some new improvement in this side such as attachment support ✌️
Closes #87
Issue(s)
Many of the times, customers tend to share their queries directly in the chat, such as reporting a bug or something like a feature request, adding an action button in the list of actions beside a message that pops up a modal which helps in opening an issue can be a very good addition for a user convenience.
Acceptance Criteria fulfillment
SlashCommandContext
and also withAction Button Context
message.text
asdata.template
for theNewIssueModal
Shortcuts
<owner/repositor> | <issue>
, this will take the repository name and pass it to modal with the issue text as wellProposed changes
Issue Button
Issue without shortcut
Issue with shortcut