shaal / DrupalPod

Start Drupal contributions with 1 click.
https://shaal.github.io/DrupalPod
MIT License
163 stars 55 forks source link

Open in DrupalPod badge #43

Open Decipher opened 3 years ago

Decipher commented 3 years ago

Is your feature request related to a problem? Please describe

As a project maintainer I want to add a "Open in DrupalPod" badge to my project pages

Describe the solution you'd like

Describe alternatives you've considered

Add support for Project pages to the DrupalPod browser extension, instead of just Issue pages

Additional context

image

shaal commented 3 years ago

❤️

BrianGilbert commented 3 years ago

having a go at it

BrianGilbert commented 3 years ago

Et Voila! OpenInDrupalPod

Decipher commented 3 years ago

Not sure if that's me or my screen, but it looks blurry.

I'd also suggest aligning the Drup-mark with the text, and have the wing outside of the bounds of the button (e.g., more transparency on top).

But that's just my 2c, don't want to get stuck bikeshedding.

NickStees commented 2 years ago

Here is my shot at a generator https://drupalpodbadge.netlify.app Code Repo: https://github.com/NickStees/drupalpodgenerator

I am not sure if you can put a script tag into the Readme.md for this project and it publish to https://shaal.github.io/DrupalPod/ so I just put the logic into that repo I pasted above.

tyler36 commented 1 year ago

It would be great if DrupalPod worked on project pages and not just on the issues. I'd love to be able to test out a module with a simple click.

NickStees commented 1 year ago

I updated my generator to look for a query param so module maintainers could just simply link to https://drupalpodbadge.netlify.app/?project=bg_img_field and have the module prefilled.

So maintainers could just add a button like <a href="https://drupalpodbadge.netlify.app/?project=bg_img_field"><img src="https://drupalpodbadge.netlify.app/badge.png" alt="Open In Drupal Pod" style="max-width: 100%;"></a><div></div> Open In Drupal Pod

I still see however people could choose the 7.x and Drupal 10, so I guess somehow need to have logic so they pair the right module version with the right Drupal version? Not sure how I could accomplish that...