Skip to content

Commit 3af30b2

Browse files
TASK-1828886-3: previous PR review fixes
1 parent c80fc0f commit 3af30b2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

samples/android-cmp-app/src/androidInstrumentedTest/kotlin/com/pega/constellation/sdk/kmp/samples/androidcmpapp/test/cases/EmbeddedDataTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class EmbeddedDataTest : ComposeTest(PegaVersion.v24_2_2) {
4242
onNodeWithText("New Service").performClick()
4343

4444
// verify form title and instruction
45-
waitForNode("ED repeating view editable", substring = true)
45+
waitForNode("ED repeating view editable (", substring = true)
4646
waitForNode("ED repeating view editable & readonly instruction")
4747

4848
// verify repeating views presence
@@ -53,7 +53,7 @@ class EmbeddedDataTest : ComposeTest(PegaVersion.v24_2_2) {
5353
waitUntilExactlyOneExists(hasContentDescription("Delete item 1"))
5454
onNodeWithContentDescription("Delete item 1").performClick()
5555
waitForNodes("No items", count = 2)
56-
waitUntilNodeCount(hasContentDescription("No items"), count = 2)
56+
waitUntilNodeCount(hasContentDescription("No items icon"), count = 2)
5757
onNodeWithText("Add", substring = true).performClick()
5858

5959
// verify error banner

scripts/dxcomponents/components/containers/templates/simple-table-manual.component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class SimpleTableManualComponent extends BaseComponent {
108108
const conditions = this.#calculateConditions(editMode, allowActions, allowTableEdit)
109109

110110
this.referenceListStr = getContext(this.pConn).referenceListStr;
111-
this.props.label = this.pConn.getInheritedProps().label ?? labelProp ?? propertyLabel;
111+
this.props.label = this.pConn.getInheritedProps().label || labelProp || propertyLabel;
112112
this.targetClassLabel = targetClassLabel;
113113
this.props.addButtonLabel = targetClassLabel ? `+ Add ${targetClassLabel}` : "+ Add";
114114
this.referenceList = referenceList.map((element) => {

scripts/dxcomponents/components/containers/view.component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ export class ViewComponent extends ContainerBaseComponent {
7777

7878
const template = this.#resolveTemplateType(configProps);
7979
const label = configProps.label ?? "";
80-
const showLabel = configProps.showLabel || this.DETAILS_TEMPLATES.includes(template) || this.props.showLabel;
81-
80+
const showLabel = (configProps.showLabel || this.DETAILS_TEMPLATES.includes(template)) ?? this.props.showLabel;
81+
const isTemplateWithHeader = !this.NO_HEADER_TEMPLATES.includes(template);
8282
this.props.label = inheritedProps.label ?? label;
83-
this.props.showLabel = (inheritedProps.showLabel ?? showLabel) && !this.NO_HEADER_TEMPLATES.includes(template);
83+
this.props.showLabel = (inheritedProps.showLabel || showLabel) && isTemplateWithHeader;
8484
this.props.visible = configProps.visibility ?? this.props.visible;
8585

8686
if (this.READ_ONLY_DETAILS_TEMPLATES.includes(template)) {

ui-renderer-cmp/src/commonMain/kotlin/com/pega/constellation/sdk/kmp/ui/renderer/cmp/containers/FieldGroupTemplateRenderer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class FieldGroupTemplateRenderer : ComponentRenderer<FieldGroupTemplateComponent
7070
Spacer(modifier = Modifier.size(32.dp))
7171
Icon(
7272
painterResource(Res.drawable.icon_empty_list_48),
73-
"No items",
73+
"No items icon",
7474
Modifier.size(48.dp)
7575
)
7676
Text(stringResource(Res.string.no_items))

0 commit comments

Comments
 (0)