## Summary - add a shared cross-resource navigation layer with canonical navigation context and related-context rendering - wire findings, policy versions, baseline snapshots, backup sets, and canonical operations surfaces into consistent drill-down flows - extend focused Pest coverage for canonical operations links, related navigation, and tenant-context preservation ## Testing - focused Pest coverage for spec 131 was added and the task list marks the implementation verification and Pint steps as completed ## Follow-up - manual QA checklist item `T036` in `specs/131-cross-resource-navigation/tasks.md` is still open and should be completed during review Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #160
5.3 KiB
5.3 KiB
Quickstart: Cross-Resource Navigation & Drill-Down Cohesion
Feature: 131-cross-resource-navigation | Date: 2026-03-10
Scope
This feature standardizes operator navigation across related governance, monitoring, inventory, and backup resources by:
- defining one explicit navigation matrix for the highest-value resource relationships,
- routing all run-related drill-downs through canonical operations destinations,
- adding structured related-context sections to key detail pages,
- adding limited, high-value row-level drill-down actions on list pages,
- rendering missing or unauthorized relations as clear unavailable states.
Implementation order
- Create the shared relation-navigation support layer and encode the initial navigation matrix.
- Refactor in-scope run-related links to flow through the canonical
OperationRunLinkshelper consistently. - Add structured related-context sections to
Finding,BaselineSnapshot,PolicyVersion,BackupSet, and canonical operation-run detail pages. - Add or normalize list-level related drill-down actions on findings, policy versions, backup sets, and operations-related surfaces.
- Align explicit back-link and context-preservation behavior on canonical operations pages with the existing operate-hub shell patterns.
- Add graceful unavailable-state rendering for missing, unresolved, and unauthorized relations.
- Add focused Pest unit and feature coverage for the shared navigation layer, canonical routing, UI visibility, and authorization-aware degradation.
- Run focused Sail-based tests.
- Run Pint on dirty files.
Reference files
app/Support/OperationRunLinks.phproutes/web.phpapp/Filament/Pages/Monitoring/Operations.phpapp/Filament/Pages/Operations/TenantlessOperationRunViewer.phpapp/Filament/Resources/OperationRunResource.phpapp/Filament/Resources/FindingResource.phpapp/Filament/Resources/BaselineSnapshotResource.phpapp/Filament/Resources/BaselineProfileResource.phpapp/Filament/Resources/PolicyResource.phpapp/Filament/Resources/PolicyVersionResource.phpapp/Filament/Resources/BackupSetResource.phpapp/Filament/Resources/BackupSetResource/RelationManagers/BackupItemsRelationManager.phpapp/Policies/OperationRunPolicy.phpapp/Policies/FindingPolicy.phptests/Feature/Monitoring/OperationsCanonicalUrlsTest.phptests/Feature/Operations/TenantlessOperationRunViewerTest.phptests/Feature/Findings/FindingWorkflowViewActionsTest.phptests/Feature/Findings/FindingWorkflowRowActionsTest.phptests/Feature/Filament/BaselineSnapshotStructuredRenderingTest.phptests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.phptests/Feature/Filament/BackupSetUiEnforcementTest.php
Suggested new tests
tests/Feature/Findings/FindingRelatedNavigationTest.phptests/Feature/Filament/BaselineSnapshotRelatedContextTest.phptests/Feature/Filament/PolicyVersionRelatedNavigationTest.phptests/Feature/Filament/BackupSetRelatedNavigationTest.phptests/Feature/Monitoring/OperationsRelatedNavigationTest.phptests/Feature/Rbac/CrossResourceNavigationAuthorizationTest.phptests/Unit/Support/RelatedContextResolverTest.phptests/Unit/Support/CanonicalNavigationContextTest.php
Suggested validation commands
vendor/bin/sail artisan test --compact tests/Feature/Monitoring/OperationsCanonicalUrlsTest.php
vendor/bin/sail artisan test --compact tests/Feature/Operations/TenantlessOperationRunViewerTest.php
vendor/bin/sail artisan test --compact tests/Feature/Findings/FindingWorkflowViewActionsTest.php
vendor/bin/sail artisan test --compact tests/Feature/Findings/FindingWorkflowRowActionsTest.php
vendor/bin/sail artisan test --compact tests/Feature/Filament/BaselineSnapshotStructuredRenderingTest.php
vendor/bin/sail artisan test --compact tests/Feature/Filament/PolicyVersionBaselineEvidenceVisibilityTest.php
vendor/bin/sail artisan test --compact tests/Feature/Filament/BackupSetUiEnforcementTest.php
vendor/bin/sail artisan test --compact tests/Feature/Findings/FindingRelatedNavigationTest.php
vendor/bin/sail artisan test --compact tests/Feature/Filament/BaselineSnapshotRelatedContextTest.php
vendor/bin/sail artisan test --compact tests/Feature/Filament/PolicyVersionRelatedNavigationTest.php
vendor/bin/sail artisan test --compact tests/Feature/Filament/BackupSetRelatedNavigationTest.php
vendor/bin/sail artisan test --compact tests/Feature/Monitoring/OperationsRelatedNavigationTest.php
vendor/bin/sail artisan test --compact tests/Feature/Rbac/CrossResourceNavigationAuthorizationTest.php
vendor/bin/sail artisan test --compact tests/Unit/Support/RelatedContextResolverTest.php
vendor/bin/sail artisan test --compact tests/Unit/Support/CanonicalNavigationContextTest.php
vendor/bin/sail bin pint --dirty --format agent
Expected outcome
- Findings, snapshots, policy versions, backup sets, and operation runs stop behaving like isolated records.
- Canonical operations routes become the single authoritative destination for run-oriented drill-downs.
- Related records appear through structured context sections and limited high-value actions instead of raw IDs and ad hoc links.
- Missing or inaccessible relations degrade clearly without broken links or route leakage.
- The shared navigation pattern is reusable for future artifacts without rewriting every resource page manually.