Skip to content

Assignment view students#7533

Merged
david-yz-liu merged 20 commits intoMarkUsProject:masterfrom
chickenwaddle77:assignment-view-students
Jun 6, 2025
Merged

Assignment view students#7533
david-yz-liu merged 20 commits intoMarkUsProject:masterfrom
chickenwaddle77:assignment-view-students

Conversation

@chickenwaddle77
Copy link
Copy Markdown
Contributor

@chickenwaddle77 chickenwaddle77 commented May 29, 2025

Proposed Changes

(Describe your changes here. Also describe the motivation for your changes: what problem do they solve, or how do they improve the application or codebase? If this pull request fixes an open issue, use a keyword to link this pull request to the issue.)

Changes implements various updates to the user interface in the Assignments tab when viewed as a Student.

Changes Include:

  1. Changed from "Assignment <short identifier>" to "<short identifier>: <description>".
  2. Changed text in "Policies" section to be written in second-person ("You must complete this assignment individually.").
  3. Make "Required Files" only show when there are files needed.
  4. Moved "Starter Files" subsection to immediately above the "Submissions" subsection.
  5. Modified title so "Files" in "Starter Files" is not capitalised.
  6. Added period to the end of first line in starter files.
  7. Moved to make "<X> files submitted" the first bullet point in "Submissions" and made it link to the "Submissions" tab.
Screenshots of your changes (if applicable) Screenshot 2025-05-29 at 02 49 54
Associated documentation repository pull request (if applicable)

Type of Change

(Write an X or a brief description next to the type or types that best describe your changes.)

Type Applies?
🚨 Breaking change (fix or feature that would cause existing functionality to change)
New feature (non-breaking change that adds functionality)
🐛 Bug fix (non-breaking change that fixes an issue)
🎨 User interface change (change to user interface; provide screenshots) x
♻️ Refactoring (internal change to codebase, without changing functionality)
🚦 Test update (change that only adds or modifies tests)
📦 Dependency update (change that updates a dependency)
🔧 Internal (change that only affects developers or continuous integration)

Checklist

(Complete each of the following items for your pull request. Indicate that you have completed an item by changing the [ ] into a [x] in the raw text, or by clicking on the checkbox in the rendered description on GitHub.)

Before opening your pull request:

  • I have performed a self-review of my changes.
    • Check that all changed files included in this pull request are intentional changes.
    • Check that all changes are relevant to the purpose of this pull request, as described above.
  • I have added tests for my changes, if applicable.
    • This is required for all bug fixes and new features.
  • I have updated the project documentation, if applicable.
    • This is required for new features.
  • If this is my first contribution, I have added myself to the list of contributors.

After opening your pull request:

  • I have updated the project Changelog (this is required for all changes).
  • I have verified that the pre-commit.ci checks have passed.
  • I have verified that the CI tests have passed.
  • I have reviewed the test coverage changes reported by Coveralls.
  • I have requested a review from a project maintainer.

Questions and Comments

(Include any questions or comments you have regarding your changes.)

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented May 29, 2025

Pull Request Test Coverage Report for Build 15480154988

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 91.952%

Totals Coverage Status
Change from base Build 15431638733: 0.0%
Covered Lines: 41939
Relevant Lines: 44925

💛 - Coveralls

Copy link
Copy Markdown
Collaborator

@david-yz-liu david-yz-liu left a comment

Choose a reason for hiding this comment

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

@chickenwaddle77 good work, I just left a few inline comments. Please also do a merge from upstream master, and fix the merge conflict in the Changelog (I don't anticipate this being a large conflict).

Changelog.md Outdated
### 🚨 Breaking changes

### ✨ New features and improvements
- Fix front-end Assignment view for students (#7533)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The word "fix" is a bit misleading, as there wasn't an error before. You can use the verb "Improve" instead. Also, "front-end" and "view" are redundant; I think you can just say "Assignment view" here.

<% end %>

<% content_for :title, "#{Assignment.model_name.human} #{@assignment.short_identifier}" %>
<% content_for :title, "#{@assignment.short_identifier}: #{@assignment.description}" %>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is on the right track, but loses out on distinguishing the "peer review" assignments (see code you deleted that was replaced by "Assignment information". This title should be consistent with that code.

shuffle: Randomly select one top level file or directory from each starter file group
simple: Assign the default starter file group to all students
title: Starter Files
title: Starter files
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This change is good, but a bit tricky because now the word "files" is no longer capitalized in the download button, which isn't good. You might need to do some case conversion in the front-end to make this work.

<ul>
<li><%= link_to t('submissions.student.files_submitted', count: @num_submitted_files),
file_manager_course_assignment_submissions_path(course_id: @assignment.course_id,
assignment_id: @assignment.id)%></li>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

add a space before the %>

Copy link
Copy Markdown
Collaborator

@david-yz-liu david-yz-liu left a comment

Choose a reason for hiding this comment

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

@chickenwaddle77 good work, I just left two small inline comments.

<ul>
<li><%= link_to t('submissions.student.files_submitted', count: @num_submitted_files),
file_manager_course_assignment_submissions_path(course_id: @assignment.course_id,
assignment_id: @assignment.id)%>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think you misunderstood my previous comment: you should add a space before the %>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see what you mean 👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you

Changelog.md Outdated

### ✨ New features and improvements
- Improved layout and labeling in the assignment settings form for both standard and timed assessments. (#7531)
- Improve Assignment view for students (#7533)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is better, but make sure the verb "Improve" is in the past tense to match the style of other entries

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok 👍

Copy link
Copy Markdown
Collaborator

@david-yz-liu david-yz-liu left a comment

Choose a reason for hiding this comment

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

Thanks, @chickenwaddle77!

@david-yz-liu david-yz-liu merged commit dedc070 into MarkUsProject:master Jun 6, 2025
6 checks passed
freyazjiner pushed a commit to freyazjiner/Markus that referenced this pull request Jun 6, 2025
1. Changed from "Assignment <short identifier>" to "<short identifier>: <description>".
2. Changed text in "Policies" section to be written in second-person ("You must complete this assignment individually.").
3. Make "Required Files" only show when there are files needed.
4. Moved "Starter Files" subsection to immediately above the "Submissions" subsection.
5. Modified title so "Files" in "Starter Files" is not capitalised.
6. Added period to the end of first line in starter files.
7. Moved to make "<X> files submitted" the first bullet point in "Submissions" and made it link to the "Submissions" tab.
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.

3 participants