Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Convert Autocomplete, ResultList, and SearchInput to JSX#3582

Merged
wldcordeiro merged 1 commit into
firefox-devtools:masterfrom
darkwing:autocomplete-resultlist-searchinput-jsx
Aug 10, 2017
Merged

Convert Autocomplete, ResultList, and SearchInput to JSX#3582
wldcordeiro merged 1 commit into
firefox-devtools:masterfrom
darkwing:autocomplete-resultlist-searchinput-jsx

Conversation

@darkwing
Copy link
Copy Markdown
Contributor

@darkwing darkwing commented Aug 6, 2017

@darkwing darkwing force-pushed the autocomplete-resultlist-searchinput-jsx branch 2 times, most recently from 01b2c3b to 3fa111f Compare August 6, 2017 12:01
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 6, 2017

Codecov Report

Merging #3582 into master will decrease coverage by <.01%.
The diff coverage is 40%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3582      +/-   ##
==========================================
- Coverage   52.57%   52.56%   -0.01%     
==========================================
  Files         119      119              
  Lines        4649     4651       +2     
  Branches      958      957       -1     
==========================================
+ Hits         2444     2445       +1     
- Misses       2205     2206       +1
Impacted Files Coverage Δ
src/components/shared/SearchInput.js 7.69% <0%> (-0.65%) ⬇️
src/components/shared/ResultList.js 100% <100%> (ø) ⬆️
src/actions/ast.js 78.57% <0%> (+1.78%) ⬆️

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 f0c18f6...3fa111f. Read the comment docs.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 6, 2017

Codecov Report

Merging #3582 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3582      +/-   ##
==========================================
+ Coverage   54.53%   54.56%   +0.02%     
==========================================
  Files         120      120              
  Lines        4747     4750       +3     
  Branches      982      981       -1     
==========================================
+ Hits         2589     2592       +3     
  Misses       2158     2158
Impacted Files Coverage Δ
src/components/shared/ResultList.js 100% <100%> (ø) ⬆️
src/components/shared/SearchInput.js 93.33% <100%> (+0.74%) ⬆️

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 1778353...fb4f825. Read the comment docs.

Copy link
Copy Markdown
Contributor

@jasonLaster jasonLaster left a comment

Choose a reason for hiding this comment

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

One question. Looks great.

Comment thread src/components/shared/SearchInput.js Outdated
};

return (
<div className="search-field {size || ''}">
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.

shouldn't it be this: {"search-field ${size || ''}"}

I'm still new at this game

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.

<div className={classnames("search-field", { size })}> would be even cleaner.

@darkwing darkwing force-pushed the autocomplete-resultlist-searchinput-jsx branch from 3fa111f to 7dfdcb1 Compare August 7, 2017 15:24
@darkwing
Copy link
Copy Markdown
Contributor Author

darkwing commented Aug 7, 2017

Good shout; updated!

@darkwing darkwing force-pushed the autocomplete-resultlist-searchinput-jsx branch 4 times, most recently from f8a80fa to 4ffbf49 Compare August 9, 2017 01:38
@darkwing
Copy link
Copy Markdown
Contributor Author

darkwing commented Aug 9, 2017

This PR keeps choking on an old snapshot; how can I generate a new one for the updated components?

@zaggy
Copy link
Copy Markdown
Contributor

zaggy commented Aug 9, 2017

@darkwing jest --updateSnapshot

@wldcordeiro
Copy link
Copy Markdown
Contributor

@zaggy that option is also available as -u 😄 and you can have yarn run it for you with yarn test -- -u

@darkwing darkwing force-pushed the autocomplete-resultlist-searchinput-jsx branch 2 times, most recently from 34565b7 to fb4f825 Compare August 10, 2017 01:09
@darkwing
Copy link
Copy Markdown
Contributor Author

Tests passing with snapshot update, should be good to go

Copy link
Copy Markdown
Contributor

@wldcordeiro wldcordeiro left a comment

Choose a reason for hiding this comment

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

Awesome @darkwing! Thanks for all the help with the JSX conversions.

@wldcordeiro wldcordeiro merged commit 6ebb3de into firefox-devtools:master Aug 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants