Commit Graph

50 Commits

Author SHA1 Message Date
Adam
3ca38991fe Optimize thread counting and add license headers to workflow files (#1949)
# 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 thread counting performance by batching label queries and added Apache license headers to workflow files.

- **Refactors**
  - Replaced individual thread count queries with a single batched query for all labels.
  - Added license headers to workflow-related source files.

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



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

## Summary by CodeRabbit

* **New Features**
  * Improved thread counting performance by enabling batch counting of threads across multiple folders or labels.
* **Refactor**
  * Streamlined folder synchronization logic and removed unused or commented-out code for better maintainability.
* **Documentation**
  * Added Apache 2.0 license headers to several files to clarify usage and licensing terms.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-07 17:37:29 -07:00
Adam
277f476575 cleanup on isle zero (#1699)
Ran oxc (https://oxc.rs/docs/guide/usage/linter.html#vscode-extension) and fixed all the issues that came up, set it up to run as a PR check and added steps to the README.md asking users to use it.

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

* **New Features**
  * Introduced JavaScript linting using oxlint in development guidelines and CI workflow for improved code quality.
  * Added oxlint configuration and dependencies to the project.

* **Bug Fixes**
  * Improved error logging in various components and utilities for better debugging.
  * Enhanced React list rendering by updating keys to use unique values instead of array indices, reducing rendering issues.
  * Replaced browser alerts with toast notifications for a smoother user experience.

* **Refactor**
  * Simplified component logic and state management by removing unused code, imports, props, and components across multiple files.
  * Updated function and component signatures for clarity and maintainability.
  * Improved efficiency of certain operations by switching from arrays to sets for membership checks.

* **Chores**
  * Cleaned up and reorganized import statements throughout the codebase.
  * Removed deprecated files, components, and middleware to streamline the codebase.

* **Documentation**
  * Updated contribution guidelines to include linting requirements for code submissions.

* **Style**
  * Minor formatting and readability improvements in JSX and code structure.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-07-10 10:59:40 -07:00
Adam
2fbaf7b312 SPA (#1538)
# 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 comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

* **New Features**
  * Introduced a new localization system replacing translation hooks with direct message function calls.
  * Added localization project configuration and Inlang plugins for improved message formatting.

* **Bug Fixes**
  * Enhanced pluralization handling across all supported languages for accurate message display.

* **Refactor**
  * Unified translation and locale management across components by removing hook-based translations.
  * Removed obsolete navigation and email signature settings pages.
  * Simplified query and server provider logic, removing connection-specific and internationalization context code.
  * Disabled server-side rendering in the mail app.
  * Removed Cloudflare Worker request handler and related environment augmentations.

* **Chores**
  * Updated dependencies and scripts, adding Inlang CLI and removing unused packages.
  * Cleaned up configuration files including Vite, Wrangler, and i18n settings.
  * Added `.gitignore` for localization cache.
  * Updated static asset handling and environment configurations for Cloudflare deployments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-30 11:37:18 -07:00
Aj Wazzan
315a57785c Refactor scrollbar handling in components and update email composer state management 2025-05-21 22:34:46 -07:00
BlankParticle
fa45abaf44 feat: remixify and whatever else needed to be done 2025-05-20 13:56:47 +05:30
Aj Wazzan
dfca791c42 refactor: update type casting in login page and remove unused TextButtons component 2025-05-15 22:23:06 -07:00
Nizzy
1e37773867 tweaks 2025-05-12 22:12:19 -07:00
Nizzy
561749ad62 homepage 2025-05-06 01:08:39 -07:00
BlankParticle
f059f95f1f chore: cleanup and refactor, remove unused files and routes 2025-05-06 00:23:56 +05:30
Nizzy
f997148a9e home 2025-05-04 18:51:58 -07:00
Nizzy
0666d358e4 editor height 2025-04-28 23:41:32 -07:00
Nizzy
495997b9a2 editor 2025-04-26 18:40:04 -07:00
Aj Wazzan
a14ba51714 Refactor email sending logic and enhance EmailComposer component 2025-04-23 21:29:48 -07:00
Nizzy
6826702f24 editor 2025-04-23 19:11:17 -07:00
Nizzy
006367a562 fix 2025-04-16 21:28:32 -07:00
Nizzy
873423aa36 editor padding removed 2025-04-14 17:24:58 -07:00
Aj Wazzan
24da494d64 Refactor image upload handling in editor component 2025-04-12 18:56:53 -07:00
Aj Wazzan
d2213f2042 Update email composer attachment handling and UI 2025-04-12 12:31:35 -07:00
Nizzy
e9ec0d72c6 remove scale at bottom of editor 2025-04-11 12:28:40 -07:00
Aj Wazzan
7b8eb198a3 Remove unused signature related props from Editor component 2025-04-10 11:32:51 -07:00
Nizzy
06d6c6791f merge 2025-04-09 23:31:50 -07:00
Aj Wazzan
6cbd6f7b90 Enhance email sending functionality by adding support for CC and BCC fields, integrating the 'mimetext' library for MIME message creation, and refactoring the reply composer. Update user settings to remove signature options and improve email parsing logic. 2025-04-09 00:09:32 -07:00
Nizzy
dedccc399a focus error 2025-04-08 22:51:04 -07:00
Nizzy
cc07cad277 click anywhere to focus textarea 2025-04-08 22:29:34 -07:00
Nizzy
5149b7309d ui fixes 2025-04-08 22:19:50 -07:00
Nizzy
74d1f7b2ba draft: global ai for cursor like functionalities 2025-04-08 17:19:16 -07:00
plyght
f710dfcdb6 Merge branch 'staging' into feat/signatures 2025-04-07 08:56:28 -04:00
Nizzy
3ac871580e skip menu bar when tabing 2025-04-06 21:12:12 -07:00
YK
243f88d1af Add tooltips and i18n for editor MenuBar (#604)
* feat: add tooltips and i18n to editor MenuBar

* fix: incorrect translation key
2025-04-06 16:52:25 -04:00
plyght
d6fbfa52f8 fix nitpicks 2025-04-05 15:01:44 -04:00
plyght
6b2463de4c add button 2025-04-05 14:41:33 -04:00
plyght
8ebad01745 add signatures 2025-04-05 11:24:38 -04:00
Aj Wazzan
d73e6af0fa saving... 2025-04-01 18:16:32 -07:00
Nizzy
60bb9942a6 fix double submit on command enter create email 2025-03-30 14:19:41 -07:00
Ahmet Kilinc
0acebdeee1 Merge branch 'staging' of github.com:Mail-0/Mail-0 into feat/autocomplete-sentences 2025-03-29 22:09:54 +00:00
nizzy
6d4aaee8a3 Improved ai with custom prompt (#534)
* ai

* improved ai

* improved-ai-with-custom-prompt

* empty commit
2025-03-29 18:03:10 -04:00
Nizzy
9c799abddd additions 2025-03-28 20:12:16 -07:00
Ahmet Kilinc
f9d480aa5e Autocompletions for reply and create 2025-03-27 22:52:32 +00:00
needle
76cf73a9d5 reply ai (#526)
* reply ai

* ai functionality

* line height

* adam fixes

---------

Co-authored-by: user12224 <122770437+user12224@users.noreply.github.com>
Co-authored-by: Nizzy <nizabizaher@gmail.com>
2025-03-27 18:19:31 -04:00
Nizzy
6cd97dceb6 adjustable height: to be improved 2025-03-24 01:23:40 -07:00
autofix-ci[bot]
dc32dc46ad Apply Prettier format 2025-03-20 21:17:09 +00:00
nizzy
737c0afc9e feat/editor-ai and featurebase (#469)
* feat/editor-ai and featurebase

* Apply Prettier format

* Apply Prettier format (attempt 2/3)

* remove duplicate bunfig

* env example api key

* add system prompt

* fixes to branch

* Apply Prettier format

* editor fix

* Apply Prettier format

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-17 16:50:08 -04:00
autofix-ci[bot]
14b0cd8d03 Apply Prettier format 2025-03-17 05:47:20 +00:00
okna
d25593345b fix(ui): button as button error fixed, create mail editor fixes (#424)
* fix(ui): button as button child error fixed, bottom sidebar element focus ring was overflowing

* fix: mail editor editorRef and auto-focus fix
2025-03-13 13:21:49 -04:00
Ahmet Kilinc
d2bf55f2c9 Attachments accordion in mail-display.tsx (#416)
* added attachments view to email-display and added grabbing attachments to google driver

* move attachments dialog

* remove comments

* nitpick comments from rabbit ai

* changed framer motion imports to motion/react

* quality improvements

* refactored google.ts for usability and attachments now work

---------

Co-authored-by: Nizzy <nizabizaher@gmail.com>
2025-03-13 13:12:31 -04:00
Ahmet Kilinc
5e7b4c3c24 Merge branch 'staging' of github.com:Mail-0/Mail-0 into feat/draft-emails 2025-03-11 17:45:45 +00:00
nizzy
3a8739d2d7 Create email updates (#407)
* create-email and onboarding

* create-email and onboarding

* added tiptap-markdown to Editor

* create-email-updates

* refactor(auth): enhance auth configuration

* early access flow

---------

Co-authored-by: Ahmet Kilinc <akx9@icloud.com>
Co-authored-by: user12224 <122770437+user12224@users.noreply.github.com>
2025-03-10 17:55:51 -04:00
Ahmet Kilinc
6812e0d715 loading drafts works fully now 2025-03-06 23:57:10 +00:00
Nizzy
6948c788c3 reply ui upgrade 2025-03-02 13:31:24 -05:00
Ahmet Kilinc
d6b1c3b243 Release 2 (#351)
* fix: remove tracked node_modules/.bin files

* added to .gitignore

* update compose

* feat: Add AI brain and summary features for email

- Implemented EnableBrain action to subscribe to mail gateway
- Created GetSummary action to retrieve email thread summaries
- Added useSummary hook for fetching summaries
- Introduced mail0_summary database table
- Added Brain button to app sidebar for enabling AI features

* fix: Improve null safety and remove unused imports

- Fixed potential null access in thread-display by checking array first
- Removed unused markAsReadAction import in use-threads hook
- Removed unnecessary cache deletion logic in IndexedDB storage provider
- Removed threadId from ParsedMessage type definition

* fix: Use environment variable for brain gateway URL

- Replace hardcoded mail gateway URL with configurable environment variable
- Improve flexibility and configuration of brain subscription endpoint

* big push for connections and server actions:
- unread count 
- remove `/connect-email` 
- update redirects and callbacks to `/settings/connections` 
- make everything else server actions 
- remove old route.ts files 

* feat: Improve HTML text extraction and email parsing

- Added Cheerio for robust HTML text extraction in extractTextFromHTML
- Enhanced null safety in Google email driver for sender name and subject
- Updated mail list and threads hooks to handle potential undefined values
- Improved text cleaning and handling of edge cases in email parsing

* editor working

* compose and video

* fix: remove t3-oss env

* update max results to 10 per requst

* zero button floating sidebar

* lots of changes:
- removes old mail compose modal
- smaller upload limit
- useReducer on components with lots of state
- image logos for some file types (still more to add)
- resolve comments from previous review

* add logos

* straing to staging

* improvements to create ui (#345)

* made create wider

* send to multiple emails and new ui for 'to' list

* add icons for file upload (#346)

* added icon for figma icon

* added else ifs for other icons

* add file name to the getLogo func

* fix figma if statement

* fix figma

* fix excel

* remove console logs

* fix back to original component

* file icons

* ui tweaks

---------

Co-authored-by: Nizzy <nizabizaher@gmail.com>
Co-authored-by: nizzy <140507264+nizzyabi@users.noreply.github.com>

* fix: sidebar and settings page ui fixes (#348)

* fixes

* define to emails

* rotate on hover logo

* early access count on homepage

* updated readme

---------

Co-authored-by: Sijan Mainali <sijanmainali2@gmail.com>
Co-authored-by: Adam <x_1337@outlook.com>
Co-authored-by: Nizzy <nizabizaher@gmail.com>
Co-authored-by: user12224 <122770437+user12224@users.noreply.github.com>
Co-authored-by: nizzy <140507264+nizzyabi@users.noreply.github.com>
2025-03-01 16:36:17 -05:00