Commit Graph

87 Commits

Author SHA1 Message Date
BlankParticle
2dd3abf67e chore: build server into multiple files 2025-05-20 18:25:05 +05:30
BlankParticle
a4d7889fa2 chore: do optimizations 2025-05-20 16:52:55 +05:30
Aj Wazzan
cc03565570 refactor: update environment variable keys in wrangler.jsonc to use VITE prefix for consistency 2025-05-20 02:03:17 -07:00
Aj Wazzan
0f2ed02de4 feat: add deployment scripts for frontend and backend; enhance mail and server package.json with deploy commands 2025-05-20 01:55:15 -07:00
Aj Wazzan
97273db862 feat: enhance observability and environment variables in wrangler.jsonc; refactor footer component for improved structure; clean up unused types in use-billing hook; update chat handler to utilize environment variables 2025-05-20 01:47:11 -07:00
BlankParticle
fa6baa7168 fix: autumn maybe 2025-05-20 14:13:46 +05:30
BlankParticle
5b12733af7 feat: own autumn api 2025-05-20 13:56:52 +05:30
Aj Wazzan
f4aa269975 refactor: update trustedOrigins configuration for improved security 2025-05-20 13:56:51 +05:30
BlankParticle
5d9eccbc4d fix: origin checks 2025-05-20 13:56:51 +05:30
Aj Wazzan
086a3d85ba refactor: update AI sidebar and billing hook for improved feature handling and UI adjustments 2025-05-20 13:56:51 +05:30
BlankParticle
fa45abaf44 feat: remixify and whatever else needed to be done 2025-05-20 13:56:47 +05:30
Aj Wazzan
acc680020f chore: update environment variables and add durable objects configuration in wrangler.jsonc 2025-05-20 01:16:19 -07:00
Aj Wazzan
f7f44c63d8 refactor: comment out Microsoft auth configuration and related environment variables 2025-05-19 15:43:37 -07:00
Aj Wazzan
90880c01b3 feat: add required field to auth provider configuration and enhance Gmail search prompt with additional guidelines 2025-05-19 15:26:45 -07:00
Aj Wazzan
621e0898b4 remove unused redirectUri from Microsoft auth configuration 2025-05-19 15:16:44 -07:00
Ahmet Kilinc
25cb7f6483 Merge branch 'staging' into feat/outlook-provider 2025-05-19 21:42:25 +01:00
Aj Wazzan
43dae9e9fa chore: update wrangler configuration with new environment variables and durable objects 2025-05-19 13:36:07 -07:00
Ahmet Kilinc
99bdf2d83b fixes some label issues 2025-05-19 14:21:35 +01:00
Ahmet Kilinc
a6d283f301 fixed whole branch 2025-05-19 14:05:04 +01:00
Ahmet Kilinc
058b0939de Merge branch 'feat/outlook-provider' of github.com:Mail-0/Zero into feat/outlook-provider 2025-05-19 13:14:49 +01:00
Ahmet Kilinc
d0207fc2e6 update count function to get the correct counts 2025-05-19 13:14:28 +01:00
Ahmet Kilinc
761c3895be feat: outlook driver 2025-05-19 13:14:26 +01:00
Ahmet Kilinc
2cb3629204 update count function to get the correct counts 2025-05-19 13:14:20 +01:00
Ahmet Kilinc
9b8e7de83f feat: outlook driver 2025-05-19 13:14:20 +01:00
Aj Wazzan
b31029236b Refactor createContext in TRPC server to use bracket notation for session and db properties 2025-05-18 22:30:31 -07:00
Aj Wazzan
d26f69507b Implement prompts dialog and integrate prompt management in brain functionality. Add new prompts for summarization and enhance the brain router to fetch prompts based on connection ID. Clean up unused imports and refactor components for better structure. 2025-05-18 22:26:41 -07:00
Aj Wazzan
25e0eefd7e Refactor AutoLabelingSettings component to enhance label management functionality, including adding, updating, and deleting labels. Update TypeScript configurations to enforce unused variable checks. Modify TRPC brain router to handle label objects with name and usecase properties. 2025-05-18 20:20:52 -07:00
Nizzy
0cf35be763 fix 2025-05-18 12:05:03 -07:00
Nizzy
9536a8aaf3 fix 2025-05-18 12:03:39 -07:00
BlankParticle
c00b8e95cb feat: add important toogle api and UI 2025-05-18 11:15:05 +05:30
Aj Wazzan
62576c0054 refactor: update environment variable access and clean up sidebar component
- Changed access of NEXT_PUBLIC_APP_URL from global variable to env object.
- Removed unused GoldenTicketModal component from AppSidebar.
- Enhanced AiChatPrompt documentation for clarity on using buildGmailSearchQuery.
- Updated Gmail search query tool description and schema for better understanding.
2025-05-15 17:54:12 -07:00
advitxsingh
1777313a85 fix to bin counter, previously only counted unread in bin, now does for all 2025-05-15 17:08:37 +05:30
Aj Wazzan
ccfa47e677 fix: update getCurrentDateContext to include time and integrate current date in AI chat prompt 2025-05-14 17:53:03 -07:00
Aj Wazzan
85bc2a0649 feat: add Gmail search query builder tool and enhance chat functionality with new system prompt 2025-05-14 17:50:41 -07:00
Aj Wazzan
00c9a00e59 refactor: update stale time in useThreads hook to 1 minute and simplify getMailManager function by removing unnecessary instance variable 2025-05-14 16:10:36 -07:00
Ahmet Kilinc
5f1f5bdd1b Merge branch 'staging' into feat/outlook-provider 2025-05-14 18:47:34 +01:00
Aj Wazzan
b6b34cb1aa refactor: implement Tools enum for consistent tool management and enhance AI chat functionality with new tool integrations 2025-05-14 00:09:48 -07:00
Aj Wazzan
d0037f6f50 refactor: enhance AI chat functionality by adding error handling, optimizing tool execution, and improving email composition logic 2025-05-13 22:19:17 -07:00
Ahmet Kilinc
1004b3a052 update count function to get the correct counts 2025-05-13 18:20:53 +01:00
Ahmet Kilinc
38c567cc4d feat: outlook driver 2025-05-13 18:22:09 +05:30
BlankParticle
7736d0f0f8 feat: access hono context from anywhere 2025-05-13 16:22:47 +05:30
Dak Washbrook
6936dd008d Refactor connection error handling and improve redirect logic
Removed redundant checks for connection tokens and streamlined error handling in server utilities. Enhanced redirect logic in the query provider to avoid unnecessary navigation when already on the target path.
2025-05-12 16:01:17 -07:00
Dak Washbrook
b7c089dc17 Merge branch 'staging' into dakdevs/staging/broken-connections 2025-05-12 10:44:13 -07:00
Dak Washbrook
37ad90cef7 Remove redundant error message from unauthorized exception
The error message was unnecessary as the 'UNAUTHORIZED' code is sufficient to convey the issue. This simplifies the error handling and avoids potential redundancy or confusion in the system behavior.
2025-05-11 23:50:11 -07:00
Dak Washbrook
787451d147 Remove redundant X-Zero-Redirect header setting.
The X-Zero-Redirect header logic was unnecessary and has been removed to streamline error handling. Error messages and redirection logic are now handled solely through TRPCError.
2025-05-11 23:48:44 -07:00
BlankParticle
0e2fede25e chore: add server side redirects 2025-05-12 12:00:03 +05:30
Dak Washbrook
cd65023230 Enable X-Zero-Redirect header support in server responses.
Added `X-Zero-Redirect` to both allowed and exposed headers in CORS configuration to ensure it can be utilized by the client. Removed an unnecessary TRPC error throw related to connection authorization for cleaner response handling.
2025-05-11 23:11:03 -07:00
Dak Washbrook
239c23d37f Handle disconnection redirects with server-set headers
Introduced the 'X-Zero-Redirect' header to streamline disconnection handling. Removed client-side redirection logic tied to "Invalid tokens" and updated the fetch interceptor to handle redirects based on the new header. This ensures a cleaner and more centralized redirection flow.
2025-05-11 22:56:37 -07:00
Dak Washbrook
6b9ec34289 Update dependencies for Drizzle and Radix libraries
Upgraded "drizzle-kit" to 0.31.1 and adjusted "drizzle-orm" versioning for consistency. Additionally, updated Radix dependencies to their latest versions to ensure compatibility and improvements.
2025-05-11 22:45:22 -07:00
Dak Washbrook
3a00821cfc Update Drizzle Kit and handle invalid tokens gracefully
Upgraded `drizzle-kit` to version 0.31.1 for improved functionality. Updated the schema to refine token fields and added logic to handle invalid tokens by nullifying them and redirecting users to reconnect. Enhanced connections API to identify and return disconnected connections for better user experience.
2025-05-11 22:35:30 -07:00