-
Notifications
You must be signed in to change notification settings - Fork 510
Description
Describe the feature
🌟 Feature Description
I propose adding a "Configure Tagging" (or "Manage Folders") button to the header of the AI Tagging page.
Currently, the AI Tagging page displays recognized faces and tagged images, but it lacks any controls to actually enable or configure the tagging process. Users must currently navigate away to the Settings page and find the Folder Management section to toggle AI tagging for their folders.
This feature would add a direct link from the AI Tagging page to the Settings configuration, bridging the gap between viewing results and managing the source.
🔍 Problem Statement
The current workflow disconnects the "output" (tagged images) from the "input" (tagging configuration):
- User Context: The user is on the AI Tagging page.
- The Friction: If a user notices a folder is missing or wants to enable tagging for a new directory, there is no button to do so.
- The Workaround: The user must manually navigate to Settings -> Folder Management.
This lack of navigation makes the AI tagging feature feel static and harder to configure for new users.
🎯 Expected Outcome
- UI Update: A new button is added to the top header of
AITagging.tsx, aligned with the page title. - Label: "Configure" or "Manage Folders".
- Action: Clicking the button redirects the user to the
/settingsroute. - Design: The button should use the existing design system (
Buttoncomponent) and a relevant icon (e.g.,SettingsorFolderCogfromlucide-react).
📷 Screenshots and Design Ideas
Current State (No Configuration Option to navigate to Settings where AI Tagging can be enabled)
Target Destination (Settings Page)
Proposed Implementation
We can modify the header section of src/pages/AITagging.tsx to include the navigation button.
Mockup:
// src/pages/AITagging.tsx
import { useNavigate } from 'react-router'; //
import { Settings } from 'lucide-react';
import { Button } from '@/components/ui/button';
export const AITagging = () => {
const navigate = useNavigate();
return (
<div className="relative flex h-full flex-col pr-6">
<div className="mt-6 mb-6 flex items-center justify-between"> {/* Flex container for alignment */}
<h1 className="text-2xl font-bold">AI Tagging</h1>
{/* New Configuration Button */}
<Button
variant="outline"
size="sm"
onClick={() => navigate('/settings')}
className="gap-2"
>
<Settings className="h-4 w-4" />
Configure Tagging
</Button>
</div>
{/* ... rest of the component ... */}Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue