From 3e6a50ce4be62c6bfc3ccf6cef1ce3c947afae11 Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 31 Jan 2026 13:22:29 -0600 Subject: [PATCH] syncback --- plugin/src/ApiContext.lua | 2 +- plugin/src/App/StatusPages/NotConnected.lua | 6 +++--- plugin/src/ChangeBatcher/encodeInstance.lua | 7 +------ plugin/src/ChangeBatcher/init.lua | 7 +------ plugin/src/ServeSession.lua | 7 +------ 5 files changed, 7 insertions(+), 22 deletions(-) diff --git a/plugin/src/ApiContext.lua b/plugin/src/ApiContext.lua index e222c948..2a013eb2 100644 --- a/plugin/src/ApiContext.lua +++ b/plugin/src/ApiContext.lua @@ -182,7 +182,7 @@ function ApiContext:write(patch) for _ in pairs(patch.added) do addedCount += 1 end - + -- Only log summary at debug level to reduce verbosity if #patch.removed > 0 or addedCount > 0 or #patch.updated > 0 then Log.debug( diff --git a/plugin/src/App/StatusPages/NotConnected.lua b/plugin/src/App/StatusPages/NotConnected.lua index 8e3e8d57..28eade2c 100644 --- a/plugin/src/App/StatusPages/NotConnected.lua +++ b/plugin/src/App/StatusPages/NotConnected.lua @@ -124,9 +124,9 @@ function NotConnectedPage:render() }), }), - Connect = e(TextButton, { - text = "Sync", - style = "Solid", + Connect = e(TextButton, { + text = "Sync", + style = "Solid", transparency = self.props.transparency, layoutOrder = 2, onClick = self.props.onConnect, diff --git a/plugin/src/ChangeBatcher/encodeInstance.lua b/plugin/src/ChangeBatcher/encodeInstance.lua index 1617e501..fa49024a 100644 --- a/plugin/src/ChangeBatcher/encodeInstance.lua +++ b/plugin/src/ChangeBatcher/encodeInstance.lua @@ -272,12 +272,7 @@ encodeInstance = function(instance, parentId, _skipPathCheck) for _ in pairs(properties) do propCount += 1 end - Log.trace( - " Encoded {} with {} properties, {} children", - instance.Name, - propCount, - #children - ) + Log.trace(" Encoded {} with {} properties, {} children", instance.Name, propCount, #children) return { parent = parentId, diff --git a/plugin/src/ChangeBatcher/init.lua b/plugin/src/ChangeBatcher/init.lua index dc097fa4..226cbb80 100644 --- a/plugin/src/ChangeBatcher/init.lua +++ b/plugin/src/ChangeBatcher/init.lua @@ -112,12 +112,7 @@ function ChangeBatcher:__flush() for _ in pairs(patch.added) do addedCount += 1 end - Log.debug( - "Two-way sync: {} updates, {} additions, {} removals", - #patch.updated, - addedCount, - #patch.removed - ) + Log.debug("Two-way sync: {} updates, {} additions, {} removals", #patch.updated, addedCount, #patch.removed) return patch end diff --git a/plugin/src/ServeSession.lua b/plugin/src/ServeSession.lua index 058829cb..1645dc15 100644 --- a/plugin/src/ServeSession.lua +++ b/plugin/src/ServeSession.lua @@ -680,12 +680,7 @@ function ServeSession:__confirmAndApplyInitialPatch(catchUpPatch, serverInfo) ignoreCount += 1 end end - Log.debug( - "User selections: {} push, {} pull, {} ignored", - pushCount, - pullCount, - ignoreCount - ) + Log.debug("User selections: {} push, {} pull, {} ignored", pushCount, pullCount, ignoreCount) -- Build partial patches based on selections local pushPatch = PatchSet.newEmpty() -- Items to apply to Studio