Add notifications: header bell, task start run and assignment notices
A new Notifications module shows a bell beside the profile menu with the number of unseen notifications and a panel of the last 7 days; opening it marks them seen, and each notification links to its job or task. - A daily run at 14.00 (notifications:task-starts) tells the assignee and members of tasks that start by the next working day, skipping holidays and days off, done tasks and archived jobs. - Jobs publishes PeopleAddedToTask and PeopleAddedToJob when someone else makes a user a task's assignee or member or gives them a role on a job; those users are notified at once. UpdateTask and ScheduleTask now take the acting user. - A notification link to #task-<id> opens that task card on the job page. Also: simplifying job fields per service unit (K31) moves to the end of phase 4, and the workflow template browser test waits for Livewire's progress bar before its last accessibility check. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -378,9 +378,13 @@ new class extends Component
|
||||
|
||||
<ul class="space-y-3">
|
||||
@foreach ($this->tasks as $task)
|
||||
{{-- A notification links to #task-<id>: that card opens and comes into view. --}}
|
||||
<li
|
||||
id="task-{{ $task->id }}"
|
||||
class="scroll-mt-24"
|
||||
wire:key="task-{{ $task->id }}"
|
||||
x-data="{ open: false }"
|
||||
x-data="{ open: location.hash === '#task-{{ $task->id }}' }"
|
||||
x-init="if (open) $nextTick(() => $el.scrollIntoView({ block: 'start' }))"
|
||||
x-on:tasks-expand.window="open = $event.detail"
|
||||
x-on:focusin="if ($event.target.closest('[data-task-details]')) open = true"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user