-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-15280][PLAT-14753] - Pg parity improvements and other ui fixes
Summary: **[PLAT-15280]** Show Reminder modal for **ANALYZE** statement whenever pg toggle is enabled both in create and edit flow. **[PLAT-14753]** Access keys getting overwritten on edit universe page. This is because old code was not handling multiple access keys for a provider. **Others** - Changes label Internal YSQL Port - Do not show empty tooltip for connection pooling Test Plan: Tested manually **Screenshot** {F287332} Reviewers: kkannan Reviewed By: kkannan Subscribers: ui, yugaware Differential Revision: https://phorge.dev.yugabyte.com/D38191
- Loading branch information
1 parent
784160c
commit b32222d
Showing
8 changed files
with
158 additions
and
38 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 75 additions & 0 deletions
75
...i/src/redesign/features/universe/universe-actions/edit-pg-compatibility/AnalyzeDialog.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,75 @@ | ||
import { FC } from 'react'; | ||
import { useTranslation, Trans } from 'react-i18next'; | ||
import { Box, makeStyles, Typography, Chip, Link } from '@material-ui/core'; | ||
import { YBModal } from '../../../../components'; | ||
|
||
//icons | ||
import { ReactComponent as ReminderIcon } from '../../../../assets/reminder.svg'; | ||
|
||
interface AnalyzeDialogProps { | ||
open: boolean; | ||
onClose: () => void; | ||
} | ||
|
||
const useStyles = makeStyles((theme) => ({ | ||
innerContainer: { | ||
height: 'auto', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
padding: theme.spacing(2), | ||
backgroundColor: '#FCFCFC', | ||
border: '1px solid #D7DEE4', | ||
borderRadius: '8px' | ||
}, | ||
chip: { | ||
height: 24, | ||
width: 'fit-content', | ||
padding: '4px 6px', | ||
borderRadius: '6px', | ||
backgroundColor: '#FFFFFF', | ||
border: '1px solid #D7DEE4', | ||
fontFamily: 'Menio', | ||
color: '#0B1117', | ||
fontSize: '13px', | ||
fontWeight: 400 | ||
} | ||
})); | ||
|
||
export const AnalyzeDialog: FC<AnalyzeDialogProps> = ({ open, onClose }) => { | ||
const classes = useStyles(); | ||
const { t } = useTranslation(); | ||
return ( | ||
<YBModal | ||
open={open} | ||
title={t('common.reminder')} | ||
titleIcon={<ReminderIcon />} | ||
onClose={onClose} | ||
cancelLabel={t('common.close')} | ||
cancelTestId="AnalyzeDialog-Cancel" | ||
overrideHeight={'auto'} | ||
overrideWidth={'600px'} | ||
dialogContentProps={{ style: { padding: '32px 16px 32px 24px' }, dividers: true }} | ||
> | ||
<Box className={classes.innerContainer}> | ||
<Typography variant="body2"> | ||
<Trans i18nKey={'universeActions.pgCompatibility.analyzeModal.msg1'} /> | ||
<br /> | ||
<br /> | ||
{t('universeActions.pgCompatibility.analyzeModal.msg2')} | ||
<Chip label="ANALYZE ;" className={classes.chip} size="small" /> | ||
| ||
{t('universeActions.pgCompatibility.analyzeModal.msg3')} | ||
<br /> | ||
<br /> | ||
<Link | ||
underline="always" | ||
target="_blank" | ||
href="https://docs.yugabyte.com/preview/api/ysql/the-sql-language/statements/cmd_analyze/#analyze-affects-query-plans" | ||
> | ||
{t('universeActions.pgCompatibility.analyzeModal.learnLink')} | ||
</Link> | ||
</Typography> | ||
</Box> | ||
</YBModal> | ||
); | ||
}; |
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