Skip to content

vip import media: Improvements in wording and progress bar#2704

Merged
rebeccahum merged 3 commits intotrunkfrom
PLTFRM-1924
Jan 27, 2026
Merged

vip import media: Improvements in wording and progress bar#2704
rebeccahum merged 3 commits intotrunkfrom
PLTFRM-1924

Conversation

@rebeccahum
Copy link
Contributor

@rebeccahum rebeccahum commented Jan 21, 2026

Description

This pull request updates the handling of the import-media command in src/lib/cli/command.js to improve user feedback and confirmation messaging based on whether the provided source is a URL or a local file path.

Pull request checklist

New release checklist

Steps to Test

Outline the steps to test and verify the PR here.

Example:

  1. Check out PR.
  2. Run npm run build
  3. Run ./dist/bin/vip-cookies.js nom
  4. Verify cookies are delicious.

@rebeccahum rebeccahum marked this pull request as ready for review January 21, 2026 15:26
@rebeccahum rebeccahum requested a review from Copilot January 21, 2026 15:26
@github-actions
Copy link
Contributor

github-actions bot commented Jan 21, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Contributor

Copilot AI left a comment

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 improves the user experience for the vip import media command by providing more accurate wording and implementing a better progress bar for local file uploads.

Changes:

  • Updated confirmation message to use "Archive Path" instead of "Archive URL" when importing from a local file
  • Replaced confirmation message text to use "the path" instead of "the URL" when appropriate
  • Implemented a single-line overwriting progress bar for upload progress instead of printing each percentage on a new line

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
src/lib/cli/command.js Detects whether the import source is a URL or local path and adjusts the confirmation message label and text accordingly
src/bin/vip-import-media.js Implements a single-line progress bar that overwrites itself during file upload, preventing duplicate progress messages and improving readability

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

Comment on lines +192 to +194
if ( percentage === lastProgress ) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

👍🏽

Co-authored-by: Volodymyr Kolesnykov <volodymyr.kolesnykov@automattic.com>
@sonarqubecloud
Copy link

@rebeccahum rebeccahum merged commit f598eb5 into trunk Jan 27, 2026
19 checks passed
@rebeccahum rebeccahum deleted the PLTFRM-1924 branch January 27, 2026 15:09
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