Преглед на файлове

Merge pull request #204 from adswa/help-template

Fixes to the help menu and issue template
Adina Wagner преди 1 година
родител
ревизия
46628420ae
променени са 2 файла, в които са добавени 23 реда и са изтрити 14 реда
  1. 20 11
      .github/ISSUE_TEMPLATE/issue_template.yml
  2. 3 3
      datalad_gooey/app.py

+ 20 - 11
.github/ISSUE_TEMPLATE/issue_template.yml

@@ -6,6 +6,18 @@ name: Gooey issue
 description: Gooey issue
 
 body:
+  - type: dropdown
+    attributes:
+      label: Is it a new bug?
+      description: "Before filing an issue, please take some time to
+       browse through [existing issues](https://github.com/datalad/datalad-gooey/issues).
+       If it has been reported already, please add a comment to it instead of
+       opening a new issue."
+      options:
+        - I did not find an existing issue about my problem
+    validations:
+      required: true
+
   - type: textarea
     attributes:
       label: What is the problem?
@@ -18,13 +30,10 @@ body:
       label: What steps will reproduce the problem?
       description: "How do you trigger this bug? Please walk us through it step
        by step."
-      placeholder: "Example: Open the App from the Desktop shortcut. Select 
-      Documents as the root folder. Click the Help Tab. Boom"
-      value: |
-        1.
-        2. 
-        3.
-        ...
+      placeholder: "Example:
+      1. Open the App from the Desktop shortcut.
+      2. Select Documents as the root folder.
+      3. Click the Help Tab. The app freezes and becomes unresponsive"
     validations:
       required: true
 
@@ -50,7 +59,7 @@ body:
   - type: textarea
     attributes:
       label: System information
-      description: |
-        Please tell us more about your system, including operating system and
-        software versions. The more information we get, the better. You can
-        copy-paste this information from 'Help' -> 'Diagnostic infos' 
+      description: "Please tell us more about your system, including
+      operating system and software versions. The more information we
+      get, the better. You can copy-paste this information from
+      'Help' -> 'Diagnostic infos'"

+ 3 - 3
datalad_gooey/app.py

@@ -284,8 +284,8 @@ class GooeyApp(QObject):
         mbox = QMessageBox.warning
         title = 'Oooops'
         msg = 'Please report unexpected or faulty behavior to us. File a ' \
-              'report with <a href=https://github.com/datalad/datalad-gooey/issues/new?assignees=&labels=&template=issue_template.yml>' \
-              'datalad-gooey </a> or with <a href=https://github.com/datalad/datalad-gooey/issues/new?assignees=&labels=&template=issue_template.yml>' \
+              'report with <a href="https://github.com/datalad/datalad-gooey/issues/new?template=issue_template.yml">' \
+              'datalad-gooey </a> or with <a href="https://github.com/datalad/datalad-gooey/issues/new?assignees=&labels=gooey&template=issue_template_gooey.yml">' \
               'DataLad</a>'
         mbox(self.main_window, title, msg)
 
@@ -295,7 +295,7 @@ class GooeyApp(QObject):
         msg = 'Find resources to learn more or ask questions here: <ul><li>' \
               'About this tool:<a href=http://docs.datalad.org/projects/gooey/en/latest>DataLad Gooey Docs</a> </li>' \
               '<li>General DataLad user tutorials: <a href=http://handbook.datalad.org> handbook.datalad.org </a> </li>' \
-              '<li>Live chat and weekly office hour: <a href=https://matrix.to/#/!NaMjKIhMXhSicFdxAj:matrix.org?via=matrix.waite.eu&via=matrix.org&via=inm7.de>' \
+              '<li>Live chat and weekly office hour: <a href="https://matrix.to/#/!NaMjKIhMXhSicFdxAj:matrix.org?via=matrix.waite.eu&via=matrix.org&via=inm7.de">' \
               'Join us on Matrix </li></ul>'
         mbox(self.main_window, title, msg)