mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 16:23:22 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user