Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add buttons to report issue and to copy URL #423

Open
ybiquitous opened this issue Sep 3, 2024 · 2 comments
Open

Add buttons to report issue and to copy URL #423

ybiquitous opened this issue Sep 3, 2024 · 2 comments
Labels
status: ready to implement is ready to be worked on by someone

Comments

@ybiquitous
Copy link
Member

ybiquitous commented Sep 3, 2024

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
@ybiquitous ybiquitous added the status: needs discussion triage needs further discussion label Sep 3, 2024
@jeddy3
Copy link
Member

jeddy3 commented Sep 3, 2024

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
Copy link
Member Author

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

@ybiquitous ybiquitous changed the title Add button to report issue Add buttons to report issue and to copy URL Sep 3, 2024
@ybiquitous ybiquitous added type: enhancement status: ready to implement is ready to be worked on by someone and removed status: needs discussion triage needs further discussion labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready to implement is ready to be worked on by someone
Development

No branches or pull requests

2 participants