From 38892ffeb6c65ba33d8944be04476f185ffe7005 Mon Sep 17 00:00:00 2001
From: nizzy <140507264+nizzyabi@users.noreply.github.com>
Date: Tue, 10 Jun 2025 14:43:56 -0400
Subject: [PATCH] ui privacy email composer open (#1265)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
# READ CAREFULLY THEN REMOVE
Remove bullet points that are not relevant.
PLEASE REFRAIN FROM USING AI TO WRITE YOUR CODE AND PR DESCRIPTION. IF YOU DO USE AI TO WRITE YOUR CODE PLEASE PROVIDE A DESCRIPTION AND REVIEW IT CAREFULLY. MAKE SURE YOU UNDERSTAND THE CODE YOU ARE SUBMITTING USING AI.
- Pull requests that do not follow these guidelines will be closed without review or comment.
- If you use AI to write your PR description your pr will be close without review or comment.
- If you are unsure about anything, feel free to ask for clarification.
## Description
Please provide a clear description of your changes.
---
## Type of Change
Please delete options that are not relevant.
- [ ] 🐛 Bug fix (non-breaking change which fixes an issue)
- [ ] ✨ New feature (non-breaking change which adds functionality)
- [ ] 💥 Breaking change (fix or feature with breaking changes)
- [ ] 📝 Documentation update
- [ ] 🎨 UI/UX improvement
- [ ] 🔒 Security enhancement
- [ ] ⚡ Performance improvement
## Areas Affected
Please check all that apply:
- [ ] Email Integration (Gmail, IMAP, etc.)
- [ ] User Interface/Experience
- [ ] Authentication/Authorization
- [ ] Data Storage/Management
- [ ] API Endpoints
- [ ] Documentation
- [ ] Testing Infrastructure
- [ ] Development Workflow
- [ ] Deployment/Infrastructure
## Testing Done
Describe the tests you've done:
- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Manual testing performed
- [ ] Cross-browser testing (if UI changes)
- [ ] Mobile responsiveness verified (if UI changes)
## Security Considerations
For changes involving data or authentication:
- [ ] No sensitive data is exposed
- [ ] Authentication checks are in place
- [ ] Input validation is implemented
- [ ] Rate limiting is considered (if applicable)
## Checklist
- [ ] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document
- [ ] My code follows the project's style guidelines
- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in complex areas
- [ ] I have updated the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix/feature works
- [ ] All tests pass locally
- [ ] Any dependent changes are merged and published
## Additional Notes
Add any other context about the pull request here.
## Screenshots/Recordings
Add screenshots or recordings here if applicable.
---
_By submitting this pull request, I confirm that my contribution is made under the terms of the project's license._
## Summary by CodeRabbit
- **New Features**
- Added a "Pricing and Refund Policy" section to the privacy policy, outlining subscription terms, billing, refunds, and price change notifications.
- Introduced a GitHub star count button in the navigation bar, displaying the current repository star count with animated updates.
- **UI Improvements**
- Updated button and panel border radius for a more consistent, rounded appearance across various components.
- Improved color schemes and spacing for buttons, avatars, and panels for a cleaner look.
- Adjusted scrollbar styling and removed some borders for a sleeker interface.
- Refined layout and sizing of mail panels and navigation elements for better usability.
- Enhanced visual indicators for unread threads and improved reply composer auto-opening behavior.
- **Localization**
- Updated the command palette string from "New Email" to "New email" for consistency.
- **Customization**
- Added the ability to pass custom CSS classes to the email composer for flexible editor styling.
---
apps/mail/app/(full-width)/privacy.tsx | 60 +++++++++++++++++++
apps/mail/app/globals.css | 2 +-
apps/mail/components/ai-toggle-button.tsx | 2 +-
.../mail/components/create/email-composer.tsx | 4 +-
apps/mail/components/mail/mail-display.tsx | 4 +-
apps/mail/components/mail/mail-list.tsx | 39 +++++++-----
apps/mail/components/mail/mail.tsx | 31 ++++------
apps/mail/components/mail/note-panel.tsx | 2 +-
apps/mail/components/mail/reply-composer.tsx | 1 +
apps/mail/components/mail/thread-display.tsx | 40 +++++++------
apps/mail/components/navigation.tsx | 54 ++++++++++++++++-
apps/mail/components/ui/ai-sidebar.tsx | 4 +-
apps/mail/components/ui/app-sidebar.tsx | 2 +-
apps/mail/components/ui/nav-user.tsx | 14 ++---
apps/mail/locales/en.json | 2 +-
15 files changed, 191 insertions(+), 70 deletions(-)
diff --git a/apps/mail/app/(full-width)/privacy.tsx b/apps/mail/app/(full-width)/privacy.tsx
index 167b34ce5..0b5e8b8ae 100644
--- a/apps/mail/app/(full-width)/privacy.tsx
+++ b/apps/mail/app/(full-width)/privacy.tsx
@@ -337,6 +337,66 @@ const sections = [
),
},
+ {
+ title: 'Pricing and Refund Policy',
+ content: (
+
+
+
Free Plan and Trial Period
+
+
Zero offers a free plan with basic features that requires no payment information
+
For premium features, we offer a 7-day free trial period
+
A valid credit card is required to start the premium free trial
+
During the trial period, you have full access to all premium features
+
You can cancel at any time during the trial period without any charges
+
If you don't cancel before the trial ends, you'll be automatically charged for the premium subscription
+
+
+
+
Payment and Billing
+
+
After the 7-day free trial period ends, subscription charges will begin automatically
+
Subscription fees are billed in advance on a monthly or annual basis
+
Current pricing information is available on our pricing page
+
All payments are processed securely through our trusted payment partners
+
Subscription charges will appear on your billing statement as "Zero Email"
+
We accept major credit cards and other payment methods as available in your region
+
+
+
+
Non-Refundable Policy
+
+
+ Important: All subscription fees are non-refundable once the 7-day free trial period has ended
+
+
This policy applies to all premium subscription plans (monthly, annual, and enterprise plans)
+
Refunds are not provided for partial subscription periods
+
Refunds are not available for unused portions of your subscription
+
In exceptional circumstances, refunds may be considered on a case-by-case basis at our sole discretion
+
+
+
+
Subscription Management
+
+
You can cancel your subscription at any time through your account settings
+
Cancellation takes effect at the end of your current billing period
+
You will continue to have access to premium features until the end of your paid period
+
No partial refunds are provided for early cancellation
+
Reactivation of cancelled subscriptions may be subject to current pricing
+
+
+
+
Price Changes
+
+
We reserve the right to modify subscription pricing at any time
+
Existing subscribers will be notified of price changes at least 30 days in advance
+
Price changes will take effect at your next billing cycle
+
You may cancel your subscription before the price change takes effect