melchoyce / actblue-gutenblock

ActBlue Gutenberg Block
MIT License
1 stars 1 forks source link

Game plan / initial roadmap #1

Open raquelmsmith opened 6 years ago

raquelmsmith commented 6 years ago

Excited about collaborating on this @melchoyce!

What are your initial thoughts for what the block will do? Show recent donations?

melchoyce commented 6 years ago

I'm thinking:

melchoyce commented 6 years ago

The placeholder view:

placeholder placeholder with url

melchoyce commented 6 years ago

Might also be cool to create a custom URL parameter for tracking.

Edit: Actually that might not be possible... investigating

melchoyce commented 6 years ago

Once you add a url:

embedded

Adding a new donation amount:

add new

When you enter this, it should:

  1. Create a new custom amount that will pre-fill in ActBlue when they click the button
  2. Add another blank button after it

Note: Blank buttons won't be rendered on the front-end, or when you don't have the block selected.

Deleting a button:

delete

You should be able to click into a button and edit its amount. When you click into a button, you also get the option to delete it.

The buttons should maybe be child blocks?

Unselected

unselected

raquelmsmith commented 6 years ago

Ok! Seems simple enough. I'll dig into their documentation and then come up with a development plan.

Do you have an example ActBlue campaign page we can use?

melchoyce commented 6 years ago

ActBlue is recommending https://secure.actblue.com/donate/dccc-1, haha, so let's just go with that.

abdullah1908 commented 6 years ago

Thanks @melchoyce, @raquelmsmith Surely, dig into this stuff :relaxed:

samuelcole commented 6 years ago

hi!

so a few hints: all you really need is the form name, which would be dccc-1 for that DCCC link, then you can form an URL with https://secure.actblue.com/donate/${formName}.

we also have some nice params: amount=${amountInDollars} will prefill the form with whatever link they clicked. we do have refcode=gutenwebsite, which will let candidates see where the donations come from. i also like amounts=5,10,25, which sets the values of the buttons, so you can match them with the website.

i don't think you particularly need to scrape actblue for any of this?

raquelmsmith commented 6 years ago

Thanks for the hints @samuelcole! Does this info live in any documentation anywhere? I spent about 10 mins in the ActBlue docs last night and didn't see these params as options.

samuelcole commented 6 years ago

sorry about that!

https://support.actblue.com/tutorial#reference-codes

there isn't a more technical list of params anywhere, sadly

raquelmsmith commented 6 years ago

Ok, did some looking 👀 into this today. Initial dev gameplan:

Any thoughts on this? Specifically, does anyone here have any preference for or against using create-guten-block for setup?

melchoyce commented 6 years ago

That sounds like a great game plan!

I've heard good things about create-guten-block, so let's give it a try.

abdullah1908 commented 6 years ago

@melchoyce yeah I used create-guten-block and it works fine :+1: