Simulation Details page layout Update

This commit is contained in:
2026-02-23 22:03:52 -05:00
parent 5b2b0cbb1f
commit c0b62300f3
11 changed files with 527 additions and 92 deletions

View File

@@ -86,4 +86,12 @@ Permanently deletes a complete simulation from the platform.
### `DELETE /api/simulations/:id/resources/:filename`
Deletes a specific user-uploaded media asset or log file dynamically out of a simulation without dropping the core simulation entity itself.
- **Behavior:** Detaches the file association string from SQLite and forces an OS-level file drop directly onto the specific asset file stored within the simulation's results directory.
- **Response:** JSON object `{"status": "success"}`
- **Response:** JSON object `{"status": "success"}`
### `DELETE /api/simulations/clear-fails`
Purges all failed tracking simulations globally from the database and physically drops their filesystem result nodes off the host system. A simulation is identified natively as "failed" when its `total_time` tracking variable maps to a `0.0` or numeric `null` value during extraction.
- **Response:** JSON object `{"status": "success", "cleared": <int>}`
### `GET /api/stats`
Retrieves globally aggregated system statistics across the entire database resolving UI constraints.
- **Response:** JSON object `{"total_simulations": <int>, "fastest_sim_id": <int>, "total_storage_bytes": <int>}`