Skip to content

feat(ContextSelector): Convert context selector to typescript - #2147

Merged
dlabaj merged 7 commits into
patternfly:masterfrom
jessiehuff:feat/contextSelectorTS
Jun 17, 2019
Merged

feat(ContextSelector): Convert context selector to typescript#2147
dlabaj merged 7 commits into
patternfly:masterfrom
jessiehuff:feat/contextSelectorTS

Conversation

@jessiehuff

Copy link
Copy Markdown
Contributor

Fixes #2146

@patternfly-build

Copy link
Copy Markdown
Collaborator

PatternFly-React preview: https://2147-pr-patternfly-react-patternfly.surge.sh

@codecov-io

codecov-io commented Jun 4, 2019

Copy link
Copy Markdown

Codecov Report

Merging #2147 into master will increase coverage by 0.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2147      +/-   ##
=========================================
+ Coverage   80.59%   80.6%   +0.01%     
=========================================
  Files         666     666              
  Lines        8440    8523      +83     
  Branches      719     737      +18     
=========================================
+ Hits         6802    6870      +68     
- Misses       1280    1288       +8     
- Partials      358     365       +7
Flag Coverage Δ
#patternfly3 85.23% <ø> (ø) ⬆️
#patternfly4 76.26% <75%> (+0.1%) ⬆️
#patternflymisc 95.79% <ø> (ø) ⬆️
Impacted Files Coverage Δ
...nents/ContextSelector/contextSelectorConstants.tsx 100% <100%> (ø)
...mponents/ContextSelector/ContextSelectorToggle.tsx 56.89% <50%> (ø)
...src/components/ContextSelector/ContextSelector.tsx 85.41% <69.23%> (ø)
...components/ContextSelector/ContextSelectorItem.tsx 85% <85.71%> (ø)
...onents/ContextSelector/ContextSelectorMenuList.tsx 94.73% <94.73%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47558f3...354850c. Read the comment docs.

redallen
redallen previously approved these changes Jun 7, 2019

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

A few comments.

onEnterPressed = (event: any) => {
if (event.charCode === KEY_CODES.ENTER) {
this.props.onSearchButtonClick();
this.props.onSearchButtonClick(null);

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.

You shouldn't have to pass null here...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was running into a typescript error about it which is why I added it, but I can make the event argument optional instead so that null isn't passed.

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

LGTM

@dlabaj

dlabaj commented Jun 17, 2019

Copy link
Copy Markdown
Contributor

LGTM

@dlabaj
dlabaj merged commit 9a4f484 into patternfly:master Jun 17, 2019
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.

Convert ContextSelector to Typescript

6 participants