Bug Description
The Dashboard's Streaming Status card always displays "Connected" (green) regardless of the KAFKA_CONNECTION environment variable value.
When KAFKA_CONNECTION=False in the .env file, the Streaming Status should show "Disabled" instead of "Connected".
Root Cause
The frontend code in Dashboard.js only checks whether the /status/kafka-details API response exists, but never inspects the kafka_connection field in the response payload. Since the endpoint always returns configuration data (even when Kafka is disabled), the UI always renders the "Connected" state.
Additionally, the UI references kafkaDetails.host and kafkaDetails.port, but the API returns kafka_host and kafka_port, causing "undefined:undefined" to be displayed below the status.
Expected Behavior
- When
KAFKA_CONNECTION=False: show "Disabled" with an appropriate icon and style
- When
KAFKA_CONNECTION=True: show "Connected" with the correct host:port
- While loading: show "Checking..."
Environment
- Version: 0.10.4
KAFKA_CONNECTION=False in .env
Bug Description
The Dashboard's Streaming Status card always displays "Connected" (green) regardless of the
KAFKA_CONNECTIONenvironment variable value.When
KAFKA_CONNECTION=Falsein the.envfile, the Streaming Status should show "Disabled" instead of "Connected".Root Cause
The frontend code in
Dashboard.jsonly checks whether the/status/kafka-detailsAPI response exists, but never inspects thekafka_connectionfield in the response payload. Since the endpoint always returns configuration data (even when Kafka is disabled), the UI always renders the "Connected" state.Additionally, the UI references
kafkaDetails.hostandkafkaDetails.port, but the API returnskafka_hostandkafka_port, causing "undefined:undefined" to be displayed below the status.Expected Behavior
KAFKA_CONNECTION=False: show "Disabled" with an appropriate icon and styleKAFKA_CONNECTION=True: show "Connected" with the correct host:portEnvironment
KAFKA_CONNECTION=Falsein.env