Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-data-grid] refactor setFocusedRowCol method in DataGrid.jsx #2076

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

sdadn
Copy link
Contributor

@sdadn sdadn commented Mar 12, 2024

Summary

This PR refactors the setFocusedRowCol method to reduce nested if blocks and redundant execution of if statements. The refactor was done in preparation for #2066 which will add additional logic to this method. This separate PR is to ensure that the functionality of the component remains the same after the refactor and to make reviewing of #2066 easier.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

WDIO data-grid tests are passing successfully after this change:
CleanShot 2024-03-12 at 17 26 40

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-XXXX


Thank you for contributing to Terra.
@cerner/terra

@sdadn sdadn self-assigned this Mar 12, 2024
@github-actions github-actions bot temporarily deployed to preview-pr-2076 March 12, 2024 22:26 Destroyed
Copy link
Contributor

Fails
🚫 Please include a CHANGELOG entry for each changed package this PR. Looks like a CHANGELOG entry is missing for:
  • terra-data-grid

Generated by 🚫 dangerJS against 98662e4

Copy link
Contributor

@adoroshk adoroshk left a comment

Choose a reason for hiding this comment

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

Works as expected. LGTM

@sdadn sdadn merged commit 9e26204 into main Mar 13, 2024
3 of 22 checks passed
@sdadn sdadn deleted the refactor-focus-logic-datagrid branch March 13, 2024 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants