feat: Implement configurable pump control preprocessing logic #5

Merged
solipsism merged 34 commits from feature/pump-control-preprocessing into master 2025-11-17 14:23:42 +00:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit de26bfe9d0 - Show all commits

View File

@ -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