diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/ResetOffsetModal.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/ResetOffsetModal.tsx index 5897e5b97..6fa252e7f 100644 --- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/ResetOffsetModal.tsx +++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/ResetOffsetModal.tsx @@ -9,6 +9,7 @@ import { StackItem, Text, } from "@/libs/patternfly/react-core"; +import { isProductizedBuild } from "@/utils/env"; import { useTranslations } from "next-intl"; import { useRouter } from "next/navigation"; @@ -69,11 +70,13 @@ export function ResetOffsetModal({ {t("shutdown_active_members")} - - - {t("learn_to_shutdown_members")} - - + {isProductizedBuild && ( + + + {t("learn_to_shutdown_consumers")} + + + )} ); diff --git a/ui/app/[locale]/(public)/(home)/page.tsx b/ui/app/[locale]/(public)/(home)/page.tsx index 02d48f1f5..ff74a9fb3 100644 --- a/ui/app/[locale]/(public)/(home)/page.tsx +++ b/ui/app/[locale]/(public)/(home)/page.tsx @@ -228,6 +228,32 @@ export default async function Home() { /> + + + + + {t("learning.labels.shut_down_consumers")} + + , + + + , + + + {t("homepage.view_documentation")} + + , + ]} + /> + + diff --git a/ui/messages/en.json b/ui/messages/en.json index e389275e8..59b4dfff1 100644 --- a/ui/messages/en.json +++ b/ui/messages/en.json @@ -18,13 +18,15 @@ "overview": "Strimzi Overview", "gettingStarted": "Getting Started with StreamsHub", "connecting": "Connect to a Kafka cluster from an application", - "topicOperatorUse": "Using the Topic Operator to manage Kafka topics" + "topicOperatorUse": "Using the Topic Operator to manage Kafka topics", + "shut_down_consumers": "Learn how to stop consumers" }, "links": { "overview": "https://strimzi.io/docs/operators/latest/overview", "gettingStarted": "", "connecting": "", - "topicOperatorUse": "https://strimzi.io/docs/operators/latest/overview#overview-concepts-topic-operator-str" + "topicOperatorUse": "https://strimzi.io/docs/operators/latest/overview#overview-concepts-topic-operator-str", + "shut_down_consumers": "https://docs.redhat.com/en/documentation/red_hat_streams_for_apache_kafka/2.7/html-single/kafka_configuration_tuning/index#managing_offset_policy" } }, "login-in-page": { @@ -390,7 +392,8 @@ "reset_offset_description": "Consumer group must be empty to reset offsets.", "member_shutdown_helper_text": "To reset the consumer group offsets, all the active members must be shut down.", "shutdown_active_members": "Shut down active members before proceeding", - "learn_to_shutdown_members": "Learn how to shut down members", + "learn_to_shutdown_consumers": "Learn how to shut down consumers", + "learn_to_shutdown_consumers_link": "https://docs.redhat.com/en/documentation/red_hat_streams_for_apache_kafka/2.7/html-single/kafka_configuration_tuning/index#managing_offset_policy", "reset_consumer_offset": "Reset consumer offset", "consumer_name": "Consumer group: {consumerGroupName}", "target": "Target",