v4.1.24: Добавлены поля arve_checked и arve_makstud

- FEAT: Добавлены поля arve_checked (int) и arve_makstud (string) в production_records
- POST /api/records: INSERT с arve_checked, arve_makstud
- PUT /api/records/🆔 UPDATE с arve_checked, arve_makstud
- Docker: docker-compose.prod.yml, ecosystem.config.cjs (PM2)
- wrangler.toml → wrangler.jsonc
- seed.sql: полные тестовые данные
- test_browser.js: E2E тесты
- Удалены старые HOTFIX-файлы (v4.1.11-v4.1.23)
- Удалены data/*.sqlite из репозитория
This commit is contained in:
Deploy Bot
2026-01-16 11:36:00 +02:00
parent 4fe9b0fdc9
commit 8b36ea16ef
33 changed files with 705 additions and 2985 deletions

35
test_browser.js Normal file
View File

@@ -0,0 +1,35 @@
const axios = require('axios');
async function testPage() {
try {
// 1. Get the main page
const response = await axios.get('http://localhost:3000');
console.log('✅ Page loads:', response.status === 200);
// 2. Check if app.js exists
const appJsResponse = await axios.get('http://localhost:3000/static/app.js');
console.log('✅ app.js loads:', appJsResponse.status === 200);
console.log('📦 app.js size:', appJsResponse.data.length, 'bytes');
// 3. Check if DOMContentLoaded exists in app.js
const hasDOMContentLoaded = appJsResponse.data.includes('DOMContentLoaded');
console.log('✅ DOMContentLoaded found:', hasDOMContentLoaded);
// 4. Check if loadRecords exists
const hasLoadRecords = appJsResponse.data.includes('function loadRecords');
console.log('✅ loadRecords found:', hasLoadRecords);
// 5. Check if toggleDate exists
const hasToggleDate = appJsResponse.data.includes('function toggleDate');
console.log('✅ toggleDate found:', hasToggleDate);
// 6. Check HTML for tbody
const hasTbody = response.data.includes('<tbody id="recordsTable"');
console.log('✅ tbody#recordsTable in HTML:', hasTbody);
} catch (error) {
console.error('❌ Error:', error.message);
}
}
testPage();