chore(strip): verwijder placeholder-pagina's dashboard en reports
Beide waren lege placeholders ('Epic 1 - Placeholder', 'Not designed yet').
Sidebar-items eruit; login-tests gebruiken /epd/agenda als voorbeeld van
een beveiligde route.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,6 @@ import { usePathname } from 'next/navigation';
|
|||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
import {
|
import {
|
||||||
Users,
|
Users,
|
||||||
Settings,
|
|
||||||
LogOut,
|
LogOut,
|
||||||
Menu,
|
Menu,
|
||||||
X,
|
X,
|
||||||
@@ -46,7 +45,6 @@ interface EPDSidebarProps {
|
|||||||
// LEVEL 1: Behandelaar Context Navigation
|
// LEVEL 1: Behandelaar Context Navigation
|
||||||
const level1NavigationItems: NavigationItem[] = [
|
const level1NavigationItems: NavigationItem[] = [
|
||||||
{ id: "cortex", name: "Cortex", icon: Zap, href: "/epd/cortex" },
|
{ id: "cortex", name: "Cortex", icon: Zap, href: "/epd/cortex" },
|
||||||
{ id: "dashboard", name: "Dashboard", icon: LayoutDashboard, href: "/epd/dashboard" },
|
|
||||||
{ id: "clients", name: "Cliënten", icon: Users, href: "/epd/patients" },
|
{ id: "clients", name: "Cliënten", icon: Users, href: "/epd/patients" },
|
||||||
{
|
{
|
||||||
id: "verpleegrapportage",
|
id: "verpleegrapportage",
|
||||||
@@ -59,7 +57,6 @@ const level1NavigationItems: NavigationItem[] = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ id: "agenda", name: "Agenda", icon: FileText, href: "/epd/agenda" },
|
{ id: "agenda", name: "Agenda", icon: FileText, href: "/epd/agenda" },
|
||||||
{ id: "reports", name: "Rapportage", icon: Settings, href: "/epd/reports" },
|
|
||||||
];
|
];
|
||||||
|
|
||||||
// LEVEL 2: Client Dossier Context Navigation (clientId gets injected)
|
// LEVEL 2: Client Dossier Context Navigation (clientId gets injected)
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
/**
|
|
||||||
* Behandelaar Dashboard - Level 1
|
|
||||||
*
|
|
||||||
* Overzicht van caseload, aandachtspunten, taken en recente activiteit.
|
|
||||||
*/
|
|
||||||
|
|
||||||
export default function DashboardPage() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<h1 className="text-2xl font-bold text-slate-900 mb-6">
|
|
||||||
Dashboard
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<div className="bg-slate-100 border-2 border-dashed border-slate-300 rounded-lg p-12 text-center">
|
|
||||||
<p className="text-slate-600 text-lg mb-2">
|
|
||||||
Behandelaar Dashboard
|
|
||||||
</p>
|
|
||||||
<p className="text-slate-500 text-sm">
|
|
||||||
Caseload overzicht, aandachtspunten en aankomende afspraken
|
|
||||||
</p>
|
|
||||||
<p className="text-xs text-slate-400 mt-4">
|
|
||||||
Epic 1 - Placeholder for future content
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
/**
|
|
||||||
* Behandelaar Rapportage - Level 1
|
|
||||||
*
|
|
||||||
* BI dashboards, KPI's en statistieken.
|
|
||||||
*/
|
|
||||||
|
|
||||||
export default function ReportsPage() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<h1 className="text-2xl font-bold text-slate-900 mb-6">
|
|
||||||
Rapportage
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<div className="bg-slate-100 border-2 border-dashed border-slate-300 rounded-lg p-12 text-center">
|
|
||||||
<p className="text-slate-600 text-lg mb-2">
|
|
||||||
Behandelaar Rapportage
|
|
||||||
</p>
|
|
||||||
<p className="text-slate-500 text-sm">
|
|
||||||
BI dashboards, KPI's, trends en statistieken
|
|
||||||
</p>
|
|
||||||
<p className="text-xs text-slate-400 mt-4">
|
|
||||||
Placeholder - Not designed yet
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -159,7 +159,7 @@ Beide tools testen exact dezelfde flows. De syntax verschilt iets:
|
|||||||
| Foutmelding bij verkeerde gegevens | Foutmelding verschijnt bij foute combinatie |
|
| Foutmelding bij verkeerde gegevens | Foutmelding verschijnt bij foute combinatie |
|
||||||
| Demo login knop werkt | ⚡ knop logt direct in en stuurt door naar het EPD |
|
| Demo login knop werkt | ⚡ knop logt direct in en stuurt door naar het EPD |
|
||||||
| Redirect na succesvol inloggen | Na inloggen kom je op `/epd/` terecht |
|
| Redirect na succesvol inloggen | Na inloggen kom je op `/epd/` terecht |
|
||||||
| Beveiligde route stuurt door | Probeer `/epd/dashboard` zonder sessie → je gaat naar login |
|
| Beveiligde route stuurt door | Probeer `/epd/agenda` zonder sessie → je gaat naar login |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ describe('Login flow', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('beveiligde route stuurt door naar login', () => {
|
it('beveiligde route stuurt door naar login', () => {
|
||||||
cy.visit('/epd/dashboard');
|
cy.visit('/epd/agenda');
|
||||||
cy.url().should('include', '/login');
|
cy.url().should('include', '/login');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ test.describe('Login flow', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('beveiligde route stuurt door naar login', async ({ page }) => {
|
test('beveiligde route stuurt door naar login', async ({ page }) => {
|
||||||
await page.goto('/epd/dashboard');
|
await page.goto('/epd/agenda');
|
||||||
|
|
||||||
await page.waitForURL('/login**', { timeout: 5_000 });
|
await page.waitForURL('/login**', { timeout: 5_000 });
|
||||||
expect(page.url()).toContain('/login');
|
expect(page.url()).toContain('/login');
|
||||||
|
|||||||
Reference in New Issue
Block a user