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

Improve ignored code block highlighting in compare view #1644

Open
rien opened this issue Nov 15, 2024 · 0 comments
Open

Improve ignored code block highlighting in compare view #1644

rien opened this issue Nov 15, 2024 · 0 comments
Labels

Comments

@rien
Copy link
Member

rien commented Nov 15, 2024

The current compare view that shows matches now also shows ignored code blocks due to template code. Below shows an example where Dolos ignores code if it is prevalent in 30% of the submissions:

Image

For some users it might not be immediately clear that the grey highlights signify ignored code blocks. We should present this in a way that is clear and accessible (catering for colorblindness as well).

One option is showing a legend clarifying the meaning of the colors.

Another option could be to show tooltips that reveal extra information about a block or multiple blocks when hovering over them:

  • Whether this block is ignored or not, including the reason why (template code, automatically detected)
  • The length of the current block (in kgrams)
  • The number of submissions that match with this code block
  • The underlying kgram data - however this can potentially become very large and cluttered.
@rien rien added the web UI label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant