Add tasks to customer jobs

Phase 1, item 7, in the Jobs module (tasks are part of a job, and my jobs
needs their assignees):
- Tasks with name, work type, assignees, status (waiting, in progress,
  in review, done), due date, estimated hours and description.
- Tasks can be added once the job is a quote request or later, not to
  an archived job. The work type must belong to the job's service units
  or the shared ones and be in use; assignees must be active. What a
  task already has stays allowed after being taken out of use.
- Job page: a Tehtävät section with a status select per task (announced,
  focus kept), edit links and delete with a confirmation dialog. Task
  form with work types grouped by unit and service.
- Access: adding, changing and removing for everyone but subcontractors;
  subcontractors may change task statuses on jobs they are attached to.
- Task assignees now count in my jobs (list, Kanban, job access).
- Spec and CLAUDE.md updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-23 19:26:31 +02:00
co-authored by Claude Opus 5.5
parent 7f3b6dff78
commit 02a62eb16e
37 changed files with 1895 additions and 8 deletions
+40
View File
@@ -14,6 +14,46 @@ return [
'late' => 'Myöhässä',
'opens_in_new_tab' => 'avautuu uuteen välilehteen',
'tasks' => [
'title' => 'Tehtävät',
'new' => 'Lisää tehtävä',
'create_title' => 'Uusi tehtävä',
'edit_title' => 'Muokkaa tehtävää',
'job_label' => 'Asiakastyö',
'empty' => 'Ei tehtäviä.',
'not_allowed_yet' => 'Tehtäviä voi lisätä, kun työ on tarjouspyyntö-tilassa tai myöhemmässä tilassa.',
'created' => 'Tehtävä :title lisätty.',
'updated' => 'Tehtävä :title tallennettu.',
'removed' => 'Tehtävä :title poistettu.',
'not_found' => 'Tehtävää ei löytynyt. Päivitä sivu.',
'status_of' => 'Tila: :title',
'status_changed' => 'Tehtävän :title tila on nyt :status.',
'edit_named' => 'Muokkaa tehtävää :title',
'remove_named' => 'Poista tehtävä :title',
'remove_question' => 'Poistetaanko tehtävä :title? Poistoa ei voi perua.',
'fields' => [
'title' => 'Nimi',
'work_type' => 'Työtehtävä',
'work_type_description' => 'Työn palveluyksiköiden ja kaikille yhteiset työtehtävät.',
'assignees' => 'Tekijät',
'status' => 'Tila',
'due_on' => 'Määräpäivä',
'estimated_hours' => 'Arvioitu aika (h)',
'description' => 'Kuvaus',
],
'statuses' => [
'waiting' => 'Odottaa',
'in_progress' => 'Työn alla',
'in_review' => 'Tarkastettavana',
'done' => 'Valmis',
],
'errors' => [
'title_required' => 'Anna tehtävän nimi.',
'invalid_title' => 'Nimen pituus voi olla enintään 255 merkkiä.',
'work_type_required' => 'Valitse työtehtävä.',
],
],
'board' => [
'title' => 'Kanban',
'link' => 'Näytä Kanban-näkymänä',