Add unit and feature tests for ticket processing and article management
- Implement Fake repositories and services for testing purposes. - Create tests for Article API including creation, validation, and listing. - Develop ProcessTicketJobFlowTest to validate ticket processing logic. - Add QuickReplyAdminTest for creating and updating quick replies. - Implement TicketAndArticleModelTest to ensure proper cascading deletes and credential encryption. - Create TicketIngestionTest for ticket creation and job dispatching. - Add TicketShowPageTest to verify rendering of quick replies and tool calls. - Implement unit tests for ClassifierPromptBuilder, EmbeddingService, LlmJsonDecoder, QuickReplyResolver, SupportReplyService, TicketResultPayloadBuilder, TicketToolCallService, and ToolCallRequestValidator.
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
<div class="flex items-start justify-between gap-3">
|
||||
<div>
|
||||
<div class="font-medium">{{ $title }}</div>
|
||||
@if($description)
|
||||
@if ($description)
|
||||
<p class="mt-1 text-sm text-slate-600">{{ $description }}</p>
|
||||
@endif
|
||||
</div>
|
||||
@if($badge)
|
||||
@if ($badge)
|
||||
<span class="shrink-0 rounded bg-slate-100 px-2 py-1 text-xs text-slate-600">{{ $badge }}</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
@@ -7,26 +8,28 @@
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
@livewireStyles
|
||||
</head>
|
||||
<body class="bg-slate-100 text-slate-900">
|
||||
<div class="min-h-screen">
|
||||
<header class="bg-slate-900 text-white">
|
||||
<div class="mx-auto max-w-7xl px-6 py-4 flex items-center justify-between">
|
||||
<h1 class="text-lg font-semibold">Ticket Assistant Admin</h1>
|
||||
<nav class="flex gap-3 text-sm">
|
||||
<a href="{{ route('admin.dashboard') }}" class="hover:underline">Dashboard</a>
|
||||
<a href="{{ route('admin.articles') }}" class="hover:underline">Articles</a>
|
||||
<a href="{{ route('admin.quick-replies') }}" class="hover:underline">Snelantwoorden</a>
|
||||
<a href="{{ route('admin.tickets') }}" class="hover:underline">Tickets</a>
|
||||
<a href="{{ route('admin.process') }}" class="hover:underline">Proces</a>
|
||||
<a href="{{ route('admin.settings') }}" class="hover:underline">Settings</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="mx-auto max-w-7xl px-6 py-6">
|
||||
{{ $slot }}
|
||||
</main>
|
||||
</div>
|
||||
@livewireScripts
|
||||
<body class="bg-slate-100 text-slate-900">
|
||||
<div class="min-h-screen">
|
||||
<header class="bg-slate-900 text-white">
|
||||
<div class="mx-auto max-w-7xl px-6 py-4 flex items-center justify-between">
|
||||
<h1 class="text-lg font-semibold">Ticket Assistant Admin</h1>
|
||||
<nav class="flex gap-3 text-sm">
|
||||
<a href="{{ route('admin.dashboard') }}" class="hover:underline">Dashboard</a>
|
||||
<a href="{{ route('admin.articles') }}" class="hover:underline">Articles</a>
|
||||
<a href="{{ route('admin.quick-replies') }}" class="hover:underline">Snelantwoorden</a>
|
||||
<a href="{{ route('admin.tickets') }}" class="hover:underline">Tickets</a>
|
||||
<a href="{{ route('admin.process') }}" class="hover:underline">Proces</a>
|
||||
<a href="{{ route('admin.settings') }}" class="hover:underline">Settings</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="mx-auto max-w-7xl px-6 py-6">
|
||||
{{ $slot }}
|
||||
</main>
|
||||
</div>
|
||||
@livewireScripts
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user