From 5d263ece8d6dd9cd56459e812160f4fa14704f7a Mon Sep 17 00:00:00 2001 From: Mathieu Anderson Date: Thu, 23 Nov 2023 11:46:14 +0100 Subject: [PATCH] fix(coral): Copy fix Signed-off-by: Mathieu Anderson --- .../topics/details/messages/useMessagesFilters.test.tsx | 3 ++- .../features/topics/details/messages/useMessagesFilters.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/coral/src/app/features/topics/details/messages/useMessagesFilters.test.tsx b/coral/src/app/features/topics/details/messages/useMessagesFilters.test.tsx index 776029de6d..79f8bbc4ba 100644 --- a/coral/src/app/features/topics/details/messages/useMessagesFilters.test.tsx +++ b/coral/src/app/features/topics/details/messages/useMessagesFilters.test.tsx @@ -270,7 +270,8 @@ describe("useMessagesFilters.tsx", () => { expect(isValid).toBe(false); expect(result.current.filterErrors).toStrictEqual({ - customOffsetFilters: "Max offset: 100", + customOffsetFilters: + "Entered value exceeds the view limit for offsets: 100", partitionIdFilters: null, }); }); diff --git a/coral/src/app/features/topics/details/messages/useMessagesFilters.tsx b/coral/src/app/features/topics/details/messages/useMessagesFilters.tsx index aa91e6a753..789253ddca 100644 --- a/coral/src/app/features/topics/details/messages/useMessagesFilters.tsx +++ b/coral/src/app/features/topics/details/messages/useMessagesFilters.tsx @@ -67,7 +67,7 @@ function useMessagesFilters(): OffsetFilters { getCustomOffset() === "" || getCustomOffset() === null ? "Please enter the number of recent offsets you want to view" : Number(getCustomOffset()) > 100 - ? "Max offset: 100" + ? "Entered value exceeds the view limit for offsets: 100" : null; setFilterErrors({ @@ -129,7 +129,7 @@ function useMessagesFilters(): OffsetFilters { customOffset === "" ? "Please enter the number of recent offsets you want to view" : Number(customOffset) > 100 - ? "Max offset: 100" + ? "Entered value exceeds the view limit for offsets: 100" : null, })); searchParams.set(NAMES.customOffset, customOffset);