Add inline ticket property dropdowns

This commit is contained in:
2026-07-18 20:29:24 +02:00
parent 021acb9cf7
commit 84655b1e79
13 changed files with 393 additions and 151 deletions
@@ -70,6 +70,21 @@ class ProjectTicketControllerTest extends TestCase
'ticket_type_id' => $this->nonParentType($project)->id,
'title' => 'Ticket detail test',
]);
$targetColumn = BoardColumn::factory()->for($project)->create([
'name' => 'In Progress',
'position' => 1,
]);
$targetStatus = TicketStatus::factory()
->for($project)
->for($targetColumn)
->create([
'name' => 'In Progress',
'position' => 1,
]);
TicketStatus::query()
->findOrFail($ticket->ticket_status_id)
->allowedTargetStatuses()
->syncWithoutDetaching([$targetStatus->id]);
$rootCriterion = AcceptanceCriterion::query()->create([
'ticket_id' => $ticket->id,
'parent_acceptance_criterion_id' => null,
@@ -131,6 +146,8 @@ class ProjectTicketControllerTest extends TestCase
->where('ticket.acceptance_criteria.1.checked', true)
->where('ticket.acceptance_criteria.1.indent', 1)
->where('ticket.assignee.name', 'Assigned User')
->where('ticket.ticket_status.allowed_target_statuses.0.id', $targetStatus->id)
->where('ticket.ticket_status.allowed_target_statuses.0.board_column.id', $targetColumn->id)
->where('ticket.author', null)
->where('ticket.author_user_id', null)
->where('ticket.field_values.0.ticket_field_definition.label', 'Complexity')