ivaldi / brimir

Email helpdesk built using Ruby on Rails and Zurb Foundation
http://getbrimir.com
GNU Affero General Public License v3.0
1.38k stars 299 forks source link

Basic implementation of canned responses #435

Closed svoop closed 5 years ago

svoop commented 5 years ago

"Canned responses" are prepared emails to prevent having to write the same responses to evergreen tickets all the time. This basic implementation simply adds a new EmailTemplate kind "canned-response" which can then be selected from the reply form.


First of all, you have to create at least one email template of kind "canned response":

screen shot 2018-10-01 at 15 30 49

To keep things simple, canned responses are not mutually exclusive but always active:

screen shot 2018-10-01 at 15 31 17

Now, a new dropdown shows up on the reply form:

screen shot 2018-10-01 at 15 31 30

Choose the canned response of your choice and it prefills the text editor:

screen shot 2018-10-01 at 15 31 44
coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.05%) to 92.268% when pulling 66df74e8b7634ae4b51c2d256e6845e61bd86e89 on svoop:canned_responses into 1b9adfd4a350f2b64cd60500a17406328ebd46f9 on ivaldi:master.

svoop commented 5 years ago

@frenkel I might have tripped over a bug, however, I can't look into it before this evening. Please don't merge this PR quite yet, thanks!

svoop commented 5 years ago

@frenkel False alarm. Canned responses didn't work on my production site, but only because I forgot to re-precompile the assets, stupid me. All go for review/merge.

svoop commented 5 years ago

@frenkel Thanks a bunch!