swag-for-dev icon indicating copy to clipboard operation
swag-for-dev copied to clipboard

WIP: Add wizard to add swag items

Open aslafy-z opened this issue 6 years ago • 11 comments

  • [x] I've checked that this isn't a duplicate pull request.

Add a wizard which creates an entry to data.json, keeping it well ordered and formatted.

Here's a preview: https://i.imgur.com/nCHCmvT.gif

Usage:

npm run add

TODO:

  • [ ] Be able to create tags (waiting for https://github.com/enquirer/enquirer/issues/30)
  • [ ] You tell me

aslafy-z avatar Nov 14 '18 15:11 aslafy-z

Great idea! 💯 Now we can use the current time to add dateAdded too.

swapagarwal avatar Dec 05 '18 15:12 swapagarwal

The last part (contributing) needs a bit of more thought. Like maybe a web tool / form (on devswag.io/submit or devswag.io/add) would make it easier for users?

swapagarwal avatar Dec 05 '18 15:12 swapagarwal

Not to sound too ambitious, but what about a devswag bot to handle automatic issue/PR creation when there's a new proposed swag?

plibither8 avatar Dec 05 '18 16:12 plibither8

Yes, we can definitely do that but right now, I'm thinking along the lines of making it more accessible to general public. Similar to getting feedback in Telegram group, we can reduce friction for users to add / submit swag opportunities by providing a link / form to be filled on website itself! The submitted data can be posted to Gitter or Telegram via a webhook and we can take it forward from there as long as there are manageable submissions at any given time. If it starts getting out-of-hand, then automation in GitHub contribution should definitely be prioritized first. Just my $0.02 here (trying to get 80% impact with 20% effort). 😇

swapagarwal avatar Dec 06 '18 01:12 swapagarwal

I have beta access to GitHub actions if we want to try something with that. I don't know that it's super useful without a backend, though!

vikaspotluri123 avatar Dec 06 '18 01:12 vikaspotluri123

Nice! I believe Netlify supports collection of form submissions too.

swapagarwal avatar Dec 06 '18 02:12 swapagarwal

This page might be useful:

https://zapier.com/apps/netlify/integrations/github

vikaspotluri123 avatar Dec 06 '18 02:12 vikaspotluri123

https://zapier.com/apps/netlify/integrations/github

This is beautiful! @swapagarwal I think we should then definitely create the form.

plibither8 avatar Dec 06 '18 05:12 plibither8

Zapier isn't free :/ We could the free tier of netlify functions to trigger such workflow for free. I definitely like the idea here. We could even collect feedback automatically from the community by posting a link or button to the chat that ups and downs a GitHub issue (let say by editing the first comment or something).

aslafy-z avatar Dec 06 '18 06:12 aslafy-z

Awesome! I've set up the integration. Just need to add a form on the website. 🎉

swapagarwal avatar Dec 06 '18 06:12 swapagarwal

Zapier isn't free :/ We could the free tier of netlify functions to trigger such workflow for free

100 tasks/mo are free. Don't foresee crossing that limit in near future. 😅

swapagarwal avatar Dec 06 '18 06:12 swapagarwal