Skip to content

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

Dependency Review

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

Scanned Files

None

@sonarqubecloud
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants