Repository: dcapal/dcapal (language: rust)

Issue:
Improve Issues template
# Description

Github extended issue templating: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository

The aim is to rewrite all issue template to the new notation


Discussion / hints:

Fix patch:
diff --git a/.github/ISSUE_TEMPLATE/01-question-support.md b/.github/ISSUE_TEMPLATE/01-question-support.md
deleted file mode 100644
index 26626d58..00000000
--- a/.github/ISSUE_TEMPLATE/01-question-support.md
+++ /dev/null
@@ -1,25 +0,0 @@
---- 
-name: ❓ Question or Support Request
-about: Use this template to ask something about the project or propose something.
-title: "[Question]: Title"
-labels: []
-assignees: ''
----
-
-
-# **❓ Question or Support Request**
-
-## **Describe your question or ask for support.**
-<!-- A clear and concise description of what your doubt is. -->
-
-*
-
-<!--📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛
-
-Oh, hi there! 😄
-
-Before posting any questions or asking for support, first read the project's README.md file and
-(if there is any) the WIKI pages or any other additional documentation that might be listed
-in the project's README.md file.
-
-📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛-->
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/01-question-support.yml b/.github/ISSUE_TEMPLATE/01-question-support.yml
new file mode 100644
index 00000000..3a352a86
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/01-question-support.yml
@@ -0,0 +1,15 @@
+name: ❓ Question or Support Request
+description: Ask something about the project or propose something.
+title: "[Question]: "
+body:
+  - type: markdown
+    attributes:
+      value: |
+        Before opening a new issue, check existing [issues](https://github.com/leonardoarcari/dcapal/issues) and upvote if applicable.
+  - type: textarea
+    attributes:
+      label: Describe your question or ask for support
+      description: A clear and concise description of the question.
+      placeholder: "How can I use DcaPal?"
+    validations:
+      required: true
diff --git a/.github/ISSUE_TEMPLATE/02-security-report.md b/.github/ISSUE_TEMPLATE/02-security-report.md
deleted file mode 100644
index f8fdc413..00000000
--- a/.github/ISSUE_TEMPLATE/02-security-report.md
+++ /dev/null
@@ -1,94 +0,0 @@
---- 
-name: ⚠️ Security Report
-about: Use this template for issues related to application security.
-title: "[Security]: Title"
-labels: []
-assignees: ''
----
-
-<!--📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛
-
-Oh, hi there! 😄
-
-READ CAREFULLY IF YOUR ISSUE REPORT CONTAINS SENSIBLE OR PRIVATE DATA:
-(data that might be leaked or subtracted from our servers due to this
-security issue).
-
-If this security report (or the guide on how to "identify the security bug") includes
-certain personal information or involves personal identifiable data, or you believe
-that the data that you might leak by exposing the way on how to attack the project
-could be considered as a data leak or could violate the privacy of any kind of
-data or sensible data, please do not post it here and directly email the developer.
-You should post the issue with the least amount of
-sensible or private data as possible to help us manage the security issue, and
-with the extra data sent from your email to the developer (if any), we will deeply
-analyze and try to fix it as fast as possible.
-
-If you are in doubt about the data that you might post here (screenshots or media
-also, count as data), please directly email us.
-
-The data that must NOT be posted here:
-
-* Legal and/or full names
-* Names or usernames combined with other identifiers like phone numbers or email addresses
-* Health or financial information (including insurance information, social security numbers, etc.)
-* Information about political or religious affiliations
-* Information about race, ethnicity, sexual orientation, gender, or other identifying information that could be used for discriminatory purposes
-
-📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛-->
-
-# **⚠️ Security Report**
-
-## **Describe the security issue**
-<!-- A clear and concise description of what the bug is. -->
-
-*
-
----
-
-### **To Reproduce**
-
-<!-- Steps to reproduce the error:
-(e.g.:)
-1. Use x argument / navigate to
-2. Fill this information
-3. Go to...
-4. See error -->
-
-<!-- Write the steps here (add or remove as many steps as needed)-->
-
-1.
-2.
-3.
-4.
-
----
-
-### **Expected behaviour**
-<!-- A clear and concise description of what you expected to happen. -->
-
-*
-
----
-
-### **Media prove**
-<!-- If applicable, add screenshots or videos to help explain your problem. -->
-
----
-
-### **Your environment**
-
-<!-- use all the applicable bulleted list elements for this specific issue,
-and remove all the bulleted list elements that are not relevant for this issue. -->
-
-* OS: <!--[e.g. Ubuntu 5.4.0-26-generic x86_64 / Windows 1904 ...]-->
-* Node version:
-* Npm version:
-* Browser name and version:
-
----
-
-### **Additional context**
-<!-- Add any other context or additional information about the problem here.-->
-
-*
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/02-security-report.yml b/.github/ISSUE_TEMPLATE/02-security-report.yml
new file mode 100644
index 00000000..2fabd20f
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/02-security-report.yml
@@ -0,0 +1,47 @@
+name: ⚠️ Security Report
+description: For issues related to application security.
+title: "[Security]: "
+body:
+  - type: markdown
+    attributes:
+      value: |
+        Before opening a new issue, check existing [issues](https://github.com/leonardoarcari/dcapal/issues) and upvote if applicable.
+  - type: textarea
+    attributes:
+      label: Describe the security issue
+      description: A clear and concise description of the security issue.
+      placeholder: "JWT does not work in my laptop because ..."
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: To Reproduce
+      description: Step to reproduce security issue.
+      placeholder: "First of all ..."
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: Expected behaviour
+      placeholder: "I expect to receive my portfolio but ..."
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: Media prove
+      placeholder: "Some screenshot or a video."
+    validations:
+      required: false
+  - type: textarea
+    attributes:
+      label: Your environment
+      description: OS, browser, node version, npm version ...
+      placeholder: "macOS Catalina, Chrome 120, Node 20, npm 10"
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: Additional context
+      placeholder: "In addition my browser crash."
+    validations:
+      required: false
diff --git a/.github/ISSUE_TEMPLATE/03-enhancement-request.md b/.github/ISSUE_TEMPLATE/03-enhancement-request.md
deleted file mode 100644
index 33965eb7..00000000
--- a/.github/ISSUE_TEMPLATE/03-enhancement-request.md
+++ /dev/null
@@ -1,43 +0,0 @@
---- 
-name: 🚀 Enhancement Request
-about: Use this template for issues related to application improvements.
-title: "[Enhancement]: Title"
-labels: []
-assignees: ''
----
-
-# **🚀 Enhancement Request**
-
-## **Is your enhancement request related to a problem? Please describe.**
-<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
-
-*
-
----
-
-## **Describe the solution you'd like**
-<!-- A clear and concise description of what you want to happen. -->
-
-*
-
----
-
-## **Describe alternatives you've considered**
-<!-- A clear and concise description of any alternative solutions or features you've considered. -->
-
-*
-
----
-
-### **Additional context**
-<!-- Add any other context or additional information about the problem here.-->
-
-*
-
-<!--📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛
-
-Oh, hi there! 😄
-
-To expedite issue processing, please search open and closed issues before submitting a new one.
-
-📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛-->
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/03-enhancement-request.yml b/.github/ISSUE_TEMPLATE/03-enhancement-request.yml
new file mode 100644
index 00000000..c980e8e8
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/03-enhancement-request.yml
@@ -0,0 +1,35 @@
+name: 🚀 Enhancement Request
+description: For issues related to application improvements.
+title: "[Enhancement]: "
+body:
+  - type: markdown
+    attributes:
+      value: |
+        Before opening a new issue, check existing [issues](https://github.com/leonardoarcari/dcapal/issues) and upvote if applicable.
+  - type: textarea
+    attributes:
+      label: Is your enhancement request related to a problem?
+      description: A clear and concise description of what the problem is.
+      placeholder: "I'm always frustrated when ..."
+    validations:
+      required: false
+  - type: textarea
+    attributes:
+      label: Describe the solution you'd like
+      description: A clear and concise description of what you want to happen.
+      placeholder: "It can be solved in this way ..."
+    validations:
+      required: false
+  - type: textarea
+    attributes:
+      label: Describe alternatives you've considered
+      description: A clear and concise description of any alternative solutions or features you've considered.
+      placeholder: "I expect to receive my portfolio but ..."
+    validations:
+      required: false
+  - type: textarea
+    attributes:
+      label: Additional context
+      placeholder: "In addition my browser crash."
+    validations:
+      required: false
diff --git a/.github/ISSUE_TEMPLATE/04-feature-request.md b/.github/ISSUE_TEMPLATE/04-feature-request.md
deleted file mode 100644
index 47f79ef1..00000000
--- a/.github/ISSUE_TEMPLATE/04-feature-request.md
+++ /dev/null
@@ -1,43 +0,0 @@
---- 
-name: 🚀 Feature Request
-about: Use this template for topics regarding new features of the application.
-title: "[Feature]: Title"
-labels: []
-assignees: ''
----
-
-# **🚀 Feature Request**
-
-## **Is your feature request related to a problem? Please describe.**
-<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
-
-*
-
----
-
-## **Describe the solution you'd like**
-<!-- A clear and concise description of what you want to happen. -->
-
-*
-
----
-
-## **Describe alternatives you've considered**
-<!-- A clear and concise description of any alternative solutions or features you've considered. -->
-
-*
-
----
-
-### **Additional context**
-<!-- Add any other context or additional information about the problem here.-->
-
-*
-
-<!--📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛
-
-Oh, hi there! 😄
-
-To expedite issue processing, please search open and closed issues before submitting a new one.
-
-📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛-->
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/04-feature-request.yml b/.github/ISSUE_TEMPLATE/04-feature-request.yml
new file mode 100644
index 00000000..0e809683
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/04-feature-request.yml
@@ -0,0 +1,35 @@
+name: 💡 Feature Request
+description: For topics regarding new features of the application.
+title: "[Feature]: "
+body:
+  - type: markdown
+    attributes:
+      value: |
+        Before opening a new issue, check existing [issues](https://github.com/leonardoarcari/dcapal/issues) and upvote if applicable.
+  - type: textarea
+    attributes:
+      label: Describe the new feature
+      description: A clear and concise description of the feature.
+      placeholder: "A feature decrease 30% time to loading ..."
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: Describe the solution you'd like
+      description: A clear and concise description of what you want to happen.
+      placeholder: "It can be solved in this way ..."
+    validations:
+      required: false
+  - type: textarea
+    attributes:
+      label: Describe alternatives you've considered
+      description: A clear and concise description of any alternative solutions or features you've considered.
+      placeholder: "I expect to receive my portfolio but ..."
+    validations:
+      required: false
+  - type: textarea
+    attributes:
+      label: Additional context
+      placeholder: "In addition my browser crash."
+    validations:
+      required: false
diff --git a/.github/ISSUE_TEMPLATE/05-bug-report.md b/.github/ISSUE_TEMPLATE/05-bug-report.md
deleted file mode 100644
index 4c65a4a4..00000000
--- a/.github/ISSUE_TEMPLATE/05-bug-report.md
+++ /dev/null
@@ -1,77 +0,0 @@
---- 
-name: 🐞 Bug Report
-about: Use this template to report a bug.
-title: "[Bug]: Title"
-labels: []
-assignees: ''
----
-
-# **🐞 Bug Report**
-
-## **Describe the bug**
-<!-- A clear and concise description of what the bug is. -->
-
-*
-
----
-
-### **Is this a regression?**
-<!-- Did this behaviour used to work in the previous version? -->
-<!-- Yes, the last version in which this bug was not present was: ... -->
-
----
-
-### **To Reproduce**
-
-<!-- Steps to reproduce the error:
-(e.g.:)
-1. Use x argument / navigate to
-2. Fill this information
-3. Go to...
-4. See error -->
-
-<!-- Write the steps here (add or remove as many steps as needed)-->
-
-1.
-2.
-3.
-4.
-
----
-
-### **Expected behaviour**
-<!-- A clear and concise description of what you expected to happen. -->
-
-*
-
----
-
-### **Media prove**
-<!-- If applicable, add screenshots or videos to help explain your problem. -->
-
----
-
-### **Your environment**
-
-<!-- use all the applicable bulleted list elements for this specific issue,
-and remove all the bulleted list elements that are not relevant for this issue. -->
-
-* OS: <!--[e.g. Ubuntu 5.4.0-26-generic x86_64 / Windows 1904 ...]-->
-* Node version:
-* Npm version:
-* Browser name and version:
-
----
-
-### **Additional context**
-<!-- Add any other context or additional information about the problem here.-->
-
-*
-
-<!--📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛
-
-Oh, hi there! 😄
-
-To expedite issue processing, please search open and closed issues before submitting a new one.
-
-📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛📛-->
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/05-bug-report.yml b/.github/ISSUE_TEMPLATE/05-bug-report.yml
new file mode 100644
index 00000000..b1ab35ef
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/05-bug-report.yml
@@ -0,0 +1,54 @@
+name: 🐞 Bug Report
+description: For report a bug.
+title: "[Bug]: "
+body:
+  - type: markdown
+    attributes:
+      value: |
+        Before opening a new issue, check existing [issues](https://github.com/leonardoarcari/dcapal/issues) and upvote if applicable.
+  - type: textarea
+    attributes:
+      label: Describe the bug
+      description: A clear and concise description of the bug.
+      placeholder: "When I click on submit an error appears ..."
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: Is it a regression?
+      description: Did this behaviour used to work in the previous version?.
+      placeholder: "Yes, the last version in which this bug was not present was: ..."
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: To Reproduce
+      description: Step to reproduce security issue.
+      placeholder: "First of all ..."
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: Expected behaviour
+      placeholder: "I expect to receive my portfolio but ..."
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: Media prove
+      placeholder: "Some screenshot or a video."
+    validations:
+      required: false
+  - type: textarea
+    attributes:
+      label: Your environment
+      description: OS, browser, node version, npm version ...
+      placeholder: "macOS Catalina, Chrome 120, Node 20, npm 10"
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: Additional context
+      placeholder: "In addition my browser crash."
+    validations:
+      required: false


Test patch: