TenantAtlas/app/Policies
ahmido 9f5c99317b Fix Review Pack generation UX + notifications (#133)
## Summary
- Fixes misleading “queued / running in background” message when Review Pack generation request reuses an existing ready pack (fingerprint dedupe).
- Improves resilience of Filament/Livewire interactions by ensuring the Livewire intercept shim applies after Livewire initializes.
- Aligns Review Pack operation notifications with Ops-UX patterns (queued + completed notifications) and removes the old ReviewPackStatusNotification.

## Key Changes
- Review Pack generate action now:
  - Shows queued toast only when a new pack is actually created/queued.
  - Shows a “Review pack already available” success notification with a link when dedupe returns an existing pack.

## Tests
- `vendor/bin/sail artisan test --compact tests/Feature/ReviewPack/ReviewPackGenerationTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/ReviewPack/ReviewPackResourceTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/LivewireInterceptShimTest.php`

## Notes
- No global search behavior changes for ReviewPacks (still excluded).
- Destructive actions remain confirmation-gated (`->requiresConfirmation()`).

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #133
2026-02-23 19:42:52 +00:00
..
AlertDeliveryPolicy.php feat(alerts): test message + last test status + deep links (#122) 2026-02-18 23:12:38 +00:00
AlertDestinationPolicy.php feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
AlertRulePolicy.php feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
BackupSchedulePolicy.php feat(spec-091): BackupSchedule lifecycle + create-CTA placement rule (#109) 2026-02-14 13:46:06 +00:00
EntraGroupPolicy.php 051-entra-group-directory-cache (#57) 2026-01-11 23:24:12 +00:00
FindingPolicy.php 066-rbac-ui-enforcement-helper (#81) 2026-01-30 16:58:02 +00:00
OperationRunPolicy.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
ProviderConnectionPolicy.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
ReviewPackPolicy.php Fix Review Pack generation UX + notifications (#133) 2026-02-23 19:42:52 +00:00
WorkspaceMembershipPolicy.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
WorkspacePolicy.php Spec 077: Workspace Global Mode + context bar redundancy cleanup (#94) 2026-02-06 22:14:53 +00:00
WorkspaceSettingPolicy.php Settings foundation: workspace controls (#119) 2026-02-16 01:11:24 +00:00