mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-25 04:33:03 +00:00
Hide default routing summary in drawer
This commit is contained in:
@@ -209,6 +209,10 @@ The resource drawer now applies the same rule to its investigation-context
|
||||
governance block: the default posture remains part of the canonical policy
|
||||
contract, but the drawer only surfaces the governance section when the policy
|
||||
state is non-default or otherwise consequential to operator understanding.
|
||||
The drawer investigation summary line also follows that boundary now: default
|
||||
`Cloud Summary` routing is not repeated in the collapsed summary text, while
|
||||
non-default routing still appears when it materially changes how the operator
|
||||
should read the resource.
|
||||
The shared routing policy itself now stays intentionally minimal: it carries
|
||||
only the routing scope and the redaction hints derived from canonical
|
||||
sensitivity, and the cloud-summary decision is derived from that scope
|
||||
|
||||
+2
@@ -370,10 +370,12 @@ describe('ResourceDetailDrawer change history section', () => {
|
||||
render(() => <ResourceDetailDrawer resource={resource} />);
|
||||
|
||||
await screen.findByText('Investigation context');
|
||||
expect(screen.queryByText('Routing Cloud Summary')).toBeNull();
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Show context' }));
|
||||
|
||||
expect(screen.queryByText('Data Governance')).toBeNull();
|
||||
expect(screen.queryByText('AI-Safe Summary')).toBeNull();
|
||||
expect(screen.queryByText('Routing Cloud Summary')).toBeNull();
|
||||
});
|
||||
|
||||
it('keeps details label-first without a summary sentence', () => {
|
||||
|
||||
+1
-1
@@ -202,7 +202,7 @@ export const useResourceDetailDrawerDerivedState = (
|
||||
`${resourceCorrelations().length} correlation${resourceCorrelations().length === 1 ? '' : 's'}`,
|
||||
);
|
||||
}
|
||||
if (resource.policy?.routing.scope) {
|
||||
if (resource.policy?.routing.scope && !hasDefaultResourcePolicyPosture(resource.policy)) {
|
||||
summary.push(`Routing ${getResourceRoutingScopeLabel(resource.policy.routing.scope)}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user