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!',
|
||||
|
||||
@@ -56,4 +56,5 @@ return [
|
||||
'theme_system' => 'Järjestelmän mukainen',
|
||||
'selected' => '(valittu)',
|
||||
],
|
||||
'opens_in_new_window' => 'avautuu uuteen ikkunaan',
|
||||
];
|
||||
|
||||
+10
-9
@@ -162,11 +162,11 @@ return [
|
||||
'deactivated' => 'Huoltokohde poistettu käytöstä. Sen historia säilyy.',
|
||||
'counters' => 'Laskurit',
|
||||
'no_reading' => 'Ei lukemia.',
|
||||
'latest_reading' => 'Viimeisin lukema :reading :unit (:at).',
|
||||
'new_reading' => 'Uusi lukema (:unit)',
|
||||
'save_reading' => 'Kirjaa lukema',
|
||||
'save_reading_named' => 'Kirjaa lukema: :counter',
|
||||
'reading_saved' => 'Laskurin :counter lukema :reading :unit kirjattu.',
|
||||
'latest_reading' => 'Laskuri nyt :reading :unit (päivitetty :at).',
|
||||
'usage' => 'Työn kulutus (:unit)',
|
||||
'save_usage' => 'Kirjaa kulutus',
|
||||
'save_usage_named' => 'Kirjaa kulutus: :counter',
|
||||
'usage_saved' => 'Laskuriin :counter lisätty :usage :unit, laskuri nyt :reading :unit.',
|
||||
'items' => 'Huollot',
|
||||
'add' => 'Uusi huoltokohde',
|
||||
'none' => 'Koneelle ei ole huoltokohteita.',
|
||||
@@ -193,7 +193,6 @@ return [
|
||||
'edit_named' => 'Muokkaa: :name',
|
||||
'done' => 'Huolto tehty',
|
||||
'done_named' => 'Huolto tehty: :name',
|
||||
'reading_at' => 'Lukema (:counter)',
|
||||
'note' => 'Huomautus',
|
||||
'confirm_done' => 'Kirjaa huolto',
|
||||
'recorded' => 'Huolto :name kirjattu.',
|
||||
@@ -209,7 +208,7 @@ return [
|
||||
'cancel' => 'Merkitse perutuksi',
|
||||
'cancel_named' => 'Merkitse perutuksi: :name :at',
|
||||
'cancel_title' => 'Merkitäänkö huolto perutuksi?',
|
||||
'cancel_text' => 'Huoltokirjaus jää historiaan perutuksi merkittynä, eikä se enää nollaa huoltovälin kertymää.',
|
||||
'cancel_text' => 'Huoltokirjaus jää historiaan perutuksi merkittynä, eikä se enää nollaa huoltoväliä.',
|
||||
'cancelled' => 'Huolto :name merkitty perutuksi.',
|
||||
'errors' => [
|
||||
'needs_interval' => 'Anna laskuriin perustuva huoltoväli, aikaan perustuva huoltoväli tai molemmat.',
|
||||
@@ -218,7 +217,7 @@ return [
|
||||
'counter' => 'Valitse koneen laskuri.',
|
||||
'period_count' => 'Anna jakso kokonaislukuna 1–365.',
|
||||
'warning' => 'Anna ennakkovaroitus prosentteina 1–99.',
|
||||
'reading' => 'Anna lukema nollana tai suurempana lukuna, enintään kolme desimaalia.',
|
||||
'usage' => 'Anna työn kulutus nollaa suurempana lukuna, esim. 350, enintään kolme desimaalia.',
|
||||
],
|
||||
],
|
||||
'console' => [
|
||||
@@ -274,7 +273,9 @@ return [
|
||||
'undo' => 'Peru viimeisin kirjaus',
|
||||
'reason_required' => 'Anna syy, kun tehtävää ei ole valittu.',
|
||||
'counters_and_maintenance' => 'Laskurit ja huollot',
|
||||
'latest' => 'Viimeisin lukema :reading',
|
||||
'latest' => 'Laskuri nyt :reading',
|
||||
'usage' => ':counter: työn kulutus (:unit)',
|
||||
'hour_suggestion' => 'Ehdotus: kirjaa :hours h laskuriin :counter. Vahvista painamalla Kirjaa kulutus.',
|
||||
],
|
||||
'process' => [
|
||||
'title' => 'Valmistusprosessi',
|
||||
|
||||
@@ -86,6 +86,47 @@ return [
|
||||
'supervisor_has_interns' => 'Käyttäjä on aktiivisten harjoittelijoiden vastuuhenkilö. Vaihda harjoittelijoille ensin uusi vastuuhenkilö.',
|
||||
],
|
||||
|
||||
'pin' => [
|
||||
'title' => 'Konsolin PIN-koodi',
|
||||
'intro' => 'Koneen konekäyttöliittymässä voit vaihtaa käyttäjäksi omalla PIN-koodillasi ilman sähköpostia ja salasanaa. PIN-koodilla avattu istunto toimii vain konekäyttöliittymässä.',
|
||||
'is_set' => 'Sinulla on PIN-koodi.',
|
||||
'not_set' => 'Sinulla ei ole vielä PIN-koodia.',
|
||||
'current_password' => 'Nykyinen salasana',
|
||||
'pin' => 'Uusi PIN-koodi',
|
||||
'pin_hint' => '4–6 numeroa.',
|
||||
'pin_confirmation' => 'PIN-koodi uudelleen',
|
||||
'save' => 'Tallenna PIN-koodi',
|
||||
'remove' => 'Poista PIN-koodi',
|
||||
'saved' => 'PIN-koodi tallennettu.',
|
||||
'removed' => 'PIN-koodi poistettu.',
|
||||
'errors' => [
|
||||
'pin' => 'Anna PIN-koodiksi 4–6 numeroa.',
|
||||
'confirmation' => 'PIN-koodit eivät ole samat.',
|
||||
'password' => 'Salasana ei ole oikein.',
|
||||
],
|
||||
],
|
||||
'console_login' => [
|
||||
'title' => 'Kirjaudu konekäyttöliittymään',
|
||||
'intro' => 'Konekäyttöliittymällä on oma kirjautumisensa. Tavallinen käyttöliittymä samassa selaimessa ei muutu.',
|
||||
'with_pin' => 'PIN-koodilla',
|
||||
'with_password' => 'Sähköpostilla ja salasanalla',
|
||||
],
|
||||
'pin_switch' => [
|
||||
'title' => 'Vaihda käyttäjä',
|
||||
'user' => 'Kuka olet?',
|
||||
'pin' => 'PIN-koodi',
|
||||
'keypad' => 'Numeronäppäimet',
|
||||
'clear' => 'Tyhjennä',
|
||||
'backspace' => 'Poista viimeinen numero',
|
||||
'submit' => 'Kirjaudu',
|
||||
'no_users' => 'Kenelläkään ei ole vielä PIN-koodia. PIN-koodin voi asettaa profiilivalikosta.',
|
||||
'with_password' => 'Kirjaudu sähköpostilla ja salasanalla',
|
||||
'errors' => [
|
||||
'user' => 'Valitse nimesi.',
|
||||
'pin' => 'PIN-koodi ei ole oikein.',
|
||||
'locked' => 'Liian monta väärää yritystä. Yritä uudelleen :minutes min kuluttua tai kirjaudu salasanalla.',
|
||||
],
|
||||
],
|
||||
'password_mail' => [
|
||||
'subject' => 'Aseta salasana',
|
||||
'greeting' => 'Hei!',
|
||||
|
||||
Reference in New Issue
Block a user