diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/reset-offset/Dryrun.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/reset-offset/Dryrun.tsx
index c9cce2957..6bc312220 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/reset-offset/Dryrun.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/reset-offset/Dryrun.tsx
@@ -27,6 +27,7 @@ import {
StackItem,
TextContent,
Text,
+ CardBody,
} from "@/libs/patternfly/react-core";
import { useTranslations } from "next-intl";
import { DownloadIcon } from "@/libs/patternfly/react-icons";
@@ -100,7 +101,7 @@ export function Dryrun({
- {t.rich("consumer_name", { consumerGroupName })}
+ {t.rich("consumer_name", { groupId: consumerGroupName })}
@@ -114,79 +115,96 @@ export function Dryrun({
-
-
- {Object.keys(groupedTopics).map((topicName) => (
-
- {topicName}
-
- ))}
-
-
-
-
+ {Object.keys(groupedTopics).length >= 3 && (
+
+
+ {Object.keys(groupedTopics).map(
+ (topicName) =>
+ topicName && (
+
+ {topicName}
+
+ ),
+ )}
+
+
+ )}
+
+
{Object.entries(groupedTopics).map(
([topicName, offsets]) => (
-
+
-
-
-
- {t("topic")}
-
-
- {topicName}
-
-
-
-
-
-
- {t("partition")}
-
-
-
- {offsets
- .sort(
- (a, b) => a.partition - b.partition,
- )
- .map(({ partition }) => (
-
- {partition}
-
- ))}
-
-
-
-
-
-
-
- {t("new_offset")}
-
-
-
- {offsets.map(
- ({ partition, offset }) => (
-
- {offset}
-
- ),
- )}
-
-
-
-
-
-
+
+
+
+
+ {t("topic")}
+
+
+ {topicName}
+
+
+
+
+
+
+ {t("partition")}
+
+
+
+ {offsets
+ .sort(
+ (a, b) =>
+ a.partition - b.partition,
+ )
+ .map(({ partition }) => (
+
+ {partition}
+
+ ))}
+
+
+
+
+
+
+
+ {t("new_offset")}
+
+
+
+ {offsets.map(
+ ({ partition, offset }) => (
+
+ {offset}
+
+ ),
+ )}
+
+
+
+
+
+
+
-
+
),
)}
-
+
diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/reset-offset/ResetOffset.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/reset-offset/ResetOffset.tsx
index 02b16d9fc..aa3f4e444 100644
--- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/reset-offset/ResetOffset.tsx
+++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/reset-offset/ResetOffset.tsx
@@ -104,7 +104,7 @@ export function ResetOffset({
{t("reset_consumer_offset")}
- {t.rich("consumer_name", { consumerGroupName })}
+ {t.rich("consumer_name", { groupId: consumerGroupName })}
diff --git a/ui/messages/en.json b/ui/messages/en.json
index ff34bb6d5..985477c6a 100644
--- a/ui/messages/en.json
+++ b/ui/messages/en.json
@@ -409,7 +409,7 @@
"shutdown_active_members": "Shut down active members before proceeding",
"learn_to_shutdown_members": "Learn how to shut down members",
"reset_consumer_offset": "Reset consumer offsets",
- "consumer_name": "Consumer group: {consumerGroupName}",
+ "consumer_name": "Consumer group: {groupId}",
"target": "Target",
"apply_action_on": "Apply action on",
"all_consumer_topics": "All consumer topics",