From 716e38a32403b83b1d0f1652ccdfea9338082cd8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 17 Jan 2026 21:34:18 +0000 Subject: [PATCH] Add documentation for legacy App files Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- src/App.new.tsx | 9 +++++++++ src/App.refactored.tsx | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/App.new.tsx b/src/App.new.tsx index 39a093e..121f173 100644 --- a/src/App.new.tsx +++ b/src/App.new.tsx @@ -1,3 +1,12 @@ +/** + * LEGACY FILE - NOT USED IN PRODUCTION + * + * This file is a legacy demo app that is not actively used. + * The JSON components used here manage their own state internally via hooks (e.g., useKV) + * and don't accept props like the old stub components did. + * + * The production app (App.tsx) uses the component registry pattern instead. + */ import { useState } from 'react' import { toast } from 'sonner' import { Tabs, TabsContent } from '@/components/ui/tabs' diff --git a/src/App.refactored.tsx b/src/App.refactored.tsx index 617c829..fcf6cd0 100644 --- a/src/App.refactored.tsx +++ b/src/App.refactored.tsx @@ -1,3 +1,12 @@ +/** + * LEGACY FILE - NOT USED IN PRODUCTION + * + * This file is a legacy demo app that is not actively used. + * The JSON components used here manage their own state internally via hooks (e.g., useKV) + * and don't accept props like the old stub components did. + * + * The production app (App.tsx) uses the component registry pattern instead. + */ import { useState } from 'react' import { useKV } from '@/hooks/use-kv' import { Tabs, TabsContent } from '@/components/ui/tabs'