feat: Add testimonials and update Gemini model
Integrates a testimonial system to display user results and feedback. This includes: - Adding a new `testimonials` collection in Firestore. - Implementing frontend components for displaying and submitting testimonials. - Modifying the Gemini service to use the `gemini-3.1-pro-preview` model for enhanced analysis. - Updating the `PlansView` with a new WhatsApp contact number. - Enhancing the `AdminDashboard` to include testimonial creation capabilities.
This commit is contained in:
@@ -37,6 +37,22 @@
|
||||
"result": { "type": "string" }
|
||||
},
|
||||
"required": ["userId", "pair", "decision", "timestamp"]
|
||||
},
|
||||
"Testimonial": {
|
||||
"title": "User Testimonial",
|
||||
"description": "Public review left by a user.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"userId": { "type": "string" },
|
||||
"userName": { "type": "string" },
|
||||
"text": { "type": "string" },
|
||||
"timestamp": { "type": "integer" },
|
||||
"imageUrls": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" }
|
||||
}
|
||||
},
|
||||
"required": ["userId", "userName", "text", "timestamp"]
|
||||
}
|
||||
},
|
||||
"firestore": {
|
||||
@@ -47,6 +63,10 @@
|
||||
"signals/{signalId}": {
|
||||
"schema": "Signal",
|
||||
"description": "Generated signals."
|
||||
},
|
||||
"testimonials/{testimonialId}": {
|
||||
"schema": "Testimonial",
|
||||
"description": "Public user testimonials."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user