Skip to content

🚀 feat: Add optional leggacy set estimate to contract info#1967

Merged
mkmccarty merged 1 commit intomainfrom
mm-branch-1
Dec 22, 2025
Merged

🚀 feat: Add optional leggacy set estimate to contract info#1967
mkmccarty merged 1 commit intomainfrom
mm-branch-1

Conversation

@mkmccarty
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 22, 2025 19:42
@mkmccarty mkmccarty merged commit 8fdc307 into main Dec 22, 2025
16 checks passed
@mkmccarty mkmccarty deleted the mm-branch-1 branch December 22, 2025 19:42
Copy link
Copy Markdown
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 adds an optional "leggacy set" estimate feature to contract information commands, allowing users to see completion time estimates when using a full leggacy artifact set.

Key changes:

  • Adds a new boolean command option include-leggacy to the estimate-time command
  • Updates the getContractEstimateString function to accept an optional boolean parameter for displaying leggacy set estimates
  • Displays additional estimate information showing completion time and CS (Chicken Score) when leggacy set is included

Reviewed changes

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

File Description
src/boost/estimate_time.go Adds include-leggacy command option, handles the new parameter, and conditionally displays leggacy set estimate based on the includeMaximum parameter
src/boost/score_explorer.go Updates function call to pass false for the new leggacy parameter, maintaining existing behavior
Comments suppressed due to low confidence (1)

src/boost/score_explorer.go:127

  • This expression compares an expression to itself.
	if contractID == "" {

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

}
if str == "" {
str := getContractEstimateString(contractID)
str := getContractEstimateString(contractID, includeLeggacy)
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

Variable shadowing issue: The inner 'str' declaration shadows the outer 'str' variable declared on line 52. This prevents the error message set on line 71 from being used in the response. Remove the ':=' and use '=' instead to assign to the existing 'str' variable.

Suggested change
str := getContractEstimateString(contractID, includeLeggacy)
str = getContractEstimateString(contractID, includeLeggacy)

Copilot uses AI. Check for mistakes.
}

func getContractEstimateString(contractID string) string {
func getContractEstimateString(contractID string, includeMaximum bool) string {
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

Parameter naming inconsistency: The parameter is named 'includeMaximum' in the function signature, but it's used to control displaying the 'leggacy set' estimate. Consider renaming it to 'includeLeggacy' to match its usage and the calling code context.

Suggested change
func getContractEstimateString(contractID string, includeMaximum bool) string {
func getContractEstimateString(contractID string, includeLeggacy bool) string {

Copilot uses AI. Check for mistakes.
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