Skip to content

Preserve source filenames across CLI and batch archive imports - #61

Merged
Naptie merged 4 commits into
mainfrom
copilot/fix-source-file-name-identification
Aug 15, 2026
Merged

Preserve source filenames across CLI and batch archive imports#61
Naptie merged 4 commits into
mainfrom
copilot/fix-source-file-name-identification

Conversation

Copilot AI commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

CLI imports recorded the full filesystem path as the source name, while multi-archive imports lost per-archive filenames and fell back to generated chart names.

  • Path normalization
    • Extract basenames from POSIX and Windows paths for CLI and URL imports.
    • Sanitize legacy path-valued source names during export.
  • Batch-aware imports
    • Process each archive as an isolated import batch.
    • Propagate that archive’s filename to every chart created from it.
    • Preserve batch-local asset grouping.
  • Archive handling
    • Recognize .zip files in addition to .pez archives.
for (const archive of archives) {
  await handleImportBatch(await decompress(archive), archive.name);
}

Copilot AI and others added 4 commits August 15, 2026 10:43
Co-authored-by: Naptie <57532127+Naptie@users.noreply.github.com>
Co-authored-by: Naptie <57532127+Naptie@users.noreply.github.com>
Co-authored-by: Naptie <57532127+Naptie@users.noreply.github.com>
Co-authored-by: Naptie <57532127+Naptie@users.noreply.github.com>
@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
player Ready Ready Preview Aug 15, 2026 11:25am

@Naptie
Naptie marked this pull request as ready for review August 15, 2026 11:27
@Naptie
Naptie merged commit 0f33500 into main Aug 15, 2026
11 checks 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.

2 participants