From f5b7656e2408e4fe707ae435c5a088489008b0c9 Mon Sep 17 00:00:00 2001 From: Katie Toler Date: Tue, 19 May 2026 11:11:14 -0400 Subject: [PATCH 1/2] fix(history): prioritize operation over input so Nexus events show the operation name in compact view. --- src/lib/utilities/get-single-attribute-for-event.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utilities/get-single-attribute-for-event.ts b/src/lib/utilities/get-single-attribute-for-event.ts index 1c94cabfaa..1a5bb04b23 100644 --- a/src/lib/utilities/get-single-attribute-for-event.ts +++ b/src/lib/utilities/get-single-attribute-for-event.ts @@ -252,6 +252,7 @@ const preferredSummaryKeys = [ 'activityType', 'signalName', 'workflowType', + 'operation', 'result', 'failure', 'input', @@ -264,7 +265,6 @@ const preferredSummaryKeys = [ 'identity', 'parentInitiatedEventId', 'endpointId', - 'operation', ] as const; /** From 0f4c670f3b95bcfe8ea1d085b4708ec5f7a03de8 Mon Sep 17 00:00:00 2001 From: Katie Toler Date: Tue, 19 May 2026 11:12:10 -0400 Subject: [PATCH 2/2] test(history): assert NexusOperationScheduled compact summary resolves to operation. --- .../utilities/get-single-attribute-for-event.test.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/lib/utilities/get-single-attribute-for-event.test.ts b/src/lib/utilities/get-single-attribute-for-event.test.ts index 7075dc005f..b2d7902473 100644 --- a/src/lib/utilities/get-single-attribute-for-event.test.ts +++ b/src/lib/utilities/get-single-attribute-for-event.test.ts @@ -286,7 +286,7 @@ describe('getSummaryEvent', () => { }); }); - it('should return the input for a NexusOperationScheduled event', async () => { + it('should return the operation for a NexusOperationScheduled event', async () => { const nexusEvent = { eventId: '5', eventTime: '2024-07-11T17:42:53.326959Z', @@ -310,13 +310,8 @@ describe('getSummaryEvent', () => { }; const event = await toEvent(nexusEvent); expect(getSummaryAttribute(event)).toStrictEqual({ - key: 'input', - value: { - data: 'InN0YXJ0LWFzeW5jIg==', - metadata: { - encoding: 'anNvbi9wbGFpbg==', - }, - }, + key: 'operation', + value: 'custom-op', }); }); });