Files
QuantScan-Pro-/firebase-blueprint.json
T
desartstudio95 03cbe2086a 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.
2026-05-06 14:42:38 +02:00

73 lines
2.3 KiB
JSON

{
"entities": {
"User": {
"title": "User Profile",
"description": "Represents a user profile with their plan and approval status.",
"type": "object",
"properties": {
"uid": { "type": "string" },
"email": { "type": "string" },
"name": { "type": "string" },
"isPremium": { "type": "boolean" },
"isAdmin": { "type": "boolean" },
"plan": { "type": "string", "enum": ["basic", "pro", "elite"] },
"analysisLimit": { "type": "integer" },
"isApproved": { "type": "boolean" }
},
"required": ["uid", "email", "name", "plan"]
},
"Signal": {
"title": "Trading Signal",
"description": "Technical analysis signal generated by the AI.",
"type": "object",
"properties": {
"userId": { "type": "string" },
"pair": { "type": "string" },
"timeframe": { "type": "string" },
"decision": { "type": "string" },
"score": { "type": "integer" },
"entry": { "type": "string" },
"stopLoss": { "type": "string" },
"takeProfit": { "type": "string" },
"justification": { "type": "string" },
"conceptsDetected": { "type": "array", "items": { "type": "string" } },
"screenshotUrl": { "type": "string" },
"timestamp": { "type": "integer" },
"createdAt": { "type": "object" },
"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": {
"users/{userId}": {
"schema": "User",
"description": "User profiles by UID."
},
"signals/{signalId}": {
"schema": "Signal",
"description": "Generated signals."
},
"testimonials/{testimonialId}": {
"schema": "Testimonial",
"description": "Public user testimonials."
}
}
}