-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds traces overview with mock data (#22628)
* Adds traces overview with mock data * Updates service overview snapshots * Updates based on review feedback * Adds tests for ManagedTable and ImpactBar * Refactored transaction overview to use new managed table component * Fixes tab size * Cleans up some tests and types * Cleans up types and tests * kbn bootstrap changes to x-pack yarn.lock * Removed jsconfig file in apm * Updates snapshot tests * Reversed bogus yarn lock change in x-pack * review feedback wip * Resolves typescript issues
- Loading branch information
1 parent
9a3414c
commit c1a2748
Showing
32 changed files
with
893 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
// @ts-ignore | ||
import { EuiTabbedContent } from '@elastic/eui'; | ||
import React from 'react'; | ||
// @ts-ignore | ||
import { KueryBar } from '../../shared/KueryBar'; | ||
import { SetupInstructionsLink } from '../../shared/SetupInstructionsLink'; | ||
// @ts-ignore | ||
import { HeaderContainer } from '../../shared/UIComponents'; | ||
// @ts-ignore | ||
import { ServiceOverview } from '../ServiceOverview'; | ||
import { TraceOverview } from '../TraceOverview'; | ||
|
||
export function Home() { | ||
return ( | ||
<div> | ||
<HeaderContainer> | ||
<h1>APM</h1> | ||
<SetupInstructionsLink /> | ||
</HeaderContainer> | ||
<KueryBar /> | ||
<EuiTabbedContent | ||
className="k6Tab--large" | ||
tabs={[ | ||
{ | ||
id: 'services_overview', | ||
name: 'Services', | ||
content: <ServiceOverview /> | ||
}, | ||
{ id: 'traces_overview', name: 'Traces', content: <TraceOverview /> } | ||
]} | ||
/> | ||
</div> | ||
); | ||
} |
15 changes: 15 additions & 0 deletions
15
x-pack/plugins/apm/public/components/app/Main/__test__/Home.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { shallow } from 'enzyme'; | ||
import React from 'react'; | ||
import { Home } from '../Home'; | ||
|
||
describe('Home component', () => { | ||
it('should render', () => { | ||
expect(shallow(<Home />)).toMatchSnapshot(); | ||
}); | ||
}); |
30 changes: 30 additions & 0 deletions
30
x-pack/plugins/apm/public/components/app/Main/__test__/__snapshots__/Home.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Home component should render 1`] = ` | ||
<div> | ||
<styled.div> | ||
<h1> | ||
APM | ||
</h1> | ||
<SetupInstructionsLink /> | ||
</styled.div> | ||
<Connect(KueryBarView) /> | ||
<EuiTabbedContent | ||
className="k6Tab--large" | ||
tabs={ | ||
Array [ | ||
Object { | ||
"content": <Connect(ServiceOverview) />, | ||
"id": "services_overview", | ||
"name": "Services", | ||
}, | ||
Object { | ||
"content": <Connect(TraceOverview) />, | ||
"id": "traces_overview", | ||
"name": "Traces", | ||
}, | ||
] | ||
} | ||
/> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
143 changes: 0 additions & 143 deletions
143
x-pack/plugins/apm/public/components/app/ServiceOverview/List/index.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.