Skip to content

Add maxValue to label evaluation methods#10

Open
LuizCristino wants to merge 2 commits intoTappNetwork:mainfrom
LuizCristino:patch-1
Open

Add maxValue to label evaluation methods#10
LuizCristino wants to merge 2 commits intoTappNetwork:mainfrom
LuizCristino:patch-1

Conversation

@LuizCristino
Copy link
Copy Markdown

Details

This pull request updates the label evaluation logic in the ProgressBarColumn component to provide more context when generating danger, warning, and success labels. Specifically, the maximum value of the progress bar is now passed to the label evaluation functions, allowing for more dynamic and context-aware label rendering.

Label evaluation improvements:

  • The getDangerLabel, getWarningLabel, and getSuccessLabel methods in ProgressBarColumn.php now include the maxValue (retrieved via getMaxValue()) in the array passed to the label evaluation callback. This enables label logic to consider both the current value and the maximum value when determining the appropriate label. [1] [2] [3]

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.

1 participant