http://localhost:3002/en/leads
- ✅ Page should load without errors
- ✅ Should show "Leads" title
- ✅ Should show "Manage and track your potential customers" description
- Check if the table displays with columns:
- Name
- Phone
- Status
- Source
- Priority
- Score
- Created
- Actions
- Click "New Lead" button
- Fill in the form:
- Name (required)
- Company
- Phone
- Website
- Description
- Notes
- Status (dropdown)
- Source (dropdown)
- Priority (dropdown)
- Tags (clickable badges)
- Click "Create Lead" button
- Use the search bar to filter by name, email, or company
- Use the status filter dropdown
- Use the source filter dropdown
- Use the priority filter dropdown
- Click "Import" button
- Paste sample data:
John Doe, john@example.com, +1 555-0123, ABC Corp
Jane Smith, jane@example.com, +1 555-0124, XYZ Inc
Bob Johnson, bob@example.com, +1 555-0125, 123 Company
- Click "Import Leads" button
- Select multiple leads using checkboxes
- Click "Delete Selected" button in floating bar
- Click the three dots menu on any row
- Test actions:
- View Details
- Edit
- Send Email (if email exists)
- Call (if phone exists)
- Delete
- Change language to Arabic: http://localhost:3002/ar/leads
- Verify all text is translated
- Verify RTL layout is applied
If you have database access, check the Lead table in Prisma Studio:
pnpm prisma studioSolution: The leads page requires authentication. Log in first at /en/login
Solution: The page has been fixed to properly await params and pass dictionary
Solution: This is normal on first load. Create some test leads using the "New Lead" button
Solution: The AI extraction feature is marked as "coming soon" - basic import will parse the data but full AI extraction is Phase 2
- Page loads without errors
- Can create a new lead
- Can view leads in table
- Filters work correctly
- Internationalization works (English and Arabic)
- Form validation works
- Toast notifications appear for actions