GSBCfamily / bvcms

The open source church management system
http://touchpointsoftware.com
GNU General Public License v2.0
1 stars 1 forks source link

Adding Recipients to "To:" field for emails #52

Closed hkouns closed 8 years ago

hkouns commented 8 years ago

From comment on Issue #8 where this idea originated: " ....essentially adding them to the TO: field. In this case we would certainly want it to be a person in the database so that it can be tracked on their record, etc. For instance... We are sending an email to a bible Fellowship Class to invite them to a cookout ... then we remember, we should invite the pastor as well. Currently we would need to add them to a tag...or run a query. With this feature we could just goto the Org and email all members ... then add the pastor on the email page. It would probably would be best to use the standard search/add dialog box."

nehresma commented 8 years ago

Heath -- just a quick check to clarify how you'd like this to work. Do you want this to only show up when 1) you're sending to an org (via the "All Current Members" menu option on the email dropdown of an organization), 2) you're sending to individuals, parents, etc (via those respective menu options), or 3) sending an email via any method?

If 2, there is a multiselect box for "To" recipients. Do you want additional recipients added to this multiselect? The multiselect isn't there when sending to "All Current Members", which is why I had added this via a set of <li>'s on a floating (left) <ul>.

Let me know how you'd like this visually. If you have a sketch or something that might help too.

hkouns commented 8 years ago

First, I think I confused you when I was referencing sending an email to an organization in the original issue above. Normally when we do that we just click send to individuals… Not current members. The current members option is only used if we are writing a draft email and the org membership is expected to change. The location I had put the plus button was as an add on to the multi-select… So it was only available under your option 2. It was not present when sending to org members.

Regarding adding people to the multi-select… I like the way you're adding them to a separate list it makes it easy to identify who is been added. But there regarding adding people to the multi-select… I like the way you are adding them to a separate list it makes it easy to identify who is been added.

There are a couple things we probably need to consider:

nehresma commented 8 years ago

Thanks for the quick response. I can be a bit dense, so just to be clear -- leave the additional recipients as-is in a separate list, or add them to the multiselect? I suspect that if we add them to the multiselect we wont have the ability to click an X to remove them -- not sure if that's important or not.

Responses to you bullet points/questions in order:

hkouns commented 8 years ago

I would leave the list as is for now. I will solicit some input from David and Karen on appearance and whether it needs to be extended to "send to current org members". Also I think for now let's avoid the complexity of trying to save the list with a draft. Let's do some testing on the sending duplicate emails issue and see what is happening right now and how it is getting recorded on the people record.

hkouns commented 8 years ago

@nehresma I did some preliminary testing and the fix for removing people from the Additional Recipient List seems to work fine.

I also found two things that we need to look at: 1) The process seems to hang when you send an email where you add someone as an Additional recipient who is already in the Original recipient list. The email never seems to complete... 2) You are only capturing the FIRST person from the Search/Add dialog box. The dialog box allows you to search and select multiple people before "Committing" ... but only the first entry is being returned to the <li> list

nehresma commented 8 years ago

For my sanity, known issues to deal with yet:

nehresma commented 8 years ago

@hkouns I believe that with this last PR I've addressed the items we discussed here. If I'm leaving something out, please let me know.

nehresma commented 8 years ago

Talked with Heath yesterday after church. A few more items:

hkouns commented 8 years ago

Also, we discussed combining the CC/Reply-To changes into this branch... so that they could all be tested together.

nehresma commented 8 years ago

@hkouns I just realized that saving a draft doesn't actually save the recipients in bvcms: https://github.com/GSBCfamily/bvcms/blob/Add_Recipients_to_Email/CmsWeb/Areas/Main/Controllers/EmailController.cs#L95-L138

I also tested it by saving a draft email to several people then loading it back up -- it didn't retain the recipients.

I'm looking into saving them for scheduling the email now.

hkouns commented 8 years ago

@nehresma , thats right... it saves the recipients to a special tag when you first start drafting an email... but that tag is not maintained for a Draft.

Adding the additional recipients to the special tag is probably the mechanism to save them for scheduling an email: https://github.com/GSBCfamily/bvcms/blob/Add_Recipients_to_Email/CmsWeb/Areas/Main/Controllers/EmailController.cs#L187-L195

nehresma commented 8 years ago

Yep, I got a start on that yesterday morning. Luke and I did a 3am release today and I didn't have my normal morning for working on this. I'll hit it up again tomorrow.

hkouns commented 8 years ago

Gotcha... no problem.

The "Work" server seems to be working well (and it is more responsive than testing on my local machine)

I think we are close... once we get scheduling working and merge the CC/Reply-To Branch... I will work up a testing document and have Karen test.

hkouns commented 8 years ago

@nehresma one additional feature that we might want to include is referenced in our CC/Reply-To branch Pull Request (https://github.com/bvcms/bvcms/pull/75 )

Evidently in the old UI, the Send button was disabled after sending an email. (to prevent duplicate emails.) In the new UI, this protection was lost. ... we could look at adding it back if not too difficult.

nehresma commented 8 years ago

I believe I only need to merge the CC stuff into here yet.

I had a note to look at the layouts when resized for mobile -- I used the Chrome dev tools for the mobile resizing and it looked good to me on every device size I tried. Even all the way down to an iPhone 4. I should have written down more specific notes; do you remember specifically what the concern was there?

hkouns commented 8 years ago

Maybe it's not really an issue. I was just saying that I was struggling to achieve vertical alignment between the plus button and the note about Current org members.

It only applies when sending an email to current members and the button looks pretty well centered on a full screen but as I recall when you reduce the screen size, The button stays up towards the top of the text box.

nehresma commented 8 years ago

Ok, fixed a couple bugs. One was the result of a mis-merge, the other was an oversight from last week. For the rebase that David was asking for, I think that I'll create a third branch and rebase that one from bvcms master. That way we don't lose history in these other 2 branches.

hkouns commented 8 years ago

ok...sounds good... are you planning to do the rebase after testing?

nehresma commented 8 years ago

Yeah, I'm in the middle of it right now. Hope to have it pushed in a little bit.

nehresma commented 8 years ago

We've got changes in several branches (the original cc branch and the add recipients branch) that need to be rebased together off of master. This gets a little tricky to do a standard rebase. Would you mind if I did a squashed rebase, essentially putting all of the commits in the 2 branches together into a single commit?

nehresma commented 8 years ago

Just pushed branch gsbc_email_rebase that is a squashed rebase off of bvcms/master of both the CC branches from last fall and the add recipient branch from the past few weeks. The single, squashed commit for it is 32afcd3205120d6288c26e2af5d8c26cfee5431a

hkouns commented 8 years ago

Merged Adding Recipients and Adding CC/ReplyTo features ... submitted as https://github.com/bvcms/bvcms/pull/86