Skip to content

Add asset cleanup preview and orphaned file cleanup - #118

Merged
errorsallthethings merged 1 commit into
release/0.1.18from
feature/29-asset-cleanup-tools
Jul 12, 2026
Merged

errorsallthethings merged 1 commit into
release/0.1.18from
feature/29-asset-cleanup-tools

Conversation

@errorsallthethings

Copy link
Copy Markdown
Owner

Summary

  • replace the prune-only maintenance action with an Asset Cleanup dry-run preview
  • show unreferenced assets, orphaned campaign asset files, stale thumbnail references, retained asset counts, and removable file totals before deletion
  • remove orphaned files from campaign asset folders during cleanup while keeping deletion scoped to campaign-owned asset paths
  • update cleanup result reporting, docs, and release smoke checklist

Notes

  • Cleanup applies to campaign asset files and thumbnail references. Effects are scene metadata today, not separate asset files.

Verification

  • npm.cmd test -- assetCleanupPlanning assetMaintenanceServices assetMaintenanceIpc gmMaintenanceState campaignMaintenance
  • npm.cmd run check
  • npm.cmd run smoke

- Renamed "Prune Unreferenced Assets" button to "Asset Cleanup" in CampaignPanel.
- Updated AssetPruneResultDialog to handle both AssetCleanupResult and AssetPruneResult.
- Added previewAssetCleanup function to useCampaignActions for previewing asset cleanup.
- Introduced new AssetCleanupPreviewDialog component to display cleanup preview results.
- Created assetCleanupPlanning module to manage asset cleanup logic, including orphaned file removal.
- Updated LocalVttApi to include previewAssetCleanup and modified pruneUnreferencedAssets to return AssetCleanupResult.
- Enhanced tests for asset maintenance services and IPC to cover new cleanup functionality.
- Removed obsolete asset prune confirmation dialog and related tests.
@errorsallthethings errorsallthethings linked an issue Jul 12, 2026 that may be closed by this pull request
@errorsallthethings
errorsallthethings merged commit 5316d55 into release/0.1.18 Jul 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asset Cleanup Tools

1 participant