Skip to content

feat(remedies): add anonymous reviews section with localStorage support#127

Open
ajitkumarsaini02 wants to merge 5 commits into
udisha1:mainfrom
ajitkumarsaini02:feat-anonymous-remedy-reviews
Open

feat(remedies): add anonymous reviews section with localStorage support#127
ajitkumarsaini02 wants to merge 5 commits into
udisha1:mainfrom
ajitkumarsaini02:feat-anonymous-remedy-reviews

Conversation

@ajitkumarsaini02

Copy link
Copy Markdown
Contributor

✨ Anonymous Reviews for Remedies

Overview

This PR introduces an anonymous reviews system for remedies, allowing users to share their experiences and feedback directly within the application.

🚀 Features Added

📝 Review Submission

  • Added a review form under each remedy card.
  • Users can submit feedback about their experience with a remedy.
  • Review comments are validated before submission.

👤 Anonymous Review Support

  • Added an optional nickname field.
  • If no nickname is provided, reviews are automatically displayed as "Anonymous".

💾 Local Storage Persistence

  • Reviews are stored using the browser's localStorage.
  • Submitted reviews remain available after page refreshes.
  • No backend or authentication setup is required.

📋 Review Display

  • Reviews are displayed directly below their corresponding remedy.
  • Shows reviewer name and submission date.
  • Includes an empty-state message when no reviews are available.

🎨 UI Enhancements

  • Added a responsive reviews section matching the existing Ayurveda Daily design.
  • Styled review cards, form fields, and action buttons for consistency with the application's theme.

📂 Files Updated

  • src/app/pages/remedies/remedies.ts
  • src/app/pages/remedies/remedies.html
  • src/app/pages/remedies/remedies.css

✅ Benefits

  • Encourages community feedback and experience sharing
  • Improves user engagement and trust
  • Provides useful insights for future users
  • Establishes a foundation for future backend-powered review systems

Future Scope

  • Shared reviews via backend integration
  • Review moderation
  • Upvote/downvote functionality
  • Reply and discussion support

Closes #68

@udisha1

udisha1 commented Jun 15, 2026

Copy link
Copy Markdown
Owner

plz add the screenshots of the changes made

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@ajitkumarsaini02 is attempting to deploy a commit to the Udisha Narayan's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add anonymous reviews section for remedies

2 participants