Add VE button to Path column in XML Tag Validation grid#4471
Conversation
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.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdded 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
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (2)
Ginger/Ginger/Actions/ActionEditPages/XML/ActXMLValidateTagsEditPage .xamlGinger/Ginger/Actions/ActionEditPages/XML/ActXMLValidateTagsEditPage .xaml.cs
Expanded the null check for ActInputValue (AIV) in the InputGridVEButton_Click event handler to use braces, improving code readability and consistency without changing functionality.
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
Checklist
[IsSerializedForLocalRepository]where neededReporter.ToLog()patternSummary by CodeRabbit
New Features
Bug Fixes
Improvements