Skip to content

Commit

Permalink
OTel Onboarding: Add feedback button (#188216)
Browse files Browse the repository at this point in the history
As a last-minute addition, this is adding a feedback button to the OTel
flow so users have a way of leaving feedback:

<img width="1413" alt="Screenshot 2024-07-12 at 15 16 38"
src="https://github.com/user-attachments/assets/61c5529d-8956-49f4-84b7-b977eb179f74">

The button is linking to https://ela.st/otel-onboarding-feedback which
will redirect to a targeted google form feedback form.

This PR is not attempting to close
elastic/observability-dev#3734 - for this, we
need to add a few other things and I would like to decouple this from
the 8.15 release.

(cherry picked from commit 735eb52)
  • Loading branch information
flash1293 committed Jul 16, 2024
1 parent fa88305 commit 98b0c72
Showing 1 changed file with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
EuiLink,
EuiImage,
EuiCallOut,
EuiHorizontalRule,
} from '@elastic/eui';
import {
AllDatasetsLocatorParams,
Expand All @@ -39,6 +40,8 @@ import { ApiKeyBanner } from '../custom_logs/api_key_banner';
import { useFetcher } from '../../../hooks/use_fetcher';
import { MultiIntegrationInstallBanner } from './multi_integration_install_banner';

const feedbackUrl = 'https://ela.st/otelcollector';

const HOST_COMMAND = i18n.translate(
'xpack.observability_onboarding.otelLogsPanel.p.runTheCommandOnYourHostLabel',
{
Expand Down Expand Up @@ -641,7 +644,7 @@ rm ./otel.yml && cp ./otel_samples/platformlogs_hostmetrics.yml ./otel.yml && mk
</EuiModalHeaderTitle>
</EuiModalHeader>
<EuiModalBody>
<EuiFlexGroup direction="column">
<EuiFlexGroup direction="column" gutterSize="none">
<MultiIntegrationInstallBanner />
{error && (
<EuiFlexItem>
Expand Down Expand Up @@ -885,6 +888,37 @@ rm ./otel.yml && cp ./otel_samples/platformlogs_hostmetrics.yml ./otel.yml && mk
},
]}
/>
<EuiHorizontalRule />

<EuiFlexGroup responsive={false} direction="row" alignItems="center" gutterSize="s" wrap>
<EuiFlexItem grow={false}>
<EuiText color="subdued" size="s">
{i18n.translate(
'xpack.observability_onboarding.otelLogsPanel.feedbackButtons.label',
{
defaultMessage: 'Was this helpful or were there any problems?',
}
)}
</EuiText>
</EuiFlexItem>

<EuiFlexItem grow={false}>
<EuiButton
iconType="editorComment"
data-test-subj="observabilityOnboardingOtelLogsPanelGiveFeedbackButton"
href={feedbackUrl}
color="warning"
target="_blank"
>
{i18n.translate(
'xpack.observability_onboarding.otelLogsPanel.feedbackButtons.title',
{
defaultMessage: 'Give feedback',
}
)}
</EuiButton>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexGroup>
</EuiModalBody>
</EuiPanel>
Expand Down

0 comments on commit 98b0c72

Please sign in to comment.