From de31b29404fa252709a081660cb6ed133aafab7e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 10 Feb 2026 01:54:28 +0000 Subject: [PATCH] Rename "Outfit" to "Look" in Fitting Room Renames the terminology in the Fitting Room feature from "Outfit" to "Look" to better align with future feature plans (where "Outfit" will refer to equipment combinations). Changes include: - Renaming `CreateOutfitDialog.tsx` to `CreateLookDialog.tsx`. - Updating the route from `/characters/:id/outfits` to `/characters/:id/looks`. - Updating all UI text and internal variable names in the affected components. - Updating navigation in `Characters.tsx`. --- src/ui/App.tsx | 2 +- ...eOutfitDialog.tsx => CreateLookDialog.tsx} | 6 ++-- src/ui/pages/Characters.tsx | 2 +- src/ui/pages/FittingRoom.tsx | 28 +++++++++---------- 4 files changed, 19 insertions(+), 19 deletions(-) rename src/ui/components/{CreateOutfitDialog.tsx => CreateLookDialog.tsx} (98%) diff --git a/src/ui/App.tsx b/src/ui/App.tsx index 8f63126..93a6607 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -13,7 +13,7 @@ export default function App() { }> } /> } /> - } /> + } /> } /> } /> diff --git a/src/ui/components/CreateOutfitDialog.tsx b/src/ui/components/CreateLookDialog.tsx similarity index 98% rename from src/ui/components/CreateOutfitDialog.tsx rename to src/ui/components/CreateLookDialog.tsx index 9832975..7bead77 100644 --- a/src/ui/components/CreateOutfitDialog.tsx +++ b/src/ui/components/CreateLookDialog.tsx @@ -12,14 +12,14 @@ import { Loader2, X, Check } from 'lucide-react' type EquipmentResponse = InferResponseType type EquipmentItem = EquipmentResponse['items'][number] -interface CreateOutfitDialogProps { +interface CreateLookDialogProps { open: boolean onOpenChange: (open: boolean) => void characterId: string onSuccess: () => void } -export const CreateOutfitDialog: React.FC = ({ +export const CreateLookDialog: React.FC = ({ open, onOpenChange, characterId, @@ -91,7 +91,7 @@ export const CreateOutfitDialog: React.FC = ({ if (!res.ok) { const errData = (await res.json()) as { error?: string } - throw new Error(errData.error || 'Failed to create outfit') + throw new Error(errData.error || 'Failed to create look') } onSuccess() diff --git a/src/ui/pages/Characters.tsx b/src/ui/pages/Characters.tsx index 2bbca3c..2ee5d73 100644 --- a/src/ui/pages/Characters.tsx +++ b/src/ui/pages/Characters.tsx @@ -63,7 +63,7 @@ export default function Characters() {
navigate(`/characters/${char.id}/outfits`)} + onClick={() => navigate(`/characters/${char.id}/looks`)} >
diff --git a/src/ui/pages/FittingRoom.tsx b/src/ui/pages/FittingRoom.tsx index 5c024b6..ebc8f9c 100644 --- a/src/ui/pages/FittingRoom.tsx +++ b/src/ui/pages/FittingRoom.tsx @@ -5,7 +5,7 @@ import { InferResponseType } from 'hono/client' import { Button } from '../components/ui/button' import { Card } from '../components/ui/card' import { Plus, ArrowLeft } from 'lucide-react' -import { CreateOutfitDialog } from '../components/CreateOutfitDialog' +import { CreateLookDialog } from '../components/CreateLookDialog' import { useNavigate } from 'react-router-dom' // Types - Define locally to avoid complex type extraction if client inference is tricky @@ -21,7 +21,7 @@ export default function FittingRoom() { const [character, setCharacter] = useState(null) const [generations, setGenerations] = useState([]) const [loading, setLoading] = useState(true) - const [createOpen, setCreateOpen] = useState(false) + const [createLookOpen, setCreateLookOpen] = useState(false) useEffect(() => { if (id) { @@ -87,7 +87,7 @@ export default function FittingRoom() { Fitting Room

- Manage outfits for{' '} + Manage looks for{' '} {character.name} @@ -95,10 +95,10 @@ export default function FittingRoom() {

@@ -132,9 +132,9 @@ export default function FittingRoom() {

- Generated Outfits + Generated Looks

- {generations.length} OUTFITS + {generations.length} LOOKS
@@ -144,11 +144,11 @@ export default function FittingRoom() {
-

No outfits generated yet.

-

Create your first outfit to get started.

+

No looks generated yet.

+

Create your first look to get started.

- ) : ( @@ -193,9 +193,9 @@ export default function FittingRoom() { - id && fetchData(id)} />