From 2c3d58c38ff994a1179a7514395dcae495bd2935 Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Wed, 3 Jul 2024 02:46:34 -0700 Subject: [PATCH] Add Issue Template --- .github/ISSUE_TEMPLATE/0-bug.yaml | 39 +++++++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 21 +++++++++++++++++ src/js/options.js | 2 -- tests/test.js | 1 + 4 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/0-bug.yaml create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE/0-bug.yaml b/.github/ISSUE_TEMPLATE/0-bug.yaml new file mode 100644 index 0000000..1504503 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/0-bug.yaml @@ -0,0 +1,39 @@ +name: "⚠️ Report an Issue" +description: "Something Not Working Right? Please let us know..." +title: "[Bug] " +labels: ["bug"] +assignees: + - smashedr + +body: + - type: markdown + attributes: + value: | + All bugs that we can verify will be fixed. Thank you for taking the time to make this report! + + - type: input + id: website + validations: + required: false + attributes: + label: Site Link + description: Please provide a link to the site you are having issues on if possible. + placeholder: https://example.com/ + + - type: textarea + id: description + validations: + required: true + attributes: + label: Details + description: Please Describe the Issue you are Experiencing. + placeholder: Provide as many details as you can... + + - type: textarea + id: logs + validations: + required: true + attributes: + label: Paste Support Information + description: Open the Extension Options, Scroll to the Bottom, Click Copy Support Information and Paste Below. + render: shell diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ac2662 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,21 @@ +blank_issues_enabled: true +contact_links: + - name: Request a Feature + about: Request a New Feature or Enhancement in the Discussions. + url: https://github.com/cssnr/link-extractor/discussions/new?category=feature-requests + + - name: Ask a Question + about: Ask a General Question or start a Discussions. + url: https://github.com/cssnr/link-extractor/discussions/new?category=q-a + + - name: Join the Discord Server + about: Chat with us about Issues, Features, Questions and More... + url: https://discord.gg/wXy6m2X8wY + + - name: Submit Feedback + about: Send General Feedback Anonymously. + url: https://cssnr.github.io/feedback + + - name: View More Apps + about: View Additional Apps we have Created. + url: https://cssnr.github.io/ diff --git a/src/js/options.js b/src/js/options.js index 6f9d9fa..abdf601 100644 --- a/src/js/options.js +++ b/src/js/options.js @@ -483,14 +483,12 @@ async function copySupport(event) { const permissions = await chrome.permissions.getAll() const local = window.localStorage const result = [ - '```', `${manifest.name} - ${manifest.version}`, navigator.userAgent, `permissions.origins: ${JSON.stringify(permissions.origins)}`, `options: ${JSON.stringify(options)}`, `links-table: ${local['DataTables_links-table_/html/links.html']}`, `domains-table: ${local['DataTables_domains-table_/html/links.html']}`, - '```', ] await navigator.clipboard.writeText(result.join('\n')) showToast('Support Information Copied.') diff --git a/tests/test.js b/tests/test.js index 237d15d..68af4c0 100644 --- a/tests/test.js +++ b/tests/test.js @@ -103,6 +103,7 @@ async function scrollPage() { await screenshot('popup') await page.locator('#linksNoWrap').click() + await new Promise((resolve) => setTimeout(resolve, 500)) await screenshot('popup') // await page.locator('[href="../html/options.html"]').click()