Give the machine console its own session with PIN sign-in, make counters cumulative

The console under console/ has its own session cookie and console guard
(UseConsoleSession), so signing out or changing user there leaves the
normal interface alone. Links open it in a new window through a one-time
handoff key; a signed-out console asks for a PIN code or password on its
own login page. Users set their 4-6 digit PIN on the profile's PIN page,
and the console's change user dialog takes it on a keypad; five wrong
PINs lock PIN sign-in for 15 minutes.

Machine counters are cumulative: users record how much a job used and it
is added to the latest reading. A maintenance record restarts the whole
counter interval from the reading at the record.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-29 09:58:11 +02:00
co-authored by Claude Sonnet 5.5
parent 87e38260dc
commit 32c33e2a64
55 changed files with 1660 additions and 194 deletions
+10 -9
View File
@@ -162,11 +162,11 @@ return [
'deactivated' => 'The maintenance item was taken out of use. Its history is kept.',
'counters' => 'Counters',
'no_reading' => 'No readings.',
'latest_reading' => 'Latest reading :reading :unit (:at).',
'new_reading' => 'New reading (:unit)',
'save_reading' => 'Record reading',
'save_reading_named' => 'Record reading: :counter',
'reading_saved' => 'Reading :reading :unit of :counter recorded.',
'latest_reading' => 'Counter now :reading :unit (updated :at).',
'usage' => 'Used by the job (:unit)',
'save_usage' => 'Record usage',
'save_usage_named' => 'Record usage: :counter',
'usage_saved' => ':usage :unit added to :counter, counter now :reading :unit.',
'items' => 'Maintenance',
'add' => 'New maintenance item',
'none' => 'The machine has no maintenance items.',
@@ -193,7 +193,6 @@ return [
'edit_named' => 'Edit: :name',
'done' => 'Maintenance done',
'done_named' => 'Maintenance done: :name',
'reading_at' => 'Reading (:counter)',
'note' => 'Note',
'confirm_done' => 'Record maintenance',
'recorded' => 'Maintenance :name recorded.',
@@ -209,7 +208,7 @@ return [
'cancel' => 'Mark as cancelled',
'cancel_named' => 'Mark as cancelled: :name :at',
'cancel_title' => 'Mark the maintenance as cancelled?',
'cancel_text' => 'The record stays in the history marked as cancelled, and it no longer restarts the interval.',
'cancel_text' => 'The record stays in the history marked as cancelled, and it no longer resets the interval.',
'cancelled' => 'Maintenance :name marked as cancelled.',
'errors' => [
'needs_interval' => 'Give a counter-based interval, a time-based interval or both.',
@@ -218,7 +217,7 @@ return [
'counter' => 'Choose a counter of the machine.',
'period_count' => 'Enter the period as a whole number 1–365.',
'warning' => 'Enter the advance warning as a percentage 1–99.',
'reading' => 'Enter a reading of zero or more, at most three decimals.',
'usage' => 'Enter the amount the job used as a number greater than zero, e.g. 350, at most three decimals.',
],
],
'console' => [
@@ -274,7 +273,9 @@ return [
'undo' => 'Undo the latest record',
'reason_required' => 'Give a reason when no task is selected.',
'counters_and_maintenance' => 'Counters and maintenance',
'latest' => 'Latest reading :reading',
'latest' => 'Counter now :reading',
'usage' => ':counter: used by the job (:unit)',
'hour_suggestion' => 'Suggestion: record :hours h on the counter :counter. Confirm with Record usage.',
],
'process' => [
'title' => 'Production process',