Skip to content

Commit 4e9c0fc

Browse files
authored
Merge branch 'master' into feat/all-columns-tables-sortable-filterable
2 parents cf28c24 + b8a77e1 commit 4e9c0fc

9 files changed

Lines changed: 48 additions & 9 deletions

File tree

src/base/FormLabel/FormLabel.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { FormLabelProps as MuiFormLabelProps, FormLabel as MuiFormLable } from '@mui/material';
2+
import React from 'react';
3+
4+
const FormLabel = React.forwardRef<HTMLLabelElement, MuiFormLabelProps>((props, ref) => {
5+
return <MuiFormLable {...props} ref={ref} />;
6+
});
7+
8+
export { FormLabel };

src/base/FormLabel/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { FormLabel } from './FormLabel';

src/base/Popover/Popover.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Popover as MuiPopover, PopoverProps as MuiPopoverProps } from '@mui/material';
2+
import React from 'react';
3+
4+
const Popover = React.forwardRef<HTMLDivElement, MuiPopoverProps>((props, ref) => {
5+
return <MuiPopover {...props} ref={ref} />;
6+
});
7+
8+
export { Popover };

src/base/Popover/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Popover } from './Popover';

src/base/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export * from './Drawer';
3232
export * from './FormControl';
3333
export * from './FormControlLabel';
3434
export * from './FormGroup';
35+
export * from './FormLabel';
3536
export * from './Grid';
3637
export * from './Grow';
3738
export * from './IconButton';
@@ -52,6 +53,7 @@ export * from './MenuList';
5253
export * from './OutlinedInput';
5354
export * from './Pagination';
5455
export * from './Paper';
56+
export * from './Popover';
5557
export * from './Popper';
5658
export * from './RadioGroup';
5759
export * from './Select';

src/custom/DashboardWidgets/GettingStartedWidget/ActionButtonCard.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,15 @@ const DescriptionTypography = styled(Typography)<{ maxWidth?: string }>(({ theme
5959
marginLeft: theme.spacing(1),
6060
marginBottom: theme.spacing(1),
6161
minHeight: '4.5rem',
62-
[theme.breakpoints.between('sm', 'lg')]: {
62+
maxWidth: '100%',
63+
[theme.breakpoints.up('xs')]: {
64+
maxWidth: '100%'
65+
},
66+
[theme.breakpoints.up('sm')]: {
6367
maxWidth: maxWidth || '100%'
68+
},
69+
[theme.breakpoints.up('lg')]: {
70+
maxWidth: '100%'
6471
}
6572
}));
6673

src/custom/DashboardWidgets/GettingStartedWidget/GetStartedModal.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ interface GetStartedModalProps {
6565
handleOpen: () => void;
6666
stepsData: StepData[];
6767
profileData: ProfileData;
68-
useUpdateUserPrefMutation: () => [(arg: { mapObject: any }) => void, any];
68+
useUpdateUserPrefMutation: any;
6969
useGetOrgsQuery: any;
7070
currentOrgId: string;
7171
useGetUserOrgRolesQuery: any;
@@ -74,6 +74,7 @@ interface GetStartedModalProps {
7474
isAssignUserRolesAllowed: boolean;
7575
useLazyGetTeamsQuery: any;
7676
embedDesignPath: string;
77+
isFromMeshery: boolean;
7778
}
7879

7980
const Loading: React.FC<LoadingProps> = ({ showModal, handleClose, style }) => {
@@ -164,7 +165,8 @@ const GetStartedModal: React.FC<GetStartedModalProps> = ({
164165
useNotificationHandlers,
165166
isAssignUserRolesAllowed,
166167
useLazyGetTeamsQuery,
167-
embedDesignPath
168+
embedDesignPath,
169+
isFromMeshery
168170
}) => {
169171
const [openModal, setOpenModal] = useState<boolean>(false);
170172
const [clicked, setClicked] = useState<number | undefined>(undefined);
@@ -191,9 +193,14 @@ const GetStartedModal: React.FC<GetStartedModalProps> = ({
191193
: [...completedSteps, id]
192194
}
193195
};
194-
updatePref({
195-
mapObject: completeWelcome
196-
});
196+
// different api use for the cloud and meshery
197+
if (isFromMeshery) {
198+
updatePref(completeWelcome);
199+
} else {
200+
updatePref({
201+
mapObject: completeWelcome
202+
});
203+
}
197204
if (id === 3) {
198205
setInviteModal(true);
199206
} else {

src/custom/Panel/style.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ListItemProps } from '@mui/material';
22
import { Box, IconButton, ListItem } from '../../base';
33
import { PanelDragHandleIcon } from '../../icons/PanelDragHandle';
4-
import { accentGrey, black, styled } from '../../theme';
4+
import { black, styled } from '../../theme';
55
import { PanelProps } from './Panel';
66

77
export const ListHeader = styled(ListItem)(({ theme }) => ({
@@ -68,7 +68,7 @@ export const DrawerHeader = styled('div')(({ theme }) => ({
6868

6969
export const PanelBody = styled(Box)(({ theme }) => ({
7070
padding: theme.spacing(2),
71-
backgroundColor: theme.palette.mode === 'light' ? accentGrey[10] : accentGrey[100],
71+
backgroundColor: theme.palette.background.surfaces,
7272
overflow: 'auto',
7373
flex: 1,
7474
minHeight: 0

src/custom/ShareModal/ShareModal.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ const AccessList: React.FC<AccessListProps> = ({
9393
<ListItemText
9494
primary={`${actorData.first_name || ''} ${actorData.last_name || ''}`}
9595
secondary={actorData.email}
96+
secondaryTypographyProps={{
97+
sx: {
98+
color: theme.palette.background.neutral?.pressed
99+
}
100+
}}
96101
/>
97102
<ListItemSecondaryAction>
98103
{ownerData.id === actorData.id ? (
@@ -293,7 +298,7 @@ const ShareModal: React.FC<ShareModalProps> = ({
293298
</CustomSelect>
294299
<Typography
295300
sx={{
296-
color: theme.palette.text.secondary
301+
color: theme.palette.background.neutral?.pressed
297302
}}
298303
component="span"
299304
variant="body2"

0 commit comments

Comments
 (0)