Skip to content

Colorize details table differences, allow moving around of rows#682

Merged
arsenetar merged 5 commits into
arsenetar:masterfrom
glubsy:details_table_tweaks
Jul 29, 2020
Merged

Colorize details table differences, allow moving around of rows#682
arsenetar merged 5 commits into
arsenetar:masterfrom
glubsy:details_table_tweaks

Conversation

@glubsy

@glubsy glubsy commented Jun 30, 2020

Copy link
Copy Markdown
Contributor
  • In the details dialog, the details table view can highlight differences found between the two columns by setting the font to red and bold.
    We ignore the "Dupe count" row since it's not very useful to highlight
    We also Ignore fields when they hold blank values "---" (when only one dupe is selected and displayed)
    Note: this is performing string comparison for each role requested by the view. Couldn't find a more optimized way of doing this.
  • Horizontal headers are restored and replace the first "Attribute" column in order to allow moving around the rows
    2020-06-30_18-43-44
    Perhaps it would be good to add more customization options for the user later.
    Another improvement would be to highlight only the part of a path that differs, but so far I have no idea how to efficiently do that. Might require to do changes to the underlying model.

glubsy added 4 commits June 30, 2020 01:02
* Replaces the "Attribute" column with a horizontal header
* We ignore the first value in each row from the model and instead
populate a horizontal header with the value in order to allow
* Could be better optimized if there is a way to
set those variables earlier in the model or somewhere
in the viewer when it requests the data.
* Right now it compares strings(?) many times for every role
we handle, which is not ideal.
@arsenetar

Copy link
Copy Markdown
Owner

Most of this looks good, there are a few flake8 errors to correct, you can see them in the Travis run.

@glubsy

glubsy commented Jul 1, 2020

Copy link
Copy Markdown
Contributor Author

My bad, should be fixed now.

@arsenetar arsenetar merged commit f02b66f into arsenetar:master Jul 29, 2020
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