-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[APM] Visual improvements for new APM layout with left navigation #101360
[APM] Visual improvements for new APM layout with left navigation #101360
Conversation
Pinging @elastic/apm-ui (Team:apm) |
Thanks @formgeist! |
5b95d8a
to
fea2b90
Compare
8a0e17f
to
306e128
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppServices codeowners change LGTM.
x-pack/plugins/apm/public/components/app/service_node_overview/index.tsx
Outdated
Show resolved
Hide resolved
export function EditAgentConfigurationRouteView(props: RouteComponentProps) { | ||
const { search } = props.history.location; | ||
|
||
// typescript complains because `pageStop` does not exist in `APMQueryParams` | ||
// Going forward we should move away from globally declared query params and this is a first step | ||
// @ts-expect-error | ||
const { name, environment, pageStep } = toQuery(search); | ||
|
||
const res = useFetcher( | ||
(callApmApi) => { | ||
return callApmApi({ | ||
endpoint: 'GET /api/apm/settings/agent-configuration/view', | ||
params: { query: { name, environment } }, | ||
}); | ||
}, | ||
[name, environment] | ||
); | ||
|
||
return ( | ||
<ApmMainTemplate pageTitle="Settings"> | ||
<SettingsTemplate {...props}> | ||
<AgentConfigurationCreateEdit | ||
pageStep={pageStep || 'choose-settings-step'} | ||
existingConfigResult={res} | ||
/> | ||
</SettingsTemplate> | ||
</ApmMainTemplate> | ||
); | ||
} | ||
|
||
export function CreateAgentConfigurationRouteView(props: RouteComponentProps) { | ||
const { search } = props.history.location; | ||
|
||
// Ignoring here because we specifically DO NOT want to add the query params to the global route handler | ||
// @ts-expect-error | ||
const { pageStep } = toQuery(search); | ||
|
||
return ( | ||
<ApmMainTemplate pageTitle="Settings"> | ||
<SettingsTemplate {...props}> | ||
<AgentConfigurationCreateEdit | ||
pageStep={pageStep || 'choose-service-step'} | ||
/> | ||
</SettingsTemplate> | ||
</ApmMainTemplate> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not new but was simply moved from another file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really like how this utilizes space better! And I've noticed how this already massively helps in the perceived "walls" between the different Observability apps.
}; | ||
}) { | ||
}: Props) { | ||
const tabs = useTabs({ serviceName, selectedTab }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the use of hooks here 👍
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
* master: (90 commits) Fix UI breaks on providing long search keyword in 'Search Box' (elastic#101385) Adds css class to EuiDescriptionListDescription in order to break word on exception details card (elastic#101481) [Lens] Increase timings for drag and drop tests (elastic#101380) [Lens] Fix editor react error on configuration panel (elastic#101367) [Fleet] Move integrations to a separate app (elastic#99848) Fix incorrect message displayed on importing Timeline Templates (elastic#101288) [Cases] RBAC (elastic#95058) [APM] Visual improvements for new APM layout with left navigation (elastic#101360) [master] More precise alerts matching (elastic#99820) [Lens] Value in legend (elastic#101353) Revert "[Reporting] ILM policy for managing reporting indices (elastic#100130)" (elastic#101358) [Discover] Fix header row of data grid in Firefox (elastic#101374) Add link to advanced setting in Discover (elastic#101154) Url service locators (elastic#101045) [Timelion] Update the removal message to mention the exact version (elastic#100994) [Security Solution][Detection Engine] Test cases for alias failure test cases where we don't copy aliases correctly (elastic#101437) [Event Log] Adding `type_id` to saved object array in event log (elastic#100939) [Reporting] Add `location.url` info to console message logs (elastic#101427) [Security Solutions][Detection Engine] Fixes timestamp bugs within source indexes when the formats are not ISO8601 format (elastic#101349) Improve Task Manager instrumentation (elastic#99160) ...
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Follow-up to: #101044
Closes: #101355
TODO
Truncation or wrapping missing in the PageHeader title(blocked) [APM] Solution navigation UI polish #101355