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:
2026-11-25 07:31:53 +02:00
co-authored by Claude Sonnet 5.5
parent 60cab4b871
commit 4fb8ea1c5f
29 changed files with 1354 additions and 4 deletions
+28
View File
@@ -119,6 +119,34 @@ return [
'invalid_text' => 'Kohdan teksti voi olla enintään 255 merkkiä.',
],
],
'comments' => [
'title' => 'Kommentit',
'list_of' => 'Kommentit: :title',
'empty' => 'Ei kommentteja.',
'new' => 'Uusi kommentti',
'body' => 'Kommentti',
'add' => 'Lisää kommentti',
'add_named' => 'Lisää kommentti tehtävälle :title',
'save' => 'Tallenna',
'cancel' => 'Peruuta',
'remove' => 'Poista',
'edit_named' => 'Muokkaa kommenttia (:author, :at)',
'remove_named' => 'Poista kommentti (:author, :at)',
'remove_title' => 'Poistetaanko kommentti?',
'remove_question' => 'Kommentti poistetaan pysyvästi.',
'at' => ':date klo :time',
'edited' => 'muokattu :at',
'unknown_author' => 'Tuntematon käyttäjä',
'added' => 'Kommentti lisätty.',
'saved' => 'Kommentti tallennettu.',
'removed' => 'Kommentti poistettu.',
'not_found' => 'Kommenttia ei löytynyt. Päivitä sivu.',
'errors' => [
'body_required' => 'Kirjoita kommentti.',
'invalid_body' => 'Kommentti voi olla enintään 5000 merkkiä.',
'not_author' => 'Voit muokata ja poistaa vain omia kommenttejasi.',
],
],
'errors' => [
'title_required' => 'Anna tehtävän nimi.',
'invalid_title' => 'Nimen pituus voi olla enintään 255 merkkiä.',