Redesign Lead Creation form with complete name 필드, 적절한 dropdown sizing, 국가 필드 및 향상된 전화 레이아웃
Add type assertion for mortgageFields.isRepresented boolean check
LeadProspectType, 공급 업체/제품, bestContact 추가 시간, 전화 extension/isText 및 주거 모기장 필드를 리드 생성 양식
SalesSubType을 LeadMarket 인터페이스에 추가하고 양식을 편집합니다
- SalesSubType 필드를 LeadMarket 인터페이스에 추가하여 DTO와 일치 - 업데이트된 HandleEditClick to use salesSubType from DTO when setting parent/child types - 이 하위 유형 필드를 수정할 때 팝업되지
Field mapping interface grouping를 위한 systemFields를 이용하십시오
- FieldMappingInterface: Fixed getSystemFieldsByCategory 를 사용하여 전달된 systemFields prop 대신 default BASE SYSTEM FIELDS - FieldMappingInterface: 시스템 필드가 변경될 때 auto-...
시장 데이터로드 실패에 대한 재설정 상태
- response.ok가 false일 때 다른 구획에 있는 국가 리셋을 추가했습니다 - 선택한MarketConfig 및 customFields가 실패한 시장 부하에 명확하게 - 캐치 블록 오류 처리와 일관성 유지 - 이후 로드가 실패했을 때 사용한 stale 시장 구성 방지
구문 오류 수정 및 시장 현장 로딩에 대한 디버그 로깅 추가
- 적절한 인터페이스로 끊어지는 복잡한 유형 assertion에 있는 고정 문법 오류 - 시장 데이터, SalesSubType 및 사용자 정의 양식 로딩에 디버그 로깅 추가 - CustomFormField, CustomFormStack, CustomFormDetail 및 CustomFo...
SalesSubType for mortgage 필드 검출
- DTO 구조 (customForms 만 기본 정보가 초기에 있음)에 맞게 LeadMarket 인터페이스를 업데이트했습니다. - SalesSubType을 명확하게 하는 고정된 의견은 mortgage 탐지를 위해 사용됩니다 (salesType 아닙니다) - 사용자 정의 양식은 이미 각 ...
Add missing Next.js API routes for leads endpoints
- Added /api/security/leads route for GET (all leads) and POST (create lead) - Added /api/security/leads/[id] route for GET, PUT, DELETE operations - Added ****...
Remove 'name' property reference in updateLead function
- Lead interface only has 'primaryContact', not 'name' - Removed fallback to patch.name in updateLead - Completes the fix for type safety
Remove non-existent 'name' property references in leadsApi
- Lead interface only has 'primaryContact', not 'name' - Removed fallback to leadData.name in createLead and updateLead - Ensures type safety and correct API be...
Replace remaining Grid closing tags with GridLegacy in CreateLeadClient
- Fixed all remaining </Grid> tags that should be </GridLegacy> - Ensures proper closing of GridLegacy item components - Resolves JSX syntax error
Replace Grid with GridLegacy for item prop in CreateLeadClient
- MUI v7 moved 'item' prop to GridLegacy component - Updated all Grid item instances to GridLegacy - Required for compatibility with MUI v7
Add missing 'email' property to Lead interface
- leadsApi.createLead expects email as a separate property - Email is also available in primaryContact.email but API needs it at Lead level - Required for lead ...
Cast customFormData to correct type in CreateLeadClient
- TypeScript was complaining about type mismatch between Record<string, Record<string, unknown>> and Record<string, CustomFormData> - Added type assertion to ma...
Add missing 'vendorLeadID' property to Lead interface
- Property exists in Java Lead bean but was missing from TypeScript interface - Required for lead creation and import functionality
Add missing 'languages' property to primaryContact in CreateLeadClient
- Contact interface requires 'languages' property - Initialize with empty array to satisfy type requirements
Use GridLegacy for Grid component with item prop in MortgageFieldsComponent
- MUI v7 moved Grid with item prop to GridLegacy - Update import to use GridLegacy to fix TypeScript error
Use GridLegacy for Grid component with item prop in CustomFormFieldsComponent
- MUI v7 moved Grid with item prop to GridLegacy - Update import to use GridLegacy to fix TypeScript error
Replace all 'any' types with proper TypeScript types
- Replace Record<string, any> with Record<string, unknown> - Replace any parameter types with unknown or specific types - Remove unused imports (authenticatedFe...
Resolve compilation errors in CustomFormFieldsComponent and LeadManager
- Remove stray fragment closing tag (</>) in CustomFormFieldsComponent.tsx - Remove duplicate leadId declaration in LeadManager.tsx IdRenderer
Add validation for required fields in lead imports
- Mark email, firstName, and lastName as required fields in leadFields.ts - Add validation in handleStartImport to check all required fields are mapped - Add va...
Add dynamic field mapping for lead imports based on market configuration
- Update leadFields.ts to include mortgage fields and getAllSystemFields function - Add MORTGAGE_FIELDS array with all LeadClaimMortgage fields - Update LeadMan...
Remove all mock data and make leads system production-ready
- Remove all mock data generation from leadsApi.ts (mockStore, ensureMock, faker.js) - Remove withMock wrapper function and all fallback logic - Remove generate...
Add hierarchical SaleType selection to markets-fields
- Add parent/child type dropdown system for SaleType selection - Default to 'Custom' child type when SERVICE or PRODUCT is selected - Prevent creation with NOT_...