-
Notifications
You must be signed in to change notification settings - Fork 1
Staging into Main #182
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
Merged
Staging into Main #182
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e163563
Bump lodash in the npm_and_yarn group across 1 directory
dependabot[bot] 86fdd37
Enhance EntryDragController with loading overlay improvements
rsmoke 4d4df9d
Add notify_completed action to JudgingRoundsController and related ma…
rsmoke 203e879
Refactor ranking count check in JudgingRoundsController
rsmoke 0dc4f29
Enhance EntryDragController with loading overlay functionality improv…
rsmoke b863d05
Optimize JudgeDashboard for performance and clarity
rsmoke fb877b5
Refactor ContestInstancePolicy to enhance ranking checks
rsmoke c178625
Merge pull request #181 from lsa-mis/tweak_slow_connection_notice
rsmoke 5b51f7d
Merge pull request #179 from lsa-mis/dependabot/npm_and_yarn/npm_and_…
rsmoke f560be4
Enhance ranking update logic in JudgingRoundsController
rsmoke 329a023
Add tests for update_rankings action in JudgingRoundsController
rsmoke c2ddd8a
Remove authorization check for notify_completed action in JudgingRoun…
rsmoke b2c2cf1
Add error handling for missing contact email in JudgeCompletedEvaluat…
rsmoke 89865c5
Refactor JudgeDashboardController to optimize entry ranking queries
rsmoke 012c88c
Refactor entry ranking logic in JudgingRoundsController for improved …
rsmoke e6c3cd6
Enhance tests for EntryDragController by utilizing jest fake timers
rsmoke ef9b81d
Refactor entry loading overlay handling in EntryDragController
rsmoke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| class JudgeCompletedEvaluationsMailer < ApplicationMailer | ||
| def notify_contact(judge, judging_round) | ||
| @judge = judge | ||
| @judging_round = judging_round | ||
| @contest_instance = judging_round.contest_instance | ||
| @contest_description = @contest_instance.contest_description | ||
| @container = @contest_description.container | ||
| @judge_email = judge.normalize_email | ||
|
|
||
| to_email = @container.contact_email.presence | ||
| unless to_email | ||
| raise ArgumentError, "contact_email is required for JudgeCompletedEvaluationsMailer.notify_contact" | ||
| end | ||
|
|
||
| subject = "Judge completed evaluations: #{@contest_description.name} - Round #{@judging_round.round_number}" | ||
|
|
||
| mail( | ||
| to: to_email, | ||
| subject: subject, | ||
| reply_to: @judge_email | ||
| ) | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
app/views/judge_completed_evaluations_mailer/notify_contact.html.erb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| <div style="max-width: 600px; margin: 0 auto; padding: 20px; font-family: Arial, sans-serif;"> | ||
| <h1 style="color: #003366; font-size: 24px; margin-bottom: 20px;"> | ||
| Judge completed evaluations | ||
| </h1> | ||
|
|
||
| <p style="font-size: 16px; line-height: 1.6; color: #333;"> | ||
| A judge has completed their evaluations for the following contest and round. | ||
| </p> | ||
|
|
||
| <div style="background-color: #f0f7ff; padding: 15px; border-radius: 5px; margin: 20px 0;"> | ||
| <h2 style="color: #003366; font-size: 18px; margin-bottom: 10px;">Judge</h2> | ||
| <p style="font-size: 16px; line-height: 1.6; color: #333; margin: 5px 0;"> | ||
| <strong>Name:</strong> <%= @judge.display_name_or_first_name_last_name %><br> | ||
| <strong>Email:</strong> <%= mail_to @judge_email, @judge_email %> | ||
| </p> | ||
| </div> | ||
|
|
||
| <div style="background-color: #f9f9f9; padding: 15px; border-radius: 5px; margin: 20px 0; border: 1px solid #ddd;"> | ||
| <h2 style="color: #003366; font-size: 18px; margin-bottom: 10px;">Contest and round</h2> | ||
| <p style="font-size: 16px; line-height: 1.6; color: #333; margin: 5px 0;"> | ||
| <strong>Contest:</strong> <%= @contest_description.name %><br> | ||
| <strong>Contest instance:</strong> <%= @contest_instance.id %> (date open: <%= @contest_instance.date_open&.strftime('%Y-%m-%d') %>)<br> | ||
| <strong>Round:</strong> <%= @judging_round.round_number %> | ||
| </p> | ||
| </div> | ||
|
|
||
| <p style="font-size: 14px; line-height: 1.6; color: #666;"> | ||
| You can reply directly to this message to contact the judge. | ||
| </p> | ||
| </div> |
10 changes: 10 additions & 0 deletions
10
app/views/judge_completed_evaluations_mailer/notify_contact.text.erb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| A judge has completed their evaluations for the following contest and round. | ||
|
|
||
| Judge: <%= @judge.display_name_or_first_name_last_name %> | ||
| Judge email: <%= @judge_email %> | ||
|
|
||
| Contest: <%= @contest_description.name %> | ||
| Contest instance: <%= @contest_instance.id %> (date open: <%= @contest_instance.date_open&.strftime('%Y-%m-%d') %>) | ||
| Round: <%= @judging_round.round_number %> | ||
|
|
||
| You can reply directly to this message to contact the judge. |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.