feat: sync vehicle monitoring and accumulated platform updates

Add monitoring metrics, numeric sorting, report-time display, vehicle number labels, and map layout fixes. Include accumulated mileage, hydrogen, OneOS authentication, open platform, ingestion, deployment, and UI updates.

Exclude temporary files, generated reports, and credentials. Validate frontend 632 tests and production build, API packages, vehicle-map tests, and release installer tests. Gateway suite has one pre-existing date-sensitive identity throttling test failure reproduced on the parent commit.
This commit is contained in:
lingniu
2026-10-26 18:05:59 +08:00
parent 8b32ae2988
commit d6b957dfc8
290 changed files with 28238 additions and 1647 deletions
+4 -5
View File
@@ -372,7 +372,10 @@ def _load_dashboard():
stations_future = executor.submit(_load_stations)
vehicles = realtime_future.result()
mileage_rows = mileage_future.result()
stations = stations_future.result()
stations = [
{key: value for key, value in station.items() if key not in ("monthlyHydrogenKg", "totalHydrogenKg")}
for station in stations_future.result()
]
mileage_by_vin = {
row.get("vin"): row
@@ -389,9 +392,6 @@ def _load_dashboard():
daily_mileage = round(
sum(float(row.get("dailyMileageKm") or 0) for row in mileage_rows), 3
)
monthly_hydrogen = round(
sum(float(station.get("monthlyHydrogenKg") or 0) for station in stations), 3
)
for vehicle in vehicles:
mileage = mileage_by_vin.get(vehicle.get("vin"), {})
vehicle["dailyMileageKm"] = mileage.get("dailyMileageKm", 0)
@@ -407,7 +407,6 @@ def _load_dashboard():
"idleVehicles": idle,
"offlineVehicles": offline,
"todayMileageKm": daily_mileage,
"monthlyHydrogenKg": monthly_hydrogen,
"totalStations": len(stations),
"cooperativeStations": sum(1 for item in stations if item.get("cooperative")),
},