mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[APM] Fix styling and port issue with new onboarding (#163922)
## Summary Closes https://github.com/elastic/kibana/issues/163441 Fixes: - Node JS tab padding issue (Serverless) - Make fields for OTel Copyable (Both Serverless and Stateful) - Add port to all the Managed Service URL links for all Agents (Serverless) ### Before  ### After  --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
a90a14b4af
commit
431e50554d
5 changed files with 50 additions and 9 deletions
|
@ -53,7 +53,12 @@ function ConfigurationValueColumn({
|
|||
</EuiText>
|
||||
{value && (
|
||||
<EuiButtonIcon
|
||||
aria-label="Copy to clipboard"
|
||||
aria-label={i18n.translate(
|
||||
'xpack.apm.onboarding.column.value.copyIconText',
|
||||
{
|
||||
defaultMessage: 'Copy to clipboard',
|
||||
}
|
||||
)}
|
||||
color="text"
|
||||
iconType="copy"
|
||||
onClick={() => copyToClipboard(value)}
|
||||
|
|
|
@ -7,9 +7,11 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import {
|
||||
copyToClipboard,
|
||||
EuiBasicTable,
|
||||
EuiBasicTableColumn,
|
||||
EuiButton,
|
||||
EuiButtonIcon,
|
||||
EuiLink,
|
||||
EuiMarkdownFormat,
|
||||
EuiSpacer,
|
||||
|
@ -144,9 +146,24 @@ function ConfigurationValueColumn({
|
|||
}
|
||||
|
||||
return (
|
||||
<EuiText size="s" color="accent">
|
||||
{value}
|
||||
</EuiText>
|
||||
<>
|
||||
<EuiText size="s" color="accent">
|
||||
{value}
|
||||
</EuiText>
|
||||
{value && (
|
||||
<EuiButtonIcon
|
||||
aria-label={i18n.translate(
|
||||
'xpack.apm.onboarding.otel.column.value.copyIconText',
|
||||
{
|
||||
defaultMessage: 'Copy to clipboard',
|
||||
}
|
||||
)}
|
||||
color="text"
|
||||
iconType="copy"
|
||||
onClick={() => copyToClipboard(value)}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ import {
|
|||
EuiSpacer,
|
||||
} from '@elastic/eui';
|
||||
import React, { useState } from 'react';
|
||||
import { useEuiTheme } from '@elastic/eui';
|
||||
import {
|
||||
INSTRUCTION_VARIANT,
|
||||
getDisplayText,
|
||||
|
@ -44,10 +45,11 @@ export function InstructionsSet({
|
|||
const onSelectedTabChange = (tab: string) => {
|
||||
setSelectedTab(tab);
|
||||
};
|
||||
const { euiTheme } = useEuiTheme();
|
||||
|
||||
function InstructionTabs({ agentTabs }: { agentTabs: AgentTab[] }) {
|
||||
return (
|
||||
<EuiTabs>
|
||||
<EuiTabs style={{ padding: `0 ${euiTheme.size.l}` }}>
|
||||
{agentTabs.map((tab) => (
|
||||
<EuiTab
|
||||
key={tab.id}
|
||||
|
|
|
@ -48,7 +48,7 @@ export function serverlessInstructions(
|
|||
const displayApiKeyErrorCallout = error && Boolean(errorMessage);
|
||||
const commonOptions: AgentInstructions = {
|
||||
baseUrl,
|
||||
apmServerUrl: config.managedServiceUrl,
|
||||
apmServerUrl: `${config.managedServiceUrl}:443`,
|
||||
checkAgentStatus,
|
||||
agentStatus,
|
||||
agentStatusLoading,
|
||||
|
|
|
@ -13,6 +13,8 @@ import {
|
|||
EuiSpacer,
|
||||
EuiText,
|
||||
EuiBasicTableColumn,
|
||||
EuiButtonIcon,
|
||||
copyToClipboard,
|
||||
} from '@elastic/eui';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import { ValuesType } from 'utility-types';
|
||||
|
@ -75,9 +77,24 @@ export function OpenTelemetryInstructions({
|
|||
}
|
||||
),
|
||||
render: (_, { value }) => (
|
||||
<EuiText size="s" color="accent">
|
||||
{value}
|
||||
</EuiText>
|
||||
<>
|
||||
<EuiText size="s" color="accent">
|
||||
{value}
|
||||
</EuiText>
|
||||
{value && (
|
||||
<EuiButtonIcon
|
||||
aria-label={i18n.translate(
|
||||
'xpack.apm.tutorial.config_otel.column.value.copyIconText',
|
||||
{
|
||||
defaultMessage: 'Copy to clipboard',
|
||||
}
|
||||
)}
|
||||
color="text"
|
||||
iconType="copy"
|
||||
onClick={() => copyToClipboard(value)}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue