feat: add one-click nudge system with popover, throttling, and email notifications (Story 3.2)
Add NudgeController with 1-hour throttling per declaration, NudgePopover component on declarations index and dashboard, shadcn-vue popover primitives, and per-declaration nudge tracking. Owners/managers can nudge assigned workers with one click. Includes 10 feature tests covering authorization, throttling, and cache invalidation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -76,11 +76,13 @@ class DeclarationController extends Controller
|
||||
'title' => $declaration->title,
|
||||
'type' => $declaration->type->value,
|
||||
'client_name' => $declaration->client->company_name,
|
||||
'assignee_name' => $declaration->assignee?->name,
|
||||
'status' => $declaration->status->value,
|
||||
'due_date' => $declaration->due_date?->format('Y-m-d'),
|
||||
'showUrl' => route('declarations.show', $declaration),
|
||||
'editUrl' => route('declarations.edit', $declaration),
|
||||
'destroyUrl' => route('declarations.destroy', $declaration),
|
||||
'nudgeUrl' => ! $isWorker ? route('declarations.nudge', $declaration) : null,
|
||||
]);
|
||||
|
||||
return Inertia::render('declarations/Index', [
|
||||
@@ -90,6 +92,7 @@ class DeclarationController extends Controller
|
||||
'canCreate' => ! $isWorker,
|
||||
'canEdit' => ! $isWorker,
|
||||
'canDelete' => ! $isWorker,
|
||||
'canNudge' => ! $isWorker,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user