Showing AI reviews for avriti
Project AI Score ?
63%
Quality Avg ?
68%
Security Avg ?
45%
Reviews ?
56

Review Result ?

jattin01/avriti · dfd8e1d8
The commit adds fully implemented Privacy Policy and Terms & Conditions pages with detailed sections relevant to the business. The text is clear, structured, and covers critical legal and privacy topics. The implementation includes metadata for SEO and uses a shared LegalPage component, demonstrating good reuse. Minor improvements could be made to enhance security and maintainability.
Quality ?
85%
Security ?
80%
Business Value ?
90%
Maintainability ?
88%
Issues & Suggested Fixes ?
1AI detects the issue
2Shows file, line, or evidence
3Suggests the fix to apply
Hardcoded 'Updated' Date As 'July 2026' Lo...
Where app/privacy/page.tsx:74
Issue / Evidence hardcoded 'updated' date as 'July 2026' looks like a typo or placeholder
Suggested Fix correct the updated date to the current or intended accurate date
Hardcoded 'Updated' Date As 'July 2026' Lo...
Where app/terms/page.tsx:87
Issue / Evidence hardcoded 'updated' date as 'July 2026' looks like a typo or placeholder
Suggested Fix correct the updated date to the current or intended accurate date
Security Issue
Where app/privacy/page.tsx:65
Issue / Evidence security
Suggested Fix consider not exposing direct email address 'avriti.org@gmail.com' to reduce spam, instead use a contact form or email obfuscation
Security Issue
Where app/terms/page.tsx:78
Issue / Evidence security
Suggested Fix consider not exposing direct email address 'avriti.org@gmail.com' to reduce spam, instead use a contact form or email obfuscation
Code Change Preview · app/privacy/page.tsx ?
Removed / Before Commit

                                                
Added / After Commit
+ import { LegalPage, type LegalSection } from "@/components/legal-page";
+ 
+ export const metadata = {
+   title: "Privacy Policy | Avriti",
+   description:
+     "How Avriti collects, uses, and protects your personal information when you shop for products or book consultations.",
+ };
+ 
+ const sections: LegalSection[] = [
+   {
+     heading: "1. Introduction",
+     body: [
+       "At Avriti, your privacy matters to us. This Privacy Policy explains how we collect, use, and safeguard the information you share with us when you visit our website, purchase sacred products, or book a consultation.",
+       "By using our website and services, you agree to the practices described in this policy.",
+     ],
+   },
+   {
+     heading: "2. Information We Collect",
Removed / Before Commit

                                                
Added / After Commit
+ import { LegalPage, type LegalSection } from "@/components/legal-page";
+ 
+ export const metadata = {
+   title: "Terms & Conditions | Avriti",
+   description:
+     "The terms that govern your use of the Avriti website, purchases of products, and bookings of consultations.",
+ };
+ 
+ const sections: LegalSection[] = [
+   {
+     heading: "1. Acceptance of Terms",
+     body: [
+       "Welcome to Avriti. By accessing our website, purchasing our products, or booking a consultation, you agree to be bound by these Terms & Conditions. If you do not agree, please do not use our services.",
+     ],
+   },
+   {
+     heading: "2. Products & Consultations",
+     body: [
Removed / Before Commit
- "register": "Register",
- "profile": "Profile",
- "contact": "Contact",
- };
- 
- return (
Added / After Commit
+ "register": "Register",
+ "profile": "Profile",
+ "contact": "Contact",
+     "privacy": "Privacy Policy",
+     "terms": "Terms & Conditions",
+ };
+ 
+ return (
Removed / Before Commit

                                                
Added / After Commit
+ "use client";
+ 
+ import { useEffect, useRef, useState } from "react";
+ import Breadcrumb from "@/components/common/Breadcrumb";
+ import InnerBanner from "@/components/inner-banner";
+ 
+ export type LegalSection = {
+   heading: string;
+   body?: string[];
+   list?: string[];
+ };
+ 
+ type LegalPageProps = {
+   title: string;
+   intro: string;
+   updated: string;
+   sections: LegalSection[];
+ };
Removed / Before Commit
- <Link className="block hover:text-[var(--color-primary-700)] text-[var(--color-text-secondary)]" href="/contact">
- Contact
- </Link>
-             <Link className="block hover:text-[var(--color-primary-700)] text-[var(--color-text-secondary)]" href="#">
- Privacy
- </Link>
-             <Link className="block hover:text-[var(--color-primary-700)] text-[var(--color-text-secondary)]" href="#">
- Terms
- </Link>
- </div>
Added / After Commit
+ <Link className="block hover:text-[var(--color-primary-700)] text-[var(--color-text-secondary)]" href="/contact">
+ Contact
+ </Link>
+             <Link className="block hover:text-[var(--color-primary-700)] text-[var(--color-text-secondary)]" href="/privacy">
+ Privacy
+ </Link>
+             <Link className="block hover:text-[var(--color-primary-700)] text-[var(--color-text-secondary)]" href="/terms">
+ Terms
+ </Link>
+ </div>