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

Add filename, line number, better collapsibility to annotations #1617

Merged
merged 42 commits into from
Oct 27, 2022

Conversation

damianhxy
Copy link
Member

@damianhxy damianhxy commented Sep 29, 2022

Description

  • Allow multiple problems open at once, fix stutter for initial open
  • Add file name to annotations
  • Add line number to annotations
  • Add open / close arrows next to category name
  • Use jquery load to refresh annotations
  • Make scores in annotations and grades tabs 2 d.p.
  • Make default annotation score 0, set type to number
  • Remove some dead code
  • Validate against missing annotation scores
  • Fix annotation-box badge color updates for score 0 annotations (previously, if you update an annotation that had score 0, the "badge" turns green instead of staying gray)

Motivation and Context

Initial work for generalized feedback.

How Has This Been Tested?

  • Create an assessment that accepts tar files
  • Submit a tar file (e.g. hello.tar)
  • Create annotations, taking note that
    • Annotations appearance is consistent after updates (add / delete)
    • Annotations are still clickable (and bring you to its location) after updates
    • Annotations are grouped by filename
    • Line numbers appear for annotations
    • Multiple categories can be open at once
    • No more stuttering when collapsing a category
    • It is no longer possible to create an annotation without a score
    • Creating, then updating annotations with -ve, 0, +ve scores preserve the "badge colors" in annotation boxes as expected

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have run rubocop for style check. If you haven't, run overcommit --install && overcommit --sign to use pre-commit hook for linting

@damianhxy damianhxy changed the title [WIP] Generalized feedback Add filename, line number, better collapsibility to annotations Oct 7, 2022
@damianhxy damianhxy marked this pull request as ready for review October 7, 2022 04:57
20wildmanj and others added 3 commits October 23, 2022 14:46
* - fix submission summary/history table to fill up horizontal space, but still overflow properly
  - only show link to full submission history table if submissions exceed summary view limit
* - make "Download Submission" and "View Source" into buttons
* Vertically center-align icon and text
* add spaces, move view source to be above download submission
Copy link
Contributor

@michellexliu michellexliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@damianhxy damianhxy merged commit 218f8b9 into master Oct 27, 2022
@damianhxy damianhxy deleted the generalized-feedback branch October 27, 2022 04:26
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.

4 participants