Replace Flux UI with TallStackUI 4
Rewrite the layout and all Customers and Users pages with TallStackUI components and remove livewire/flux and its Boost skill. Fix the TallStackUI accessibility gaps found by the axe tests: - password reveal and theme switch have no accessible name: add <x-password-field> and keep the own theme toggle button - select.native label is not tied to the control: add aria-label - contrast: darker primary palette, soft-customized error colours and published alert/link colour classes; neutral buttons use subtle black - follow the system theme by default (localStorage key dark-theme) Load TallStackUI assets from the app URL so they work in the XAMPP subfolder, add Finnish TallStackUI strings, and drop inputmode=numeric from the business ID field so iOS keyboards show the hyphen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -89,7 +89,7 @@ Tekniset toteutukset.
|
||||
- Myöhemmin: ulkoiset API:t (laskutusohjelma), tiedostot, sähköposti.
|
||||
|
||||
### Presentation
|
||||
Käyttöliittymä. Tässä projektissa se on **Livewire 4 single-file -komponentteja ja Flux UI:ta**, ei controllereita.
|
||||
Käyttöliittymä. Tässä projektissa se on **Livewire 4 single-file -komponentteja ja TallStackUI 4 -komponentteja**, ei controllereita.
|
||||
|
||||
- Sivut ovat `Presentation/Livewire/⚡<nimi>.blade.php` ja niihin viitataan `customers::index`-muodossa.
|
||||
- **Livewire Form -objekti** (`CustomerForm`) vastaa Form Requestia: se validoi syötteen *muodon* (pakollisuus, pituus, enum) ja rakentaa DTO:n. Liiketoimintasääntöjä (Y-tunnuksen tarkiste, yksilöllisyys) se ei toista, vaan ne tulevat Domainista.
|
||||
@@ -206,7 +206,7 @@ Esimerkki: vaiheen 1 `CustomerJobs` (asiakastyöt).
|
||||
| Määrittely | Toteutus | Syy |
|
||||
|---|---|---|
|
||||
| Laravel 12 | Laravel 13 | Projektiin asennettu versio. Periaatteet ovat samat. |
|
||||
| Controllerit, Form Requestit, API Resourcet | Livewire SFC + Livewire Form | Projektin käyttöliittymä on Livewire 4 + Flux. Controllerit tulevat API:n myötä. |
|
||||
| Controllerit, Form Requestit, API Resourcet | Livewire SFC + Livewire Form | Projektin käyttöliittymä on Livewire 4 + TallStackUI. Controllerit tulevat API:n myötä. |
|
||||
| Esimerkkimoduulit Customers, Orders, Products, Invoicing | Shared + Customers | Moduuleja ei luoda varmuuden vuoksi. Tämän yrityksen moduulit ovat `määrittely.txt`:n mukaan Customers, CustomerJobs, TimeTracking, Expenses, ServiceCatalog, Tasks ja Billing, ja ne tehdään omissa vaiheissaan. |
|
||||
| Moduulikohtaiset migraatiot | `database/migrations` | Laravelin normaalit hakemistot säilytetään. |
|
||||
| Application ei riipu Laravelista | Sallittu: `Illuminate\Contracts\Pagination` | Sivutus ilman omaa abstraktiota (ks. luku 3). |
|
||||
|
||||
Reference in New Issue
Block a user