Skip to content

Ve 5474 field modifier support for canvas in visual builder#460

Merged
SahilCs15 merged 16 commits intodevelop_v3from
VE-5474-Field-Modifier-support-for-canvas-in-Visual-Builder
Jul 16, 2025
Merged

Ve 5474 field modifier support for canvas in visual builder#460
SahilCs15 merged 16 commits intodevelop_v3from
VE-5474-Field-Modifier-support-for-canvas-in-Visual-Builder

Conversation

@SahilCs15
Copy link
Copy Markdown
Contributor

This PR added support for field modifer in canvas

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 16, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 71.76% 9019 / 12567
🔵 Statements 71.76% 9019 / 12567
🔵 Functions 71.61% 323 / 451
🔵 Branches 84.21% 1131 / 1343
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/visualBuilder/index.ts 56.6% 66.66% 42.85% 56.6% 96-103, 106-110, 113-125, 128-201, 207-239, 247-269, 320-323, 326-327, 377-382
src/visualBuilder/visualBuilder.style.ts 100% 100% 100% 100%
src/visualBuilder/components/FieldLocationAppList.tsx 94.36% 92.3% 100% 94.36% 182-190
src/visualBuilder/components/FieldLocationIcon.tsx 82.81% 100% 33.33% 82.81% 34-40, 60-63
src/visualBuilder/components/FieldToolbar.tsx 77.07% 76.59% 33.33% 77.07% 64-112, 134, 173, 206-223, 244-247, 270-279, 308-316, 324-325, 328-329, 381-387, 399-400, 465, 502, 583-590
src/visualBuilder/components/icons/EmptyAppIcon.tsx 100% 100% 100% 100%
src/visualBuilder/components/icons/index.tsx 76.14% 94.44% 76.47% 76.14% 210-234, 286-312, 331-345, 348-360
src/visualBuilder/generators/generateToolbar.tsx 89.79% 87.09% 83.33% 89.79% 28-29, 87-92, 140-144, 187-188
src/visualBuilder/utils/types/postMessage.types.ts 100% 100% 100% 100%
Generated in workflow #466 for commit 37dccb8 by the Vitest Coverage Report Action




if (!fieldLocationData?.apps || fieldLocationData.apps.length === 0) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (!fieldLocationData?.apps || fieldLocationData.apps.length === 0) {
if (!fieldLocationData?.apps || fieldLocationData?.apps?.length === 0) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

expect(appList).toHaveClass("visual-builder__field-location-app-list");
});

it("should apply correct CSS classes for left position", () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please check how can we better test left/right configuration

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

now it checks visual-builder__field-location-app-list-left and visual-builder__field-location-app-list-right

expect(appList).toHaveClass("visual-builder__field-location-app-list");
});

it("should handle empty apps array", () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please check this if we are hiding the More icon when there is one app or no apps.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this case it not applicable we were rendering the FieldLocationApplist which will not happen if we do not have any apps

}
});

describe("Field Location Dropdown", () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can move these tests to the FieldLocationIcon.test.tsx file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Copy Markdown
Contributor

@faraazb faraazb left a comment

Choose a reason for hiding this comment

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

Looks good!

@SahilCs15 SahilCs15 merged commit 366fc87 into develop_v3 Jul 16, 2025
9 of 10 checks passed
@SahilCs15 SahilCs15 deleted the VE-5474-Field-Modifier-support-for-canvas-in-Visual-Builder branch July 16, 2025 09:33
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.

3 participants