Skip to content

✨feat: display ELR using LayRate instead min(Lay,Ship)#2309

Merged
mkmccarty merged 1 commit intomainfrom
mm-branch-1
Apr 2, 2026
Merged

✨feat: display ELR using LayRate instead min(Lay,Ship)#2309
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 April 2, 2026 21:31
@mkmccarty mkmccarty merged commit afcce32 into main Apr 2, 2026
12 checks passed
@mkmccarty mkmccarty deleted the mm-branch-1 branch April 2, 2026 21:31
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

Updates the boost list sign-up display to show ELR based on the player’s laying rate (LayRate) rather than a derived value, aligning the UI with the intended ELR interpretation used elsewhere in boost ordering.

Changes:

  • Changed the ELR label formatting in DrawBoostList to use b.ArtifactSet.LayRate instead of min(LayRate, ShipRate) for one rendering path.

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

Comment on lines 363 to 366
sortRate := ""
if contract.State == ContractStateSignup && contract.BoostOrder == ContractOrderELR {
sortRate = fmt.Sprintf(" **ELR:%2.3f** ", min(b.ArtifactSet.LayRate, b.ArtifactSet.ShipRate))
sortRate = fmt.Sprintf(" **ELR:%2.3f** ", b.ArtifactSet.LayRate)
}
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

This update changes ELR display to use LayRate here, but other ELR display paths in the same function still use min(LayRate, ShipRate) (e.g., when rendering the lateList / main orderSubset). That will result in inconsistent ELR values depending on which slice of the list a booster appears in and doesn't fully match the PR intent. Please update the other ELR formatting occurrences in DrawBoostList to use LayRate as well (or centralize the ELR display calculation in a helper) so the UI is consistent.

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