diff --git a/frontend/src/app/(app)/tickets/new/page.tsx b/frontend/src/app/(app)/tickets/new/page.tsx index f692310..6a81cd0 100644 --- a/frontend/src/app/(app)/tickets/new/page.tsx +++ b/frontend/src/app/(app)/tickets/new/page.tsx @@ -12,7 +12,6 @@ export default function NewTicketPage() { const [title, setTitle] = useState(""); const [description, setDescription] = useState(""); - const [priority, setPriority] = useState("Medium"); const [groups, setGroups] = useState([]); const [groupId, setGroupId] = useState(""); @@ -29,7 +28,8 @@ export default function NewTicketPage() { } setLoading(true); try { - const result = await createTicket({ title, description, priority, groupId: Number(groupId) }); + // La prioridad siempre es Media al crear: la ajusta el equipo después. + const result = await createTicket({ title, description, priority: "Medium", groupId: Number(groupId) }); router.push(`/tickets/${result.id}`); } catch (err: unknown) { setError(err instanceof Error ? err.message : "Error al crear el ticket"); @@ -50,7 +50,7 @@ export default function NewTicketPage() {
-
+
{error && ( @@ -86,37 +86,21 @@ export default function NewTicketPage() { >
-
-
- - -
- -
- - -
+
+ +
@@ -145,24 +129,6 @@ export default function NewTicketPage() {
- - {/* Tips */} -
-
-
-
- - Consejos -
-
    -
  • Sé específico en el asunto del ticket
  • -
  • Incluye pasos para reproducir el problema
  • -
  • Adjunta capturas de pantalla si es posible
  • -
  • Asigna la prioridad adecuada según el impacto
  • -
-
-
-
);