Skip to content

Commit 318aadf

Browse files
authored
Merge branch 'master' into fix-pagination
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
2 parents 523357e + e778b07 commit 318aadf

6 files changed

Lines changed: 32 additions & 34 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"@emotion/react": "^11.11.3",
100100
"@emotion/styled": "^11.11.0",
101101
"@layer5/meshery-design-embed": "^0.4.0",
102-
"@layer5/schemas": "^0.0.6-13",
102+
"@layer5/schemas": "^0.0.6-14",
103103
"@mui/material": "^5.15.11",
104104
"@types/mui-datatables": "*",
105105
"billboard.js": "^3.14.3",

src/custom/ShareModal/ShareModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ const ShareModal: React.FC<ShareModalProps> = ({
315315

316316
<ModalFooter
317317
variant="filled"
318-
helpText="You can share your designs or designs for which you have permission to share with other members of your organization and teams, and you can control access permissions."
318+
helpText="You can share your designs or designs for which you have permission to share with other members of your organization and teams, and you can control access permissions. <a href='https://docs.layer5.io/kanvas/designer/share-resource/'>Learn more</a>"
319319
>
320320
<div
321321
style={{

src/custom/Workspaces/DesignTable.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22
import _ from 'lodash';
33
import React, { useEffect, useRef, useState } from 'react';
4-
import { Box, Typography } from '../../base';
4+
import { Box } from '../../base';
55
import { DesignIcon } from '../../icons';
66
import { publishCatalogItemSchema } from '../../schemas';
77
import { useTheme } from '../../theme';
@@ -19,7 +19,7 @@ import SearchBar from '../SearchBar';
1919
import { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu';
2020
import AssignmentModal from './AssignmentModal';
2121
import useDesignAssignment from './hooks/useDesignAssignment';
22-
import { L5EditIcon, TableHeader, TableRightActionHeader } from './styles';
22+
import { L5EditIcon, TableHeader } from './styles';
2323
export interface DesignTableProps {
2424
workspaceId: string;
2525
isKanvasEnabled: boolean;
@@ -210,13 +210,15 @@ const DesignTable: React.FC<DesignTableProps> = ({
210210

211211
const tableHeaderContent = (
212212
<TableHeader style={{ padding: '1rem' }}>
213-
<Box display={'flex'} alignItems="center" gap={1} width="100%">
214-
<DesignIcon height="1.5rem" width="1.5rem" />
215-
<Typography variant="body1" fontWeight={'bold'}>
216-
Assigned Designs
217-
</Typography>
218-
</Box>
219-
<TableRightActionHeader style={{ marginRight: '0rem' }}>
213+
<Box
214+
style={{
215+
marginRight: '0rem',
216+
width: '100%',
217+
justifyContent: 'end',
218+
display: 'flex',
219+
alignItems: 'center'
220+
}}
221+
>
220222
<SearchBar
221223
onSearch={(value) => {
222224
setSearch(value);
@@ -241,7 +243,7 @@ const DesignTable: React.FC<DesignTableProps> = ({
241243
disabled={!isAssignAllowed}
242244
title="Assign Designs"
243245
/>
244-
</TableRightActionHeader>
246+
</Box>
245247
</TableHeader>
246248
);
247249

src/custom/Workspaces/WorkspaceViewsTable.tsx

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Lock, Public } from '@mui/icons-material';
33
import RemoveCircleIcon from '@mui/icons-material/RemoveCircle';
44
import { MUIDataTableColumn, MUIDataTableMeta } from 'mui-datatables';
55
import React, { useState } from 'react';
6-
import { Box, Typography } from '../../base';
7-
import { EnvironmentIcon, ViewIcon } from '../../icons';
6+
import { Box } from '../../base';
7+
import { EnvironmentIcon } from '../../icons';
88
import { useTheme } from '../../theme';
99
import { NameDiv } from '../CatalogDesignTable/style';
1010
import { RESOURCE_TYPES } from '../CatalogDetail/types';
@@ -23,13 +23,7 @@ import { UserTableAvatarInfo } from '../UsersTable';
2323
import VisibilityChipMenu, { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu';
2424
import AssignmentModal from './AssignmentModal';
2525
import useViewAssignment from './hooks/useViewsAssignment';
26-
import {
27-
CellStyle,
28-
CustomBodyRenderStyle,
29-
L5EditIcon,
30-
TableHeader,
31-
TableRightActionHeader
32-
} from './styles';
26+
import { CellStyle, CustomBodyRenderStyle, L5EditIcon, TableHeader } from './styles';
3327

3428
interface ViewsTableProps {
3529
workspaceId: string;
@@ -338,13 +332,15 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
338332
return (
339333
<>
340334
<TableHeader style={{ padding: '1rem' }}>
341-
<Box display={'flex'} alignItems="center" gap={1} width="100%">
342-
<ViewIcon height="1.5rem" width="1.5rem" fill={theme.palette.icon.brand} />
343-
<Typography variant="body1" fontWeight={'bold'}>
344-
Assigned Views
345-
</Typography>
346-
</Box>
347-
<TableRightActionHeader style={{ marginRight: '0rem' }}>
335+
<Box
336+
style={{
337+
marginRight: '0rem',
338+
width: '100%',
339+
justifyContent: 'end',
340+
display: 'flex',
341+
alignItems: 'center'
342+
}}
343+
>
348344
<SearchBar
349345
onSearch={(value) => {
350346
setSearch(value);
@@ -369,7 +365,7 @@ const WorkspaceViewsTable: React.FC<ViewsTableProps> = ({
369365
disabled={!isAssignAllowed}
370366
title="Assign Views"
371367
/>
372-
</TableRightActionHeader>
368+
</Box>
373369
</TableHeader>
374370

375371
<ResponsiveDataTable

src/schemas/createAndEditWorkspace/schema.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const createAndEditWorkspace = {
2929
}
3030
},
3131
type: 'object',
32-
required: workspaceSchema.workspacePayload.required
32+
required: ['name', 'organization']
3333
};
3434

3535
export default createAndEditWorkspace;

0 commit comments

Comments
 (0)