TenantAtlas/tests/Unit
ahmido 0b5cadc234 feat: add shared diff presentation foundation (#170)
## Summary
- add a shared diff presentation layer under `app/Support/Diff` with deterministic row classification, summary derivation, and value stringification
- centralize diff-state badge semantics through `BadgeCatalog` with a dedicated `DiffRowStatusBadge`
- add reusable Filament diff partials, focused Pest coverage, and the full SpecKit artifact set for spec 141

## Testing
- `vendor/bin/sail artisan test --compact tests/Unit/Support/Diff/DiffRowStatusTest.php tests/Unit/Support/Diff/DiffRowTest.php tests/Unit/Support/Diff/DiffPresenterTest.php tests/Unit/Support/Diff/ValueStringifierTest.php tests/Unit/Badges/DiffRowStatusBadgeTest.php tests/Feature/Support/Diff/SharedDiffSummaryPartialTest.php tests/Feature/Support/Diff/SharedDiffRowPartialTest.php tests/Feature/Support/Diff/SharedInlineListDiffPartialTest.php`
- `vendor/bin/sail bin pint --dirty --format agent`

## Filament / Livewire Contract
- Livewire v4.0+ compliance: unchanged and respected; this feature adds presentation support only within the existing Filament v5 / Livewire v4 stack
- Provider registration: unchanged; no panel/provider changes were required, so `bootstrap/providers.php` remains the correct registration location
- Global search: unchanged; no Resource or global-search behavior was added or modified
- Destructive actions: none introduced in this feature
- Asset strategy: no new registered Filament assets; shared Blade partials rely on the existing asset pipeline and standard deploy step for `php artisan filament:assets` when assets change generally
- Testing coverage: presenter, DTOs, stringifier, badge semantics, summary partial, row partial, and inline-list partial are covered by focused Pest unit and feature tests

## Notes
- Spec checklist status is complete for `specs/141-shared-diff-presentation-foundation/checklists/requirements.md`
- This PR preserves specialized diff renderers and documents incremental adoption rather than forcing migration in the same change

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #170
2026-03-14 12:32:08 +00:00
..
Alerts feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
Audit feat: lay audit log foundation (#163) 2026-03-11 09:39:37 +00:00
Auth Spec 094: Assignment ops observability hardening (#113) 2026-02-15 14:08:14 +00:00
BackupScheduling fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
Badge feat: provider access hardening (RBAC write gate) (#132) 2026-02-23 00:49:37 +00:00
Badges feat: add shared diff presentation foundation (#170) 2026-03-14 12:32:08 +00:00
Baselines feat: add structured baseline snapshot rendering (#158) 2026-03-10 08:28:06 +00:00
DirectoryGroups 051-entra-group-directory-cache (#57) 2026-01-11 23:24:12 +00:00
Filament feat(spec-089): provider connections tenantless UI (#107) 2026-02-12 16:35:13 +00:00
Findings feat(111): findings workflow + SLA settings (#135) 2026-02-25 01:48:01 +00:00
Hardening feat: provider access hardening (RBAC write gate) (#132) 2026-02-23 00:49:37 +00:00
Intune feat: complete admin canonical tenant rollout (#165) 2026-03-13 08:09:20 +00:00
Inventory feat: add Intune RBAC baseline compare support (#156) 2026-03-09 18:49:20 +00:00
Onboarding feat: add onboarding lifecycle checkpoints and locking (#169) 2026-03-14 11:02:29 +00:00
Operations 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
OpsUx feat: complete admin canonical tenant rollout (#165) 2026-03-13 08:09:20 +00:00
Policies feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
Providers feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
Settings feat(111): findings workflow + SLA settings (#135) 2026-02-25 01:48:01 +00:00
SettingsFoundation Settings foundation: workspace controls (#119) 2026-02-16 01:11:24 +00:00
Support feat: add shared diff presentation foundation (#170) 2026-03-14 12:32:08 +00:00
AppProtectionPolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
AssignmentBackupServiceTest.php feat: add resolved reference presentation layer (#161) 2026-03-10 18:52:52 +00:00
AssignmentFetcherTest.php feat: add resolved reference presentation layer (#161) 2026-03-10 18:52:52 +00:00
AssignmentFilterResolverTest.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
AssignmentRestoreServiceTest.php Spec 094: Assignment ops observability hardening (#113) 2026-02-15 14:08:14 +00:00
AuditContextSanitizerTest.php Spec 120: harden secret redaction integrity (#146) 2026-03-07 16:43:01 +00:00
BackupItemTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
BulkActionPermissionTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
BulkBackupSetDeleteJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkBackupSetForceDeleteJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkBackupSetRestoreJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkOperationAbortMethodTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkOperationRunProgressTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkOperationRunStatusBucketTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkPolicyDeleteJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkPolicyExportJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkPolicyVersionForceDeleteJobTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
BulkPolicyVersionPruneJobTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
BulkPolicyVersionRestoreJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkRestoreRunDeleteJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
BulkRestoreRunRestoreJobTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
CircuitBreakerTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
CompliancePolicyNormalizerTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
CoverageCapabilitiesResolverTest.php feat/047-inventory-foundations-nodes (#51) 2026-01-10 20:47:29 +00:00
DefaultPolicyNormalizerDiffTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
DependencyExtractionServiceTest.php feat/042-inventory-dependencies-graph (#50) 2026-01-10 12:50:08 +00:00
DependencyTargetResolverTest.php feat/042-inventory-dependencies-graph (#50) 2026-01-10 12:50:08 +00:00
DeviceConfigurationPolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
EntraAdminRolesReportServiceTest.php feat(112): LIST $expand parity + Entra principal names (#136) 2026-02-25 23:54:20 +00:00
ExampleTest.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
FoundationMappingServiceTest.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
FoundationSnapshotServiceTest.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
GraphClientEndpointResolutionTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphClientScopeTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractFallbackTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractRegistryActualDataTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractRegistryOnboardingProbesTest.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
GraphContractRegistrySettingsApplySanitizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractRegistrySettingsWriteStrategyTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
GraphContractRegistryTest.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
GroupResolverTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
IntuneRoleAssignmentNormalizerTest.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
IntuneRoleDefinitionNormalizerTest.php feat: add Intune RBAC baseline compare support (#156) 2026-03-09 18:49:20 +00:00
InventoryLinkTest.php feat/042-inventory-dependencies-graph (#49) 2026-01-10 00:20:14 +00:00
ManagedDeviceAppConfigurationNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
MicrosoftGraphClientListPoliciesSelectTest.php feat(112): LIST $expand parity + Entra principal names (#136) 2026-02-25 23:54:20 +00:00
MicrosoftGraphClientRetryPolicyTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
MicrosoftGraphClientTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
ODataTypeValidationTest.php feat/011-restore-run-wizard (#37) 2026-01-07 01:40:04 +00:00
PolicyCaptureOrchestratorTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
PolicyNormalizerRoutingTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicyNormalizerSettingsCatalogFlattenTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicyNormalizerSettingsCatalogTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicyPickerOptionLabelTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
PolicySnapshotServiceTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
PolicyVersionEligibilityTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
RbacOnboardingServiceTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
RequiredPermissionsLinksTest.php feat(spec-080): workspace-managed tenant administration migration (#97) 2026-02-07 19:45:13 +00:00
RestoreRunDeletableTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
RestoreRunTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
RunIdempotencyTest.php 056-remove-legacy-bulkops (#65) 2026-01-19 23:27:52 +00:00
ScopeTagResolverTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
ScriptsPolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
SettingsCatalogPolicyNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
TenantCurrentTest.php feat: unified managed tenant onboarding wizard (#88) 2026-02-03 17:30:15 +00:00
TenantPermissionCheckClustersTest.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
TenantPermissionServiceTest.php Fix tenant permission inserts missing workspace_id (#118) 2026-02-16 00:58:34 +00:00
TenantRequiredPermissionsCopyPayloadTest.php Spec 076: Tenant Required Permissions (enterprise remediation UX) (#92) 2026-02-05 22:08:51 +00:00
TenantRequiredPermissionsFeatureImpactTest.php Spec 076: Tenant Required Permissions (enterprise remediation UX) (#92) 2026-02-05 22:08:51 +00:00
TenantRequiredPermissionsFilteringTest.php Spec 076: Tenant Required Permissions (enterprise remediation UX) (#92) 2026-02-05 22:08:51 +00:00
TenantRequiredPermissionsFreshnessTest.php Spec 083: Required permissions hardening (canonical /admin/tenants, DB-only, 404 semantics) (#101) 2026-02-08 23:13:25 +00:00
TenantRequiredPermissionsOverallStatusTest.php Spec 083: Required permissions hardening (canonical /admin/tenants, DB-only, 404 semantics) (#101) 2026-02-08 23:13:25 +00:00
TenantResourceConsentUrlTest.php feat: standardize platform provider identity (#166) 2026-03-13 16:29:08 +00:00
TenantScopeTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00
VerificationAssistViewModelBuilderTest.php feat: add verify access required permissions assist (#168) 2026-03-14 02:00:28 +00:00
VerificationLinkBehaviorTest.php feat: add verify access required permissions assist (#168) 2026-03-14 02:00:28 +00:00
VerificationReportSanitizerEvidenceKindsTest.php feat: managed tenant onboarding draft identity and resume semantics (#167) 2026-03-13 23:45:23 +00:00
VerificationReportSanitizerNextStepsUrlTest.php fix(onboarding): preserve workspace scope and consent flow (#117) 2026-02-15 22:27:55 +00:00
VersionDiffTest.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
WindowsDriverUpdateProfileNormalizerTest.php fix(tests): remove per-file TestCase uses (#45) 2026-01-08 00:41:46 +00:00