Show Local Storage save progress in the dashboard #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Show the progress of Local Storage saves in the dashboard's sync indicator ("All Synced"), in place of the cloud status while a save runs. Placement decided: dash only.
Design
RecordSyncStatus.OnCommonUpdatepostfix writesStatusMessagein vanilla's two-line style:Saving Locally/Cosmic Defender · 34/120 assets · 812 MB. The text refreshes 4×/s and goes back to the vanilla text when saves end.SaveProgressBoard(engine-free, unit-tested) tracks running saves: one save shows its name, assets written/total and size; several showN saves · total size; the last step showsfinishing.PackageCreator.CollectAssetsuses; the written count isRecordPackage.AssetCount, and the size is the package file's length on disk.Limits
Plan
The first version showed nothing: the dash facet (template
SyncStatus) never displaysRecordSyncStatus.StatusMessage. A dump of the live facet showed its ProtoFlux picking a state fromRecordQueueCount,AssetVariantQueueCount,CurrentTaskProgressandLastError, with locale drivers for the text and the bar/percentage driven byCurrentTaskProgress. Sincee9c4f02(v0.3.1), local saves are reported through those outputs: the pill shows vanilla's "Syncing N Items" with the bar filling (asset packing = 90%, writing the data = the rest). The name/size detail line is gone, because the facet has nowhere to show it.