feat: Implement configurable pump control preprocessing logic #5
|
|
@ -20,11 +20,15 @@ Successfully removed the legacy station/pump configuration system and fully inte
|
|||
- **Replaced text inputs with dropdowns**: For `station_id`, `equipment_id`, and `data_type_id` fields
|
||||
- **Added dynamic loading**: Dropdowns are populated from tag metadata API endpoints
|
||||
- **Updated form validation**: Now validates against available tag metadata
|
||||
- **Enhanced table display**: Shows human-readable names with IDs in protocol mappings table
|
||||
- **Updated headers**: Descriptive column headers indicate "Name & ID" format
|
||||
|
||||
### 4. JavaScript (`static/protocol_mapping.js`)
|
||||
- **Added tag metadata loading functions**: `loadTagMetadata()`, `populateStationDropdown()`, `populateEquipmentDropdown()`, `populateDataTypeDropdown()`
|
||||
- **Updated form handling**: Now validates against tag metadata before submission
|
||||
- **Enhanced user experience**: Dropdowns provide selection from available tag metadata
|
||||
- **Improved table display**: `displayProtocolMappings` shows human-readable names from tag metadata
|
||||
- **Ensured metadata loading**: `loadProtocolMappings` ensures tag metadata is loaded before display
|
||||
|
||||
### 5. Security Module (`src/core/security.py`)
|
||||
- **Removed legacy permissions**: `configure_safety_limits` permission removed from ENGINEER and ADMINISTRATOR roles
|
||||
|
|
@ -45,6 +49,8 @@ Successfully removed the legacy station/pump configuration system and fully inte
|
|||
- **Dropdown Selection**: Users select from available tag metadata instead of manual entry
|
||||
- **Dynamic Loading**: Dropdowns populated from API endpoints on page load
|
||||
- **Validation Feedback**: Clear error messages when invalid selections are made
|
||||
- **Human-Readable Display**: Protocol mappings table shows descriptive names with IDs
|
||||
- **Enhanced Usability**: Users can easily identify stations, equipment, and data types by name
|
||||
|
||||
## Benefits
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue