Core UI updates for helpdesk
This commit is contained in:
@@ -10,6 +10,7 @@ use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Modules\Helpdesk\Models\Category;
|
||||
use Modules\Helpdesk\Models\GitRepository;
|
||||
use Modules\Helpdesk\Models\KanbanBoard;
|
||||
use Modules\Helpdesk\Models\Priority;
|
||||
use Modules\Helpdesk\Models\Project;
|
||||
use Modules\Helpdesk\Models\Status;
|
||||
@@ -137,6 +138,7 @@ trait BuildsHelpdeskFixtures
|
||||
'user_id' => $owner->id,
|
||||
'agent_id' => $agent?->id,
|
||||
'status_id' => $this->ticketStatus()->id,
|
||||
'board_id' => $attributes['board_id'] ?? null,
|
||||
'priority_id' => $this->priority()->id,
|
||||
'category_id' => null,
|
||||
'project_id' => null,
|
||||
@@ -156,8 +158,10 @@ trait BuildsHelpdeskFixtures
|
||||
$category = $this->category(['name' => 'Support', 'slug' => 'support']);
|
||||
$team = $this->team(['name' => 'Support Team', 'slug' => 'support-team']);
|
||||
$project = $this->project(['title' => 'WMS Core', 'slug' => 'wms-core', 'team_id' => $team->id]);
|
||||
$board = KanbanBoard::query()->create(['name' => 'Standard Support', 'slug' => 'standard-support', 'description' => 'Default support board', 'is_default' => true, 'sort_order' => 1]);
|
||||
$board->statuses()->sync([$open->id => ['sort_order' => 10], $closed->id => ['sort_order' => 20]]);
|
||||
|
||||
return compact('open', 'closed', 'normal', 'high', 'category', 'team', 'project');
|
||||
return compact('open', 'closed', 'normal', 'high', 'category', 'team', 'project', 'board');
|
||||
}
|
||||
|
||||
protected function ensureCompanyTableHasOne(): ?int
|
||||
|
||||
Reference in New Issue
Block a user