forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* PMM-1148 initial inventory management rework * PMM-11148 Refactor AddInstance * PMM-11148 remove unnecessary tooltip icon * PMM-11148 Fix discovery tests * PMM-11148 Fix add instance submission * PMM-11148 Integrate service editing api * PMM-11148 fix custom labels field * PMM-11148 add success modal * PMM-11148 fix inventory test * PMM-11148 add labels tooltip & fix description * PMM-11148 refactor * PMM-11148 add required property * PMM-11148 add feature check * PMM-11148 adjust services delete * PMM-11148 remove documentation links * PMM-11148 Wording, boolean state, etc. * PMM-11148 update tablestat options name * PMM-11148 Extract messages for service tab * PMM-11148 Add warning when changing cluster label * PMM-11148 Add docs link to confirm edit service dialog * PMM-11148 Update api endpoint name * PMM-11148 Move delete services modal to component * PMM-11148 Fix bugs * PMM-11148 Call onSucces when single service is deleted * PMM-11148 Import FC directly * PMM-11148 Fix spacing * PMM-11148 Fix errors from component library integration * PMM-11148 Fix DeleteServicesModal tests * PMM-11148 Use correct urls for services * PMM-11148 Use shortened docs link * PMM-11148 Increase width for azure instance form * PMM-11148 Jump straight to add instance page & reorder
- Loading branch information
1 parent
6c59e50
commit 3737244
Showing
70 changed files
with
1,786 additions
and
662 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
public/app/percona/add-instance/components/AddInstance/AddInstance.messages.ts
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
52 changes: 15 additions & 37 deletions
52
public/app/percona/add-instance/components/AddInstance/AddInstance.styles.ts
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 |
---|---|---|
@@ -1,52 +1,30 @@ | ||
import { css } from '@emotion/css'; | ||
|
||
import { GrafanaTheme } from '@grafana/data'; | ||
import { GrafanaTheme2 } from '@grafana/data'; | ||
|
||
export const getStyles = ({ border, colors, spacing, typography }: GrafanaTheme) => ({ | ||
navigationButton: css` | ||
export const getStyles = (theme: GrafanaTheme2) => ({ | ||
Content: css` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
align-items: center; | ||
padding-bottom: 1.2em; | ||
margin: ${spacing.sm}; | ||
border-radius: ${border.radius.md}; | ||
width: 230px; | ||
height: 160px; | ||
text-align: center; | ||
background-color: transparent; | ||
border: ${border.width.sm} dashed ${colors.border2}; | ||
:hover { | ||
cursor: pointer; | ||
background-color: ${colors.dropdownOptionHoverBg}; | ||
border: ${border.width.sm} solid ${colors.border2}; | ||
} | ||
align-items: flex-start; | ||
`, | ||
navigationPanel: css` | ||
NavigationPanel: css` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
justify-content: flex-start; | ||
flex-wrap: wrap; | ||
max-width: 800px; | ||
max-width: 825px; | ||
width: 100%; | ||
overflow: hidden; | ||
gap: ${theme.spacing(2)}; | ||
padding: 3px; | ||
margin: -3px; | ||
`, | ||
content: css` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: 2em; | ||
InstanceCard: css` | ||
width: 375px; | ||
margin: 0; | ||
`, | ||
addInstance: css` | ||
margin-top: ${spacing.sm}; | ||
font-size: ${typography.size.sm}; | ||
`, | ||
addInstanceTitle: css` | ||
margin-top: ${spacing.sm}; | ||
overflow: hidden; | ||
line-height: ${typography.lineHeight.md}; | ||
width: 65%; | ||
height: 3em; | ||
Description: css` | ||
color: ${theme.colors.text.secondary}; | ||
`, | ||
}); |
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
19 changes: 14 additions & 5 deletions
19
public/app/percona/add-instance/components/AddInstance/AddInstance.types.ts
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 |
---|---|---|
@@ -1,12 +1,21 @@ | ||
import { InstanceAvailable } from '../../panel.types'; | ||
import { IconName } from '@grafana/data'; | ||
|
||
export interface SelectInstanceProps { | ||
type: string; | ||
title: string; | ||
selectInstanceType: (type: string) => () => void; | ||
import { InstanceAvailable, InstanceAvailableType } from '../../panel.types'; | ||
|
||
export interface SelectInstanceProps extends InstanceListItem { | ||
isSelected: boolean; | ||
selectInstanceType: (type: InstanceAvailableType) => () => void; | ||
} | ||
|
||
export interface AddInstanceProps { | ||
selectedInstanceType: InstanceAvailable; | ||
onSelectInstanceType: (arg: InstanceAvailable) => void; | ||
showAzure: boolean; | ||
} | ||
|
||
export interface InstanceListItem { | ||
type: InstanceAvailableType; | ||
icon?: IconName; | ||
title: string; | ||
isHidden?: boolean; | ||
} |
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
Oops, something went wrong.