diff --git a/src/app/dashboard/ai-coach/cbt-dpp/page.tsx b/src/app/dashboard/ai-coach/cbt-dpp/page.tsx
index 738af51..535f3b3 100644
--- a/src/app/dashboard/ai-coach/cbt-dpp/page.tsx
+++ b/src/app/dashboard/ai-coach/cbt-dpp/page.tsx
@@ -83,10 +83,12 @@ export default function PrepPilotAIPage() {
if (t.includes('chem')) return '/dpps/dps-che-ch4-20260707.pdf#toolbar=0&navpanes=0&scrollbar=0';
if (t.includes('math')) return '/dpps/dps-mth-ch4-20260707.pdf#toolbar=0&navpanes=0&scrollbar=0';
if (t.includes('bio')) return '/dpps/dps-bio-ch4-20260707.pdf#toolbar=0&navpanes=0&scrollbar=0';
- // Default fallback
return '/dpps/dps-phy-ch4-20260707.pdf#toolbar=0&navpanes=0&scrollbar=0';
};
+ // Strip ugly ExamEnum. prefix from seeded test titles
+ const cleanTitle = (title: string) => title.replace(/\s*\(ExamEnum\.[^)]+\)/, '');
+
return (
@@ -169,9 +171,9 @@ export default function PrepPilotAIPage() {
>
) : null}
-
- {dpp.title}
-
+
+ {cleanTitle(dpp.title)}
+
{dpp.difficulty}
@@ -196,15 +198,15 @@ export default function PrepPilotAIPage() {
{!isExpired && (
-
+
)}
>
) : (
-
+
diff --git a/src/app/dashboard/dpp/page.tsx b/src/app/dashboard/dpp/page.tsx
index a53cc1e..7b1bed4 100644
--- a/src/app/dashboard/dpp/page.tsx
+++ b/src/app/dashboard/dpp/page.tsx
@@ -83,10 +83,12 @@ export default function DPPPage() {
if (t.includes('chem')) return '/dpps/dps-che-ch4-20260707.pdf#toolbar=0&navpanes=0&scrollbar=0';
if (t.includes('math')) return '/dpps/dps-mth-ch4-20260707.pdf#toolbar=0&navpanes=0&scrollbar=0';
if (t.includes('bio')) return '/dpps/dps-bio-ch4-20260707.pdf#toolbar=0&navpanes=0&scrollbar=0';
- // Default fallback
return '/dpps/dps-phy-ch4-20260707.pdf#toolbar=0&navpanes=0&scrollbar=0';
};
+ // Strip ugly ExamEnum. prefix from seeded test titles
+ const cleanTitle = (title: string) => title.replace(/\s*\(ExamEnum\.[^)]+\)/, '');
+
return (
@@ -169,9 +171,9 @@ export default function DPPPage() {
>
) : null}
-
- {dpp.title}
-
+
+ {cleanTitle(dpp.title)}
+
{dpp.difficulty}
@@ -224,7 +226,7 @@ export default function DPPPage() {
- {selectedPdfDpp.title}
+ {cleanTitle(selectedPdfDpp.title)}
Protected In-App PDF View
@@ -234,14 +236,12 @@ export default function DPPPage() {
-
+
{/* Security Notice Banner */}
@@ -259,12 +259,13 @@ export default function DPPPage() {
{/* Protected PDF Document Sheet Content (select-none) */}
e.preventDefault()}
- className="flex-1 w-full h-full min-h-[60vh] select-none bg-[#525659]"
+ className="flex-1 w-full select-none bg-[#525659] overflow-hidden" style={{minHeight: '55vh'}}
>