Production fixes: n8n workflow auto-restart, user-friendly messages, fixed navigation buttons

This commit is contained in:
AI Assistant
2025-12-29 01:19:19 +03:00
parent 080e7ec105
commit 30774db18c
16 changed files with 539 additions and 353 deletions

View File

@@ -593,45 +593,7 @@ export default function Step2Details({ formData, updateFormData, onNext, onPrev,
</div>
</Form.Item>
{/* 🔧 Технические кнопки для разработки */}
<div style={{
marginTop: 24,
padding: 16,
background: '#f0f0f0',
borderRadius: 8,
border: '2px dashed #999'
}}>
<div style={{ marginBottom: 8, fontSize: 12, color: '#666', fontWeight: 'bold' }}>
🔧 DEV MODE - Быстрая навигация (без валидации)
</div>
<div style={{ display: 'flex', gap: 8 }}>
<Button
onClick={onPrev}
size="small"
disabled={uploading}
>
Назад (Step 1)
</Button>
<Button
type="dashed"
onClick={() => {
const devData = {
eventType: 'delay_flight',
processedDocuments: {
boarding_or_ticket: { flight_number: 'DEV123', date: '2025-10-28' },
delay_confirmation: { delay_duration: '4h' }
}
};
updateFormData(devData);
onNext();
}}
size="small"
style={{ flex: 1 }}
>
Далее (Step 3) [пропустить]
</Button>
</div>
</div>
{/* DEV MODE секция удалена для продакшена */}
</Form>
);
}