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);