Add modular layered architecture with Customers module
Introduce a modular monolith under app/Modules with Domain, Application, Infrastructure and Presentation layers. - Shared module: DomainException base, TransactionManager and an EventDispatcher that publishes events after commit. - Customers module: Customer entity, CustomerName and BusinessId (Y-tunnus checksum) value objects, RegisterCustomer/UpdateCustomer use cases, CustomerQueries read contract, Eloquent repository, and Livewire list and form pages with Finnish translations. - Pest arch tests enforce layer and module dependency rules for every module; Larastan (level 6) added as a dev dependency. - Raise Flux error text contrast to meet WCAG 2.2 AA. - Document the architecture in docs/architecture.md and CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'title' => 'Asiakkaat',
|
||||
'create_title' => 'Uusi asiakas',
|
||||
'edit_title' => 'Muokkaa asiakasta',
|
||||
|
||||
'new' => 'Uusi asiakas',
|
||||
'edit' => 'Muokkaa',
|
||||
'save' => 'Tallenna',
|
||||
'cancel' => 'Peruuta',
|
||||
'search' => 'Hae asiakasta',
|
||||
'search_description' => 'Hae nimellä tai Y-tunnuksella.',
|
||||
'empty' => 'Asiakkaita ei löytynyt.',
|
||||
'result_count' => '{0} Ei asiakkaita|{1} :count asiakas|[2,*] :count asiakasta',
|
||||
|
||||
'created' => 'Asiakas :name lisätty.',
|
||||
'updated' => 'Asiakkaan :name tiedot tallennettu.',
|
||||
|
||||
'fields' => [
|
||||
'name' => 'Nimi',
|
||||
'type' => 'Asiakastyyppi',
|
||||
'business_id' => 'Y-tunnus',
|
||||
'business_id_description' => 'Muodossa 1234567-8. Ei pakollinen.',
|
||||
],
|
||||
|
||||
'types' => [
|
||||
'company' => 'Yritys',
|
||||
'consumer' => 'Kuluttaja',
|
||||
],
|
||||
|
||||
'errors' => [
|
||||
'name_required' => 'Anna asiakkaan nimi.',
|
||||
'invalid_name' => 'Nimen pituus voi olla enintään 255 merkkiä.',
|
||||
'type_required' => 'Valitse asiakastyyppi.',
|
||||
'invalid_business_id' => 'Y-tunnus ei ole kelvollinen. Tarkista numerot ja muoto 1234567-8.',
|
||||
'consumer_business_id' => 'Kuluttaja-asiakkaalla ei voi olla Y-tunnusta.',
|
||||
'business_id_taken' => 'Tällä Y-tunnuksella on jo asiakas.',
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user