Files
haproxy-openmanager/backend/services
taylanbakircioglu 3e22776b8c fix: Improve options field UX and HAProxy config ordering
Fixed three critical issues with options field implementation:

1. Bulk Import Preview UI:
   - Added options field to frontend expandedRowRender display
   - Added options field to backend expandedRowRender display
   - Options now visible in preview before import confirmation

2. HAProxy Config Generator - Best Practice Ordering:
   Backend:
   - Moved options to position #2 (after mode/balance, before health checks)
   - New order: balance → mode → OPTIONS → httpchk → timeouts → cookie → headers

   Frontend:
   - Moved options to position #2 (after mode, before default_backend)
   - New order: bind → mode → OPTIONS → default_backend → timeouts → headers

3. UI Display Improvements:
   - Options now prominently displayed in bulk import preview
   - Better visual hierarchy with numbered comments in config generator
   - Consistent code style with proper whitespace handling

Technical Details:
- Frontend options placed after mode directive per HAProxy standards
- Backend options placed before health checks for better readability
- All options rendered as separate lines in preview
- hasDetails check updated to include options field

Files Modified:
- backend/services/haproxy_config.py: Config generation order optimized
- frontend/src/components/BulkConfigImport.js: Preview display enhanced
2025-11-13 10:12:30 +03:00
..
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00