Skip to content

feat(resume): use versioned export filenames - #10

Merged
dogxii merged 1 commit into
devfrom
feature/versioned-export-filenames
Jun 10, 2026
Merged

feat(resume): use versioned export filenames#10
dogxii merged 1 commit into
devfrom
feature/versioned-export-filenames

Conversation

@dogxii

@dogxii dogxii commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • change single-resume JSON exports from name_iResume.json to name-vversion.json
  • use the same name-vversion base for PDF print titles and PNG exports
  • sanitize invalid filename characters and normalize versions to a single v prefix

Notes

  • kept full user-data backups as iresume-user-data-date.json because those are library backups, not single-resume exports

Checks

  • bun run lint
  • bun run build

Copilot AI review requested due to automatic review settings June 10, 2026 08:14
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
i-resume Ready Ready Preview, Comment Jun 10, 2026 8:14am

@dogxii
dogxii merged commit df207c4 into dev Jun 10, 2026
3 checks passed
@dogxii
dogxii deleted the feature/versioned-export-filenames branch June 10, 2026 08:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes single-resume export naming by introducing a shared, sanitized, versioned base filename (name-v<version>) and applying it consistently across JSON exports, print-to-PDF titles, and PNG exports.

Changes:

  • Added a filename-part sanitization helper and a shared getResumeExportFileBaseName() utility.
  • Updated print-to-PDF behavior to use the versioned base name via document.title.
  • Updated JSON and PNG export download filenames to use the same versioned base name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/App.tsx
Comment on lines +224 to +226
const version =
sanitizeFileNamePart(document.version).replace(/^v+/i, "") || "1.0.0";

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