Use industry-specific ticket priority labels.
Deploy Ladill Queue / deploy (push) Successful in 55s

Restaurant (and other packages) now show Rush, Reservation, VIP table, etc. instead of clinic terms like Emergency and Elderly.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 20:15:56 +00:00
co-authored by Cursor
parent a2d5a8affd
commit b5ffa499b9
11 changed files with 252 additions and 4 deletions
+7
View File
@@ -52,6 +52,13 @@ class IndustryPackageTest extends TestCase
$this->assertSame('banking', data_get($org->settings, 'industry'));
$this->assertSame('banking', data_get($org->settings, 'industry_package.key'));
$this->assertSame('customer', data_get($org->settings, 'industry_package.ticket_entity'));
$this->assertSame('Rush', \App\Services\Qms\TicketPriorities::forIndustryKey('restaurant')['emergency']);
$this->assertSame('Reservation', \App\Services\Qms\TicketPriorities::forIndustryKey('restaurant')['appointment']);
$this->assertSame('Urgent', \App\Services\Qms\TicketPriorities::forIndustryKey('banking')['emergency']);
$this->assertSame(
'Priority customer',
\App\Services\Qms\TicketPriorities::label($org, 'vip')
);
$branch = Branch::where('organization_id', $org->id)->first();
$this->assertNotNull($branch);
+26
View File
@@ -131,6 +131,32 @@ class ServicePointRoutingTest extends TestCase
->assertDontSee('@json');
}
public function test_ticket_priority_labels_follow_industry_package(): void
{
$user = User::create([
'public_id' => 'prio-rest-owner',
'name' => 'Restaurant Owner',
'email' => 'prio-rest@example.com',
'password' => bcrypt('password'),
]);
app(OrganizationResolver::class)->completeOnboarding($user, [
'organization_name' => 'Bistro',
'industry' => 'restaurant',
'appointment_mode' => 'hybrid',
'branch_name' => 'Main',
'timezone' => 'UTC',
]);
$this->actingAs($user)
->get(route('qms.tickets.create'))
->assertOk()
->assertSee('Rush')
->assertSee('Reservation')
->assertSee('VIP table')
->assertDontSee('>Emergency<', false)
->assertDontSee('>Elderly<', false);
}
public function test_web_issue_without_service_point_returns_validation_error_not_500(): void
{
[$user, , , $queue] = $this->setUpAssignedConsultation();