stylelint / stylelint-demo

The online demo on the Stylelint website
https://stylelint.io/demo/
MIT License
15 stars 8 forks source link

Add buttons to report issue and to copy URL #423

Open ybiquitous opened 2 months ago

ybiquitous commented 2 months ago

What is the problem you're trying to solve?

I want users to submit a bug report more easily with this demo site.

What solution would you like to see?

This idea is inspired by the Report issue button on Prettier Playground:

image

I think this should also be helpful on this demo site. The stylelint-run query parameter when opening an issue in the stylelint/stylelint repository is available to achieve this.

For example, click this link. The link to the demo site will be embedded into the issue form automatically like this:

image

See also for the stylelint-run parameter: https://github.com/stylelint/stylelint/blob/53b342ff85c95ec7849ed0cdb973421944fdcf44/.github/ISSUE_TEMPLATE/REPORT_A_BUG.yml?plain=1#L50


EDIT: This issue will also add a button to copy a demo site URL. E.g.

image
jeddy3 commented 2 months ago

SGTM. The query parameter is a nice touch.

Like the Prettier playground, a button in the bottom right would work. It may also be worth including a "Copy URL" button, as it feels like a related piece of functionality and would flesh out the footer.

ybiquitous commented 2 months ago

Surely the Copy URL button should be helpful. Let's add them. 👍🏼