Summary
The frontend has two parallel component directories: component/ and components/. This creates confusion about where new components should live and leads to inconsistent import paths.
Current State
component/ contains: dashboard (EscrowCard, EscrowList, Filters, StatusTabs), escrow creation (CreateEscrowWizard, ConditionsList, PartyAcceptanceModal), homepage (Hero, HowItWorks, KeyFeatures), layout (Navbar, Footer), wallet (ConnectWalletModal, WalletButton), and basic UI primitives (Input, Select, TextArea)
components/ contains: common (ActivityFeed, ActivityItem), escrow detail views and modals (ReleaseFundsModal, FileDisputeModal, FulfillConditionModal), stellar (TransactionTracker), and shadcn UI components (button, dialog, skeleton, select)
- Some types are duplicated locally in components (e.g.,
EscrowCard.tsx line 2 has a temporary interface definition)
Acceptance Criteria
Rollout Order
Frontend Issue 1 of 10 - Foundational cleanup. Must be done first to establish a clean base for all subsequent frontend work.
Summary
The frontend has two parallel component directories:
component/andcomponents/. This creates confusion about where new components should live and leads to inconsistent import paths.Current State
component/contains: dashboard (EscrowCard,EscrowList,Filters,StatusTabs), escrow creation (CreateEscrowWizard,ConditionsList,PartyAcceptanceModal), homepage (Hero,HowItWorks,KeyFeatures), layout (Navbar,Footer), wallet (ConnectWalletModal,WalletButton), and basic UI primitives (Input,Select,TextArea)components/contains: common (ActivityFeed,ActivityItem), escrow detail views and modals (ReleaseFundsModal,FileDisputeModal,FulfillConditionModal), stellar (TransactionTracker), and shadcn UI components (button,dialog,skeleton,select)EscrowCard.tsxline 2 has a temporary interface definition)Acceptance Criteria
components/directory following Next.js/shadcn conventionscomponents/ui/for shadcn primitives,components/escrow/for escrow-related,components/dashboard/for dashboard,components/layout/for navbar/footer,components/wallet/for wallet UItypes/directoryRollout Order
Frontend Issue 1 of 10 - Foundational cleanup. Must be done first to establish a clean base for all subsequent frontend work.