Skip to content

Fix default color and icon for state in CustomerGroupRelationManager#2330

Merged
glennjacobs merged 5 commits intolunarphp:1.xfrom
ChaDonSom:patch-1
Nov 11, 2025
Merged

Fix default color and icon for state in CustomerGroupRelationManager#2330
glennjacobs merged 5 commits intolunarphp:1.xfrom
ChaDonSom:patch-1

Conversation

@ChaDonSom
Copy link
Contributor

@ChaDonSom ChaDonSom commented Nov 3, 2025

Add support for when postgres casts booleans to php bool, thereby casting false to an empty string for the match case

Please describe your Pull Request as best as possible, explaining what it provides and why it is of value, referencing any related Issues.

Try to include the following in your Pull Request, where applicable...

  • Documentation updates
  • Automated tests

Add support for when postgres casts booleans to php bool, thereby casting to an empty string for the match case
Copilot AI review requested due to automatic review settings November 3, 2025 17:01
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 adds default cases to two match expressions in the CustomerGroupRelationManager to handle unexpected state values. The changes ensure that when the state doesn't match '0' or '1', the code gracefully defaults to showing a warning color and x-circle icon instead of potentially throwing an error.

  • Added default case handling for color and icon match expressions
  • Ensures graceful degradation for unexpected state values

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

@glennjacobs glennjacobs merged commit b162db0 into lunarphp:1.x Nov 11, 2025
44 checks passed
@ChaDonSom ChaDonSom deleted the patch-1 branch November 11, 2025 17:06
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.

4 participants