Skip to content

[SS-2126,2127] DQ : Add bulk checks and Minor UI Changes#377

Merged
utkarsh14 merged 4 commits intodevfrom
dq_ui
Aug 14, 2025
Merged

[SS-2126,2127] DQ : Add bulk checks and Minor UI Changes#377
utkarsh14 merged 4 commits intodevfrom
dq_ui

Conversation

@utkarsh14
Copy link
Collaborator

[SS-2126,2127] DQ : Add bulk checks and Minor UI Changes

Ticket

Fixes: SS-2126: DQ: UI/UX Changes & SS-2127: DQ : Bulk add option for mismatches, protocol violations etc

Description, Motivation and Context

  • Added a 'Bulk Add' option for mismatches. protocol violations, constraint, outlier etc.
  • Performed minor UI changes, table borders, custom buttons and optional text in placeholder
  • Copy changes for logic checks

How Has This Been Tested?

Local

UI Changes

  • Add screenshots or Loom videos here
  • Add links to relevant Figma files

To-do before merge

  • Ensure Backend changes for bulk add checks API are merged

Checklist:

This checklist is a useful reminder of small things that can easily be forgotten.
Put an x in all the items that apply and remove any items that are not relevant to this PR.

  • My code follows the style guidelines of this project
  • I have reviewed my own code to ensure good quality
  • I have tested the functionality of my code to ensure it works as intended
  • I have resolved merge conflicts
  • I have updated the automated tests (if applicable)
  • I have written [good commit messages][1]
  • I have updated the README file (if applicable)
  • I have updated affected documentation (if applicable)

@utkarsh14 utkarsh14 requested a review from Copilot August 8, 2025 06:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds bulk operations for DQ (Data Quality) checks and implements various UI/UX improvements across the DQ checks management interface. The changes include adding a bulk add feature for creating multiple DQ checks simultaneously, improving table functionality with filtering and sorting capabilities, and making minor UI enhancements like consistent styling and better user guidance.

Key changes include:

  • Implementation of bulk add functionality for DQ checks using a new API endpoint
  • Enhanced table features with column filters, sorting controls, and a clear button
  • UI improvements including consistent button styling, improved descriptions with documentation links, and better field labeling

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/redux/dqChecks/apiService.ts Adds new postDQChecksBulk API function for bulk operations
src/modules/DQ/DQChecks/DQChecksHome.tsx Simplifies component logic by auto-redirecting to manage page
src/modules/DQ/DQChecks/DQChecksManage.tsx Updates table headers and adds documentation links
src/modules/DQ/DQChecks/DQCheckGroup*.tsx Implements bulk add functionality, table enhancements, and UI improvements across all check group components
src/components/DQCheckDrawer/*.tsx Adds bulk mode support with multi-select capabilities and improved form labeling

sorter: (a: any, b: any) => a.questionName.localeCompare(b.questionName),
render: (questionName: any, record: any) =>
questionName + (record.isRepeatGroup ? "_*" : ""),
rfilters: dqCheckData?.map((record: any) => ({
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

The property name 'rfilters' appears to be a typo. It should be 'filters' to match the other column definitions.

Suggested change
rfilters: dqCheckData?.map((record: any) => ({
filters: dqCheckData?.map((record: any) => ({

Copilot uses AI. Check for mistakes.
setDrawerMode("single");
setDrawerData(selectedVariableRows[0]);
showAddManualDrawer();
setDrawerData(null);
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

Setting drawerData to null in handleEditCheck will clear the data that should be passed to the drawer for editing. This line should be removed since the drawer needs the selected row data.

Suggested change
setDrawerData(null);

Copilot uses AI. Check for mistakes.
setDrawerMode("single");
setDrawerData(selectedVariableRows[0]);
showAddManualDrawer();
setDrawerData(null);
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

Setting drawerData to null in handleEditCheck will clear the data that should be passed to the drawer for editing. This line should be removed since the drawer needs the selected row data.

Suggested change
setDrawerData(null);

Copilot uses AI. Check for mistakes.
setDrawerMode("single");
setDrawerData(selectedVariableRows[0]);
showAddManualDrawer();
setDrawerData(null);
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

Setting drawerData to null in handleEditCheck will clear the data that should be passed to the drawer for editing. This line should be removed since the drawer needs the selected row data.

Suggested change
setDrawerData(null);

Copilot uses AI. Check for mistakes.
<>
This check verifies whether certain continuous variables contain
outliers, where an outlier is defined to be a certain multiple
of the IQR or SD or as values beyond a given percentile.{""}
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

There's an empty string concatenation that appears to be a typo. The text should end with a space before the DescriptionLink component.

Suggested change
of the IQR or SD or as values beyond a given percentile.{""}
of the IQR or SD or as values beyond a given percentile.{" "}

Copilot uses AI. Check for mistakes.
@utkarsh14 utkarsh14 requested a review from jeenut27 August 11, 2025 13:58
Copy link
Collaborator

@jeenut27 jeenut27 left a comment

Choose a reason for hiding this comment

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

Thank Utkarsh. Just a minor nit: Can you change the drawer header "Add Bulk DQ Checks" to "Add DQ Checks in Bulk" and change the button to "Bulk Add" instead of "Add Bulk". Rest looks good

@utkarsh14 utkarsh14 merged commit c3dda63 into dev Aug 14, 2025
3 checks passed
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

Comments