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:
@@ -56,4 +56,5 @@ return [
|
||||
'theme_system' => 'System default',
|
||||
'selected' => '(selected)',
|
||||
],
|
||||
'opens_in_new_window' => 'opens in a new window',
|
||||
];
|
||||
|
||||
+10
-9
@@ -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',
|
||||
|
||||
@@ -86,6 +86,47 @@ return [
|
||||
'supervisor_has_interns' => 'The user is the supervisor of active interns. First choose a new supervisor for the interns.',
|
||||
],
|
||||
|
||||
'pin' => [
|
||||
'title' => 'Console PIN code',
|
||||
'intro' => 'On a machine console you can switch to your user with your own PIN code, without your email and password. A session opened with the PIN code works only on the machine console.',
|
||||
'is_set' => 'You have a PIN code.',
|
||||
'not_set' => 'You do not have a PIN code yet.',
|
||||
'current_password' => 'Current password',
|
||||
'pin' => 'New PIN code',
|
||||
'pin_hint' => '4–6 digits.',
|
||||
'pin_confirmation' => 'PIN code again',
|
||||
'save' => 'Save PIN code',
|
||||
'remove' => 'Remove PIN code',
|
||||
'saved' => 'PIN code saved.',
|
||||
'removed' => 'PIN code removed.',
|
||||
'errors' => [
|
||||
'pin' => 'Enter 4–6 digits as the PIN code.',
|
||||
'confirmation' => 'The PIN codes do not match.',
|
||||
'password' => 'The password is not correct.',
|
||||
],
|
||||
],
|
||||
'console_login' => [
|
||||
'title' => 'Sign in to the machine console',
|
||||
'intro' => 'The machine console has a sign-in of its own. The normal user interface in the same browser does not change.',
|
||||
'with_pin' => 'With a PIN code',
|
||||
'with_password' => 'With email and password',
|
||||
],
|
||||
'pin_switch' => [
|
||||
'title' => 'Change user',
|
||||
'user' => 'Who are you?',
|
||||
'pin' => 'PIN code',
|
||||
'keypad' => 'Number keys',
|
||||
'clear' => 'Clear',
|
||||
'backspace' => 'Remove the last digit',
|
||||
'submit' => 'Sign in',
|
||||
'no_users' => 'Nobody has a PIN code yet. A PIN code is set from the profile menu.',
|
||||
'with_password' => 'Sign in with email and password',
|
||||
'errors' => [
|
||||
'user' => 'Choose your name.',
|
||||
'pin' => 'The PIN code is not correct.',
|
||||
'locked' => 'Too many wrong attempts. Try again in :minutes min or sign in with your password.',
|
||||
],
|
||||
],
|
||||
'password_mail' => [
|
||||
'subject' => 'Set your password',
|
||||
'greeting' => 'Hello!',
|
||||
|
||||
Reference in New Issue
Block a user