Skip to content

feat: [#576] Optimize package install process#1226

Merged
hwbrzzl merged 4 commits intomasterfrom
bowen/#576-1
Oct 13, 2025
Merged

feat: [#576] Optimize package install process#1226
hwbrzzl merged 4 commits intomasterfrom
bowen/#576-1

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Oct 13, 2025

📑 Description

Relate goravel/goravel#576

image

✅ Checks

  • Added test cases for my code

@hwbrzzl hwbrzzl requested a review from a team as a code owner October 13, 2025 10:22
Copilot AI review requested due to automatic review settings October 13, 2025 10:22
@hwbrzzl hwbrzzl changed the title Bowen/#576 1 feat: [#576] Optimize package install process Oct 13, 2025
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 refactors the package installation command interface to improve user experience by replacing a multi-select interface with a choice-based flow. Instead of presenting all facades in a single multi-select, users now choose between installing all facades, selecting specific facades, or installing a third-party package.

  • Replaced multi-select facade selection with a three-option choice menu
  • Added dedicated methods for facade selection and third-party package input
  • Updated test cases to cover the new choice-based workflow

Reviewed Changes

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

File Description
foundation/console/package_install_command.go Refactored main installation logic to use choice-based flow and extracted facade selection and package input into separate methods
foundation/console/package_install_command_test.go Updated test cases to reflect new choice-based interface and added coverage for new error scenarios

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

❌ Patch coverage is 85.36585% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.69%. Comparing base (f0abbce) to head (bcd4897).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
foundation/console/package_install_command.go 85.36% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1226      +/-   ##
==========================================
+ Coverage   66.68%   66.69%   +0.01%     
==========================================
  Files         237      237              
  Lines       15892    15918      +26     
==========================================
+ Hits        10597    10617      +20     
- Misses       4929     4933       +4     
- Partials      366      368       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
options := []console.Choice{
{Key: "All facades", Value: "all"},
{Key: "Select facades", Value: "select"},
{Key: "Third package", Value: "third"},
Copy link
Member

Choose a reason for hiding this comment

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

Third package sounds a bit confusing, did you mean Third-party packages?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, updated.

Copy link
Member

@krishankumar01 krishankumar01 left a comment

Choose a reason for hiding this comment

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

Great 👍, LGTM

@hwbrzzl hwbrzzl merged commit a36b537 into master Oct 13, 2025
14 checks passed
@hwbrzzl hwbrzzl deleted the bowen/#576-1 branch October 13, 2025 12:39
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.

3 participants