Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree picker dts #1686

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Tree picker dts #1686

merged 1 commit into from
Sep 28, 2023

Conversation

chaofan232
Copy link
Contributor

@chaofan232 chaofan232 commented Sep 28, 2023

Description

Does this PR introduce a breaking change?

  • Yes
  • No

Manual testing step?

Screenshots (if appropriate):

@chaofan232 chaofan232 changed the base branch from master to tree-picker September 28, 2023 04:17
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Merging #1686 (58318a4) into tree-picker (17c8910) will not change coverage.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           tree-picker    #1686   +/-   ##
============================================
  Coverage        99.74%   99.74%           
============================================
  Files              102      102           
  Lines             1940     1940           
  Branches           529      529           
============================================
  Hits              1935     1935           
  Misses               5        5           
Files Coverage Δ
src/components/TreePicker/TreePickerHeader.jsx 100.00% <100.00%> (ø)
src/components/TreePicker/TreePickerNode.jsx 100.00% <100.00%> (ø)
src/components/TreePicker/TreePickerTree.jsx 100.00% <ø> (ø)

@@ -19,6 +19,7 @@ const HeaderAddAll = () => {
<Button
variant="link"
className="aui--tree-picker-header-add-all"
dts="add-all-button"
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this

const header = useTreePickerSlice(getCurrentNodeHeader);

const finalLabel = !_.isUndefined(header) ? header : label;

return !finalLabel ? null : (
<div className={cc('aui--tree-picker-row', 'aui--tree-picker-header', className)}>
<div className={cc('aui--tree-picker-row', 'aui--tree-picker-header', className)} dts={dts}>
Copy link
Contributor

Choose a reason for hiding this comment

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

data-test-selector={dts}

Copy link
Contributor

Choose a reason for hiding this comment

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

use the expandDts util for all places

@sonarcloud
Copy link

sonarcloud bot commented Sep 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@xiaofan2406 xiaofan2406 merged commit a915c93 into tree-picker Sep 28, 2023
9 checks passed
@xiaofan2406 xiaofan2406 deleted the tree-picker-dts branch September 28, 2023 05:25
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