v1.2.0
- E-mail intake (IMAP), optional and off by default: clients can create a ticket or reply to an existing one just by sending/replying to an e-mail. Configure any number of mailboxes in the new Admin > Poczta page (SMTP + IMAP together, replacing the old "E-MAIL" tab), each routed to a specific subcategory or a whole category (new tickets.category_id column). Replies are matched to their ticket via the number/checksum already in every notification subject; autoresponders/bounces are detected and rejected; "restrict tickets to LDAP" is enforced for e-mail like the guest web form. Manual "Pobierz teraz" per-mailbox fetch button; dedicated storage/logs/imap-*.log regardless of the app's log level; mail-icon badges on e-mail-originated tickets/messages in the operator queue and ticket view. - Operator queue: "select all" checkbox in the table header for every currently visible ticket under the active filter/tab. - Fixed: scheduled commands (SLA breach check, automation rules, and now IMAP fetch) always sent notifications through .env's default mailer instead of the configured SMTP server, because AppServiceProvider's Settings override used to skip itself for any console command, not just migrate. - Fixed: visiting a ticket that no longer exists (deleted mid-session, or a stale background refresh) showed a raw 404 instead of redirecting back to the operator queue / client dashboard. - Docs: README/ARCHITECTURE/CLAUDE/install/wiki updated for all of the above, including the previously-missing host crontab entry for schedule:run. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
31
src/tests/Feature/DeletedTicketRedirectsInsteadOf404Test.php
Normal file
31
src/tests/Feature/DeletedTicketRedirectsInsteadOf404Test.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
test('visiting a deleted ticket as an operator redirects to the operator queue instead of 404ing', function () {
|
||||
seedStatusesAndPriorities();
|
||||
$operator = User::query()->create(['name' => 'Op', 'email' => 'op@example.com', 'roles' => ['operator']]);
|
||||
$ticket = makeTicket();
|
||||
$id = $ticket->id;
|
||||
$ticket->delete();
|
||||
|
||||
$this->actingAs($operator)
|
||||
->get("/operator/tickets/{$id}")
|
||||
->assertRedirect(route('operator.queue'));
|
||||
});
|
||||
|
||||
test('visiting a deleted ticket as a client redirects to the client dashboard instead of 404ing', function () {
|
||||
seedStatusesAndPriorities();
|
||||
$client = User::query()->create(['name' => 'Klient', 'email' => 'klient@example.com', 'roles' => ['client']]);
|
||||
$ticket = makeTicket(['customer_id' => $client->id]);
|
||||
$id = $ticket->id;
|
||||
$ticket->delete();
|
||||
|
||||
$this->actingAs($client)
|
||||
->get("/client/tickets/{$id}")
|
||||
->assertRedirect(route('client.dashboard'));
|
||||
});
|
||||
|
||||
test('a guest hitting a non-existent ticket route still gets the normal (non-redirected) handling', function () {
|
||||
$this->get('/operator/tickets/999999')->assertRedirect(route('login'));
|
||||
});
|
||||
Reference in New Issue
Block a user