mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-18 16:45:19 +00:00
3e22776b8c
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