From 69515c9e952a264883fd7aaf65afb0e0f6955ab2 Mon Sep 17 00:00:00 2001 From: Ricky Stretch Date: Sat, 21 Mar 2026 19:23:20 -0400 Subject: [PATCH] v0.11.13 login screen fix --- backend/package.json | 2 +- build.sh | 2 +- frontend/package.json | 2 +- frontend/src/components/PasswordInput.jsx | 57 +++++++++++++++++++++++ frontend/src/pages/ChangePassword.jsx | 7 +-- frontend/src/pages/Login.css | 3 +- frontend/src/pages/Login.jsx | 3 +- 7 files changed, 68 insertions(+), 8 deletions(-) create mode 100644 frontend/src/components/PasswordInput.jsx diff --git a/backend/package.json b/backend/package.json index 74ac23f..1fc447a 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "jama-backend", - "version": "0.11.12", + "version": "0.11.13", "description": "TeamChat backend server", "main": "src/index.js", "scripts": { diff --git a/build.sh b/build.sh index 6c3d644..9e1e9f5 100644 --- a/build.sh +++ b/build.sh @@ -13,7 +13,7 @@ # ───────────────────────────────────────────────────────────── set -euo pipefail -VERSION="${1:-0.11.12}" +VERSION="${1:-0.11.13}" ACTION="${2:-}" REGISTRY="${REGISTRY:-}" IMAGE_NAME="jama" diff --git a/frontend/package.json b/frontend/package.json index 4e63f6f..e5ffc13 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "jama-frontend", - "version": "0.11.12", + "version": "0.11.13", "private": true, "scripts": { "dev": "vite", diff --git a/frontend/src/components/PasswordInput.jsx b/frontend/src/components/PasswordInput.jsx new file mode 100644 index 0000000..b010d88 --- /dev/null +++ b/frontend/src/components/PasswordInput.jsx @@ -0,0 +1,57 @@ +import { useState } from 'react'; + +/** + * PasswordInput — a password field with an inline show/hide toggle. + * Accepts all standard props plus className/style on the wrapper. + * Usage: + * setPw(e.target.value)} /> + */ +export default function PasswordInput({ className, style, wrapperStyle, ...inputProps }) { + const [show, setShow] = useState(false); + + return ( +
+ + +
+ ); +} diff --git a/frontend/src/pages/ChangePassword.jsx b/frontend/src/pages/ChangePassword.jsx index c668bb4..2088cb6 100644 --- a/frontend/src/pages/ChangePassword.jsx +++ b/frontend/src/pages/ChangePassword.jsx @@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom'; import { useAuth } from '../contexts/AuthContext.jsx'; import { useToast } from '../contexts/ToastContext.jsx'; import { api } from '../utils/api.js'; +import PasswordInput from '../components/PasswordInput.jsx'; export default function ChangePassword() { const [current, setCurrent] = useState(''); @@ -40,15 +41,15 @@ export default function ChangePassword() {
- setCurrent(e.target.value)} autoComplete="new-password" required /> + setCurrent(e.target.value)} autoComplete="new-password" required />
- setNext(e.target.value)} autoComplete="new-password" required /> + setNext(e.target.value)} autoComplete="new-password" required />
- setConfirm(e.target.value)} autoComplete="new-password" required /> + setConfirm(e.target.value)} autoComplete="new-password" required />