feat: creacion de plantillas para pruebas, prototipo

This commit is contained in:
2026-03-16 12:28:29 -03:00
parent 7409f8bfda
commit 41279585f6
11 changed files with 2003 additions and 5 deletions
@@ -0,0 +1,34 @@
'use client';
import React, { useState } from 'react';
import PageLayout from '@/components/PageLayout';
import { TestTemplateManager, TestTemplateForm } from '@/components/TestTemplates';
import { Plus } from 'lucide-react';
export default function TestTemplatesPage() {
const [showCreateForm, setShowCreateForm] = useState(false);
const [refreshKey, setRefreshKey] = useState(0);
const handleSuccess = () => {
setShowCreateForm(false);
setRefreshKey(prev => prev + 1);
};
return (
<PageLayout title="Plantillas de Pruebas">
<div key={refreshKey}>
<TestTemplateManager
onSelectTemplate={() => setShowCreateForm(true)}
onCreateTemplate={() => setShowCreateForm(true)}
/>
</div>
{showCreateForm && (
<TestTemplateForm
onSuccess={handleSuccess}
onCancel={() => setShowCreateForm(false)}
/>
)}
</PageLayout>
);
}