14 Commits

Author SHA1 Message Date
Mohd Yasin
bbc3cc0e19 fix: add cursor pointer to all button elements (#2009) 2025-08-26 13:00:51 +01:00
Ahmet Kilinc
906a02cd97 update deps and remove unused deps (#2006)
# Package Dependency Updates

## Description

This PR updates several package dependencies across the project:

- Updated `@elevenlabs/react` from 0.1.5 to 0.5.1 in mail app
- Added `@elevenlabs/elevenlabs-js` 2.12.2 to server app
- Removed unused dependencies: `deepmerge`, `dexie`, `emblor`, and `react-markdown`
- Added `sanitize-html` 2.16.0 to mail app
- Removed `elevenlabs` 1.59.0 from server (replaced with newer `@elevenlabs/elevenlabs-js`)
- Updated PNPM package manager from 10.12.1 to 10.15.0
- Updated Node types from 22.15.29 to 24.3.0
- Updated various dev dependencies including prettier, dotenv-cli, and tsx
- Updated Zod from 3.25.42 to 4.1.1
- Updated wrangler catalog version from 4.28.1 to 4.32.0

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Security**
  * Safer message rendering via HTML sanitization.
* **Improvements**
  * Updated voice/AI integration for increased reliability and compatibility.
  * General stability and performance enhancements across the app.
* **Chores**
  * Upgraded core libraries, developer tooling, and package manager to latest versions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-25 20:52:59 +02:00
Adam
df4f38d814 Upgrade wrangler from 4.22.0 to 4.28.1 (#1976)
# 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](https://github.com/Mail-0/Zero/blob/staging/.github/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._

    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Upgraded wrangler from version 4.22.0 to 4.28.1 to ensure compatibility with the latest Cloudflare tooling.

- **Dependencies**
  - Updated wrangler and related packages in pnpm-lock.yaml and pnpm-workspace.yaml.

<!-- End of auto-generated description by cubic. -->
2025-08-10 10:43:04 -07:00
Nikit Singh
9342f885f5 Fix: "navigator is not defined" on dev env startup (#1933) 2025-08-09 12:58:59 -07:00
Adam
91c4349634 Improve auth error handling and connection reset functionality (#1963)
# 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](https://github.com/Mail-0/Zero/blob/staging/.github/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._

    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Improved authentication error handling and connection reset logic to provide clearer feedback and ensure user sessions are properly revoked when issues occur.

- **Bug Fixes**
  - Added redirects and token revocation for failed user info fetches.
  - Improved handling when no connections are found for a user.
  - Triggered mailbox resync if inbox is empty after filtering.

- **Dependencies**
  - Updated better-auth and related packages to the latest versions.

<!-- End of auto-generated description by cubic. -->



<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Bug Fixes**
  * Improved error handling during authentication by revoking tokens, resetting connections, and redirecting users to the home page when user info retrieval fails or email is missing.
  * Enhanced session management by explicitly revoking and signing out sessions when no user connections are found.

* **New Features**
  * Automatically triggers a forced inbox refresh if no threads are found in the inbox, ensuring the latest messages are displayed.

* **Chores**
  * Updated the "better-auth" dependency to version ^1.3.4.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-09 12:30:13 -07:00
Ahmet Kilinc
85c29ea10f update better-auth and graceful auth error (#1279)
# Improved Authentication Error Handling

## Description

This PR enhances the login experience by adding proper error handling for authentication failures. It adds an error alert component to the login page that displays when authentication fails, and configures the auth system to redirect users back to the login page with an error parameter when authentication errors occur.

The changes include:
- Added an error alert component on the login page that shows when the 'error' query parameter is present
- Configured `onAPIError` in the auth config to redirect to the login page on authentication failures
- Updated the better-auth dependency from 1.2.8 to 1.2.9

## Type of Change

- [x] 🎨 UI/UX improvement

## Areas Affected

- [x] User Interface/Experience
- [x] Authentication/Authorization

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **New Features**
  - Added an alert message on the login page to inform users when a login attempt fails.

- **Chores**
  - Updated the version of the authentication package to improve reliability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-10 13:53:24 -07:00
Ahmet Kilinc
eb2871f364 new ai voice assistant (#1163)
### TL;DR

Added a new voice assistant feature to the mail app using ElevenLabs integration.

### What changed?

- Created a new voice assistant page at `/mail/voice` with a complete UI for voice interactions
- Added a navigation item for the Voice Assistant under a new "AI & Tools" section
- Updated the ElevenLabs package from `@11labs/react` to `@elevenlabs/react` (version 0.1.5)
- Added localization support for the voice assistant feature
- Implemented email context loading to provide the assistant with recent email information

### How to test?

1. Navigate to `/mail/voice` in the mail app
2. Ensure you're logged in and have granted microphone permissions
3. Click "Start Conversation" to begin interacting with the voice assistant
4. Test the mute/unmute functionality during conversation
5. Verify that recent emails are properly loaded and provided as context

### Why make this change?

This change enhances the mail application with voice interaction capabilities, allowing users to interact with their email through natural language. The voice assistant can access recent emails for context, providing a hands-free way to manage email communications. This feature improves accessibility and offers an alternative interface for users who prefer voice commands over traditional input methods.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **New Features**
  - Introduced a voice assistant feature, including a VoiceButton UI for starting and managing voice interactions within the mail app.
  - Added a global keyboard shortcut ("v") to quickly open the voice assistant.
  - Implemented a new alert component for improved user notifications.
  - Added localization for the voice assistant in the navigation sidebar.

- **Enhancements**
  - Updated the Sparkles icon with improved color and opacity styling.

- **Bug Fixes**
  - Corrected localization string formatting for error messages.

- **Chores**
  - Updated and reorganized dependencies to support new voice and AI features.
  - Added new context providers for managing voice interactions throughout the app.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-05 19:42:24 +01:00
Rahul Mishra
2eac4f30c5 chore: update dependencies and fix i8n issues (#1167)
- Update deps
- Fix i8n issues where it tries to translate hardcoded strings

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Bug Fixes**
  - Improved translation handling for navigation titles in the command palette, ensuring titles are translated only once and displayed correctly.

- **Chores**
  - Removed unnecessary 'use client' directives from several UI components.
  - Updated and cleaned up dependencies across the workspace, including removal of unused packages and bumping versions.
  - Simplified and reorganized script commands for development and database operations.
  - Adjusted configuration files for improved client/server build warmup and removed obsolete Turbo tasks.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-05-31 17:20:14 +05:30
MrgSub
42b06fda95 Navigation & Styling (#1158)
# Navigation Component and UI Improvements

## Description

This PR adds a reusable Navigation component to improve consistency across pages and updates various UI elements throughout the application. Key changes include:

1. Created a new `Navigation` component that's now used across all full-width pages
2. Updated the Discord invite link to use the vanity URL `discord.gg/0email`
3. Added BlankParticle to the core team members list
4. Added a new GitHub workflow for auto-merging production deployments
5. Fixed styling issues with social icons in dark mode
6. Improved the contributors page layout and display
7. Enhanced scrollbar styling for better user experience
8. Fixed tooltip positioning in the mail list component

## Type of Change

-  New feature (non-breaking change which adds functionality)
- 🎨 UI/UX improvement
-  Performance improvement

## Areas Affected

- [x] User Interface/Experience
- [x] Development Workflow

## Testing Done

- [x] Manual testing performed
- [x] Cross-browser testing (if UI changes)
- [x] Mobile responsiveness verified (if UI changes)

## Checklist

- [x] I have performed a self-review of my code
- [x] My changes generate no new warnings
- [x] I have updated the documentation

## Additional Notes

The new Navigation component centralizes the header implementation, making it easier to maintain and ensuring consistency across all pages. The auto-merge workflow will help streamline the deployment process when PRs are approved by MrgSub.

_By submitting this pull request, I confirm that my contribution is made under the terms of the project's license._

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
	- Introduced a unified navigation component across main pages for a consistent and responsive navigation experience.
	- Added a "Contributors" link to the footer for easier access to contributor information.
- **UI Improvements**
	- Updated contributor list and styling, including new avatars and improved badge text.
	- Enhanced tooltip positioning in mail list actions for better usability.
	- Improved global scrollbar styling for a more polished look.
	- Refined privacy policy formatting for readability.
- **Bug Fixes**
	- Updated Discord invite links in relevant locations.
- **Chores**
	- Upgraded the autumn-js dependency version.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-05-30 08:45:23 +00:00
Dak Washbrook
e0df484103 chore: update package dependencies to use catalog references and add new environment variable for Perplexity API key 2025-05-24 00:08:52 -07:00
BlankParticle
a4d7889fa2 chore: do optimizations 2025-05-20 16:52:55 +05:30
BlankParticle
fa45abaf44 feat: remixify and whatever else needed to be done 2025-05-20 13:56:47 +05:30
nizzy
8b139d8c84 feat: migrate to bun (#443) 2025-03-14 14:41:55 -04:00
Jacob
45c65daa4a init: move to turborepo and configure workspaces 2025-02-14 07:47:14 +10:00