Files
maternal-app/maternal-web/components/legal/PrivacyContent.tsx
Andrei e4b97df0c0
Some checks failed
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
feat: Implement AI response feedback UI and complete high-priority features
Frontend Features:
- Add MessageFeedback component with thumbs up/down buttons
- Positive feedback submits immediately with success toast
- Negative feedback opens dialog for optional text input
- Integrate feedback buttons on all AI assistant messages
- Add success Snackbar confirmation message
- Translation keys added to ai.json (feedback section)

Backend Features:
- Add POST /api/v1/ai/feedback endpoint
- Create FeedbackDto with conversation ID validation
- Implement submitFeedback service method
- Store feedback in conversation metadata with timestamps
- Add audit logging for feedback submissions
- Fix conversationId regex validation to support nanoid format

Legal & Compliance:
- Implement complete EULA acceptance flow with modal
- Create reusable legal content components (Terms, Privacy, EULA)
- Add LegalDocumentViewer for nested modal viewing
- Cookie Consent Banner with GDPR compliance
- Legal pages with AppShell navigation
- EULA acceptance tracking in user entity

Branding Updates:
- Rebrand from "Maternal App" to "ParentFlow"
- Update all icons (72px to 512px) from high-res source
- PWA manifest updated with ParentFlow branding
- Contact email: hello@parentflow.com
- Address: Serbota 3, Bucharest, Romania

Bug Fixes:
- Fix chat endpoint validation (support nanoid conversation IDs)
- Fix EULA acceptance API call (use apiClient vs hardcoded localhost)
- Fix icon loading errors with proper PNG generation

Documentation:
- Mark 11 high-priority features as complete in REMAINING_FEATURES.md
- Update feature statistics: 73/139 complete (53%)
- All high-priority features now complete! 🎉

Files Changed:
Frontend: 21 files (components, pages, locales, icons)
Backend: 6 files (controller, service, DTOs, migrations)
Docs: 1 file (REMAINING_FEATURES.md)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-04 11:39:02 +00:00

149 lines
8.1 KiB
TypeScript

import { Box, Typography } from '@mui/material';
export function PrivacyContent() {
return (
<Box sx={{ '& h5': { mt: 3, mb: 1, fontWeight: 'bold' }, '& h6': { mt: 2, mb: 1, fontWeight: 'bold' }, '& p': { mb: 2 }, '& ul': { mb: 2 } }}>
<Typography variant="h5">1. Introduction</Typography>
<Typography paragraph>
Welcome to ParentFlow ("we," "our," or "us"). We are committed to protecting your privacy and the privacy of your children.
This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our mobile application
and related services (collectively, the "Service").
</Typography>
<Typography paragraph>
Because our Service is designed for parents and caregivers tracking information about children aged 0-6 years, we take extra
precautions to comply with the Children's Online Privacy Protection Act (COPPA) and the General Data Protection Regulation (GDPR).
</Typography>
<Typography variant="h5">2. Information We Collect</Typography>
<Typography variant="h6">2.1 Personal Information You Provide</Typography>
<Typography component="ul">
<li><strong>Account Information:</strong> Name, email address, date of birth (for COPPA age verification)</li>
<li><strong>Profile Information:</strong> Profile photo, timezone, language preferences</li>
<li><strong>Child Information:</strong> Child's name, date of birth, gender, photo (optional)</li>
<li><strong>Activity Data:</strong> Feeding times, sleep schedules, diaper changes, medication records, milestones</li>
<li><strong>AI Chat Messages:</strong> Questions and conversations with our AI assistant</li>
<li><strong>Photos and Media:</strong> Photos of children and milestones (optional)</li>
</Typography>
<Typography variant="h6">2.2 Automatically Collected Information</Typography>
<Typography component="ul">
<li><strong>Device Information:</strong> Device type, operating system, unique device identifiers</li>
<li><strong>Usage Data:</strong> App features used, session duration, error logs</li>
<li><strong>Technical Data:</strong> IP address, browser type, time zone settings</li>
</Typography>
<Typography variant="h5">3. How We Use Your Information</Typography>
<Typography component="div" paragraph>
We use the collected information for:
<ul>
<li>Providing and maintaining the Service</li>
<li>Tracking your child's activities and patterns</li>
<li>Generating insights and analytics about your child's development</li>
<li>Providing AI-powered parenting support and answers</li>
<li>Syncing data across family members' devices</li>
<li>Sending notifications and reminders</li>
<li>Improving our Service and developing new features</li>
<li>Detecting and preventing fraud and security issues</li>
<li>Complying with legal obligations</li>
</ul>
</Typography>
<Typography variant="h5">4. Children's Privacy (COPPA Compliance)</Typography>
<Typography paragraph>
Our Service is designed for parents and caregivers to track information about their children. We do not knowingly collect
personal information directly from children under 13 years of age.
</Typography>
<Typography component="div" paragraph>
<strong>Parental Rights:</strong>
<ul>
<li>Review your child's information</li>
<li>Request deletion of your child's information</li>
<li>Refuse further collection or use of your child's information</li>
<li>Export your child's data in a portable format</li>
</ul>
</Typography>
<Typography paragraph>
To exercise these rights, please contact us at <strong>hello@parentflow.com</strong>.
</Typography>
<Typography variant="h5">5. Data Sharing and Disclosure</Typography>
<Typography paragraph>
<strong>We do NOT sell your personal information or your child's information.</strong>
</Typography>
<Typography component="div" paragraph>
We may share information with:
<ul>
<li><strong>Family Members:</strong> Data is shared with family members you invite to your family group</li>
<li><strong>Service Providers:</strong> Cloud hosting (AWS/Azure), analytics (anonymized), customer support</li>
<li><strong>AI Providers:</strong> OpenAI or Anthropic (for AI chat, with no PII in training data)</li>
<li><strong>Legal Compliance:</strong> When required by law or to protect rights and safety</li>
</ul>
</Typography>
<Typography variant="h5">6. Data Security</Typography>
<Typography paragraph>
We implement industry-standard security measures to protect your information:
</Typography>
<Typography component="ul">
<li>End-to-end encryption for sensitive child data</li>
<li>Secure HTTPS connections for all communications</li>
<li>Regular security audits and penetration testing</li>
<li>Access controls and authentication mechanisms</li>
<li>Encrypted database storage</li>
</Typography>
<Typography variant="h5">7. Your Rights (GDPR Compliance)</Typography>
<Typography component="div" paragraph>
Under GDPR, you have the following rights:
<ul>
<li><strong>Right to Access:</strong> Request a copy of your personal data</li>
<li><strong>Right to Rectification:</strong> Correct inaccurate information</li>
<li><strong>Right to Erasure:</strong> Request deletion of your data ("right to be forgotten")</li>
<li><strong>Right to Data Portability:</strong> Export your data in a machine-readable format</li>
<li><strong>Right to Restrict Processing:</strong> Limit how we use your data</li>
<li><strong>Right to Object:</strong> Opt-out of certain data processing</li>
<li><strong>Right to Withdraw Consent:</strong> Revoke consent at any time</li>
</ul>
</Typography>
<Typography paragraph>
To exercise your rights, visit Settings Privacy Data Rights or email <strong>hello@parentflow.com</strong>.
</Typography>
<Typography variant="h5">8. Data Retention</Typography>
<Typography paragraph>
We retain your information for as long as your account is active or as needed to provide the Service.
When you delete your account, we will delete your personal information within 30 days, except where we are
required to retain it for legal compliance or dispute resolution.
</Typography>
<Typography variant="h5">9. International Data Transfers</Typography>
<Typography paragraph>
Your information may be transferred to and processed in countries other than your country of residence.
We ensure appropriate safeguards are in place to protect your information in accordance with this Privacy Policy
and applicable laws.
</Typography>
<Typography variant="h5">10. Third-Party Links</Typography>
<Typography paragraph>
Our Service may contain links to third-party websites. We are not responsible for the privacy practices of these
external sites. We encourage you to review their privacy policies.
</Typography>
<Typography variant="h5">11. Changes to This Privacy Policy</Typography>
<Typography paragraph>
We may update this Privacy Policy from time to time. We will notify you of significant changes by email or through
the app. Your continued use of the Service after changes constitutes acceptance of the updated policy.
</Typography>
<Typography variant="h5">12. Contact Us</Typography>
<Typography paragraph>
If you have questions about this Privacy Policy or our data practices, please contact us:
</Typography>
<Typography component="div" paragraph>
<strong>Email:</strong> hello@parentflow.com<br />
<strong>Address:</strong> Serbota 3, Bucharest, Romania
</Typography>
</Box>
);
}