Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.15] OTel Onboarding: Add feedback button (#188216) #188399

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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