manzinello / mailgo

💌 mailgo, a new concept of mailto and tel links [deprecated]
https://mailgo.dev
MIT License
1.03k stars 51 forks source link

Custom actions? #104

Closed homotechsual closed 3 years ago

homotechsual commented 3 years ago

Is it possible for us to pass a link to MailGo as an option and have it rendered as a custom action?

For example, in the CiviCRM integration it would be beneficial if we could replicate a core function when we override email links. That core function lets us create a CRM "activity" when clicking on an email. If we could add an "Open activity" action - we'd replicate the current status quo and add the amazing additional options provided by MailGo :-)

manzinello commented 3 years ago

I think that this will be a good enhancement, thank you for your proposal!

gianantoniopini commented 3 years ago

I will work on this.

gianantoniopini commented 3 years ago

Just would like to double check that what I have implemented so far (on my fork) would satisfy the requirements.

What I've done so far:

This will only work when mailgo is used with mailto: links. So it is not supported, for now, with tel: or callto: links and with mailgo direct render.

@MikeyMJCO Would this work for you?

homotechsual commented 3 years ago

Absolutely :-) this is fantastic and fills the gap we had exactly :-)

gianantoniopini commented 3 years ago

Great, good to know! I will submit a PR so my changes can be reviewed in more detail.

manzinello commented 3 years ago

Thank you again for your work @gianantoniopini! I have now added a new page in the docs to specify the instructions for the custom actions. If you want to help me to write it: https://mailgo.dev/docs/custom-actions. The file is a simple markdown file and it is this one: https://github.com/manzinello/mailgo.dev/blob/master/docs/custom-actions.md. If you can't no problem, I will write it. I am proposing it to you because you have developed this functionality and maybe you want your name on mailgo.dev page as an author! Thank you again.

gianantoniopini commented 3 years ago

@manzinello Pleasure to be able to contribute! Yes I can help to write the docs related to custom actions. I will submit a PR with the additions to the custom-actions.md file.