Add comments to tasks
Everyone who may change a task's status (attached subcontractors too) comments on it on the job page. Authors edit and remove their own comments; admin and management may remove anyone's (jobs.remove-any-task-comment). Edited comments show when they were edited, and task cards show the number of comments. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Jobs\Application\DTOs;
|
||||
|
||||
/**
|
||||
* A task comment with its author's name. Times are in the business time
|
||||
* zone as "Y-m-d H:i".
|
||||
*/
|
||||
final readonly class TaskCommentSummary
|
||||
{
|
||||
public function __construct(
|
||||
public int $id,
|
||||
public ?int $authorId,
|
||||
public string $authorName,
|
||||
public string $body,
|
||||
public string $createdAt,
|
||||
public ?string $editedAt,
|
||||
) {}
|
||||
}
|
||||
@@ -27,5 +27,6 @@ final readonly class TaskSummary
|
||||
public array $members,
|
||||
public ?string $plannedFrom = null,
|
||||
public ?string $plannedTo = null,
|
||||
public int $commentCount = 0,
|
||||
) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user