Add quick job intake for phones
Phase 1, item 5: - New page /jobs/quick (Pikavastaanotto): customer (search or quick add), name, short description, service unit, responsible person and starting status (Alustava or Prospekti) in one column. The job is created with CreateCustomerJob, so numbering, reference checks and history are the same as on the full form. - After saving, the form clears for the next job (responsible person and status stay), and a status message with the job number and links to the job and its edit page takes focus. - The customer search of the job form moves to a PicksCustomer trait and an <x-jobs.customer-picker> component shared by both pages. - Menu link and a list button for users who may open jobs; nav items accept several route patterns. - PHPStan ignores unused-trait only for Livewire Concerns, which are used from excluded single-file components. - Spec and CLAUDE.md updated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -39,7 +39,7 @@ Accessibility is a contractual acceptance criterion. It covers the whole UI: nav
|
||||
- `<tallstackui:script />`: root-relative asset URLs that 404 in a subfolder (local XAMPP). The layout includes `resources/views/partials/tallstackui-script.blade.php` instead.
|
||||
- `<x-select.native>`: the label is not tied to the control, so also pass `:aria-label` with the same text.
|
||||
- `<x-modal>`: `aria-labelledby` points at an id its title lacks, the close button has no name, and focus neither moves in nor returns. Use `<x-confirm-dialog>` (`resources/views/components/confirm-dialog.blade.php`, native `<dialog>` + `showModal()`), opened from Livewire with `$this->js("document.getElementById('<id>').showModal()")`; see `customers::show`.
|
||||
- Groups of checkboxes for an array property: `<x-checkbox-group>` (`resources/views/components/checkbox-group.blade.php`, fieldset + legend + native inputs). Searchable choices (customer on the job form) are a search input with result buttons and a `role="status"` count, not `<x-select.styled>`.
|
||||
- Groups of checkboxes for an array property: `<x-checkbox-group>` (`resources/views/components/checkbox-group.blade.php`, fieldset + legend + native inputs). Searchable choices are a search input with result buttons and a `role="status"` count, not `<x-select.styled>`: for customers use the `PicksCustomer` trait (`app/Modules/Jobs/Presentation/Livewire/Concerns`) with `<x-jobs.customer-picker>`.
|
||||
- Solid `color="red"` buttons: white on red-500 is 3.5:1, so the solid red is red-700 in the published `NormalButtonColors`.
|
||||
- `<x-input>` without `wire:model` (e.g. a read-only value): pass an explicit `id`, or the label is not tied to it. `<x-clipboard>` has an unlabelled input and a button whose name changes; build copy fields from `<x-input readonly>` + `<x-button>` + a `role="status"` message instead (see `users::form`).
|
||||
- Contrast: the primary palette is one step darker (`resources/css/app.css`); error text, label error and asterisk, and input/select error colours are changed by soft customization in `App\Providers\AppServiceProvider`; light alert and link text colours are in published colour classes `app/View/Components/TallStackUi/Colors/`. `flat` and `outline` buttons have no dark-mode text colour: use `subtle color="black"` for neutral buttons.
|
||||
|
||||
Reference in New Issue
Block a user