Hide default routing summary in drawer

This commit is contained in:
rcourtman
2026-03-23 10:06:03 +00:00
parent 065df632bc
commit aa54ed49dc
3 changed files with 7 additions and 1 deletions
@@ -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
@@ -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', () => {
@@ -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)}`);
}