From 2a1eb0a97a0f6c51dd045d8cb5b631ea9d03cb69 Mon Sep 17 00:00:00 2001 From: hemahg Date: Mon, 16 Sep 2024 17:32:28 +0530 Subject: [PATCH 1/2] Add link to the reset offset learning resource page Signed-off-by: hemahg --- .../consumer-groups/[groupId]/ResetOffsetModal.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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..06ae19618 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_members")} + + + )} ); From b986cfb0c7b9b0528f34dfc3899b37b367ae16e4 Mon Sep 17 00:00:00 2001 From: hemahg Date: Fri, 20 Sep 2024 12:43:47 +0530 Subject: [PATCH 2/2] Update the phrase for consumer group reset offset link Signed-off-by: hemahg --- .../[groupId]/ResetOffsetModal.tsx | 4 +-- ui/app/[locale]/(public)/(home)/page.tsx | 26 +++++++++++++++++++ ui/messages/en.json | 9 ++++--- 3 files changed, 34 insertions(+), 5 deletions(-) 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 06ae19618..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 @@ -72,8 +72,8 @@ export function ResetOffsetModal({ {isProductizedBuild && ( - - {t("learn_to_shutdown_members")} + + {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",