From 6e196ff859d331bad26613a72f6be3c37b46df24 Mon Sep 17 00:00:00 2001 From: tanyar09 Date: Tue, 9 Dec 2025 13:01:35 -0500 Subject: [PATCH] feat: Enhance UI with emoji page titles and improve tagging functionality This commit updates the Layout component to include emojis in page titles for better visual cues. The Login component removes default credential placeholders for improved security. Additionally, the Search component is enhanced to allow immediate tagging of selected photos with existing tags, and it supports adding multiple tags at once, improving user experience. Documentation has been updated to reflect these changes. --- frontend/src/components/Layout.tsx | 2 +- frontend/src/pages/Login.tsx | 6 --- frontend/src/pages/Search.tsx | 82 ++++++++++++++++++++++-------- src/web/services/tag_service.py | 9 ++-- 4 files changed, 67 insertions(+), 32 deletions(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 488f4e4..80259c6 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -77,7 +77,7 @@ export default function Layout() { // Get page title based on route const getPageTitle = () => { const route = location.pathname - if (route === '/') return 'Home Page' + if (route === '/') return '🏠 Home Page' if (route === '/scan') return '🗂️ Scan Photos' if (route === '/process') return '⚙️ Process Faces' if (route === '/search') return '🔍 Search Photos' diff --git a/frontend/src/pages/Login.tsx b/frontend/src/pages/Login.tsx index 15ea02b..3d50332 100644 --- a/frontend/src/pages/Login.tsx +++ b/frontend/src/pages/Login.tsx @@ -87,7 +87,6 @@ export default function Login() { onChange={(e) => setUsername(e.target.value)} required className="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" - placeholder="admin" /> @@ -106,7 +105,6 @@ export default function Login() { onChange={(e) => setPassword(e.target.value)} required className="w-full px-3 py-2 pr-10 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" - placeholder="admin" />