chore: add E2E demo showcase excel spreadsheet, generator script, and updated screenshots

This commit is contained in:
Luis Gabriel Ramos Robles 2026-06-14 01:13:23 +00:00
parent 65edbd35c0
commit 50a2a473bb
16 changed files with 36 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 KiB

After

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

View file

@ -0,0 +1,36 @@
const XLSX = require('xlsx');
const fs = require('fs');
const path = require('path');
const data = [
{
'Colaborador': 'colaborador_mde',
'Periodo': '2026-06',
'Hotel': 'EST-MDE',
'Monto': 120000,
'Cantidad': 10,
'Id_Transaccion': 'TX-MDE-001'
},
{
'Colaborador': 'lider_ctg',
'Periodo': '2026-06',
'Hotel': 'EST-CTG',
'Monto': 2500000, // Anomaly trigger (value > 1,000,000)
'Cantidad': 15,
'Id_Transaccion': 'TX-CTG-002'
}
];
const wb = XLSX.utils.book_new();
const ws = XLSX.utils.json_to_sheet(data);
XLSX.utils.book_append_sheet(wb, ws, 'Sales Import');
// Ensure target directories exist
const dir = path.join(__dirname, '../public/templates');
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, { recursive: true });
}
const outputPath = path.join(dir, 'demo_sales_data.xlsx');
XLSX.writeFile(wb, outputPath);
console.log(`Successfully generated demo spreadsheet at: ${outputPath}`);