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

[SoucesTree] Show the host domain first when the debugger opens#2957

Merged
jasonLaster merged 9 commits into
firefox-devtools:masterfrom
Dalimil:showHostDomainFirstOnOpen
Jun 22, 2017
Merged

[SoucesTree] Show the host domain first when the debugger opens#2957
jasonLaster merged 9 commits into
firefox-devtools:masterfrom
Dalimil:showHostDomainFirstOnOpen

Conversation

@Dalimil
Copy link
Copy Markdown
Contributor

@Dalimil Dalimil commented May 18, 2017

Associated Issue: #2448

This seems to work.
But I'm still not sure why the navigate action removes all sources from the state.

@Dalimil Dalimil changed the title Show host domain first on open [SoucesTree] Show the host domain first when the debugger opens May 18, 2017
@jasonLaster
Copy link
Copy Markdown
Contributor

We clear the sources here so that when the user reloads we can get new ones as they stream in:

https://github.com/devtools-html/debugger.html/blob/master/src/reducers/sources.js#L133-L139

We might want to change the action to CONNECT which will avoid the sources clearing

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 21, 2017

Codecov Report

Merging #2957 into master will increase coverage by 0.51%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2957      +/-   ##
==========================================
+ Coverage   62.62%   63.14%   +0.51%     
==========================================
  Files          64       64              
  Lines        2451     2453       +2     
  Branches      502      502              
==========================================
+ Hits         1535     1549      +14     
+ Misses        916      904      -12
Impacted Files Coverage Δ
src/actions/navigation.js 15.38% <66.66%> (+15.38%) ⬆️
src/reducers/sources.js 81.67% <0%> (+3.81%) ⬆️
src/reducers/pause.js 26.38% <0%> (+5.55%) ⬆️
src/reducers/async-requests.js 100% <0%> (+8.33%) ⬆️
src/reducers/event-listeners.js 33.33% <0%> (+11.11%) ⬆️

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 3038ee7...21d1874. Read the comment docs.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 21, 2017

Codecov Report

Merging #2957 into master will increase coverage by 0.53%.
The diff coverage is 90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2957      +/-   ##
==========================================
+ Coverage   47.63%   48.16%   +0.53%     
==========================================
  Files          98       98              
  Lines        4062     4067       +5     
  Branches      837      838       +1     
==========================================
+ Hits         1935     1959      +24     
+ Misses       2127     2108      -19
Impacted Files Coverage Δ
src/client/firefox.js 87.5% <100%> (+0.83%) ⬆️
src/utils/sources-tree.js 92.46% <100%> (+4.96%) ⬆️
src/actions/navigation.js 15.38% <66.66%> (+15.38%) ⬆️
src/reducers/sources.js 81.75% <0%> (+3.37%) ⬆️
src/reducers/pause.js 35.06% <0%> (+5.19%) ⬆️
src/reducers/async-requests.js 100% <0%> (+8.33%) ⬆️
src/reducers/event-listeners.js 33.33% <0%> (+11.11%) ⬆️

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 36a8263...dc13c95. Read the comment docs.

@codehag codehag force-pushed the showHostDomainFirstOnOpen branch from 21d1874 to 40e4614 Compare June 21, 2017 11:04
@codehag
Copy link
Copy Markdown
Contributor

codehag commented Jun 21, 2017

Looks great! Just fixed up the test and rebased it off master to have the most recent changes. Thanks!

Comment thread src/actions/navigation.js
};
}

export function navigate(url) {
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.

👍

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.

Good changes! The navigate change is a little out of scope but I dig it. Especially with the tests too. 😄

@jasonLaster jasonLaster merged commit 8c93fb9 into firefox-devtools:master Jun 22, 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