From 6e28d1530aa08b878f5082bbcd85a95f84f830e8 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sat, 14 Feb 2026 21:34:49 -0800 Subject: chore: update build artifacts and finalize test improvements --- frontend/coverage/src/components/Login.tsx.html | 55 ++++++++++++++++++++----- 1 file changed, 44 insertions(+), 11 deletions(-) (limited to 'frontend/coverage/src/components/Login.tsx.html') diff --git a/frontend/coverage/src/components/Login.tsx.html b/frontend/coverage/src/components/Login.tsx.html index 43fb613..111dcba 100644 --- a/frontend/coverage/src/components/Login.tsx.html +++ b/frontend/coverage/src/components/Login.tsx.html @@ -25,7 +25,7 @@
100% Statements - 17/17 + 20/20
@@ -39,14 +39,14 @@
100% Functions - 3/3 + 4/4
100% Lines - 17/17 + 20/20
@@ -119,18 +119,30 @@ 54 55 56 -57  +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68              -14x -14x -14x +17x +17x +17x +17x   -14x +17x 3x 3x   @@ -138,6 +150,7 @@   3x 3x +3x   3x   @@ -155,10 +168,19 @@       -14x +17x +  +  +  +  +  +        +3x +  +        @@ -182,6 +204,7 @@ import './Login.css'; import { apiFetch } from '../utils';   export default function Login() { + const [username, setUsername] = useState('neko'); const [password, setPassword] = useState(''); const [error, setError] = useState(''); const navigate = useNavigate(); @@ -193,6 +216,7 @@ export default function Login() { try { // Use URLSearchParams to send as form-urlencoded, matching backend expectation const params = new URLSearchParams(); + params.append('username', username); params.append('password', password);   const res = await apiFetch('/api/login', { @@ -206,7 +230,7 @@ export default function Login() { const data = await res.json(); setError(data.message || 'Login failed'); } - } catch (err) { + } catch (_err) { setError('Network error'); } }; @@ -215,6 +239,15 @@ export default function Login() { <div className="login-container"> <form onSubmit={handleSubmit} className="login-form"> <h1>neko rss mode</h1> + <div className="form-group"> + <label htmlFor="username">username</label> + <input + id="username" + type="text" + value={username} + onChange={(e) => setUsername(e.target.value)} + /> + </div> <div className="form-group"> <label htmlFor="password">password</label> <input @@ -238,7 +271,7 @@ export default function Login() {