From a169a3b514aa06e5cab01d1786d704620389e388 Mon Sep 17 00:00:00 2001
From: BigSimmo <87357024+BigSimmo@users.noreply.github.com>
Date: Thu, 2 Jul 2026 16:15:09 +0800
Subject: [PATCH] Revert "Merge pull request #133 from
BigSimmo/bigsimmo-performance-review"
This reverts commit 7fa9897b21e1ffcbfb4c012049f848d29e7e8645, reversing
changes made to 1ce9e408dca3a77299c6f16a889bbf29f5b58b26.
---
next.config.ts | 1 -
src/app/documents/[id]/loading.tsx | 7 -------
src/app/documents/[id]/page.tsx | 7 +------
src/app/loading.tsx | 7 -------
src/app/page.tsx | 7 +------
src/components/ClinicalDashboard.tsx | 5 ++---
6 files changed, 4 insertions(+), 30 deletions(-)
delete mode 100644 src/app/documents/[id]/loading.tsx
delete mode 100644 src/app/loading.tsx
diff --git a/next.config.ts b/next.config.ts
index 517c438532..1d0afeba7c 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -42,7 +42,6 @@ const nextConfig: NextConfig = {
devIndicators: false,
experimental: {
cpus: 1,
- optimizePackageImports: ["lucide-react"],
},
poweredByHeader: false,
turbopack: {
diff --git a/src/app/documents/[id]/loading.tsx b/src/app/documents/[id]/loading.tsx
deleted file mode 100644
index 81ca711676..0000000000
--- a/src/app/documents/[id]/loading.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function Loading() {
- return (
-
- );
-}
diff --git a/src/app/documents/[id]/page.tsx b/src/app/documents/[id]/page.tsx
index b6de4af8b5..0950bc1fb1 100644
--- a/src/app/documents/[id]/page.tsx
+++ b/src/app/documents/[id]/page.tsx
@@ -1,9 +1,4 @@
-import dynamic from "next/dynamic";
-
-const DocumentViewer = dynamic(
- () => import("@/components/DocumentViewer").then((m) => m.DocumentViewer),
- { ssr: false },
-);
+import { DocumentViewer } from "@/components/DocumentViewer";
export default async function DocumentPage({
params,
diff --git a/src/app/loading.tsx b/src/app/loading.tsx
deleted file mode 100644
index 81ca711676..0000000000
--- a/src/app/loading.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function Loading() {
- return (
-
- );
-}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 73ba714477..40d4f1a758 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,11 +1,6 @@
-import dynamic from "next/dynamic";
+import { ClinicalDashboard } from "@/components/clinical-dashboard";
import { isAppModeId, isAppModeVisible, type AppModeId } from "@/lib/app-modes";
-const ClinicalDashboard = dynamic(
- () => import("@/components/clinical-dashboard").then((m) => m.ClinicalDashboard),
- { ssr: false },
-);
-
type HomeProps = {
searchParams?: Promise<{
mode?: string | string[];
diff --git a/src/components/ClinicalDashboard.tsx b/src/components/ClinicalDashboard.tsx
index b87bee2de1..eaee4b8d3a 100644
--- a/src/components/ClinicalDashboard.tsx
+++ b/src/components/ClinicalDashboard.tsx
@@ -53,7 +53,6 @@ import {
import {
type CSSProperties,
FormEvent,
- memo,
useCallback,
useEffect,
useMemo,
@@ -510,7 +509,7 @@ function subscribeAuthEmail(onStoreChange: () => void) {
};
}
-const SourceImage = memo(function SourceImage({
+function SourceImage({
endpoint,
caption,
className = "max-h-52",
@@ -610,7 +609,7 @@ const SourceImage = memo(function SourceImage({
className={cn(className, "w-full rounded-lg object-contain")}
/>
);
-});
+}
function ScopeAndGovernanceNotice({
scope,