Skip to content

Commit 3b058e0

Browse files
committed
feat: add deeplinking for the dashboard in meshery
Signed-off-by: Amit Amrutiya <[email protected]>
1 parent 4143d4c commit 3b058e0

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/custom/ResourceDetailFormatters/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,5 +299,6 @@ export const KeyValueGridTitle = styled(Typography)({
299299
});
300300

301301
export const KeyValueGridCell = styled(Grid)({
302-
placeSelf: 'center'
302+
placeSelf: 'center',
303+
alignItems: 'center'
303304
});

src/custom/ResourceDetailFormatters/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export interface ActionIconButtonProps {
6464
export interface KeyValueProps {
6565
Key: string;
6666
Value: string | number | ReactNode;
67+
showFold?: boolean;
6768
}
6869

6970
export interface EnvironmentFormatterProps {
@@ -264,4 +265,5 @@ export interface GetResourceCleanDataProps {
264265
dispatchMsgToEditor?: (msg: any) => void;
265266
activeLabels?: string[];
266267
showStatus?: boolean;
268+
router?: any;
267269
}

src/custom/ResourceDetailFormatters/useResourceCleanData.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export const useResourceCleanData = () => {
6767
resource,
6868
activeLabels,
6969
dispatchMsgToEditor,
70+
router,
7071
showStatus = true
7172
}: GetResourceCleanDataProps) => {
7273
const parsedStatus = resource?.status?.attribute && JSON.parse(resource?.status?.attribute);
@@ -108,8 +109,13 @@ export const useResourceCleanData = () => {
108109
links: [
109110
{ nodeName: parsedSpec?.nodeName, label: 'Node' },
110111
{ namespace: resource?.metadata?.namespace, label: 'Namespace' },
111-
{ serviceAccount: parsedSpec?.serviceAccountName, label: 'ServiceAccount' }
112+
{
113+
serviceAccount: parsedSpec?.serviceAccountName,
114+
label: 'ServiceAccount',
115+
resourceCategory: 'Security'
116+
}
112117
],
118+
router: router,
113119
dispatchMsgToEditor: dispatchMsgToEditor
114120
},
115121
selector: parsedSpec?.selector?.matchLabels

0 commit comments

Comments
 (0)