ENH - migrate garage to Sky UI

Replace the Garage screen's direct Konsta surface with the Sky-owned UI primitives. Remove the provider footer payload and Garage EasyShare support because neither belongs in the vehicle overview.
This commit is contained in:
Leon.Schmidt
2026-08-13 19:48:16 +02:00
parent b9bf5dd7ef
commit 0437fdfe4e
9 changed files with 268 additions and 452 deletions
-25
View File
@@ -202,30 +202,6 @@ local function owned_vehicle_row(identifier, plate)
return rows[1], table_name, owner_column, garage_system
end
function SkyPhoneGarage.ResolveShare(source, plate_value)
local plate = normalized_plate(plate_value)
if not plate then
return nil
end
local identifier = Bridge.Framework.GetIdentifier(source)
if type(identifier) ~= "string" or identifier == "" then
return nil
end
local row, _, _, garage_system = owned_vehicle_row(identifier, plate)
if not row then
return nil
end
local vehicle = vehicle_dto(row, garage_system)
local title = vehicle.nickname ~= "" and vehicle.nickname or vehicle.plate
return {
title = title,
subtitle = vehicle.plate,
copyText = title .. "\n" .. vehicle.plate .. " · " .. vehicle.status,
link = "skyphone://garage/vehicle/" .. vehicle.plate,
meta = { kind = vehicle.kind, location = vehicle.location, status = vehicle.status },
}
end
local function status_snapshot(row)
local snapshot = {}
for _, column in ipairs({ "stored", "state", "in_garage", "parked" }) do
@@ -449,7 +425,6 @@ Bridge.Callbacks.Register("sky_phone:garage:vehicles", function(source)
return {
success = true,
data = {
system = garage_system,
valet = {
account = Config.Garage.Valet.Account,
enabled = Config.Garage.Valet.Enabled,