Skip to content

Run Configuration Management + Enhanced Data Table Rendering#82

Merged
brichards64 merged 23 commits intoToolDAQ:masterfrom
ekumachidi:ce-run-config
Jun 17, 2025
Merged

Run Configuration Management + Enhanced Data Table Rendering#82
brichards64 merged 23 commits intoToolDAQ:masterfrom
ekumachidi:ce-run-config

Conversation

@ekumachidi
Copy link
Contributor

🔧 Run Configuration Setup Enhancements

  • ✅ Load and edit existing configurations using the configSearchBox and populate form fields accordingly.
  • ✅ Version-controlled saving of new configurations:
  • Prevents unnecessary versioning when no changes are detected.
  • Automatically increments version when saving.
  • ✅ Device selection UI:
  • Populates device checkboxes from the database.
  • ✅ JSON Editors for both full configurations and individual devices.
  • ✅ Device Config Viewer with save support:
  • Only saves when actual changes are detected.
  • Inserts new version with metadata.

📊 New Reusable dataTable() Function

  • Added to /includes/tooldaq.js for fetching and rendering SQL query results.
    Easily dropped into any page via:
dataTable("SELECT * FROM configurations", "someHtmlId");

Rather than a long list of devices and their versions, we want to consolidate the device name and have a dropdown to select a version to trim down the items displayed.
* Devices now display once, with a version dropdown.
* Checkbox + dropdown work together to define selection.
* JSON config remains { "device_A": 3, "device_B": 1, ... }.
- Introduced an input field above the device selection list to filter devices by name in real-time
- Grouped devices by name with a dropdown for version selection
- Preserved existing device selections across filters
- Updated UI to handle dynamic filtering without resetting previous selections
- Improved overall UX for managing large numbers of device configurations
@brichards64 brichards64 merged commit 086b65c into ToolDAQ:master Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants