Update formatting of left column in reports #644
Merged
+86
−55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a proposal to adjust the layout of Roborazzi reports a little, addressing some quirks I have found when working with it. Left is before, right is after!
General updates
I adjusted the default width of the report container to account for larger screens. Instead of materialize's default values (90%, max 1280px), it is now 95% with a maximum width of 1440px. Furthermore, the ratio between the left and right columns is now 40-60, a little different to the 30-70 from before. I also added a little fix for contextData: Before this PR, if any contextData has an empty value, then no context data would be shown at all. This is now changed so that only these empty context data entries are filtered out instead.
Show relative path to output directory above each file name
This accounts for use cases where a non-default directory is used to store images. The folder is a little smaller than the file name, too.
Fix display of
contextData
and make it easier to digestFirst of all, fix the missing line break. Furthermore, use a little sub-table to display context data key-value pairs more neatly. Add a cute badge thingy to make this data stand out a bit more.
Fix display of
aiAssertionResults
Another missing line break fix. Use a badge to separate these results from the main file name. Add some tweaks to color and size to achieve hierarchy of information.