Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/User/Dashboard/DatasetOrganizer/LLMPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1802,9 +1802,9 @@ const LLMPanel: React.FC<LLMPanelProps> = ({
const ua = navigator.userAgent.toLowerCase();
const os = ua.includes("win") ? "windows" : ua.includes("linux") ? "linux" : "mac";
const urls: Record<string, string> = {
mac: "https://github.com/elainefan331/autobidsify-executor/releases/latest/download/AutoBIDSify-Executor-mac.zip",
windows: "https://github.com/elainefan331/autobidsify-executor/releases/latest/download/AutoBIDSify-Executor-windows.zip",
linux: "https://github.com/elainefan331/autobidsify-executor/releases/latest/download/AutoBIDSify-Executor-linux.zip",
mac: "https://github.com/yiyiliu-rose/autobidsifyAPP/releases/latest/download/AutoBIDSify-ExecVal-macOS-arm64.zip",
windows: "https://github.com/yiyiliu-rose/autobidsifyAPP/releases/latest/download/AutoBIDSify-ExecVal-Windows.zip",
linux: "https://github.com/yiyiliu-rose/autobidsifyAPP/releases/latest/download/AutoBIDSify-ExecVal-Linux.tar.gz",
};
window.open(urls[os], "_blank");
}}
Expand Down
81 changes: 51 additions & 30 deletions src/components/User/Dashboard/DatasetOrganizer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,38 +364,58 @@ const DatasetOrganizer: React.FC = () => {
</Box>
</Box>

<Box display="flex" gap={1}>
<Button
variant="contained"
startIcon={<Psychology />}
onClick={() => setShowLLMPanel(!showLLMPanel)}
sx={{
backgroundColor: Colors.purple,
color: Colors.lightGray,
"&:hover": {
<Box display="flex" flexDirection="column" gap={1} alignItems="flex-end">
<Box display="flex" gap={1}>
<Button
variant="contained"
startIcon={<Psychology />}
onClick={() => setShowLLMPanel(!showLLMPanel)}
sx={{
backgroundColor: Colors.purple,
border: "none",
},
}}
>
AI Assistant
</Button>
<Button
variant="contained"
startIcon={<GetApp />}
onClick={handleExportJSON}
disabled={files.length === 0}
sx={{
backgroundColor: Colors.darkGreen,
color: Colors.lightGray,
"&:hover": {
color: Colors.lightGray,
"&:hover": {
backgroundColor: Colors.purple,
border: "none",
},
}}
>
AI Assistant
</Button>
<Button
variant="outlined"
startIcon={<GetApp />}
onClick={() => {
const ua = navigator.userAgent.toLowerCase();
const os = ua.includes("win") ? "windows" : ua.includes("linux") ? "linux" : "mac";
const urls: Record<string, string> = {
mac: "https://github.com/yiyiliu-rose/autobidsifyAPP/releases/latest/download/AutoBIDSify-ExecVal-macOS-arm64.zip",
windows: "https://github.com/yiyiliu-rose/autobidsifyAPP/releases/latest/download/AutoBIDSify-ExecVal-Windows.zip",
linux: "https://github.com/yiyiliu-rose/autobidsifyAPP/releases/latest/download/AutoBIDSify-ExecVal-Linux.tar.gz",
};
window.open(urls[os], "_blank");
}}
sx={{ borderColor: Colors.purple, color: Colors.purple, textTransform: "none" }}
>
Download Converter
</Button>
</Box>
<Box display="flex" gap={1}>
<Button
variant="contained"
startIcon={<GetApp />}
onClick={handleExportJSON}
disabled={files.length === 0}
sx={{
backgroundColor: Colors.darkGreen,
border: "none",
},
}}
>
Export JSON
</Button>
color: Colors.lightGray,
"&:hover": {
backgroundColor: Colors.darkGreen,
border: "none",
},
}}
>
Export JSON
</Button>
<Button
variant="contained"
startIcon={<Save />}
Expand All @@ -421,6 +441,7 @@ const DatasetOrganizer: React.FC = () => {
"Saved ✓"
)}
</Button>
</Box>
</Box>
</Box>

Expand Down
45 changes: 32 additions & 13 deletions src/pages/BidsConverterPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,38 @@ const BidsConverterPage: React.FC = () => {
</Box>
</Box>

<Box display="flex" gap={1} alignItems="center">
<Button
variant="contained"
startIcon={<Psychology />}
onClick={() => setShowLLMPanel(!showLLMPanel)}
sx={{
backgroundColor: Colors.purple,
color: Colors.lightGray,
"&:hover": { backgroundColor: Colors.purple, border: "none" },
}}
>
AI Assistant
</Button>
<Box display="flex" flexDirection="column" gap={1} alignItems="flex-end">
<Box display="flex" gap={1}>
<Button
variant="contained"
startIcon={<Psychology />}
onClick={() => setShowLLMPanel(!showLLMPanel)}
sx={{
backgroundColor: Colors.purple,
color: Colors.lightGray,
"&:hover": { backgroundColor: Colors.purple, border: "none" },
}}
>
AI Assistant
</Button>
<Button
variant="outlined"
startIcon={<GetApp />}
onClick={() => {
const ua = navigator.userAgent.toLowerCase();
const os = ua.includes("win") ? "windows" : ua.includes("linux") ? "linux" : "mac";
const urls: Record<string, string> = {
mac: "https://github.com/yiyiliu-rose/autobidsifyAPP/releases/latest/download/AutoBIDSify-ExecVal-macOS-arm64.zip",
windows: "https://github.com/yiyiliu-rose/autobidsifyAPP/releases/latest/download/AutoBIDSify-ExecVal-Windows.zip",
linux: "https://github.com/yiyiliu-rose/autobidsifyAPP/releases/latest/download/AutoBIDSify-ExecVal-Linux.tar.gz",
};
window.open(urls[os], "_blank");
}}
sx={{ borderColor: Colors.purple, color: Colors.purple, textTransform: "none" }}
>
Download Converter
</Button>
</Box>
<Button
variant="contained"
startIcon={<GetApp />}
Expand Down
Loading