Skip to content

Commit 20ce77f

Browse files
committed
feat: modify the layout of project page
1 parent 4304b3c commit 20ce77f

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/components/User/Dashboard/DatasetOrganizer/LLMPanel.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,8 @@ const LLMPanel: React.FC<LLMPanelProps> = ({
753753
return (
754754
<Paper
755755
sx={{
756-
position: "fixed",
756+
// position: "fixed",
757+
position: "absolute",
757758
bottom: 0,
758759
left: 0,
759760
right: 0,
@@ -939,7 +940,7 @@ const LLMPanel: React.FC<LLMPanelProps> = ({
939940
{generatingEvidence
940941
? "Generating..."
941942
: evidenceBundle
942-
? "✓ Generate Evidence Bundle"
943+
? "✓ 1. Generate Evidence Bundle"
943944
: "1. Generate Evidence Bundle"}
944945
</Button>
945946

@@ -972,7 +973,7 @@ const LLMPanel: React.FC<LLMPanelProps> = ({
972973
{generatingTrio
973974
? "Generating..."
974975
: trioGenerated
975-
? "✓ Generate BIDS Trio"
976+
? "✓ 2. Generate BIDS Trio"
976977
: "2. Generate BIDS Trio"}
977978
</Button>
978979
<Typography
@@ -983,7 +984,7 @@ const LLMPanel: React.FC<LLMPanelProps> = ({
983984
py: 1,
984985
}}
985986
>
986-
3. Ready to Generate Script ↓
987+
Ready to Generate Script ↓
987988
</Typography>
988989
</Box>
989990
</Box>
@@ -1008,7 +1009,7 @@ const LLMPanel: React.FC<LLMPanelProps> = ({
10081009
},
10091010
}}
10101011
>
1011-
{loading ? "Generating..." : "Generate Script"}
1012+
{loading ? "Generating..." : "3. Generate Script"}
10121013
</Button>
10131014

10141015
{/* cancel button*/}

src/components/User/Dashboard/DatasetOrganizer/index.tsx

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ const DatasetOrganizer: React.FC = () => {
330330
{/* Main Content */}
331331
<Box sx={{ display: "flex", flex: 1, minHeight: 0 }}>
332332
{/* Left: Drop Zone */}
333-
<Box sx={{ flex: 1, overflow: "auto", p: 3 }}>
333+
<Box sx={{ flex: 1, overflow: "auto", p: 3, position: "relative" }}>
334334
<DropZone
335335
files={files}
336336
setFiles={updateFiles} // Pass wrapper
@@ -341,6 +341,20 @@ const DatasetOrganizer: React.FC = () => {
341341
expandedIds={expandedIds}
342342
setExpandedIds={setExpandedIds}
343343
/>
344+
{/* LLM Panel */}
345+
{showLLMPanel && (
346+
<LLMPanel
347+
files={files}
348+
baseDirectoryPath={baseDirectoryPath}
349+
setBaseDirectoryPath={setBaseDirectoryPath}
350+
evidenceBundle={evidenceBundle}
351+
setEvidenceBundle={setEvidenceBundle}
352+
trioGenerated={trioGenerated}
353+
setTrioGenerated={setTrioGenerated}
354+
updateFiles={updateFiles}
355+
onClose={() => setShowLLMPanel(false)}
356+
/>
357+
)}
344358
</Box>
345359

346360
{/* Right: File Tree */}
@@ -354,21 +368,6 @@ const DatasetOrganizer: React.FC = () => {
354368
/>
355369
</Box>
356370

357-
{/* LLM Panel */}
358-
{showLLMPanel && (
359-
<LLMPanel
360-
files={files}
361-
baseDirectoryPath={baseDirectoryPath}
362-
setBaseDirectoryPath={setBaseDirectoryPath}
363-
evidenceBundle={evidenceBundle}
364-
setEvidenceBundle={setEvidenceBundle}
365-
trioGenerated={trioGenerated}
366-
setTrioGenerated={setTrioGenerated}
367-
updateFiles={updateFiles}
368-
onClose={() => setShowLLMPanel(false)}
369-
/>
370-
)}
371-
372371
{/* Exit Confirmation Dialog */}
373372
<Dialog open={showExitDialog} onClose={() => setShowExitDialog(false)}>
374373
<DialogTitle>Unsaved Changes</DialogTitle>

0 commit comments

Comments
 (0)