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

Render diffs in Compare page #385

Merged
merged 3 commits into from
Mar 15, 2019
Merged

Render diffs in Compare page #385

merged 3 commits into from
Mar 15, 2019

Conversation

willdurand
Copy link
Member

@willdurand willdurand commented Mar 12, 2019

Fixes #292
Fixes #362
⚠️ depends on #374


This patch adds the logic for rendering diffs between two versions of an add-on. It handles errors and loading state.

Gif

2019-03-13 13 24 33

@codecov-io
Copy link

codecov-io commented Mar 12, 2019

Codecov Report

Merging #385 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #385      +/-   ##
==========================================
+ Coverage   96.97%   97.02%   +0.04%     
==========================================
  Files          35       35              
  Lines         662      673      +11     
  Branches      148      152       +4     
==========================================
+ Hits          642      653      +11     
+ Misses         19       18       -1     
- Partials        1        2       +1
Impacted Files Coverage Δ
src/pages/Index/index.tsx 100% <ø> (ø) ⬆️
src/pages/Compare/index.tsx 97.22% <100%> (-2.78%) ⬇️
src/reducers/versions.tsx 98.24% <0%> (+0.87%) ⬆️

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 5c11fdf...ad82f04. Read the comment docs.

@willdurand willdurand mentioned this pull request Mar 12, 2019
@willdurand willdurand force-pushed the render-diff branch 9 times, most recently from 34ac4cf to 34b1c08 Compare March 13, 2019 12:42
@willdurand willdurand marked this pull request as ready for review March 13, 2019 12:43
@willdurand
Copy link
Member Author

This is also ready :)

@willdurand
Copy link
Member Author

rebased!

Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

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

This will be easier to review when #374 lands but I had a few comments.

src/pages/Compare/index.tsx Outdated Show resolved Hide resolved
src/pages/Compare/index.tsx Show resolved Hide resolved
Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

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

I took a quick look but I can review more later.

src/pages/Compare/index.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@kumar303 kumar303 left a comment

Choose a reason for hiding this comment

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

r+wc

src/pages/Compare/index.tsx Show resolved Hide resolved
src/pages/Compare/index.spec.tsx Show resolved Hide resolved
src/pages/Compare/index.tsx Show resolved Hide resolved
@willdurand willdurand merged commit 1686455 into master Mar 15, 2019
@willdurand willdurand deleted the render-diff branch March 15, 2019 09:13
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.

3 participants