Explorar o código

FE: CONSUMERS: Add a tooltip for state (#3729)

seonho.jeong %!s(int64=2) %!d(string=hai) anos
pai
achega
811fec53a0
Modificáronse 1 ficheiros con 11 adicións e 9 borrados
  1. 11 9
      kafka-ui-react-app/src/lib/constants.ts

+ 11 - 9
kafka-ui-react-app/src/lib/constants.ts

@@ -1,5 +1,5 @@
 import { SelectOption } from 'components/common/Select/Select';
-import {ConfigurationParameters, ConsumerGroupState} from 'generated-sources';
+import { ConfigurationParameters, ConsumerGroupState } from 'generated-sources';
 
 declare global {
   interface Window {
@@ -97,11 +97,13 @@ export const METRICS_OPTIONS: SelectOption[] = [
   { value: 'PROMETHEUS', label: 'PROMETHEUS' },
 ];
 
-export const CONSUMER_GROUP_STATE_TOOLTIPS : Record<ConsumerGroupState, string> = {
-  EMPTY: 'The group exists but has no members.',
-  STABLE: 'Consumers are happily consuming and have assigned partitions.',
-  PREPARING_REBALANCE: 'Something has changed, and the reassignment of partitions is required.',
-  COMPLETING_REBALANCE: 'Partition reassignment is in progress.',
-  DEAD: 'The group is going to be removed. It might be due to the inactivity, or the group is being migrated to different group coordinator.',
-  UNKNOWN: ''
-}
+export const CONSUMER_GROUP_STATE_TOOLTIPS: Record<ConsumerGroupState, string> =
+  {
+    EMPTY: 'The group exists but has no members.',
+    STABLE: 'Consumers are happily consuming and have assigned partitions.',
+    PREPARING_REBALANCE:
+      'Something has changed, and the reassignment of partitions is required.',
+    COMPLETING_REBALANCE: 'Partition reassignment is in progress.',
+    DEAD: 'The group is going to be removed. It might be due to the inactivity, or the group is being migrated to different group coordinator.',
+    UNKNOWN: '',
+  };