Lint views/courses and fix up run_moss UI #1974
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Summary generated by Reviewpad on 12 Sep 23 19:33 UTC
This pull request includes changes to multiple files. Here is a summary of the modifications:
In
reload.html.erb
, changes are made to the options section. Two list items are replaced with multiline list items. The first list item now includes a link to reload the configuration file with an updated data method. The second list item remains the same.The file
app/views/courses/download_roster.html.erb
has been deleted. It used to contain a loop that prints out various attributes of users in a specific format. The loop iterates over@users
, and each line printed includes the semester, user details, school, major, year, grade policy, lecture, and section.In
report_bug.html.erb
, the indentation of thetext_area_tag
, options for thetext_area_tag
, and options for thesubmit_tag
have been reformatted to improve readability and maintainability of the code.The file
app/views/courses/_updateRosterPreview.html.erb
has undergone several changes, including replacing the closing tag of the checkbox input, changing the syntax of the class attribute in the submit buttons, changing the value of thelocals
hash keysort_status
, and removing an extra new line at the end of the file.Changes in
courses/_usersTable.html.erb
involve removing whitespace and simplifying the conditional statement for displaying user roles.In
app/views/courses/_uploadError.html.erb
, changes include removing the trailing space in the<br />
tag and changing it to<br>
, as well as removing the trailing space in the<table>
tag.The file
app/views/courses/_uploadTable.html.erb
has changes related to formatting and styling, including removing unnecessary spaces in the code, updating attribute styles, and adding a newline at the end of the file.In
index.html.erb
in theapp/views/courses
directory, a link is modified to include a section parameter, and an exception handling block is added for rendering the partialhome/topannounce
.Various changes have been made to improve code formatting and maintainability without affecting the logic or functionality in the modified files.
Changes in
app/views/courses/email.html.erb
include updating variables, wrapping them in<font>
tags with different colors, aligning and indenting the section select options, updating the form tag with the symbol syntax, removing quotes for the table class attribute, and using hash syntax for options and attributes.Changes in
upload_roster.html.erb
involve fixing spacing issues, adjusting indentation, updating routes and form syntax to follow best practices, and adding labels and proper alignment.app/views/components/_dropdown_icon.html.erb
is a new file that adds icons and JavaScript code for toggling visibility of certain elements based on user interaction in the UI.Changes in
users.html.erb
include updating routes, adjusting indentation, and adding attributes for better UX.The file diff includes several changes related to styling updates for the Moss page, including adding new classes, changing backgrounds, and applying padding, margin, and border-radius.
Changes in the file involve updating HTML tags and attributes, adjusting indentation, adding help text, and fixing class attributes.
In
manage.html.erb
, several instances of thelink_to
method have been replaced with updated routing helpers for course and management actions.In
run_moss.html.erb
, changes include updating the heading tag, adding a check for job success, displaying messages and results, and including a heading with command string and result output.The file diff of
app/views/courses/_courseFields.html.erb
includes changes to indentation, formatting, and help text attributes for various fields.The file
makeDlist.html.erb
has been deleted in this diff. It displayed error or success messages.Please let me know if there's anything else you need assistance with.
Description
views/courses
usingbundle exec erblint app/views/courses/*(file).html.erb -a
moss.html.erb
andrun_moss.html.erb
to be more bearable on the eyes by modifying styling, addingcomponents/_dropdown_icon.html.erb
for dropdown icon html and jqueryupload_roster.html.erb
form intoFormBuilderWithDateTimeInput
to have styling on upload file buttonMoss:
Before
After:
Run Moss results
Before
After
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist:
overcommit --install && overcommit --sign
to use pre-commit hook for linting