- New Expenses module: purchases (materials, other) with a description
and cost, and mileage priced with the price list's mileage rate.
- Who paid and whether the expense is billed are separate: an employee's
own payments are reimbursed elsewhere. A billed expense has a markup
and a billed amount, cost plus markup unless given.
- A job's expenses page lists, adds, edits and removes them; amounts of
others' expenses need the expenses permission, own ones always show.
Done jobs lock their expenses.
- The Kulut menu shows the user's own expenses by month. Management
records subcontractors' expenses, which they see but cannot change.
- The price list gets a default markup for new purchases.
- Number fields that update a calculation now use wire:model.live.blur:
in Livewire 4 plain .blur no longer sends the value to the server,
which also fixes the product form's VAT calculation.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Admins give employees and interns personal money permissions (prices,
expenses, quotes, billing) on the user form. Other modules check them
through the money.* abilities; admins and management see all amounts,
subcontractors none.
- Employees and interns get a read-only price list: consumer products
with VAT always, hourly rates, other products and the mileage rate only
with the price permission. Subcontractors cannot open it.
- VAT rates are maintained on the price list page, with one default rate
that always stays in use. Products get a VAT rate; changing a rate's
percentage applies to every product using it.
- Consumer product prices are entered and stored with VAT, so cash prices
stay round; the price without VAT is calculated. The product form shows
the other price as you type.
- Shared VatPercentage value object and Money::addVat()/removeVat(),
rounding half up to the cent in integer arithmetic.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Work types get an hourly rate (VAT 0), set on the work type form or in
the hourly rate grid of the new Hinnasto page (/catalog/prices), which
saves a cell when focus leaves it.
- Fixed-price products with a unit from a list, consumer product flag and
automatic hours, which need a work type. Products are moved and
deactivated, never deleted.
- The mileage rate is stored in a new settings table through the shared
Settings contract.
- Shared Money value object keeps amounts in cents, parses "85,50" and
formats "85,50 €".
- Prices are read only through PriceListQueries, not CatalogQueries, so
personal money permissions can be added in one place next.
- Only admins and management can open the pages for now.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1, item 8 (last of phase 1). New TimeTracking module:
- One entry per user, task and day (0.25-24 h in quarters, with a note);
the job and work type are copied from the task. A user's day cannot
exceed 24 h, and hours on a done, invoiced, billed or archived job
cannot be added or changed.
- Weekly sheet /time: tasks as rows (own open tasks, tasks with hours
that week, tasks added by search), days as columns, row, day and week
totals, week navigation. A cell saves on change and an empty cell
removes the entry; on phones one day at a time. Saves and errors are
announced, errors are tied to their cell.
- Task booking page /time/tasks/{task}: date, hours and note, added to
the day's entry; own entries with edit and remove.
- Anyone but subcontractors may book on any unlocked task;
subcontractors only on jobs they are attached to.
Jobs module:
- JobStatus::locksTime(), BookableTask and task queries for booking.
- A task with time entries cannot be removed (TaskUsage contract,
provided by TimeTracking); the job page links tasks to booking.
- The "involved in a job" rule is shared in JobInvolvement.
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]>
Phase 1, item 3: the hierarchy customer jobs, tasks and time entries
will refer to.
- New Catalog module: service unit > optional service > work type.
Names are unique per level (case-insensitive); items are never
deleted, only deactivated, and foreign keys restrict deletes.
- Pohjatiedot page (/catalog, admins and management): add, rename,
reorder with move up/down buttons (keyboard-friendly, focus kept and
announced) and an "in use" checkbox per row. Work types can move to
another service of the same unit.
- A migration inserts the starting catalog from the specification when
the tables are empty, so every installation has it.
- CatalogQueries gives other modules the active service units and the
work types of chosen units plus the shared ones.
- Spec and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
wire:navigate replaces the <html> attributes with the server's, which
dropped the "dark" class, and the unchanged head script does not run
again. Apply the stored theme again on every Livewire page swap, before
the new page paints, and cover the main-menu navigation with a browser
test.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The inline theme script treated an unknown stored "dark-theme" value as
light, while tallstackui_darkTheme() treats it as "system", so a dark OS
could flash the light theme. Also move an inline comment in
AppServiceProvider into the method's PHPDoc.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rewrite the layout and all Customers and Users pages with TallStackUI
components and remove livewire/flux and its Boost skill.
Fix the TallStackUI accessibility gaps found by the axe tests:
- password reveal and theme switch have no accessible name: add
<x-password-field> and keep the own theme toggle button
- select.native label is not tied to the control: add aria-label
- contrast: darker primary palette, soft-customized error colours and
published alert/link colour classes; neutral buttons use subtle black
- follow the system theme by default (localStorage key dark-theme)
Load TallStackUI assets from the app URL so they work in the XAMPP
subfolder, add Finnish TallStackUI strings, and drop inputmode=numeric
from the business ID field so iOS keyboards show the hyphen.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- New partial resources/views/partials/theme-toggle.blade.php: a Flux
button that flips $flux.dark. Flux stores the choice in localStorage
(flux.appearance) and applies it before the page paints; until the
user chooses, the system theme is followed.
- Shown in the header for signed-in users and at the top right of the
guest pages.
- Accessible: stable name "Tumma teema" with a tooltip, state in
aria-pressed, decorative moon/sun icons.
- Browser tests cover toggling, persistence across pages, overriding a
dark system theme, keyboard use and axe checks in both themes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
New Users module with the four layers:
- Domain: Role enum, UserAccount entity (intern needs end date and
supervisor, login allowed until the end of the last day), email and
name value objects, SupervisorRule, last-admin protection.
- Application: CreateUserAccount (emails a set-password link),
UpdateUserAccount, SendPasswordSetupLink, CheckLoginAllowed, query
contract and Clock (business time zone Europe/Helsinki).
- Infrastructure: users table gets role, is_active, employment_ends_on
and supervisor_id; Eloquent repository and queries; Password broker
link sender with a Finnish email; Gate users.manage.
- Presentation: Livewire login (rate limited), forgot and reset
password pages, logout, EnsureAccountIsUsable middleware that ends
sessions of deactivated users, admin-only user list and form, and
users:create-admin command.
Also:
- Layout gets a labelled main menu, the signed-in user and logout.
- Remove the local /dev/login; guests are redirected to /login.
- Customers: customers.use ability (no subcontractors), authorization
in mount and save, locked customerId, 404 for a missing customer,
empty-state check uses the total count.
- Architecture test lets module providers register their own
Presentation classes; docs and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Layout: skip link to the main content and a <main> landmark
- Home page: stable button label, counter announced via a live status region
- Pest browser plugin + Playwright: axe checks (level 2) in light/dark and
desktop/mobile, plus a keyboard-only interaction test
- Register the Browser test suite in phpunit.xml and Pest.php
- CLAUDE.md: accessibility development rules and browser test notes
- Boost-refreshed testing-best-practices skill files
Co-Authored-By: Claude Opus 5.5 <[email protected]>