Commit Graph
80 Commits
Author SHA1 Message Date
petriandClaude Sonnet 5.5 920fecdeb2 Add the touch-screen machine console
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 16:57:56 +02:00
petriandClaude Sonnet 5.5 3e1c671949 Track machine counters and maintenance with counter and time intervals
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 16:52:49 +02:00
petriandClaude Sonnet 5.5 aac579257a Add machines with day-by-day work lists for job tasks
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 16:43:55 +02:00
petriandClaude Sonnet 5.5 0de0e332b2 Count stock and correct the differences on confirmation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 16:34:08 +02:00
petriandClaude Sonnet 5.5 bca1eed166 Record used material on tasks and suggest workflow steps' default materials
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 16:28:16 +02:00
petriandClaude Sonnet 5.5 30132deb0e Add stock items, groups and movements at a moving average cost
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 16:18:59 +02:00
petriandClaude Sonnet 5.5 361a2974cf Let a service unit use stock and machines
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 16:01:59 +02:00
petriandClaude Sonnet 5.5 d160854b79 Email quick sale receipts and send them again from the sales list
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 16:00:15 +02:00
petriandClaude Sonnet 5.5 3faa4cfbc6 Open only the info popover when a calendar bar is tapped
On touch screens a tap on a task bar both showed its info popover and
opened the schedule dialog. A tap now only opens the popover, which stays
open until something else is tapped, and the popover's own "Open schedule"
button opens the dialog. Mouse clicks and Enter still open the dialog
directly. The popover is no longer a tooltip since it holds a button, and
the bar's aria-describedby points only at the details.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 09:35:53 +02:00
petriandClaude Sonnet 5.5 4bba130c4c Specify auxiliary materials and stock features per service unit
Production steps may have no machine and carry auxiliary materials
(e.g. transfer tape for installing window decals); installation is a
task of its own with a used material section, and workflow template
steps get default materials. A service unit setting turns stock and
machine features on, and machines belong to one or more service units.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 07:52:47 +02:00
petriandClaude Sonnet 5.5 cdf4c2bdf4 Specify a daily machine work list planned days ahead
Each work list row has a production day: tasks can be scheduled on a
machine days ahead and show on that day's list, with a planning view
on the machine page. Unfinished rows move to the next day marked late
instead of being split over several days.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 07:38:33 +02:00
petriandClaude Sonnet 5.5 18dd408b3d Specify a refresh button, emailed receipts and one-device quick sales
The machine console and the open orders list get a Refresh button for
orders handled on several devices, while the whole quick sale can
still be done on one device. Quick sales ask for an optional email
address to send the PDF receipt to; the receipt can still be printed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 07:32:30 +02:00
petriandClaude Sonnet 5.5 290936d8de Let quick sale quantities be typed and specify quick sale production
Each line on the quick sale page gets a quantity field beside the
minus and plus buttons: the typed quantity is saved on change or
Enter, 0 removes the line and an invalid value keeps the old one
with an error.

The specification gets section 19.7 for phase 5: products with a
production process are sold as orders that go to a machine's work
list, are marked made at the machine (booking material and hours)
and are then paid in cash or by card.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 07:22:14 +02:00
petriandClaude Sonnet 5.5 42b470d01c Specify phase 5: stock accounting and machines
Mark finished phase 1 and 2 items in the specification, and add
chapter 19 for phase 5: stock items, purchases at moving average
cost, consumption, stock counts, machines (printers, label cutters)
with work lists, counters and maintenance logged by the machine's
user, and a touch-screen machine console. Open questions move to
chapter 20 with new questions for phase 5.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 07:09:51 +02:00
petriandClaude Sonnet 5.5 bc3dbf16a4 Show a monthly fee job's billed periods on a page of its own
The new billing::job-months page lists the months that created billing
materials have billed for a monthly fee job, with links to the materials
and the total, and the months still to bill up to the current month,
counted the same way as a new material counts them. The job page links
to it next to the payment basis for those who manage billing.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 15:56:15 +02:00
petriandClaude Sonnet 5.5 e817cca329 Translate the pagination page buttons' accessible names
Livewire's pagination names its page buttons with "Go to page :page",
which had no Finnish translation, so screen readers heard it in English.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 15:56:14 +02:00
petriandClaude Sonnet 5.5 1922fc2c35 Give the workflow template step cards a white or black background
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 12:38:33 +02:00
petriandClaude Sonnet 5.5 eb9346d31c Fill the task calendar's working days in order instead of evenly
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]>
2026-11-25 12:10:43 +02:00
petriandClaude Sonnet 5.5 ede7043765 Show the task's due date in the calendar's schedule dialog
The dialog shows the due date as a read-only field; it is changed on the
task's edit page.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 11:07:43 +02:00
petriandClaude Sonnet 5.5 616b9fa5ad Always show the vertical scrollbar so the menu does not shift
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 11:00:36 +02:00
petriandClaude Sonnet 5.5 912b4ae1b5 Colour overloaded days and late tasks in the task calendar
Days over the daily capacity are amber and late task bars red, next to
the existing icon and text.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 11:00:36 +02:00
petriandClaude Sonnet 5.5 7c605014c7 Set the calendar's daily capacity in the company details
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]>
2026-11-25 11:00:35 +02:00
petriandClaude Opus 5.5 e0da863cf7 Fix the quick sales report on MariaDB with credits
The unit price column is unsigned, so MariaDB refused the negative
product of a credit's quantity and price. The price is now cast to a
signed number before multiplying.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 10:40:45 +02:00
petriandClaude Sonnet 5.5 487a7d34ba Replace the demo home page with a dashboard
Everyone sees their open tasks on an agenda, their open jobs, this
week's hours and quick links. Admin and management also get a lazily
loaded management panel: things to do, the month so far against the
previous month, jobs and late work, and everyone's workload.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 09:20:02 +02:00
petriandClaude Sonnet 5.5 d4251d00d7 Move the reports under the Hallinto menu
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 09:11:26 +02:00
petriandClaude Sonnet 5.5 b13310b815 Count billing materials without a billing month in reports
Materials created before billing months existed have no period, so the
profitability report left out what they billed. Their month is now the
month they were created in, as in the export repository.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 09:04:43 +02:00
petriandClaude Sonnet 5.5 2de3733a3f Add browser accessibility tests for the reports
Fixes found by axe: the chart axis captions are darker and larger, the
period heading keeps its heading role with the live region inside it,
and scrollable tables are focusable regions named by their table.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:56:33 +02:00
petriandClaude Sonnet 5.5 52b6a1f0a6 Document the reports in the specification and CLAUDE.md
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:51:02 +02:00
petriandClaude Sonnet 5.5 8aa62c8e02 Add the profitability report and the internal hourly cost
Profitability by job and service unit from a period's hours, expenses
and the created billing materials of its months. Hours are costed at one
internal hourly cost, set on the price list maintenance page; a job of
several service units is shared evenly between them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:50:30 +02:00
petriandClaude Sonnet 5.5 8079c272d2 Add the expense reimbursements report
The expenses employees paid themselves in a period, by person with
kilometres and amounts, printable and as CSV for payroll.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:46:22 +02:00
petriandClaude Sonnet 5.5 568871c9dc Add the quick sales report
Quick sales of a period by cash day, product, seller and VAT rate, with
credits, open cash days flagged, a chart by day or month and CSV. VAT is
taken out of each day's total of a rate, as on the cash day balance.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:44:20 +02:00
petriandClaude Sonnet 5.5 a57b383e4d Add the unbilled hours report
Hours on customers' billable jobs that no billing material has taken,
by job and work type up to a day, valued at the hourly rates for jobs
billed by the hour, with a chart by service unit and CSV.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:41:43 +02:00
petriandClaude Sonnet 5.5 64f1e7c54a Add Reports module with the hours by person report
Management's reports (spec 13) get their own module that reads the other
modules through ports. The first report sums hours by person in a period,
narrowed by service unit or customer, with breakdowns, a chart and CSV.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:39:19 +02:00
petriandClaude Sonnet 5.5 f906f9a43f Add notifications: header bell, task start run and assignment notices
A new Notifications module shows a bell beside the profile menu with the
number of unseen notifications and a panel of the last 7 days; opening
it marks them seen, and each notification links to its job or task.

- A daily run at 14.00 (notifications:task-starts) tells the assignee
  and members of tasks that start by the next working day, skipping
  holidays and days off, done tasks and archived jobs.
- Jobs publishes PeopleAddedToTask and PeopleAddedToJob when someone
  else makes a user a task's assignee or member or gives them a role on
  a job; those users are notified at once. UpdateTask and ScheduleTask
  now take the acting user.
- A notification link to #task-<id> opens that task card on the job page.

Also: simplifying job fields per service unit (K31) moves to the end of
phase 4, and the workflow template browser test waits for Livewire's
progress bar before its last accessibility check.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 08:28:01 +02:00
petriandClaude Sonnet 5.5 ae8172898d Add images to tasks
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]>
2026-11-25 07:46:53 +02:00
petriandClaude Sonnet 5.5 4fb8ea1c5f 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]>
2026-11-25 07:31:53 +02:00
petriandClaude Opus 5.5 60cab4b871 Keep the header at the top of the window on wider screens
The signed-in header is sticky from the md breakpoint up, so only the
page content scrolls; on phones and at high zoom it still scrolls with
the page, where a wrapped sticky header would take too much of the view.
A small layout script sets scroll-padding-top to the header's height
while it is sticky, so focused elements, anchors and the skip link
target land below it (WCAG 2.4.11).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 07:18:55 +02:00
petriandClaude Opus 5.5 45dbb04344 Keep the chosen language across sign-in and forced sign-out
A language picked on a signed-out page is now stored on the account when
the user signs in (StoreLocaleChosenBeforeLogin), so the app does not
switch back to the account default. EnsureAccountIsUsable keeps the user's
language for the login page when it ends a disabled account's session.

ChangePreferredLocale runs in a transaction like the other use cases, the
language names come from layout.languages instead of the Locale enum, and
the translation test also compares fi.json with en.json and rejects
English files without a Finnish counterpart.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 07:09:22 +02:00
petriandClaude Opus 5.5 4f926c238b Let the theme be chosen by clicking its label in the profile menu
Clicking a theme option's text moved focus nowhere, and the focusout rule
closed the panel before the radio was checked. The panel now closes only
when focus moves to an element outside it; clicks outside and Escape still
close it. Each theme option is a full-width row with a hover state, and
the chosen one is also shown in bold.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:36:52 +02:00
petriandClaude Opus 5.5 8aead06972 Add English to the UI and a profile menu for language and theme
Every UI string now exists in lang/fi and lang/en; a unit test checks that
both languages have the same keys and placeholders. A user's language is
stored on the account (users.locale) and applied by the SetLocale web
middleware, falling back to the session's choice on signed-out pages and
then APP_LOCALE. Emails use the user's language through
HasLocalePreference, and the login page keeps the language after logout.

The header's name, theme toggle and logout button become one profile menu
(a disclosure) with the language buttons, light/dark/system theme radios
kept on the device, and logging out. Signed-out pages get a Suomi/English
switch next to the theme toggle.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:28:39 +02:00
petriandClaude Opus 5.5 c2265256c3 Set weekends apart in the dark calendar and make invoice cards white
Days off in the task calendar used the dark page colour, so they did not
show in the dark theme: they are zinc-950 now. Invoice cards on the
billing material page get a white background (zinc-900 in dark mode) so
they stand out from the grey page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:28:39 +02:00
petriandClaude Opus 5.5 9a9935098c Make job page task cards and change history collapsible
Task cards on the job page start collapsed and show the title, assignee,
due date and status; each opens on its own, so several can be open at
once, and "Expand all" / "Collapse all" open or close them together with
a status message. A card opens when focus moves into it. The change
history is a disclosure panel with the number of changes, closed by
default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:12:15 +02:00
petriandClaude Opus 5.5 6936d0950b Keep the header dark and give the light theme a grey content background
The header and its menu popovers always use the dark theme colours, the
light theme body is zinc-100 and Kanban columns zinc-200 so they still
stand out. The theme toggle icon follows the page theme through a new
page-dark variant, and TallStackUI hint and selection group description
texts are one shade darker to keep 4.5:1 contrast on the grey background.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 06:01:50 +02:00
petriandClaude Sonnet 5.5 7d7b72989d Add an editable menu name and reserve billing material numbers on creation
- 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]>
2026-11-24 19:41:57 +02:00
petriandClaude Sonnet 5.5 48030e7689 Group the main menu into role-aware popover groups
Replace the flat link row with disclosure groups (Työt, Oma kirjaus,
Asiakkaat ja myynti, Hallinto, Ylläpito) built by App\View\MainMenu from
Gate abilities, and add menu links for new job, quick sales list and
workflow templates.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-24 19:14:11 +02:00
petriandClaude Opus 5.5 18598cc08e Give tasks one assignee and members, and schedule template tasks to due dates
- 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]>
2026-11-24 19:01:11 +02:00
petriandClaude Opus 5.5 b4f2f1cfaa Add the task calendar, holidays, workflow templates and customer removal
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]>
2026-11-24 18:13:11 +02:00
petriandClaude Opus 5.5 dfe4941f02 Add checklists to tasks on the job page
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]>
2026-11-24 16:38:08 +02:00
petriandClaude Opus 5.5 e521df647c Write billing CSV amounts in cents and VAT rates in per mille
The invoicing import reads whole numbers: amounts are now whole cents
(400,00 € is 40000) and the VAT rate is in tenths of a percent (10 % is
100, 25,5 % is 255). The column headings say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 13:37:18 +02:00
petriandClaude Opus 5.5 ae7b611126 Add a CSV download of created billing materials
Management downloads a created billing material as a semicolon CSV with
decimal commas and a UTF-8 BOM for Excel: one row per invoice line with
the invoice's customer, billing unit, e-invoice details and reference,
the job, the line and its net, VAT and gross amounts. Consumers' full
personal identity codes are included only for those who may see them,
the response is not cached, and cells Excel would read as formulas are
escaped. The columns follow Fennoa's import format once a sample exists.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 13:32:46 +02:00