diff --git a/.github/ISSUE_TEMPLATE/01_bug_report.md b/.github/ISSUE_TEMPLATE/01_bug_report.md new file mode 100644 index 000000000..75997247e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/01_bug_report.md @@ -0,0 +1,83 @@ +name: Report a Technical or Visual Issue on the IFRC GO Website +description: 'Encountered a bug or glitch? Let us know so we can address it!' +labels: ['type: bug'] +body: + - type: markdown + attributes: + value: | + Thank you for helping improve the IFRC GO Website! + Please fill out the form below with as much detail as possible. This will help us diagnose and fix the issue promptly. + If the issue is visual, screenshots or videos are greatly appreciated. + + - type: input + attributes: + label: 'Page URL' + description: 'The URL of the page where you encountered the issue.' + placeholder: 'https://go.ifrc.org/' + validations: + required: true + + - type: input + attributes: + label: 'Browser' + description: 'Which browser are you using? (e.g., Chrome, Firefox, Safari)' + placeholder: 'Chrome' + validations: + required: true + + - type: input + attributes: + label: 'Browser Version' + description: 'What version of the browser are you using?' + placeholder: '103.0.5060.134' + validations: + required: true + + - type: input + attributes: + label: 'Operating System' + description: 'What operating system are you using? Include the version if possible.' + placeholder: 'Windows 10' + validations: + required: true + + - type: dropdown + attributes: + label: 'Priority' + description: 'How urgent is this issue?' + options: + - 'Low (Minor inconvenience)' + - 'Medium (Affects functionality, but there is a workaround)' + - 'High (Major functionality is broken)' + - 'Critical (Site is unusable)' + validations: + required: true + + - type: textarea + attributes: + label: 'Steps to Reproduce the Issue' + description: | + Please describe the issue in detail, including: + 1. What actions led to the issue? + 2. What did you expect to happen? + 3. What actually happened? + 4. If possible, attach screenshots or videos demonstrating the problem. + placeholder: | + 1. I clicked on... + 2. I expected the page to... + 3. Instead, I saw... + 4. [Attach screenshots/videos if available] + validations: + required: true + + - type: textarea + attributes: + label: 'Additional Context (Optional)' + description: | + Provide any extra details, such as: + - Related links. + - Previous occurrences of this issue. + - Workarounds you have tried. + placeholder: 'This issue also happened on [link].' + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/02_feature_request.md b/.github/ISSUE_TEMPLATE/02_feature_request.md new file mode 100644 index 000000000..616fe9b89 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/02_feature_request.md @@ -0,0 +1,39 @@ +name: Feature Request +description: Suggest a new idea or enhancement for the IFRC GO project. +title: "[Feature]: " +labels: ['type: feature-request'] +body: + - type: markdown + attributes: + value: | + Thank you for suggesting a new feature! + Please provide as much detail as possible to help us understand and evaluate your idea. + Before submitting, please search our issue tracker to ensure this isn’t a duplicate request. + + - type: textarea + attributes: + label: Feature Description + description: | + Describe your feature request in detail, including: + - What the feature is. + - Why it’s needed and how it will improve the project. + - How it will benefit users (e.g., "As a user, I want to [do something] so that [desired outcome]."). + placeholder: | + As a user, I want to filter search results by date so that I can quickly find recent information. + validations: + required: true + + - type: textarea + attributes: + label: Additional Context + description: | + Provide any extra details or supporting information, such as: + - Links to references or related resources. + - Examples from other projects or systems. + - Screenshots, mockups, or diagrams. + *Tip: You can attach files by clicking here and dragging them in.* + placeholder: | + Here’s a link to a similar feature in another project: [link]. + I’ve also attached a mockup of what this could look like. + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/03_epic_request.md b/.github/ISSUE_TEMPLATE/03_epic_request.md new file mode 100644 index 000000000..59b131d36 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/03_epic_request.md @@ -0,0 +1,37 @@ +name: Epic +description: Track a larger initiative with multiple related tasks and deliverables for IFRC GO project. +title: "[Epic]: " +labels: ['type: epic'] +body: + - type: markdown + attributes: + value: | + Epic Overview + Use this to define a large, overarching initiative. An epic typically represents a high-level goal or feature that can be broken down into smaller, actionable issues. + + - type: textarea + attributes: + label: Epic Summary + description: | + Provide a clear and concise summary of the epic. + - What is this epic about? + - What problem does it solve or what goal does it achieve? + - How does it align with the project’s objectives? + placeholder: | + Example: + This epic focuses on implementing a new feature. + validations: + required: true + + - type: textarea + attributes: + label: Additional Context or Resources + description: | + Provide any additional information, links, or resources that will help the team understand and execute this epic. + placeholder: | + Examples: + - Link to design mockups: [link] + - Technical specs document: [link] + - Reference to similar features: [link] + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/bug-report---production.md b/.github/ISSUE_TEMPLATE/bug-report---production.md deleted file mode 100644 index 47c78688f..000000000 --- a/.github/ISSUE_TEMPLATE/bug-report---production.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -name: Bug report - Production -about: Create a report for issues found in Live -title: "[PROD] " -labels: '' -assignees: '' - ---- - -## Issue -*Please describe your issue clearly and concisely. If possible, include when you first encountered the issue, who it affects, a link to a relevant page, and any other information that might be helpful in diagnosing its cause.* - -## Steps to reproduce -*If you can reliably reproduce the issue, please list the steps taken to do so. (Go to this URL..., click on..., Scroll down to..., See error)* - -*If applicable, add screenshots to help explain your problem.* - -## Expected behaviour -*Please describe how this feature should be working.* - -## Related feature -*Please cross-reference the build item to which this relates, if known/relevant* - -## Impact -*How many users does this incident/problem affect? e.g. all users; a majority of users; those submitting field reports; anyone looking at the xxx page, individual user* - -## Severity -*To what extent is this problem affecting the business process/work of those impacted? e.g. it prevents those impacted from using the system at all, there is a functional impact to a field operation; minimal impact as it is a cosmetic issue.* - -## Is there a workaround? -*e.g. Users can contact IM for a manual update* diff --git a/.github/ISSUE_TEMPLATE/bug-report---staging.md b/.github/ISSUE_TEMPLATE/bug-report---staging.md deleted file mode 100644 index 91b55a5f2..000000000 --- a/.github/ISSUE_TEMPLATE/bug-report---staging.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: Bug report - Staging -about: Create a report for issues found in staging/test -title: "[Staging] " -labels: '' -assignees: '' - ---- - -## Issue -*Please describe your issue clearly and concisely. If possible, include when you first encountered the issue, who it affects, a link to a relevant page, and any other information that might be helpful in diagnosing its cause.* - -## URL -*e.g. `https://go-stage.ifrc.org/emergencies/5854/surge` or `https://tc-ifrc-go.surge.sh/emergencies`* - -## Steps to reproduce -*If you can reliably reproduce the issue, please list the steps taken to do so. (Go to this URL..., click on..., Scroll down to..., See error)* - -*If applicable, add screenshots to help explain your problem.* - -## Expected behaviour -*Please describe how this feature should be working.* - -## Related feature -*Please cross-reference the build item to which this relates, if known* - -## Criticality/Urgency -*Is it critical that this ticket is resolved urgently (e.g. is it a Blocker)? What is the impact if no change is made?* diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md deleted file mode 100644 index b26f3e30b..000000000 --- a/.github/ISSUE_TEMPLATE/feature-request.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: "(ReqID) (Shortname) (Title)" -labels: '' -assignees: '' - ---- - -**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 screenshots about the feature request here.* - -**Where does the data come from and how is it maintained?** -*e.g. existing GDACS feed, manual input via xx screen, quarterly spreadsheet upload* - -**Should there be any restrictions around viewing or updating information related to this feature** -*any considerations around permissions e.g. public vs only logged-in RCRC users should be able to see this* - -**Links to documentation** -*wireframes, detailed requirements, user stories/UATs, external API documentation etc.* diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index dd9ff2286..538d65746 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,18 +1,27 @@ -## Addresses: -- XXX +## Summary +Provide a brief description of what this PR addresses and its purpose. -## Depends on: -- XXX +## Addresses +- Issue(s): _List related issues or tickets._ + +## Depends On +- Other PRs or Dependencies: _List PRs or dependencies this PR relies on._ ## Changes - Detailed list or prose of changes - Breaking changes - Changes to configurations -## This PR doesn't introduce: -- [ ] typos -- [ ] conflict markers -- [ ] unwanted comments -- [ ] temporary files, auto-generated files or secret keys -- [ ] `console.log` meant for debugging -- [ ] codegen errors +## This PR Ensures: +- [ ] No typos or grammatical errors +- [ ] No conflict markers left in the code +- [ ] No unwanted comments, temporary files, or auto-generated files +- [ ] No inclusion of secret keys or sensitive data +- [ ] No `console.log` statements meant for debugging +- [ ] `pnpm lint` runs without errors +- [ ] `pnpm typecheck` passes (no type errors) +- [ ] `pnpm knip` passes +- [ ] `pnpm build` completes successfully + +## Additional Notes +_Optional: Add any other relevant context, screenshots, or details here._