## Summary - add Intune RBAC Role Definition baseline scope support, capture references, compare classification, findings evidence, and landing/detail UI labels - keep Intune Role Assignments explicitly excluded from baseline compare scope, summaries, findings, and restore messaging - add focused Pest coverage for baseline scope selection, capture, compare behavior, recurrence, isolation, findings rendering, inventory anchoring, and RBAC summaries ## Verification - `vendor/bin/sail bin pint --dirty --format agent` - `vendor/bin/sail artisan test --compact tests/Unit/Inventory/InventoryPolicyTypeMetaBaselineSupportTest.php tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php tests/Unit/Baselines/BaselineScopeTest.php tests/Unit/IntuneRoleDefinitionNormalizerTest.php tests/Feature/Baselines/BaselineCaptureRbacRoleDefinitionsTest.php tests/Feature/Baselines/BaselineCompareRbacRoleDefinitionsTest.php tests/Feature/Baselines/BaselineCompareDriftEvidenceContractRbacTest.php tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php tests/Feature/Filament/BaselineProfileFoundationScopeTest.php tests/Feature/Filament/BaselineSnapshotRbacRoleDefinitionsTest.php tests/Feature/Filament/BaselineCompareLandingRbacLabelsTest.php tests/Feature/Filament/FindingViewRbacEvidenceTest.php tests/Feature/Findings/FindingRecurrenceTest.php tests/Feature/Findings/DriftStaleAutoResolveTest.php tests/Feature/Inventory/InventorySyncButtonTest.php tests/Feature/Inventory/InventorySyncServiceTest.php tests/Feature/RunAuthorizationTenantIsolationTest.php` - result: `71 passed (467 assertions)` ## Filament / Platform Notes - Livewire compliance: unchanged and compatible with Livewire v4.0+ - Provider registration: no panel/provider changes; `bootstrap/providers.php` remains the registration location - Global search: no new globally searchable resource added; existing global search behavior is unchanged - Destructive actions: no new destructive actions introduced; existing confirmed actions remain unchanged - Assets: no new Filament assets introduced; deploy asset handling remains unchanged, including `php artisan filament:assets` - Testing plan covered: baseline profile scope, snapshot detail, compare job, findings recurrence, findings detail, compare landing labels, inventory sync anchoring, and tenant isolation Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #156
89 lines
3.7 KiB
PHP
89 lines
3.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Baseline Compare Landing Page
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
// Duplicate-name warning banner
|
|
'duplicate_warning_title' => 'Warning',
|
|
'duplicate_warning_body_plural' => ':count policies in this tenant share the same display name. :app cannot match them to the baseline. Please rename the duplicates in the Microsoft Intune portal.',
|
|
'duplicate_warning_body_singular' => ':count policy in this tenant shares the same display name. :app cannot match it to the baseline. Please rename the duplicate in the Microsoft Intune portal.',
|
|
|
|
// Stats card labels
|
|
'stat_assigned_baseline' => 'Assigned Baseline',
|
|
'stat_total_findings' => 'Total Findings',
|
|
'stat_last_compared' => 'Last Compared',
|
|
'stat_last_compared_never' => 'Never',
|
|
'stat_error' => 'Error',
|
|
|
|
// Badges
|
|
'badge_snapshot' => 'Snapshot #:id',
|
|
'badge_coverage_ok' => 'Coverage: OK',
|
|
'badge_coverage_warnings' => 'Coverage: Warnings',
|
|
'badge_fidelity' => 'Fidelity: :level',
|
|
'badge_evidence_gaps' => 'Evidence gaps: :count',
|
|
'evidence_gaps_tooltip' => 'Top gaps: :summary',
|
|
|
|
// Comparing state
|
|
'comparing_indicator' => 'Comparing…',
|
|
|
|
// Why-no-findings explanations
|
|
'no_findings_all_clear' => 'All clear',
|
|
'no_findings_coverage_warnings' => 'Coverage warnings',
|
|
'no_findings_evidence_gaps' => 'Evidence gaps',
|
|
'no_findings_default' => 'No findings',
|
|
|
|
// Coverage warning banner
|
|
'coverage_warning_title' => 'Comparison completed with warnings',
|
|
'coverage_unproven_body' => 'Coverage proof was missing or unreadable for the last comparison run, so findings were suppressed for safety.',
|
|
'coverage_incomplete_body' => 'Findings were skipped for :count policy :types due to incomplete coverage.',
|
|
'coverage_uncovered_label' => 'Uncovered: :list',
|
|
|
|
// Failed banner
|
|
'failed_title' => 'Comparison Failed',
|
|
'failed_body_default' => 'The last baseline comparison failed. Review the run details or retry.',
|
|
|
|
// Critical drift banner
|
|
'critical_drift_title' => 'Critical Drift Detected',
|
|
'critical_drift_body' => 'The current tenant state deviates from baseline :profile. :count high-severity :findings require immediate attention.',
|
|
|
|
// Empty states
|
|
'empty_no_tenant' => 'No Tenant Selected',
|
|
'empty_no_assignment' => 'No Baseline Assigned',
|
|
'empty_no_snapshot' => 'No Snapshot Available',
|
|
|
|
// Findings section
|
|
'findings_description' => 'The tenant configuration drifted from the baseline profile.',
|
|
'rbac_summary_title' => 'Intune RBAC Role Definitions',
|
|
'rbac_summary_description' => 'Role Assignments are not included in this baseline compare release.',
|
|
'rbac_summary_compared' => 'Compared',
|
|
'rbac_summary_unchanged' => 'Unchanged',
|
|
'rbac_summary_modified' => 'Modified',
|
|
'rbac_summary_missing' => 'Missing',
|
|
'rbac_summary_unexpected' => 'Unexpected',
|
|
|
|
// No drift
|
|
'no_drift_title' => 'No Drift Detected',
|
|
'no_drift_body' => 'The tenant configuration matches the baseline profile. Everything looks good.',
|
|
|
|
// Coverage warnings (no findings)
|
|
'coverage_warnings_title' => 'Coverage Warnings',
|
|
'coverage_warnings_body' => 'The last comparison completed with warnings and produced no drift findings. Run Inventory Sync again to establish full coverage before interpreting results.',
|
|
|
|
// Idle
|
|
'idle_title' => 'Ready to Compare',
|
|
|
|
// Buttons
|
|
'button_view_run' => 'View run',
|
|
'button_view_failed_run' => 'View failed run',
|
|
'button_view_findings' => 'View all findings',
|
|
'button_review_last_run' => 'Review last run',
|
|
|
|
];
|