From e31b68197ec16d2805ec14c2bf532a03f4739e92 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Fri, 13 Feb 2026 07:01:40 -0800 Subject: Implement Frontend Logout with tests --- frontend/coverage/src/App.tsx.html | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) (limited to 'frontend/coverage/src/App.tsx.html') diff --git a/frontend/coverage/src/App.tsx.html b/frontend/coverage/src/App.tsx.html index 980313b..cdf0b6b 100644 --- a/frontend/coverage/src/App.tsx.html +++ b/frontend/coverage/src/App.tsx.html @@ -23,9 +23,9 @@
- 80% + 82.35% Statements - 12/15 + 14/17
@@ -37,16 +37,16 @@
- 83.33% + 87.5% Functions - 5/6 + 7/8
- 80% + 82.35% Lines - 12/15 + 14/17
@@ -142,7 +142,12 @@ 77 78 79 -80  +80 +81 +82 +83 +84 +85        @@ -185,6 +190,11 @@       +1x +1x +  +  +        @@ -263,7 +273,12 @@ function Dashboard() { <header className="dashboard-header"> <h1>Neko Reader</h1> <nav> - {/* Add logout later */} + <button onClick={() => { + fetch('/api/logout', { method: 'POST' }) + .then(() => window.location.href = '/login/'); + }} className="logout-btn"> + Logout + </button> </nav> </header> <div className="dashboard-content"> @@ -307,7 +322,7 @@ export default App;