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

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

Merged
merged 5 commits into from
Jul 29, 2020

Conversation

glubsy
Copy link
Contributor

@glubsy glubsy commented Jun 30, 2020

  • 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
Owner

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

@glubsy
Copy link
Contributor Author

glubsy commented Jul 1, 2020

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