Skip to content

gh: create a bug report issue form + chooser config #134

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

Merged
merged 3 commits into from
Apr 12, 2025

Conversation

agilgur5
Copy link
Owner

@agilgur5 agilgur5 commented Apr 10, 2025

Summary

Create a GH issue form for bug reports and a small template chooser configuration

Details

  • have gotten a decent number of issues with no reproductions1, so finally decided to make that a requirement for bug reports2

    • require a reproduction, environment details from envinfo, and an attestation that the issues were searched
      • also have gotten a number of duplicates3, some within an hour of each other no less
  • in the issue template and in the template chooser, also refer folks to SO for support

    • since more beginners find themselves using this library, make them more aware that issues are for bug reports and not support requests, which are better suited for SO or consulting / contracts (than for volunteer maintainers to help debug every use-case for free).
  • add links to an SO search for react-signature-canvas, SO's MCVE/MRE docs, upstream signature_pad's issue tracker, and GitHub's communication docs

Notes to Reviewers

  1. I'm not sure how the top-level description or template chooser in general render exactly as GH does not provide a preview of that. Markdown may not be supported in those
  2. The attributes.description unfortunately goes under the form input or textarea (but not for checkboxes, which is inconsistent 😕 ); there's no way to configure this

Considerations / Trade-offs

  1. I considered making it shorter, but the problem here has been too many unreproducible errors or issues with little to no details, and not too few issues, so err on the side of asking for more at the risk of some not reporting.
  2. I considered disabling blank_issues_enabled, but there is no feature request template yet or question template etc. If it gets abused, I will disable it as I have had to do elsewhere

Verification

See preview of the bug report form (the chooser is not previewable unfortunately)

Prior Art

Takes inspiration from my prior work with:

And some inspiration from Next.js's bug report form: top-level markdown intro, reproduction link directions

Footnotes

  1. The problem: no repro label and the solution: can't repro label, plus times when a repro was eventually created by me or a user and so the label was removed. Around ~18 in total, which is a significant proportion of issues

  2. I also mentioned making an issue template all the way back in https://github.com/agilgur5/react-signature-canvas/issues/38#issuecomment-568366070. Fortunately the deluge of unreproducible issues stopped shortly after that, with a bit of a resurgence recently

  3. The solution: duplicate label, which has a decent amount of overlap with the non-reproducible ones (likely points to low quality issues in general). Around ~18 in total.

- have gotten a decent number of issues with no reproductions, so finally decided to make that a requirement for bug reports
  - require a reproduction, environment details from `envinfo`, and an attestation that the issues were searched
    - also have gotten a number of duplicates, some within an hour of each other no less

- in the issue template and in the template chooser, also refer folks to SO for support
  - since more beginners find themselves using this library, make them more aware that issues are for bug reports and not support requests, which are better suited for SO or consulting / contracts (than for volunteer maintainers to help debug every use-case for free).

- add links to SO, SO's MCVE/MRE docs, upstream `signature_pad`, and GitHub's communication docs

This comment was marked as resolved.

Copy link
Owner Author

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small modifications to the "search first" text

agilgur5 and others added 2 commits April 12, 2025 16:38
and give directions on what to do in case of a closed duplicate issue
Copy link
Owner Author

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM. May have future PRs to resolve unreviewable bits or trade-offs from "Notes to Reviewers" section, but this is good for now

@agilgur5 agilgur5 merged commit f6c0b64 into main Apr 12, 2025
8 checks passed
@agilgur5 agilgur5 deleted the gh-create-issue-template-config branch April 12, 2025 20:46
Copy link
Owner Author

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I'm not sure how the top-level description or template chooser in general render exactly as GH does not provide a preview of that. Markdown may not be supported in those

Unpreviewable bits render raw (i.e. markdown is not used as formatting), see in-line comment below with screenshot

  1. The attributes.description unfortunately goes under the form input or textarea (but not for checkboxes, which is inconsistent 😕 ); there's no way to configure this

Turns out the preview is incorrect/buggy, this correctly renders above the input or textarea after merge:

Screenshot:

Screenshot 2025-04-12 at 4 47 06 PM

@@ -0,0 +1,76 @@
name: Reproducible Bug Report
description: If you found a bug within `react-signature-canvas` itself and have a minimal reproduction of it. For support requests, use StackOverflow.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the markdown here renders raw unfortunately:
Screenshot 2025-04-12 at 4 47 30 PM

about: Use StackOverflow for support questions. Issues are for reproducible bug reports and feature requests.
- name: Upstream `signature_pad`'s issues
url: https://github.com/szimek/signature_pad/issues
about: This library is a wrapper around `signature_pad`. If you have an with `signature_pad` itself (as opposed to this wrapper), please see its issue tracker.
Copy link
Owner Author

@agilgur5 agilgur5 Apr 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for the markdown here, see above screenshot

# require that users provide a minimal reproduction
- type: input
attributes:
label: Provide a link to code that _minimally_ reproduces this bug
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the label renders raw as well. This is visible in the preview though, not sure if I missed it or intentionally decided to leave it in for some form of emphasis

Before opening a new issue, please do a [search of existing issues](https://github.com/agilgur5/react-signature-canvas/issues?q=is%3Aissue).
If a relevant open issue exists, you should :+1: upvote it instead.
If a relevant closed issue exists, please follow the directions of the closing comments.
Do not open duplicates of existing issues.
Copy link
Owner Author

@agilgur5 agilgur5 Apr 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Do not open duplicates of existing issues.
_Do not_ open duplicates of existing issues.

Add italics like the other "not"s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant