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]>
This commit is contained in:
2026-11-25 09:20:02 +02:00
co-authored by Claude Sonnet 5.5
parent d4251d00d7
commit 487a7d34ba
46 changed files with 2032 additions and 62 deletions
+96
View File
@@ -0,0 +1,96 @@
<?php
return [
'title' => 'Home',
'greeting' => 'Hello, :name',
'links' => [
'title' => 'Quick links',
'quick_intake' => 'Quick intake',
'new_job' => 'New job',
'time' => 'Time entry',
'quick_sale' => 'Quick sale',
'calendar' => 'Calendar',
],
'tasks' => [
'title' => 'My tasks',
'none' => 'You have no open tasks.',
'groups' => [
'overdue' => 'Late (:count)',
'soon' => 'Today and tomorrow (:count)',
'this_week' => 'Later this week (:count)',
],
'due' => 'due :date',
'starts' => 'starts :date',
'later' => '{1} One more task later.|[2,*] :count more tasks later.',
'to_calendar' => 'Open the calendar',
],
'week' => [
'title' => 'Hours this week',
'caption' => 'Recorded hours by day in the week starting :from',
'total' => 'Total :hours h.',
'unapproved' => 'Not approved :hours h.',
'open' => 'Open the weekly view',
],
'jobs' => [
'title' => 'My customer jobs',
'none' => 'You have no open customer jobs.',
'due' => 'due :date',
'all' => '{0} Customer job list|{1} All my jobs (1 open)|[2,*] All my jobs (:count open)',
],
'management' => [
'title' => 'Management panel',
'loading' => 'Loading the management panel…',
'change' => ':change on the previous month',
'no_comparison' => 'Nothing to compare with in the previous month',
],
'todo' => [
'title' => 'To do',
'approvals' => '{0} No hours waiting for approval|{1} One person has hours waiting for approval|[2,*] :count people have hours waiting for approval',
'approval_line' => ':name: :hours h over :weeks weeks',
'done_jobs' => '{0} No done jobs waiting for billing|{1} One done job is waiting for billing|[2,*] :count done jobs are waiting for billing',
'draft' => 'A billing material draft is in progress',
'cash_days' => '{1} Cash day :first is not closed|[2,*] :count cash days are not closed, the oldest :first',
'unbilled' => 'Value of unbilled hours :amount',
],
'month' => [
'title' => 'Month so far',
'period' => ':from–:to compared with :previous_from–:previous_to.',
'customer_hours' => 'Customer work hours',
'internal_hours' => 'Internal work hours',
'billed' => 'Billed (VAT 0)',
'margin' => 'Margin (VAT 0)',
'no_cost' => 'No hourly cost set',
'sales' => 'Quick sales (with VAT)',
'billing_note' => 'Billing and margin come from the billing materials created for the month.',
],
'stock' => [
'title' => 'Jobs',
'caption' => 'Customer jobs by status',
'status' => 'Status',
'count' => 'Jobs',
'overdue_jobs' => '{0} No late jobs.|{1} One job is late.|[2,*] :count jobs are late.',
'overdue_tasks' => '{0} No late tasks.|{1} One task is late.|[2,*] :count tasks are late.',
'oldest_overdue' => 'Tasks late the longest',
'no_assignee' => 'no assignee',
],
'load' => [
'title' => 'Workload',
'none' => 'No active users.',
'caption' => 'Task calendar bookings against working time',
'person' => 'Person',
'week' => 'Week of :from',
'value' => ':booked / :capacity h (:ratio)',
'overloaded' => 'Overloaded',
'note' => 'Bookings are the estimates of open tasks in the task calendar; working time is the daily maximum times the working days.',
'to_calendar' => 'Open the calendar',
],
];
-6
View File
@@ -51,10 +51,4 @@ return [
'theme_system' => 'System default',
'selected' => '(selected)',
],
'demo' => [
'title' => 'Toiminnanohjaus',
'intro' => 'Livewire and TallStackUI are working. This is a temporary test page.',
'add_click' => 'Add click',
'clicked' => 'Clicked :count times',
],
];
+96
View File
@@ -0,0 +1,96 @@
<?php
return [
'title' => 'Etusivu',
'greeting' => 'Hei, :name',
'links' => [
'title' => 'Pikalinkit',
'quick_intake' => 'Pikavastaanotto',
'new_job' => 'Uusi työ',
'time' => 'Tuntikirjaus',
'quick_sale' => 'Pikamyynti',
'calendar' => 'Kalenteri',
],
'tasks' => [
'title' => 'Omat tehtävät',
'none' => 'Sinulla ei ole avoimia tehtäviä.',
'groups' => [
'overdue' => 'Myöhässä (:count)',
'soon' => 'Tänään ja huomenna (:count)',
'this_week' => 'Myöhemmin tällä viikolla (:count)',
],
'due' => 'määräpäivä :date',
'starts' => 'alkaa :date',
'later' => '{1} Lisäksi yksi tehtävä myöhemmin.|[2,*] Lisäksi :count tehtävää myöhemmin.',
'to_calendar' => 'Avaa kalenteri',
],
'week' => [
'title' => 'Tämän viikon tunnit',
'caption' => 'Kirjatut tunnit päivittäin viikolla, joka alkaa :from',
'total' => 'Yhteensä :hours h.',
'unapproved' => 'Hyväksymättä :hours h.',
'open' => 'Avaa viikkonäkymä',
],
'jobs' => [
'title' => 'Omat asiakastyöt',
'none' => 'Sinulla ei ole avoimia asiakastöitä.',
'due' => 'määräaika :date',
'all' => '{0} Asiakastyölista|{1} Kaikki omat työt (1 avoin)|[2,*] Kaikki omat työt (:count avointa)',
],
'management' => [
'title' => 'Johtajapaneeli',
'loading' => 'Ladataan johtajapaneelia…',
'change' => ':change edelliseen kuukauteen',
'no_comparison' => 'Ei vertailukohtaa edellisessä kuukaudessa',
],
'todo' => [
'title' => 'Vaatii toimia',
'approvals' => '{0} Ei hyväksymättömiä tunteja|{1} Yhdellä henkilöllä hyväksymättömiä tunteja|[2,*] :count henkilöllä hyväksymättömiä tunteja',
'approval_line' => ':name: :hours h, :weeks viikolta',
'done_jobs' => '{0} Ei valmiita töitä laskuttamatta|{1} Yksi valmis työ odottaa laskutusta|[2,*] :count valmista työtä odottaa laskutusta',
'draft' => 'Laskuaineiston luonnos on kesken',
'cash_days' => '{1} Kassapäivä :first on päättämättä|[2,*] :count kassapäivää päättämättä, vanhin :first',
'unbilled' => 'Laskuttamattomien tuntien arvo :amount',
],
'month' => [
'title' => 'Kuukausi tähän mennessä',
'period' => ':from–:to verrattuna jaksoon :previous_from–:previous_to.',
'customer_hours' => 'Asiakastyön tunnit',
'internal_hours' => 'Sisäisen työn tunnit',
'billed' => 'Laskutettu (ALV 0)',
'margin' => 'Kate (ALV 0)',
'no_cost' => 'Tuntikustannus puuttuu',
'sales' => 'Pikamyynnit (verollinen)',
'billing_note' => 'Laskutus ja kate tulevat kuukauden luoduista laskuaineistoista.',
],
'stock' => [
'title' => 'Työkanta',
'caption' => 'Asiakastyöt tiloittain',
'status' => 'Tila',
'count' => 'Töitä',
'overdue_jobs' => '{0} Ei myöhässä olevia töitä.|{1} Yksi työ on myöhässä.|[2,*] :count työtä on myöhässä.',
'overdue_tasks' => '{0} Ei myöhässä olevia tehtäviä.|{1} Yksi tehtävä on myöhässä.|[2,*] :count tehtävää on myöhässä.',
'oldest_overdue' => 'Pisimpään myöhässä olleet tehtävät',
'no_assignee' => 'ei tekijää',
],
'load' => [
'title' => 'Henkilöiden kuormitus',
'none' => 'Ei aktiivisia käyttäjiä.',
'caption' => 'Tehtäväkalenterin varaukset suhteessa työaikaan',
'person' => 'Henkilö',
'week' => 'Viikko :from',
'value' => ':booked / :capacity h (:ratio)',
'overloaded' => 'Ylikuormitettu',
'note' => 'Varaukset ovat avoimien tehtävien arvioita tehtäväkalenterissa; työaika on päiväkatto kertaa työpäivät.',
'to_calendar' => 'Avaa kalenteri',
],
];
-6
View File
@@ -51,10 +51,4 @@ return [
'theme_system' => 'Järjestelmän mukainen',
'selected' => '(valittu)',
],
'demo' => [
'title' => 'Toiminnanohjaus',
'intro' => 'Livewire ja TallStackUI toimivat. Tämä on väliaikainen kokeilusivu.',
'add_click' => 'Lisää klikkaus',
'clicked' => 'Klikattu :count kertaa',
],
];