Skip to content

Enhancement/64656 need to allow table actions#4498

Merged
rathimayur merged 3 commits into
masterfrom
enhancement/64656_need-to-allow-table-actions
Jun 8, 2026
Merged

Enhancement/64656 need to allow table actions#4498
rathimayur merged 3 commits into
masterfrom
enhancement/64656_need-to-allow-table-actions

Conversation

@tanushahande2003

@tanushahande2003 tanushahande2003 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

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

Release Notes

  • New Features

    • Added value expression editor access for table column selectors and where clause inputs.
  • Style

    • Improved layout organization of column and row selector controls.
    • Enhanced spacing and arrangement in the where input area.

tanushah added 2 commits June 8, 2026 15:07
Refactored layout to group ComboBoxes with "..." buttons for value expression editing. Added buttons and handlers for column value and "Where" column title fields to open ValueExpressionEditorPage. Improved margins and consistency in XAML.
@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

ActTableEditPage redesigns column, row, and where-clause selector controls to use DockPanel layouts with right-docked expression editor buttons, and adds corresponding event handlers that launch ValueExpressionEditorPage dialogs to edit the underlying ActTableElement fields.

Changes

ActTableEditPage Expression Editor Integration

Layer / File(s) Summary
Column, Row, and Where selector UI layout restructuring
Ginger/Ginger/Actions/ActionEditPages/ActTableEditPage.xaml
Column selector wrapped in DockPanel with right-docked "..." button; Row selector simplified to single DockPanel with right-docked button and margin-adjusted combo box; Where panel reorganized with WhereColumnTitle in DockPanel alongside right-docked button, including updated spacing adjustments.
Expression editor click event handlers
Ginger/Ginger/Actions/ActionEditPages/ActTableEditPage.xaml.cs
Added ColumnValueVE_Click and WhereColumnTitleVE_Click handlers that open ValueExpressionEditorPage dialogs for LocateColTitle and WhereColumnTitle fields, sync edited expressions back to UI textboxes, refresh description details, and trigger related action updates in WindowExplorer context.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • Ginger-Automation/Ginger#4471: Both PRs add/handle "..." Value Expression editor buttons that open ValueExpressionEditorPage and map which Act field to edit (via handler logic and Button.Tag/control text) in their respective edit pages.

Suggested reviewers

  • ravirk91

Poem

🐰 A table edit page takes flight,
DockPanels align the buttons right,
Where clauses and columns gleam,
Expression editors fulfill the dream!

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (2 warnings, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description contains only the repository template with no additional prose describing the functional changes; all checklist items are unchecked and no actual description of modifications is provided. Fill in the Description section with details about the XAML layout restructuring and new event handlers, mark applicable checklist items, and verify target branch and build status.
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.
Title check ❓ Inconclusive The title partially relates to the changeset by referencing table actions, but it is overly broad and vague, not clearly summarizing the specific UI/layout enhancements and new event handlers added to the ActTableEditPage. Revise the title to be more specific about the actual changes, such as 'Add table action value expression editors and refactor UI layouts' to clearly communicate the main modifications.
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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 enhancement/64656_need-to-allow-table-actions

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: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.gitignore:
- Line 337: The current .gitignore entry lists the specific generated filename
"Ginger_dsbf4hog_wpftmp.csproj"; change that rule to a wildcard pattern that
covers all temporary WPF project files (e.g., replace the specific filename
entry with a pattern like "*_wpftmp.csproj" or "**/*_wpftmp.csproj") so future
variants don’t get committed.

In `@Ginger/Ginger/Actions/ActionEditPages/ActTableEditPage.xaml.cs`:
- Around line 797-809: After ValueExpressionEditorPage closes in
ColumnValueVE_Click and WhereColumnTitleVE_Click, programmatic updates to
cmbColumnValue.Text and WhereColumnTitle.Text don't trigger downstream
recalculation; after setting the Text and updating mAct, call the component
methods that recompute derived state (e.g., UpdateRelatedActions() and
SetDescriptionDetails()) so the UI and dependent logic refresh immediately.
Locate ColumnValueVE_Click and WhereColumnTitleVE_Click (they instantiate
ValueExpressionEditorPage and assign cmbColumnValue.Text / WhereColumnTitle.Text
from mAct) and add calls to UpdateRelatedActions() and SetDescriptionDetails()
right after those assignments to ensure state is refreshed.
🪄 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: 998c6f99-dbe9-4f1d-96cd-4d6a8693f482

📥 Commits

Reviewing files that changed from the base of the PR and between 0ae0c23 and 1bd93b7.

📒 Files selected for processing (3)
  • .gitignore
  • Ginger/Ginger/Actions/ActionEditPages/ActTableEditPage.xaml
  • Ginger/Ginger/Actions/ActionEditPages/ActTableEditPage.xaml.cs

Comment thread .gitignore Outdated
/Ginger/GingerTest/GingerTest.GeneratedMSBuildEditorConfig.editorconfig
*.DS_Store
/Ginger-Automation/Ginger
/Ginger/Ginger/Ginger_dsbf4hog_wpftmp.csproj

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.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Generalize the temporary WPF project ignore pattern.

This ignore rule is too specific to one generated filename; future *_wpftmp.csproj variants may still leak into git history. Prefer a stable wildcard pattern for this temp artifact class.

Suggested change
-/Ginger/Ginger/Ginger_dsbf4hog_wpftmp.csproj
+/Ginger/Ginger/*_wpftmp.csproj
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
/Ginger/Ginger/Ginger_dsbf4hog_wpftmp.csproj
/Ginger/Ginger/*_wpftmp.csproj
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.gitignore at line 337, The current .gitignore entry lists the specific
generated filename "Ginger_dsbf4hog_wpftmp.csproj"; change that rule to a
wildcard pattern that covers all temporary WPF project files (e.g., replace the
specific filename entry with a pattern like "*_wpftmp.csproj" or
"**/*_wpftmp.csproj") so future variants don’t get committed.

Comment thread Ginger/Ginger/Actions/ActionEditPages/ActTableEditPage.xaml.cs
@codacy-production

codacy-production Bot commented Jun 8, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Added SetDescriptionDetails() and conditional UpdateRelatedActions() calls to ColumnValueVE_Click and WhereColumnTitleVE_Click handlers. This ensures UI description details and related actions are updated after editing value expressions, improving consistency in the ActTableEditPage.

@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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
Ginger/Ginger/Actions/ActionEditPages/ActTableEditPage.xaml.cs (1)

790-795: 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win

Apply the same state-refresh pattern for consistency.

The RowSelectorValueVE_Click handler updates the text field but doesn't refresh derived state, similar to the issue that was just fixed in ColumnValueVE_Click and WhereColumnTitleVE_Click. For consistency, consider adding the same refresh calls here.

♻️ Suggested consistency fix
 private void RowSelectorValueVE_Click(object sender, RoutedEventArgs e)
 {
     ValueExpressionEditorPage w = new ValueExpressionEditorPage(mAct, ActTableElement.Fields.LocateRowValue, Context.GetAsContext(mAct.Context));
     w.ShowAsWindow(eWindowShowStyle.Dialog);
     RowSelectorValue.Text = mAct.LocateRowValue;
+    SetDescriptionDetails();
+    if (eBaseWindow.Equals(BaseWindow.WindowExplorer))
+    {
+        UpdateRelatedActions();
+    }
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Ginger/Ginger/Actions/ActionEditPages/ActTableEditPage.xaml.cs` around lines
790 - 795, The RowSelectorValueVE_Click handler updates RowSelectorValue.Text
but doesn't refresh derived UI/state; modify
ActTableEditPage.RowSelectorValueVE_Click to invoke the same refresh/update
calls used in ColumnValueVE_Click and WhereColumnTitleVE_Click after setting
mAct.LocateRowValue/RowSelectorValue.Text (i.e., copy the same
RefreshControls/RefreshBindings/UpdateDerivedState method calls those handlers
use) so the derived state is recomputed and the UI stays consistent.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@Ginger/Ginger/Actions/ActionEditPages/ActTableEditPage.xaml.cs`:
- Around line 790-795: The RowSelectorValueVE_Click handler updates
RowSelectorValue.Text but doesn't refresh derived UI/state; modify
ActTableEditPage.RowSelectorValueVE_Click to invoke the same refresh/update
calls used in ColumnValueVE_Click and WhereColumnTitleVE_Click after setting
mAct.LocateRowValue/RowSelectorValue.Text (i.e., copy the same
RefreshControls/RefreshBindings/UpdateDerivedState method calls those handlers
use) so the derived state is recomputed and the UI stays consistent.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c0bdbfce-a62e-4108-adcb-0e7f4f8dba10

📥 Commits

Reviewing files that changed from the base of the PR and between 1bd93b7 and 48cb755.

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

@rathimayur
rathimayur merged commit bd9750a into master Jun 8, 2026
14 checks passed
@rathimayur
rathimayur deleted the enhancement/64656_need-to-allow-table-actions branch June 8, 2026 11:14
@coderabbitai coderabbitai Bot mentioned this pull request Jun 17, 2026
15 tasks
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