Commit Graph

1877 Commits

Author SHA1 Message Date
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
Adarsh Tiwari
f5b4c388b6 Merge branch 'staging' into autolabelling-issue 2025-05-15 00:54:24 +05:30
Ahmet Kilinc
cb756cfb99 Merge branch 'staging' into feat/add-more-shortcuts 2025-05-14 10:03:45 +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
Adarsh Tiwari
75a8fd695c Merge branch 'staging' into autolabelling-issue 2025-05-14 10:56:00 +05:30
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
Adarsh Tiwari
a9cb8a4259 Merge branch 'staging' into autolabelling-issue 2025-05-14 10:30:11 +05:30
Aj Wazzan
cc07f8f670 refactor: simplify layout components by removing unused imports and optimizing session handling 2025-05-13 21:27:54 -07:00
Aj Wazzan
d0c42b7d7f refactor: replace Link components with anchor tags for navigation consistency across various pages 2025-05-13 21:15:59 -07:00
Aj Wazzan
da2f7a9be5 refactor: streamline customer data handling in PricingPage and NavUser components 2025-05-13 15:35:50 -07:00
Adarsh Tiwari
b02baa672f fix(mail): use label text instead of id for updateLabels call 2025-05-14 02:14:15 +05:30
Ahmet Kilinc
6e92e73eac Merge branch 'staging' into feat/add-more-shortcuts 2025-05-13 21:33:43 +01:00
Aj Wazzan
7d801fb2f2 docs: add Autumn setup instructions to README and improve customer features check in use-billing hook 2025-05-13 11:21:11 -07:00
Ahmet Kilinc
90212264ea disable a shortcut 2025-05-13 18:56:58 +01:00
BlankParticle
a61dbb511b fix: recreate query client properly if session changes 2025-05-13 22:52:54 +05:30
BlankParticle
9f2dd8ba33 fix: logout using browser apis instead of nextjs 2025-05-13 18:34:10 +05:30
BlankParticle
7736d0f0f8 feat: access hono context from anywhere 2025-05-13 16:22:47 +05:30
Nizzy
b4a0ebe3ec faster close of dialog 2025-05-12 23:21:17 -07:00
Nizzy
1e37773867 tweaks 2025-05-12 22:12:19 -07:00
Nizzy
7fb6860523 tweaks 2025-05-12 21:54:31 -07:00
Aj Wazzan
ceefe5caaf refactor: update thread refetching logic in mail components 2025-05-12 21:24:01 -07:00
Aj Wazzan
2b35b04962 fix: handle optional chaining for disconnectedIds in ConnectionsPage 2025-05-12 20:35:42 -07:00
Aj Wazzan
9b02da3eca Merge branch 'staging' of https://github.com/nizzyabi/mail into staging 2025-05-12 20:34:12 -07:00
Aj Wazzan
ceb71987f7 refactor: replace useDebounce with funnel for label and thread refetching 2025-05-12 20:34:08 -07:00
Adam
af21ace278 Merge pull request #963 from Mail-0/dakdevs/staging/broken-connections-fix
Fix redirection for Invalid Connections
2025-05-12 20:27:01 -07:00
Aj Wazzan
471a604910 Merge branch 'staging' of https://github.com/nizzyabi/mail into staging 2025-05-12 18:05:56 -07:00
Aj Wazzan
988e8f65a8 fix: update styling for starred label icon in mail list component 2025-05-12 18:05:50 -07:00
Dak Washbrook
d0cf71b9bb Remove redundant console.log statements in query-provider.tsx
Eliminated unnecessary debugging logs to clean up the code and improve readability. This helps maintain a more production-ready codebase with fewer distractions during development.
2025-05-12 16:23:29 -07:00
Dak Washbrook
474f3fd959 Add debug logging for redirect handling in query provider
Added console logs to inspect `redirectPath`, `currentPath`, and test their states. This will help diagnose issues and ensure the redirect logic is functioning correctly.
2025-05-12 16:13:20 -07:00
needle
5fbcedba60 chore(composer): enable pasting files & QoL 2025-05-13 02:07:20 +03:00
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
Adam
376e70f580 Merge pull request #957 from Adarsh9977/email-width
style(ui): increase max-width of email display in nav-user after gauge was removed
2025-05-12 14:42:57 -07:00
Aj Wazzan
5344cf3631 fix: update condition for rendering AutoLabelingSettings based on brainState 2025-05-12 14:42:28 -07:00
Aj Wazzan
95e9c738f6 fix: update label mapping in AutoLabelingSettings and add debug logs 2025-05-12 14:10:20 -07:00
Adarsh Tiwari
d5eaeb5d8a Merge branch 'staging' into email-width 2025-05-13 02:30:43 +05:30
Adarsh Tiwari
6652d7555e style(ui): increase max-width of email display in nav-user after gauge removed 2025-05-13 02:23:45 +05:30
Aj Wazzan
b6fd5fbe82 feat: add refetch functionality for brain labels in NavUser component 2025-05-12 12:13:33 -07:00
Adam
0c3dc0f8e2 Merge pull request #945 from Mail-0/dakdevs/staging/broken-connections
Redirect User to Reconnect if credentials become invalid
2025-05-12 11:05:54 -07:00
Adam
b265aad684 Merge pull request #944 from Mail-0/chore/invalidate-query-count
chore: invalidate query count on marking read/uread
2025-05-12 11:04:07 -07:00
Aj Wazzan
2733b97192 feat: add validation for subject and message input in EmailComposer 2025-05-12 11:01:34 -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