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 Issue Forms #10865

Merged
merged 7 commits into from
Sep 6, 2022
Merged

Add Issue Forms #10865

merged 7 commits into from
Sep 6, 2022

Conversation

MatteoGheza
Copy link
Contributor

As discussed on Zulip, I added issue forms (issue templates but with defined input types and with better UI for the user) for bug reports and feature requests.
As requested, the only required input is the description.
If you want to try this, check this example repo.

@ronso0
Copy link
Member

ronso0 commented Sep 3, 2022

Thanks for starting this!

re OS combobox:
considering Mixxx is built on many linux distros which can't be covered by a combobox, I think the OS/version should be a regular line edit. The question should be "What operating system and version are you running?"

@Holzhaus
Copy link
Member

Holzhaus commented Sep 3, 2022

Thanks for starting this!

re OS combobox:
considering Mixxx is built on many linux distros which can't be covered by a combobox, I think the OS/version should be a regular line edit. The question should be "What operating system and version are you running?"

A lot of users don't know what an OS is, so maybe we should give an example?

What operating system and version are you running (e.g. Windows 11, macOS Big Sur, Ubuntu 22.04, ...)?

Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

Thank you for bringing that up.

.github/ISSUE_TEMPLATE/bug.yaml Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/bug.yaml Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/bug.yaml Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/feature_request.yaml Outdated Show resolved Hide resolved
@Holzhaus
Copy link
Member

Holzhaus commented Sep 4, 2022

Please add sur (lowercase) to .codespellignore to fix the pre-commit issue:

.github/ISSUE_TEMPLATE/bug.yaml:27: Sur ==> Sure, sir

@MatteoGheza MatteoGheza marked this pull request as ready for review September 4, 2022 11:28
@ronso0
Copy link
Member

ronso0 commented Sep 5, 2022

@MatteoGheza Would you mind updating your demo repo? Wuld be nice if we could test this 'live'.

id: description
attributes:
label: Feature Description
description: What feature would you like to see added to Mixxx?
Copy link
Member

Choose a reason for hiding this comment

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

I think we should swap the title description with this one.

Copy link
Member

@Holzhaus Holzhaus left a comment

Choose a reason for hiding this comment

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

Thanks. IIRC it's also possible to add links, right? If so we could add a third option in addition to "Bug" and "Feature Request": something like "Question" that is a link to the discourse board.

@@ -0,0 +1,27 @@
name: 🐛 Bug Report
Copy link
Member

Choose a reason for hiding this comment

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

This caterpillar is easily confused with a snake. What do you think about using 🪲 (U+1FAB2) instead?

Copy link
Member

Choose a reason for hiding this comment

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

Unfortunately I only see a gray rectangular for the proposed alternative on my mobile.

I had also this idea initially, than I realized that 🐛, U+1F41B is called Bug.

Copy link
Member

@Swiftb0y Swiftb0y Sep 6, 2022

Choose a reason for hiding this comment

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

🐛 was added in Emoji 1.0 while 🪲 was added in 13.0 (2020)... I still prefer 🪲

@MatteoGheza
Copy link
Contributor Author

@MatteoGheza Would you mind updating your demo repo? Wuld be nice if we could test this 'live'.

Done. https://github.com/MatteoGheza/mixxx-issue-templates-PoC/issues/new/choose

@MatteoGheza
Copy link
Contributor Author

Thanks. IIRC it's also possible to add links, right? If so we could add a third option in addition to "Bug" and "Feature Request": something like "Question" that is a link to the discourse board.

Yes, I think we can do something like this (as an optional field).

@Swiftb0y
Copy link
Member

Swiftb0y commented Sep 6, 2022

Thanks. IIRC it's also possible to add links, right? If so we could add a third option in addition to "Bug" and "Feature Request": something like "Question" that is a link to the discourse board.

I don't think thats possible. This is the closest thing I came up with that should validate.

name: 🤔 Question
description: |
  Please use [our forums](https://mixxx.org/forums) for questions
body:
  # body must contain at least one non-markdown field
  # https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms#body-must-contain-at-least-one-non-markdown-field
  - type: dropdown
    attributes:
      label: |
        Please use [our forums](https://mixxx.org/forums) for questions
      options:
        - Please use [our forums](https://mixxx.org/forums) for questions
    validations:
      required: true
  

MatteoGheza and others added 2 commits September 6, 2022 20:34
Co-authored-by: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com>
Comment on lines +2 to +5
contact_links:
- name: 🤔 Question
url: https://mixxx.org/forums
about: Please use our forums for questions
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think thats possible.

It's possible to add links (with title and description) as "contact links". What do you think about this @Holzhaus?
Remember that you can try this at https://github.com/MatteoGheza/mixxx-issue-templates-PoC/issues/new/choose

Copy link
Member

Choose a reason for hiding this comment

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

Great, exactly what I had in mind! Thanks.

Copy link
Member

Choose a reason for hiding this comment

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

Good catch. I didn't know there was an ISSUE_TEMPLATE/config.yml. I was only digging through the documentation of the forms yaml scheme.
This solution is much better than my proposal.

Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: instead of arbitrary Open let's use Go to Mixxx user forum?

Copy link
Member

Choose a reason for hiding this comment

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

if possible at all...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is not possible... The config file has not more options than this.

@Holzhaus
Copy link
Member

Holzhaus commented Sep 6, 2022

Thanks. IIRC it's also possible to add links, right? If so we could add a third option in addition to "Bug" and "Feature Request": something like "Question" that is a link to the discourse board.

I don't think thats possible. This is the closest thing I came up with that should validate.

name: 🤔 Question
description: |
  Please use [our forums](https://mixxx.org/forums) for questions
body:
  # body must contain at least one non-markdown field
  # https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms#body-must-contain-at-least-one-non-markdown-field
  - type: dropdown
    attributes:
      label: |
        Please use [our forums](https://mixxx.org/forums) for questions
      options:
        - Please use [our forums](https://mixxx.org/forums) for questions
    validations:
      required: true
  

Have a look at:
https://github.com/beetbox/beets/blob/master/.github/ISSUE_TEMPLATE/config.yml

And the result:
https://github.com/beetbox/beets/issues/new/choose

@@ -0,0 +1,5 @@
blank_issues_enabled: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would you prefer to enable the possibility to add issues without using a template?

Copy link
Member

Choose a reason for hiding this comment

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

I'm torn on this.

For bugs and feature requests, this is not neccessary. We don't have some complex JIRA-like form with dozens of fields, just a description + affected version + OS.

However, I think we may sometimes want to create issues as TODO items (e.g. for project boards) and then these two options may not be a good fit. Maybe we should add a new type "Task" for those kind of issues? Or could we restrict blank issues for contributors only?

Copy link
Member

Choose a reason for hiding this comment

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

👍 "TODO" for contributors only

Copy link
Member

Choose a reason for hiding this comment

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

Or could we restrict blank issues for contributors only?

If thats possible, that would be ideal IMO.

If not, we should have blank issues enabled for all IMO.

Copy link
Contributor Author

@MatteoGheza MatteoGheza Sep 6, 2022

Choose a reason for hiding this comment

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

I think that with this config file we can't do something like that. I'll enable blank issues in the config.

@Holzhaus Holzhaus requested a review from daschuer September 6, 2022 20:50
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you.

Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

Did we come to a conclusion on 🐛 vs 🪲 @Holzhaus ?

Copy link
Member

@Holzhaus Holzhaus left a comment

Choose a reason for hiding this comment

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

Thank you, this is definitely an nice improvement.

I'd tlike to merge this now - if someone wants to fine-tune the details later on, we can still do this in a follow-up PR. Just waiting for approval by @Swiftb0y.

@Holzhaus Holzhaus requested a review from Swiftb0y September 6, 2022 21:35
@Swiftb0y Swiftb0y merged commit 58459b6 into mixxxdj:main Sep 6, 2022
@Holzhaus
Copy link
Member

Holzhaus commented Sep 6, 2022

Did we come to a conclusion on bug vs beetle @Holzhaus ?

I do prefer the beetle over the caterpillar. Unsure how well it's supported, it works fine on my phone, laptop and desktop. And the icon/emoji is just for eye candy, so even if a device does not support it, everything stays usable. But I'm not super passionate about it. If you'd open a PR, I'd approve it 😄

@ronso0
Copy link
Member

ronso0 commented Sep 6, 2022

Thanks @MatteoGheza
I'm sure this will save time reviewing bug reports

@MatteoGheza MatteoGheza deleted the issue_templates branch September 6, 2022 22:19
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.

5 participants