-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(seeder): add editor and chief editor users to LocalTestDataSeeder * fix(locales): update 'ready-to-marked-published' text for clarity in English and French * refactor: remove duplicate import statement in ManuscriptRecordPage.vue * refactor: clean up imports in CreatePublicationDialog.vue * feat: secondary publishing workflow * chore: bump
- Loading branch information
1 parent
a76c28d
commit a71ca33
Showing
36 changed files
with
1,005 additions
and
707 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ APP_URL=http://127.0.0.1:8000/ | |
FRONTEND_URL=http://127.0.0.1:8000/ | ||
|
||
ALLOWED_REGISTRATION_EMAIL_DOMAINS="example.com" | ||
MANUSCRIPT_SUBMISSION_EMAIL="[email protected]" | ||
|
||
LOG_CHANNEL=stack | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
|
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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,71 @@ | ||
<?php | ||
|
||
namespace App\Mail; | ||
|
||
use App\Models\ManuscriptRecord; | ||
use App\Models\Publication; | ||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Mail\Mailable; | ||
use Illuminate\Mail\Mailables\Content; | ||
use Illuminate\Mail\Mailables\Envelope; | ||
use Illuminate\Queue\SerializesModels; | ||
use Illuminate\Support\Str; | ||
|
||
class ManuscriptRecordSubmittedToDFO extends Mailable | ||
{ | ||
use Queueable, SerializesModels; | ||
|
||
public Publication $publication; | ||
|
||
/** | ||
* Create a new message instance. | ||
*/ | ||
public function __construct(public ManuscriptRecord $manuscriptRecord) | ||
{ | ||
$manuscriptRecord->load('user', 'manuscriptAuthors.author', 'publication'); | ||
$this->publication = $manuscriptRecord->publication; | ||
|
||
} | ||
|
||
/** | ||
* Get the message envelope. | ||
*/ | ||
public function envelope(): Envelope | ||
{ | ||
$to = config('osp.manuscript_submission_email'); | ||
if (empty($to)) { | ||
throw new \Exception('The manuscript submission email address is not set.'); | ||
} | ||
$cc = collect($this->manuscriptRecord->manuscriptAuthors) | ||
->pluck('author.email') | ||
->add($this->manuscriptRecord->user->email) | ||
->filter(fn ($email) => Str::of($email)->endsWith(config('osp.allowed_registration_email_domains'))) | ||
->unique()->toArray(); | ||
|
||
return new Envelope( | ||
subject: 'Manuscript Submitted - Manuscrit soumis: '.$this->manuscriptRecord->title, | ||
to: [$to], | ||
cc: $cc, | ||
); | ||
} | ||
|
||
/** | ||
* Get the message content definition. | ||
*/ | ||
public function content(): Content | ||
{ | ||
return new Content( | ||
markdown: 'mail.manuscriptRecord.manuscript-submitted-to-dfo', | ||
); | ||
} | ||
|
||
/** | ||
* Get the attachments for the message. | ||
* | ||
* @return array<int, \Illuminate\Mail\Mailables\Attachment> | ||
*/ | ||
public function attachments(): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains 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 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 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 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
Oops, something went wrong.