Skip to content

Update components for conditional format testing#2685

Merged
labkey-chrisj merged 15 commits intodevelopfrom
fb_conditional_format_apps
Sep 26, 2025
Merged

Update components for conditional format testing#2685
labkey-chrisj merged 15 commits intodevelopfrom
fb_conditional_format_apps

Conversation

@labkey-chrisj
Copy link
Contributor

@labkey-chrisj labkey-chrisj commented Sep 11, 2025

Rationale

This change makes minor changes to existing components to support better/easier testing of conditional formatting

Related Pull Requests

https://github.com/LabKey/limsModules/pull/1662

Changes

-make DetailTable aware of format pills
-make GridRow aware of format pills
-allow ConditionalFormatDialog to take a ConditionalFormat

@labkey-chrisj labkey-chrisj self-assigned this Sep 11, 2025
@labkey-chrisj labkey-chrisj marked this pull request as draft September 11, 2025 20:38
@labkey-chrisj labkey-chrisj marked this pull request as ready for review September 12, 2025 19:11
Copy link
Contributor

@labkey-danield labkey-danield left a comment

Choose a reason for hiding this comment

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

Looks ok.
Are you going to be adding tests here in testAutomation for the conditional format dialog?

@labkey-chrisj
Copy link
Contributor Author

Looks ok. Are you going to be adding tests here in testAutomation for the conditional format dialog?

My plan was to add those in the current test, and do verifications both in-app and in-lks

Comment on lines +33 to +44
if (i==0)
{
setFirstCondition(filterCondition.getOperator());
if (filterCondition.getValue() != null)
setFirstValue(filterCondition.getValue().toString());
}
if (i==1)
{
setSecondCondition(filterCondition.getOperator());
if (filterCondition.getValue() != null)
setSecondValue(filterCondition.getValue().toString());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this really just an if / else condition? Isn't the limit is two conditions at most? If i != 0 then you have to be setting the second one.

@labkey-chrisj labkey-chrisj merged commit c61f58a into develop Sep 26, 2025
6 checks passed
@labkey-chrisj labkey-chrisj deleted the fb_conditional_format_apps branch September 26, 2025 15:59
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