Skip to content

Add VE button to Path column in XML Tag Validation grid#4471

Merged
ravirk91 merged 3 commits into
masterfrom
bugfix/issue_57100
Mar 26, 2026
Merged

Add VE button to Path column in XML Tag Validation grid#4471
ravirk91 merged 3 commits into
masterfrom
bugfix/issue_57100

Conversation

@tanushahande2003

@tanushahande2003 tanushahande2003 commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Added a "..." button to each row in the Path column of the DynamicParametersGrid in ActXMLValidateTagsEditPage. Clicking the button opens the Value Expression Editor for the "Param" field of the selected row. Updated the event handler to support editing the correct field based on the button's Tag property.

Description

Type of Change

  • Bug fix - [ ] New feature - [ ] Breaking change - [ ] Plugin update

Checklist

  • PR description clearly describes the changes
  • Target branch is correct (master for features, Releases/* for fixes)
  • Latest code from target branch merged
  • No commented/junk code included
  • No new build warnings or errors
  • All existing unit tests pass
  • New unit tests added for new functionality
  • Cross-platform compatibility verified (Windows/Linux/macOS)
  • CI/CD pipeline passes
  • Code follows project conventions (Act{Platform}{Type}, {Platform}Driver)
  • Repository objects use [IsSerializedForLocalRepository] where needed
  • Error handling uses Reporter.ToLog() pattern
  • Documentation updated for user-facing changes
  • Self-review completed and code review comments addressed

Summary by CodeRabbit

  • New Features

    • Added a compact button control in the XML validation tags editor for quicker value-expression access.
  • Bug Fixes

    • Added null-safety checks to the value-expression editor to prevent errors when no grid item is selected.
  • Improvements

    • Improved handling of field selection and parameter resolution when opening the value-expression editor.

Added a "..." button to each row in the Path column of the DynamicParametersGrid in ActXMLValidateTagsEditPage. Clicking the button opens the Value Expression Editor for the "Param" field of the selected row. Updated the event handler to support editing the correct field based on the button's Tag property.
@coderabbitai

coderabbitai Bot commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f603f196-d614-4339-9085-19824b401812

📥 Commits

Reviewing files that changed from the base of the PR and between bbe7d48 and ba2e5f6.

📒 Files selected for processing (1)
  • Ginger/Ginger/Actions/ActionEditPages/XML/ActXMLValidateTagsEditPage .xaml.cs

Walkthrough

Added a DataTemplate resource for a compact "Path" value-expression button and inserted a template column into the inputs grid; the click handler now null-checks the grid item and derives the target field name from the button Tag before opening the ValueExpressionEditorPage.

Changes

Cohort / File(s) Summary
XML Validation Tags Edit Page
Ginger/Ginger/Actions/ActionEditPages/XML/ActXMLValidateTagsEditPage.xaml, Ginger/Ginger/Actions/ActionEditPages/XML/ActXMLValidateTagsEditPage.xaml.cs
Added PathVEButton DataTemplate (styled button wired to InputGridVEButton_Click). Inserted a template column (ellipsis button) between Path and Attribute columns. Updated click handler to early-return on null grid item and to compute target field name from Button.Tag (fallback to nameof(ActInputValue.Value)) before opening the editor.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰
A tiny button peeks between the rows,
I tap its tag and off the editor goes,
With guards in place and fields in sight,
XML whispers, tidy and right,
Hopping through code with a joyful bite!

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive The description explains the changes and includes the template, but all checklist items are unchecked and no type of change is selected, indicating incomplete compliance with repository requirements. Select the appropriate type of change, complete the checklist by verifying requirements, and confirm testing and documentation status.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding a VE button to the Path column in the XML Tag Validation grid, which aligns with the code modifications shown in the raw summary.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bugfix/issue_57100

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@Ginger/Ginger/Actions/ActionEditPages/XML/ActXMLValidateTagsEditPage`
.xaml.cs:
- Line 97: The code currently returns silently when AIV is null; update the
conditional that contains "if (AIV == null) return;" (in the
ActXMLValidateTagsEditPage .xaml.cs method where AIV is checked) to log an error
before returning by calling Reporter.ToLog(eLogLevel.ERROR,
"ActXMLValidateTagsEditPage: AIV is null, aborting operation") (or a similar
contextual message) so the null-row path is recorded for supportability.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 720212cc-2f44-4a17-b781-e987b9534b01

📥 Commits

Reviewing files that changed from the base of the PR and between 4921559 and bbe7d48.

📒 Files selected for processing (2)
  • Ginger/Ginger/Actions/ActionEditPages/XML/ActXMLValidateTagsEditPage .xaml
  • Ginger/Ginger/Actions/ActionEditPages/XML/ActXMLValidateTagsEditPage .xaml.cs

Comment thread Ginger/Ginger/Actions/ActionEditPages/XML/ActXMLValidateTagsEditPage .xaml.cs Outdated
Expanded the null check for ActInputValue (AIV) in the InputGridVEButton_Click event handler to use braces, improving code readability and consistency without changing functionality.
@ravirk91
ravirk91 merged commit 0ea14c4 into master Mar 26, 2026
14 checks passed
@ravirk91
ravirk91 deleted the bugfix/issue_57100 branch March 26, 2026 06:02
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