Overview
This guide walks you through the complete process of adding new reviews to Reseñas Gastronómicas. You’ll learn how to fill out the review form, rate dishes, and manage reviewer information.Prerequisites
Before adding reviews, ensure:- Firebase is properly configured (see Firebase Setup)
- You have access to the application interface
- You have photo URLs ready for your dishes
Adding a New Review
Open the Add Review Modal
Click the Add Review button in the application header. This opens the review form modal.The modal is controlled by the
Modal module in src/js/modules/modal.js:24:Fill in Basic Information
Enter the essential details for your review:
Restaurant Name
Type the restaurant name in the Restaurant field. The system includes an autocomplete dropdown that shows previously entered restaurants.Dish Name
Enter the specific dish you’re reviewing in the Dish field.Photo URL
Provide a valid image URL for the dish. The system accepts any publicly accessible image URL.Use high-quality images from services like Unsplash, Imgur, or your own hosting. The URL must be accessible via HTTPS.
Visit Date (Optional)
Select the date you visited the restaurant. If left blank, the system automatically uses the current date.Add Reviewer Ratings
The application supports dual reviewers: Gian and Yami. Each can provide independent ratings and reviews.
Enable/Disable Reviewers
Use the Include review checkbox for each reviewer to toggle their participation. You can have one or both reviewers active.Set Star Ratings
Click on the stars to rate the dish from 1 to 10. The star rating system provides interactive feedback:- Hover over stars to preview the rating
- Click to set the final rating
- The rating displays as X/10 next to the stars
Write Review Text
In the text area below each reviewer’s rating, write detailed comments about the dish. Share thoughts on:- Taste and flavor profile
- Presentation and portion size
- Value for money
- Overall experience
Submit the Review
Click the Save Review button to submit. The system provides visual feedback during the save process:The review data is structured and saved to Firebase:
Review Data Structure
Each review is stored with the following structure:Tips for Better Reviews
Consistent Naming
Use consistent restaurant names to enable proper filtering. The autocomplete helps maintain this consistency.
Quality Photos
Use high-resolution images that clearly show the dish. Good lighting and composition enhance the review.
Detailed Feedback
Write specific, helpful reviews. Mention ingredients, cooking methods, and unique flavors.
Honest Ratings
Use the full 1-10 scale. Reserve 10s for exceptional experiences and be honest about disappointing dishes.
Troubleshooting
Form Won’t Submit
Problem: Clicking save does nothing or shows an error. Solutions:- Ensure all required fields are filled (restaurant, dish, photo)
- Verify at least one reviewer has a rating greater than 0
- Check browser console for JavaScript errors
- Confirm Firebase is properly initialized
Photos Don’t Load
Problem: Image URLs don’t display in the review card. Solutions:- Verify the URL is publicly accessible
- Use direct image URLs, not page links
- Ensure the URL uses HTTPS protocol
- Test the URL in a separate browser tab
Ratings Not Saving
Problem: Star ratings reset after clicking save. Solutions:- Click stars before submitting the form
- Ensure the reviewer checkbox is checked
- Check that the StarRating module is initialized
- Verify no JavaScript errors in console
Next Steps
Search Reviews
Learn how to find and filter your saved reviews
Firebase Setup
Configure Firebase for persistent data storage