feat: Create greeting partial.
Addresses: https://github.com/opencollective/opencollective/issues/5872
This will allow more flexible greetings in email templates. A recipient name is used, if provided.
If a collective - wide notification is sent that collective name will be used rather than individual names.
Caveat: I have not tested this locally. I'm not quite at the point where I am able to do that. So there is some small risk, I think. If you are able to verify this change first, that would be good.
If this looks like the way to go, I can update all the email templates with a greeting as part of this PR, or a follow-up.
I can't decipher the automatic check GraphQL Inspector, "Error: Resource not accessible by integration".
Perhaps that is due to a remote PR from the fork.
I think I've made an error in getting the user name. It looks like that might reside in the "userCollective". I'll make a change to get that.
Hi @nosro, need any help on that one? Happy to take it from here if you don't have the time :slightly_smiling_face:
Moved to https://github.com/opencollective/opencollective-api/pull/8204; I'll take it from there. thanks for your contribution @nosro!