Skip to content

Commit 7b818c1

Browse files
committed
Added many changes
1 parent 396b2c5 commit 7b818c1

File tree

4 files changed

+264
-228
lines changed

4 files changed

+264
-228
lines changed

ui/src/components/custom/search/matrixExplorer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ const MatrixExplorer: React.FC = () => {
387387
<MiniMatrixCard
388388
key={matrix.matrixId}
389389
title={matrix.name}
390-
description={matrix.description}
391390
onSelectMatrix={() => handleMatrixSelect(matrix.matrixId)}
392391
titleColor="#ffffff"
393392
/>

ui/src/components/custom/search/miniMatrixCard.tsx

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ import { Typography, Paper } from "@mui/material";
33

44
interface MiniMatrixCardProps {
55
title: string;
6-
description: string;
76
onSelectMatrix: () => void;
87
titleColor?: string;
98
}
109

1110
const MiniMatrixCard: React.FC<MiniMatrixCardProps> = ({
1211
title,
13-
description,
1412
onSelectMatrix,
1513
titleColor = "#ffffff",
1614
}) => {
@@ -31,10 +29,10 @@ const MiniMatrixCard: React.FC<MiniMatrixCardProps> = ({
3129
transform: "translateY(-2px)",
3230
boxShadow: "0 4px 8px rgba(0, 0, 0, 0.2)",
3331
},
34-
minHeight: "80px",
32+
minHeight: "60px",
3533
display: 'flex',
3634
flexDirection: 'column',
37-
gap: 1,
35+
justifyContent: 'center',
3836
boxSizing: 'border-box',
3937
}}
4038
onClick={onSelectMatrix}
@@ -52,21 +50,6 @@ const MiniMatrixCard: React.FC<MiniMatrixCardProps> = ({
5250
>
5351
{title || ""}
5452
</Typography>
55-
<Typography
56-
variant="caption"
57-
sx={{
58-
display: "-webkit-box",
59-
WebkitLineClamp: 3,
60-
WebkitBoxOrient: "vertical",
61-
overflow: "hidden",
62-
fontSize: "0.8rem",
63-
lineHeight: 1.4,
64-
color: "rgba(255, 255, 255, 0.7)",
65-
flex: 1,
66-
}}
67-
>
68-
{description || ""}
69-
</Typography>
7053
</Paper>
7154
);
7255
};

ui/src/pages/Profile.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import {
66
Grid,
77
Divider,
88
Skeleton,
9+
Button,
910
} from '@mui/material';
1011
import axios from 'axios';
12+
import SettingsIcon from '@mui/icons-material/Settings';
1113

1214
interface UserData {
1315
userId: number;
@@ -79,6 +81,10 @@ const Profile: React.FC = () => {
7981
</Grid>
8082
);
8183

84+
const handleAdvancedSettings = () => {
85+
window.open('https://keycloak.zeus.socom.dev/realms/zeus-apps/account/', '_blank');
86+
};
87+
8288
return (
8389
<Box
8490
sx={{
@@ -159,6 +165,28 @@ const Profile: React.FC = () => {
159165
label="Member Since"
160166
value={new Date(userData.createdAt).toLocaleDateString()}
161167
/>
168+
169+
<Box sx={{ mt: 4, display: 'flex', justifyContent: 'center' }}>
170+
<Button
171+
variant="outlined"
172+
startIcon={<SettingsIcon />}
173+
onClick={handleAdvancedSettings}
174+
sx={{
175+
color: '#ffffff',
176+
borderColor: 'rgba(255, 255, 255, 0.3)',
177+
'&:hover': {
178+
borderColor: '#014093',
179+
backgroundColor: 'rgba(1, 64, 147, 0.1)',
180+
},
181+
textTransform: 'uppercase',
182+
fontWeight: 'bold',
183+
letterSpacing: '0.5px',
184+
padding: '8px 24px',
185+
}}
186+
>
187+
Advanced Settings
188+
</Button>
189+
</Box>
162190
</Box>
163191
)
164192
)}

0 commit comments

Comments
 (0)