diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..43c6c84 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,70 @@ +name: 🐛 Segnala un bug +description: Segnala un comportamento non corretto di CrAPP +title: "[Bug]: " +labels: + - bug +body: + - type: input + id: titolo-bug + attributes: + label: Titolo del bug + description: Riassumi il problema in una frase + placeholder: "Es. Il numero di maglia duplicato non blocca il salvataggio" + validations: + required: true + + - type: textarea + id: comportamento-attuale + attributes: + label: Cosa succede + description: Descrivi il comportamento che hai osservato + validations: + required: true + + - type: textarea + id: comportamento-atteso + attributes: + label: Cosa ti aspettavi succedesse + validations: + required: true + + - type: textarea + id: passaggi + attributes: + label: Passaggi per riprodurre + placeholder: | + 1. Vai su ... + 2. Clicca su ... + 3. Compare l'errore ... + validations: + required: true + + - type: dropdown + id: ambiente + attributes: + label: Dispositivo/browser + description: Da dove hai riscontrato il problema + options: + - Smartphone (Chrome/Safari) + - Computer (Chrome) + - Computer (Safari) + - Computer (Firefox) + - Altro + validations: + required: false + + - type: textarea + id: screenshot + attributes: + label: Screenshot + description: Trascina qui una o più immagini che mostrano il problema (opzionale) + validations: + required: false + + - type: checkboxes + id: duplicati + attributes: + label: Verifica + options: + - label: Ho controllato che non esista già una issue aperta su questo stesso problema + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ba13e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..5bcebc1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,55 @@ +name: ✨ Richiesta di funzionalità +description: Suggerisci una nuova funzionalità per CrAPP +title: "[Feature]: " +labels: + - enhancement +body: + - type: input + id: titolo-feature + attributes: + label: Titolo della funzionalità + description: Riassumi la proposta in una frase + placeholder: "Es. Notifica push quando viene aggiunto un nuovo evento" + validations: + required: true + + - type: textarea + id: problema + attributes: + label: Problema che risolve + description: Cosa non riesci a fare oggi, o cosa ti costa troppa fatica + placeholder: "Es. Non mi accorgo quando viene aggiunta una partita finché non apro l'app" + validations: + required: true + + - type: textarea + id: soluzione + attributes: + label: Soluzione proposta + description: Come immagini che dovrebbe funzionare + validations: + required: true + + - type: textarea + id: alternative + attributes: + label: Alternative considerate + description: Altri modi in cui potresti risolvere lo stesso problema (opzionale) + validations: + required: false + + - type: textarea + id: screenshot + attributes: + label: Screenshot o mockup + description: Trascina qui immagini di riferimento (opzionale) + validations: + required: false + + - type: checkboxes + id: duplicati + attributes: + label: Verifica + options: + - label: Ho controllato che non esista già una richiesta simile + required: true diff --git a/src/routes/profilo.tsx b/src/routes/profilo.tsx index e6833fe..a546d24 100644 --- a/src/routes/profilo.tsx +++ b/src/routes/profilo.tsx @@ -1,7 +1,7 @@ import { createFileRoute, Link } from "@tanstack/react-router"; import { useEffect, useRef, useState } from "react"; import { toast } from "sonner"; -import { Flame, Camera, Trash2, Bell, LogOut, ShieldCheck } from "lucide-react"; +import { Flame, Camera, Trash2, Bell, LogOut, ShieldCheck, Bug, Lightbulb } from "lucide-react"; import { cn } from "@/lib/utils"; import { PageHeader, Section, StatTile } from "@/components/crapp/ui-bits"; import { Avatar } from "@/components/crapp/Avatar"; @@ -256,6 +256,24 @@ function Profilo() { ) : null} + + Segnala un bug + + + + Suggerisci una nuova funzionalità + +