Loading analysis results...
- Go back to upload +diff --git a/.gitignore b/.gitignore index 77383f8..d0e37ca 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ backend/__pycache__/ *.csv *.db .env +.env.local .vscode/ *.log server/uploads/* diff --git a/src/app/history/page.tsx b/src/app/history/page.tsx index 82ca0ad..d192ca5 100644 --- a/src/app/history/page.tsx +++ b/src/app/history/page.tsx @@ -1,6 +1,7 @@ "use client"; import { useEffect, useState } from "react"; +import { Skeleton } from "@/components/ui/Skeleton"; import Link from "next/link"; interface Record { @@ -12,6 +13,53 @@ interface Record { riskLevel: string; } +function HistoryTableSkeleton() { + return ( +
| + {col} + | + ))} +||||
|---|---|---|---|---|
|
+ |
+ {/* File Reference */}
+
+ |
+ {/* Diagnosis badge */}
+
+ |
+ {/* Confidence bar + number */}
+
+
+
+ |
+ {/* Action button */}
+
+ |
+
No records found in the database.
diff --git a/src/app/result/page.tsx b/src/app/result/page.tsx index 54e6841..6d43a3e 100644 --- a/src/app/result/page.tsx +++ b/src/app/result/page.tsx @@ -1,7 +1,8 @@ "use client"; -import { useState } from "react"; +import { useState, useEffect } from "react"; import Link from "next/link"; +import { Skeleton } from "@/components/ui/Skeleton"; interface AnalysisResult { _id?: string; @@ -15,15 +16,118 @@ interface AnalysisResult { heatmap?: string; } +function ResultSkeleton() { + return ( +Loading analysis results...
- Go back to upload +