forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UX] Improve page responsive (elastic#78759)
* WIP * add resizeable panel * Improve page responsiveness * Improve page responsiveness * fix types Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
9775119
commit ae23cd1
Showing
18 changed files
with
203 additions
and
81 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 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 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 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 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 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 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 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
39 changes: 39 additions & 0 deletions
39
x-pack/plugins/apm/public/components/app/RumDashboard/Panels/PageLoadAndViews.tsx
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,39 @@ | ||
/* | ||
* 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 React from 'react'; | ||
import { EuiPanel, EuiResizableContainer } from '@elastic/eui'; | ||
import { FULL_HEIGHT } from '../RumDashboard'; | ||
import { PageLoadDistribution } from '../PageLoadDistribution'; | ||
import { PageViewsTrend } from '../PageViewsTrend'; | ||
import { useBreakPoints } from '../hooks/useBreakPoints'; | ||
|
||
export function PageLoadAndViews() { | ||
const { isLarge } = useBreakPoints(); | ||
|
||
return ( | ||
<EuiResizableContainer | ||
style={FULL_HEIGHT} | ||
direction={isLarge ? 'vertical' : 'horizontal'} | ||
> | ||
{(EuiResizablePanel, EuiResizableButton) => ( | ||
<> | ||
<EuiResizablePanel initialSize={50} minSize="20%"> | ||
<EuiPanel style={FULL_HEIGHT}> | ||
<PageLoadDistribution /> | ||
</EuiPanel> | ||
</EuiResizablePanel> | ||
<EuiResizableButton /> | ||
<EuiResizablePanel initialSize={50} minSize="20%"> | ||
<EuiPanel style={FULL_HEIGHT}> | ||
<PageViewsTrend /> | ||
</EuiPanel> | ||
</EuiResizablePanel> | ||
</> | ||
)} | ||
</EuiResizableContainer> | ||
); | ||
} |
39 changes: 39 additions & 0 deletions
39
x-pack/plugins/apm/public/components/app/RumDashboard/Panels/VisitorBreakdowns.tsx
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,39 @@ | ||
/* | ||
* 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 React from 'react'; | ||
import { EuiPanel, EuiResizableContainer } from '@elastic/eui'; | ||
import { VisitorBreakdown } from '../VisitorBreakdown'; | ||
import { VisitorBreakdownMap } from '../VisitorBreakdownMap'; | ||
import { FULL_HEIGHT } from '../RumDashboard'; | ||
import { useBreakPoints } from '../hooks/useBreakPoints'; | ||
|
||
export function VisitorBreakdownsPanel() { | ||
const { isLarge } = useBreakPoints(); | ||
|
||
return ( | ||
<EuiResizableContainer | ||
style={FULL_HEIGHT} | ||
direction={isLarge ? 'vertical' : 'horizontal'} | ||
> | ||
{(EuiResizablePanel, EuiResizableButton) => ( | ||
<> | ||
<EuiResizablePanel initialSize={50} minSize="20%"> | ||
<EuiPanel style={FULL_HEIGHT}> | ||
<VisitorBreakdown /> | ||
</EuiPanel> | ||
</EuiResizablePanel> | ||
<EuiResizableButton /> | ||
<EuiResizablePanel initialSize={50} minSize="20%"> | ||
<EuiPanel style={FULL_HEIGHT}> | ||
<VisitorBreakdownMap /> | ||
</EuiPanel> | ||
</EuiResizablePanel> | ||
</> | ||
)} | ||
</EuiResizableContainer> | ||
); | ||
} |
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 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 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.