TenantAtlas/tests/Feature/Filament
ahmido da1adbdeb5 Spec 119: Drift cutover to Baseline Compare (golden master) (#144)
Implements Spec 119 (Drift Golden Master Cutover):

- Baseline Compare is the only drift writer (`source = baseline.compare`).
- Drift findings now store diff-compatible `evidence_jsonb` (summary.kind, baseline/current policy_version_id refs, fidelity + provenance).
- Findings UI renders one-sided diffs for `missing_policy`/`unexpected_policy` when a single ref exists; otherwise shows explicit “diff unavailable”.
- Removes legacy drift generator runtime (jobs/services/UI) and related tests.
- Adds one-time migration to delete legacy drift findings (`finding_type=drift` where source is null or != baseline.compare).
- Scopes baseline capture & landing duplicate warnings to latest completed inventory sync.
- Canonicalizes compliance `scheduledActionsForRule` drift signal and keeps legacy snapshots comparable.

Tests:
- `vendor/bin/sail artisan test --compact` (full suite per tasks)
- Focused pack: BaselinePolicyVersionResolverTest, BaselineCompareDriftEvidenceContractTest, DriftFindingDiffUnavailableTest, LegacyDriftFindingsCleanupMigrationTest, ComplianceNoncomplianceActionsDriftTest

Notes:
- Livewire v4+ / Filament v5 compatible (no legacy APIs).
- No new external dependencies.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #144
2026-03-06 14:30:49 +00:00
..
Alerts Spec 103: IA semantics (scope vs filter vs targeting) + UI polish (#126) 2026-02-21 00:28:15 +00:00
Spec113 feat(113): Platform Ops Runbooks — UX Polish (Filament-native, system theme, live scope) (#137) 2026-02-27 01:11:25 +00:00
AdminHomeRedirectsToChooseTenantWhenWorkspaceSelectedTest.php fix: consolidate tenant creation + harden selection flows (#131) 2026-02-22 19:54:24 +00:00
AdminSmokeTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
AdminTenantScopedSurfacesRedirectToChooseTenantTest.php 085-tenant-operate-hub (#104) 2026-02-11 21:01:23 +00:00
AppProtectionPolicySettingsDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
ArchivedTenantViewTest.php feat: RBAC troubleshooting & tenant UI bugfix pack (spec 067) (#84) 2026-01-31 20:09:25 +00:00
BackupCreationTest.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
BackupItemsBulkRemoveTest.php feat: RBAC troubleshooting & tenant UI bugfix pack (spec 067) (#84) 2026-01-31 20:09:25 +00:00
BackupItemsNoPollingTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
BackupSetGraphSafetyTest.php feat: upgrade Filament to v5.2.1 (#124) 2026-02-20 12:20:42 +00:00
BackupSetPolicyPickerTableTest.php feat(110): Ops-UX enterprise start/dedup standard (repo-wide) (#134) 2026-02-24 09:30:15 +00:00
BackupSetUiEnforcementTest.php Constitution v1.8.2: scope ownership + spec scope fields (#111) 2026-02-14 19:40:29 +00:00
BaselineCompareLandingDuplicateNamesBannerTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
BaselineCompareLandingStartSurfaceTest.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
BaselineCompareLandingWhyNoFindingsTest.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
BaselineCompareNowWidgetTest.php Fix tenant dashboard 500 (missing BaselineCompareRun) (#125) 2026-02-20 21:07:34 +00:00
BaselineProfileCaptureStartSurfaceTest.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
BaselineProfileCompareStartSurfaceTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
BaselineSnapshotFidelityVisibilityTest.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
ChooseTenantEmptyStateRegisterTenantCtaVisibilityTest.php fix: consolidate tenant creation + harden selection flows (#131) 2026-02-22 19:54:24 +00:00
ChooseTenantIsWorkspaceScopedTest.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
ChooseTenantRequiresWorkspaceTest.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
ChooseWorkspaceShowsLastUsedRecommendationTest.php feat: workspace context enforcement + ownership safeguards (#86) 2026-02-02 23:00:56 +00:00
ConditionalAccessPreviewOnlyTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
CreateCtaPlacementTest.php feat(110): Ops-UX enterprise start/dedup standard (repo-wide) (#134) 2026-02-24 09:30:15 +00:00
EnrollmentAutopilotSettingsDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
EnrollmentRestrictionsPreviewOnlyTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
FilamentBootsTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
FilamentNotificationsAssetsTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
GroupPolicyConfigurationHydrationTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
GroupPolicyConfigurationNormalizedDiffTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
GroupPolicyConfigurationRestoreTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
HousekeepingTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
InventoryHubDbOnlyTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
InventoryItemResourceTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
InventoryPagesTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
LivewireInterceptShimIsLoadedTest.php 057-filament-v5-upgrade (#66) 2026-01-20 21:19:27 +00:00
LoginRedirectsToChooseWorkspaceWhenMultipleWorkspacesTest.php fix: consolidate tenant creation + harden selection flows (#131) 2026-02-22 19:54:24 +00:00
MalformedSnapshotWarningTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
ODataTypeMismatchTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
OperationRunResumeCaptureActionTest.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
PolicyCaptureSnapshotOptionsTest.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
PolicyListingTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
PolicySettingsDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicySettingsStandardRendersArraysTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
PolicySyncCtaPlacementTest.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
PolicyVersionBaselineEvidenceVisibilityTest.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
PolicyVersionReadableLayoutTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicyVersionRestoreToIntuneTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
PolicyVersionRestoreViaWizardTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
PolicyVersionScopeTagsDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicyVersionSettingsTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
PolicyVersionTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
PolicyViewSettingsCatalogReadableTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
ProviderConnectionsDbOnlyTest.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
ProviderConnectionsUiEnforcementTest.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
RecentOperationsSummaryWidgetTest.php feat(verification): unify verification surfaces (Spec 084) (#102) 2026-02-09 11:28:09 +00:00
RestoreExecutionTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
RestoreItemSelectionTest.php feat/031-tenant-portfolio-context-switch (#32) 2026-01-04 21:28:08 +00:00
RestorePreviewTest.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
RestoreRunUiEnforcementTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
RestoreWizardGraphSafetyTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
ScriptPoliciesNormalizedDisplayTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
SelectTenantPostPersistsLastUsedTest.php feat: workspace context enforcement + ownership safeguards (#86) 2026-02-02 23:00:56 +00:00
SettingsCatalogPolicyHydrationTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
SettingsCatalogPolicyNormalizedDiffTest.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
SettingsCatalogPolicyNormalizedDisplayTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
SettingsCatalogPolicySyncTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
SettingsCatalogRestoreApplySettingsPatchTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
SettingsCatalogRestoreTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
SettingsCatalogSettingsTableRenderTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
TenantActionsAuthorizationTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
TenantDashboardDbOnlyTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
TenantDashboardTenantScopeTest.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
TenantDiagnosticsRepairsTest.php feat: RBAC troubleshooting & tenant UI bugfix pack (spec 067) (#84) 2026-01-31 20:09:25 +00:00
TenantMakeCurrentTest.php 065-tenant-rbac-v1 (#79) 2026-01-28 21:09:47 +00:00
TenantMembersDbOnlyRenderTest.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
TenantMembersTest.php 066-rbac-ui-enforcement-helper (#81) 2026-01-30 16:58:02 +00:00
TenantPortfolioContextSwitchTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
TenantRbacWizardTest.php Spec 096: Ops polish (assignment summaries + dedupe + reconcile tracking + seed DX) (#115) 2026-02-15 20:49:38 +00:00
TenantResourceIndexIsWorkspaceScopedTest.php feat: workspace context enforcement + ownership safeguards (#86) 2026-02-02 23:00:56 +00:00
TenantRoleDefinitionsSelectorDbOnlyTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
TenantScopingTest.php feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
TenantSetupTest.php fix: consolidate tenant creation + harden selection flows (#131) 2026-02-22 19:54:24 +00:00
TenantSwitcherUrlResolvesTenantTest.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
TenantVerificationReportWidgetTest.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
TenantViewHeaderUiEnforcementTest.php feat: RBAC troubleshooting & tenant UI bugfix pack (spec 067) (#84) 2026-01-31 20:09:25 +00:00
WindowsUpdateProfilesRestoreTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
WindowsUpdateRingPolicyTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
WindowsUpdateRingRestoreTest.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
WorkspaceContextTopbarAndTenantSelectionTest.php Spec 077: Workspace Global Mode + context bar redundancy cleanup (#94) 2026-02-06 22:14:53 +00:00