feat: add UI components for alert dialog, badge, checkbox, dialog, label, select, sheet, table, textarea
- Implemented AlertDialog component with overlay, content, header, footer, title, description, action, and cancel functionalities. - Created Badge component with variant support for different styles. - Developed Checkbox component with custom styling and indicator. - Added Dialog component with trigger, close, overlay, content, header, footer, title, and description. - Introduced Label component for form elements. - Built Select component with trigger, content, group, item, label, separator, and scroll buttons. - Created Sheet component with trigger, close, overlay, content, header, footer, title, and description. - Implemented Table component with header, body, footer, row, head, cell, and caption. - Added Textarea component with custom styling. - Established API service for game management with CRUD operations and metadata search functionalities. - Updated dependencies in package lock files.
This commit is contained in:
@@ -11,7 +11,6 @@ describe('Games API', () => {
|
||||
await app.ready();
|
||||
// Limpiar base de datos antes de cada test
|
||||
// Orden importante: relaciones de FK primero
|
||||
await prisma.romFile.deleteMany();
|
||||
await prisma.purchase.deleteMany();
|
||||
await prisma.gamePlatform.deleteMany();
|
||||
await prisma.artwork.deleteMany();
|
||||
@@ -46,6 +45,7 @@ describe('Games API', () => {
|
||||
title: 'The Legend of Zelda',
|
||||
slug: 'legend-of-zelda',
|
||||
description: 'Un videojuego clásico',
|
||||
source: 'manual',
|
||||
gamePlatforms: {
|
||||
create: {
|
||||
platformId: platform.id,
|
||||
@@ -163,6 +163,7 @@ describe('Games API', () => {
|
||||
data: {
|
||||
title: 'Original Title',
|
||||
slug: 'original-title',
|
||||
source: 'manual',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -199,6 +200,7 @@ describe('Games API', () => {
|
||||
title: 'Original Title',
|
||||
slug: 'original',
|
||||
description: 'Original description',
|
||||
source: 'manual',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -223,6 +225,7 @@ describe('Games API', () => {
|
||||
data: {
|
||||
title: 'Game to Delete',
|
||||
slug: 'game-to-delete',
|
||||
source: 'manual',
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user