feat: Latest updates

This commit is contained in:
Satyam
2026-02-11 16:53:31 +05:30
parent 0da0d6797f
commit 3e0fc5b764
8 changed files with 322 additions and 1178 deletions
+37 -5
View File
@@ -329,7 +329,10 @@ function generateProperties() {
latestPurchaseDate: "2015-06-20",
latestSaleListingDate: null,
latestSaleAskingPrice: null,
lotPlotSize: isCommercial ? "1.5 Acres" : "0.22 Acres"
lotPlotSize: isCommercial ? "1.5 Acres" : "0.22 Acres",
// New Fields for Chatbot
pendingSignature: Math.random() > 0.9, // 10% chance
closedDate: Math.random() > 0.8 ? "2026-01-15" : null // Simple mock for revenue queries
},
ownerData: {
ownerId: `OWN-${200 + index}`,
@@ -583,6 +586,22 @@ function generateMockMeetings() {
const hour = 9 + (i % 8);
const timeString = `${hour.toString().padStart(2, '0')}:00`;
// New Data Fields for Chatbot Context
const issues = [
"Leaking skylight in master bath",
"Missing shingles after recent storm",
"Water spots on ceiling",
"Gutter detachment on north side",
"General roof inspection requested"
];
const comments = [
"Customer is worried about upcoming rain.",
"Insurance adjuster already visited.",
"Prefer morning appointments.",
"Dog in backyard, please knock front door.",
"Previous contractor did poor work."
];
meetings.push({
id: `m${meetingIdCounter++}`,
agentId: agentId,
@@ -593,7 +612,11 @@ function generateMockMeetings() {
status: status,
dealValue: dealValue,
notes: status === 'Converted' ? 'Contract signed for full roof replacement.' :
status === 'Rescheduled' ? 'Client verified availability.' : 'Standard consultation.'
status === 'Rescheduled' ? 'Client verified availability.' : 'Standard consultation.',
// New Fields
issueDescription: issues[i % issues.length],
customerComments: comments[i % comments.length],
outcome: status === 'Converted' ? 'Signed Contract' : status === 'Completed' ? 'Quote Sent' : 'Pending'
});
}
});
@@ -611,7 +634,10 @@ function generateMockMeetings() {
time: '14:00',
status: 'Scheduled',
agentName: 'Frank Agent',
notes: 'Initial Roof Inspection'
notes: 'Initial Roof Inspection',
issueDescription: 'Noticed missing shingles after last storm.',
customerComments: 'Gate code is 1234.',
outcome: 'Pending'
},
// History
{
@@ -625,7 +651,10 @@ function generateMockMeetings() {
status: 'Completed',
agentName: 'Fiona Field',
dealValue: 1500,
notes: 'Minor repairs completed. Payment received.'
notes: 'Minor repairs completed. Payment received.',
issueDescription: 'Leak in garage.',
customerComments: 'Please call before arriving.',
outcome: 'Repairs Completed'
},
{
id: `m-alice-3`,
@@ -638,7 +667,10 @@ function generateMockMeetings() {
status: 'Completed',
agentName: 'Frank Agent',
dealValue: 0,
notes: 'Consultation - Quote provided.'
notes: 'Consultation - Quote provided.',
issueDescription: 'General inspection.',
customerComments: '',
outcome: 'Quote Sent'
}
];