A task's estimate now takes each working day of its planned period up to
the assignee's free capacity before the next day gets anything, so 9 h
is booked as 7.5 h + 1.5 h rather than 4.5 h + 4.5 h. What does not fit
in the period still moves past its end and makes the task end later.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The task calendar's daily maximum moves from the hidden setting
jobs.daily_capacity_hours to shared.daily_capacity_hours, edited by the
admin on the company details page. An empty field means 7.5 hours.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Everyone who may comment on a task sends images to it, e.g. photos
taken with a phone. The server stores an upright, at most 2560 px JPEG
without EXIF data (no location) and a 400 px thumbnail on the private
disk, served only to those who see the job. Uploaders change captions
(also the alt text) and remove their own images; admin and management
may remove anyone's (jobs.remove-any-task-image). Removing a task also
removes its image files.
Livewire's temporary upload limit is raised to PHP's 40 MB so that the
page's own 12 MB limit gives a translated message.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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]>
- Company details get an optional "Valikon nimi", shown at the left of the
main menu; it falls back to the application name when empty.
- A billing material gets its running number (billing_exports.number) only
when it is created, so discarded drafts leave no gaps. Drafts have no
number; existing created materials are numbered by the migration, and the
CSV file name uses the number.
- TaskAssigneeMigrationTest rolls back from its own migration onward instead
of assuming it is the last one.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
- A task now has one optional assignee (tasks.assignee_user_id), whose
calendar row it is on and whose days its estimate books, and members
(task_members) who see it among their own jobs and in the weekly sheet
but get no bookings. A migration moves existing assignees over: the one
with most booked time becomes the assignee, the others members.
- Adding tasks from a workflow template asks for each step's assignee and,
by default, schedules tasks with a due date to end on it, booking the
estimate backwards from the due date (not before today); what does not
fit runs past the due date and is reported as late.
- The task calendar leaves quick sale tasks out of the unscheduled list,
shows a bar's job details in a popover on hover and focus, and shows the
day load on its own grid line.
- The template table stacks its cells on narrow screens to reflow at 320 px.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Task calendar (/jobs/calendar) replaces per-unit task Kanban columns
(K34): a two-week Gantt of tasks per person. Bars move, resize and
change person by dragging or through a keyboard dialog. Each task's
estimate is booked evenly over working days into task_bookings, and
what exceeds the daily maximum (jobs.daily_capacity_hours, 8 h) moves
to the next working day. Tasks get planned_from/planned_to on the form.
Holidays (/settings/holidays): Finnish public holidays calculated per
year, which the admin can take out of use, plus company days off.
Also includes the earlier uncommitted work: workflow templates with
adding tasks from a template, and removing customers no module refers to.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tasks get an ordered checklist (spec 8.2, phase 3): items are checked
done with who and when recorded, also by subcontractors attached to the
job; others add, rename, reorder and remove items. Items go with their
task. The spec gets a phase 3 chapter (18.1), and open questions move
to chapter 19.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jobs billed by a fixed monthly fee get a monthly fee field, kept behind
the quotes permission like the quoted amount. A billing material now has
a billing month: a new draft adds every monthly fee job with something
to bill, each on an invoice of its own, and bills one line for every
unbilled month from the job's start up to the billing month (or its end
or completion), so skipped months are caught up and no month is billed
twice. Their expenses are billed alongside, their hours are covered by
the fee and marked billed, and the job keeps running.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Jobs get a budget / quoted amount (cents, VAT 0). Only users who may
see quotes see and edit it on the job form and page, and only they see
its changes in the history. Others' saves keep the stored amount: the
server decides whether the amount is set, not the browser.
- Jobs record when they were done: set when a job first reaches a status
that locks its hours, kept through the billing statuses, cleared when
management opens the lock. The billing export will use it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
Phase 1, item 6:
- New page /jobs/board: one column per Kanban status (archived left
out), one card per job with number, name, customer, priority and due
date. Filters for my jobs (default), priority and service unit;
subcontractors see only their own cards and cannot move them.
- Cards move by dragging (Livewire wire:sort across column groups) or
with each card's status select, which works with the keyboard. Moves
go through ChangeJobStatus, so they are recorded in the job history;
the result is announced and focus returns to the moved card.
- Billing statuses only for management and the job's biller: the
jobs.set-billing-status gate now takes the biller's user id.
- Column links with counts at the top; columns wrap with the screen
width, so there is no sideways scrolling.
- CustomerJobQueries::board() and the biller on job summaries.
- Menu link and a link from the job list; spec and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1, item 5:
- New page /jobs/quick (Pikavastaanotto): customer (search or quick
add), name, short description, service unit, responsible person and
starting status (Alustava or Prospekti) in one column. The job is
created with CreateCustomerJob, so numbering, reference checks and
history are the same as on the full form.
- After saving, the form clears for the next job (responsible person
and status stay), and a status message with the job number and links
to the job and its edit page takes focus.
- The customer search of the job form moves to a PicksCustomer trait and
an <x-jobs.customer-picker> component shared by both pages.
- Menu link and a list button for users who may open jobs; nav items
accept several route patterns.
- PHPStan ignores unused-trait only for Livewire Concerns, which are
used from excluded single-file components.
- Spec and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1, item 4. New Jobs module:
- Customer jobs with the spec's fields except money (phase 2): yearly
running numbers (2026-0001) from a locked counter row, service units,
schedule, kind, status, priority, payment basis, estimated hours,
PO reference, instructions, members (responsible, contact person,
customer contact, biller, billing unit, other members), tags shared
across jobs, and links.
- Every change is recorded field by field and shown on the job page with
names and Finnish dates.
- References to other modules are checked through their query
contracts: contact and billing unit must be the customer's own;
service units and users must be in use unless already on the job.
- Job list with search, filters and "my jobs" on by default; job form
with an accessible customer search and quick add; job page.
- Access: subcontractors see only jobs they are members of, read only;
billing statuses for management and the job's biller; archiving for
management.
Related changes:
- Customers: one internal customer (created by a migration) for internal
work; contacts and billing units used by a job cannot be removed.
- Users and Catalog: batch name lookups and active user options with
roles for other modules.
- <x-checkbox-group> component; spec and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>