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

Synchronize column ordering between Html\Renderers #900

Merged
merged 1 commit into from
Feb 21, 2022

Conversation

hemberger
Copy link
Contributor

Fixes #827.

The column ordering was reversed in the File renderer compared to the
Directory renderer. This made it a bit confusing when jumping between
directory and file reports.

The File renderer now uses the same column ordering as the Directory
renderer.

Example File report summary from v9.2.11:
image

Example File report summary from this PR:
image

Fixes sebastianbergmann#827.

The column ordering was reversed in the File renderer compared to the
Directory renderer. This made it a bit confusing when jumping between
directory and file reports.

The File renderer now uses the same column ordering as the Directory
renderer.
@codecov
Copy link

codecov bot commented Feb 21, 2022

Codecov Report

Merging #900 (d553d75) into 9.2 (efac078) will decrease coverage by 0.32%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##                9.2     #900      +/-   ##
============================================
- Coverage     83.70%   83.37%   -0.33%     
+ Complexity     1129     1127       -2     
============================================
  Files            59       59              
  Lines          3548     3237     -311     
============================================
- Hits           2970     2699     -271     
+ Misses          578      538      -40     
Impacted Files Coverage Δ
...c/StaticAnalysis/ExecutableLinesFindingVisitor.php 96.29% <0.00%> (-3.71%) ⬇️
src/Report/Text.php 78.47% <0.00%> (-2.16%) ⬇️
src/Report/Xml/Report.php 93.10% <0.00%> (-1.90%) ⬇️
src/Report/PHP.php 87.50% <0.00%> (-1.39%) ⬇️
src/CrapIndex.php 83.33% <0.00%> (-1.29%) ⬇️
src/Report/Xml/Totals.php 95.34% <0.00%> (-1.21%) ⬇️
src/Report/Html/Renderer/File.php 92.77% <0.00%> (-0.77%) ⬇️
src/Report/Xml/BuildInformation.php 92.85% <0.00%> (-0.70%) ⬇️
src/Report/Html/Renderer/Dashboard.php 96.00% <0.00%> (-0.62%) ⬇️
src/Report/Xml/Facade.php 91.59% <0.00%> (-0.60%) ⬇️
... and 19 more

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 efac078...d553d75. Read the comment docs.

@sebastianbergmann sebastianbergmann merged commit 8a56955 into sebastianbergmann:9.2 Feb 21, 2022
@hemberger hemberger deleted the issue827 branch August 19, 2022 16:45
hemberger added a commit to hemberger/php-code-coverage that referenced this pull request Aug 19, 2022
Fixes sebastianbergmann#926.

The first column in the HTML Report will now be colored by the "Lines"
coverage level regardless of view (Directory vs. File) or item type
(Directory, File, Class, or Method).

While this is somewhat a matter of preference, I think the following
arguments support this change:

* Prior to sebastianbergmann#900, the first column was always colored the same as the
  second column. This change restores that pattern since the second
  column is always "Lines" as of sebastianbergmann#900.

* In the File view, the first column for Class and Method items were
  colored by "Class" and "Method" coverage respectively. This meant
  that they were only ever 0/1 or 1/1 (red or green). By switching to
  "Lines" coverage for both, the coloring can be more granular.
sebastianbergmann pushed a commit that referenced this pull request Aug 20, 2022
Fixes #926.

The first column in the HTML Report will now be colored by the "Lines"
coverage level regardless of view (Directory vs. File) or item type
(Directory, File, Class, or Method).

While this is somewhat a matter of preference, I think the following
arguments support this change:

* Prior to #900, the first column was always colored the same as the
  second column. This change restores that pattern since the second
  column is always "Lines" as of #900.

* In the File view, the first column for Class and Method items were
  colored by "Class" and "Method" coverage respectively. This meant
  that they were only ever 0/1 or 1/1 (red or green). By switching to
  "Lines" coverage for both, the coloring can be more granular.
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