diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29..ed68dfb 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: patch + changes: + fixed: + - Add suspense to fix vercel deployment issue. diff --git a/examples/pipeline.py b/examples/pipeline.py index 70b8cb2..c9dc90e 100644 --- a/examples/pipeline.py +++ b/examples/pipeline.py @@ -264,7 +264,3 @@ def run_full_pipeline(output_path="microimpute_results.csv"): results_df = run_full_pipeline( output_path="microimputation-dashboard/public/microimputation_results.csv" ) - - # Display a preview of the results - print("Preview of formatted results (first 10 rows):") - print(results_df.head(10)) diff --git a/microimputation-dashboard/app/page.tsx b/microimputation-dashboard/app/page.tsx index 3f1a3a0..2b31bbf 100644 --- a/microimputation-dashboard/app/page.tsx +++ b/microimputation-dashboard/app/page.tsx @@ -1,6 +1,6 @@ 'use client'; -import { useState, useEffect } from 'react'; +import { useState, useEffect, Suspense } from 'react'; import { useSearchParams } from 'next/navigation'; import FileUpload from '@/components/FileUpload'; import VisualizationDashboard from '@/components/VisualizationDashboard'; @@ -8,7 +8,7 @@ import { parseImputationCSV } from '@/utils/csvParser'; import { ImputationDataPoint } from '@/types/imputation'; import { parseDeeplinkParams, GitHubArtifactInfo } from '@/utils/deeplinks'; -export default function Home() { +function HomeContent() { const [data, setData] = useState([]); const [fileName, setFileName] = useState(''); const [showDashboard, setShowDashboard] = useState(false); @@ -173,3 +173,18 @@ export default function Home() { ); } + +export default function Home() { + return ( + +
+
+

Loading...

+
+
+ }> + +
+ ); +} diff --git a/microimputation-dashboard/components/FileUpload.tsx b/microimputation-dashboard/components/FileUpload.tsx index 08e51e3..581a2f3 100644 --- a/microimputation-dashboard/components/FileUpload.tsx +++ b/microimputation-dashboard/components/FileUpload.tsx @@ -312,7 +312,7 @@ export default function FileUpload({ try { JSON.parse(additionalInfo); - } catch (e) { + } catch { throw new Error( `Invalid CSV format: Row ${i + 1} contains invalid JSON in the 'additional_info' column. ` + `Value: "${additionalInfo.substring(0, 50)}${additionalInfo.length > 50 ? '...' : ''}"`