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
BlankParticle
9c0cc3aa8c
chore: invalidate query count on marking read/uread
2025-05-12 11:02:17 +05:30
BlankParticle
b62923bf88
fix: missing execution ctx
2025-05-12 10:51:24 +05:30
Aj Wazzan
24696606d0
refactor: enhance thread navigation and state management in Thread component
2025-05-11 20:46:09 -07:00
Aj Wazzan
69bd73e705
feat: add email subject generation functionality in EmailComposer and TRPC
2025-05-11 20:23:02 -07:00
Aj Wazzan
82e6661b53
refactor: optimize debounced refetching in NotificationProvider with useCallback
2025-05-11 18:56:37 -07:00
Aj Wazzan
4d4b6cdf28
refactor: implement debouncing for label and thread refetching in NotificationProvider
2025-05-11 18:53:41 -07:00
Aj Wazzan
c7085059dd
feat: enhance NotificationProvider to refetch labels and threads based on message timing
2025-05-11 18:46:12 -07:00
Aj Wazzan
6ff91efd67
refactor: improve layout and styling in PricingPage component for better readability
2025-05-11 15:56:39 -07:00
Aj Wazzan
03b36a9ad0
refactor: remove unused imports and add console warning for thread refetching in NotificationProvider
2025-05-11 15:34:02 -07:00
Aj Wazzan
6033deee2c
fix: update AiSummary to correctly access summary data structure
2025-05-11 15:09:22 -07:00
Aj Wazzan
e3f70d18fd
refactor: simplify thread summary retrieval in brainRouter by using zero.getSummary
2025-05-11 15:04:05 -07:00
Aj Wazzan
ccb57838d4
fix: update logging in NotificationProvider to use console.warn for message handling
2025-05-11 14:59:56 -07:00
Aj Wazzan
fe7e088015
feat: integrate useThreads hook and enhance message handling in NotificationProvider
2025-05-11 14:50:57 -07:00
Aj Wazzan
d0e5d4fa1b
feat: enhance NotificationProvider to handle message types and invalidate queries based on thread ID
2025-05-11 14:46:55 -07:00
Aj Wazzan
a2df8516f1
Merge branch 'staging' of https://github.com/nizzyabi/mail into staging
2025-05-11 14:29:03 -07:00
Aj Wazzan
812b78e5e8
refactor: update defaultLabels structure in mail component for improved clarity and usability
2025-05-11 14:25:19 -07:00
Adam
83d4ebffab
Merge pull request #940 from Mail-0/fix/attachments
...
fix(thread): attachment rendering
2025-05-11 13:55:11 -07:00
Aj Wazzan
7df47bf9cc
fix: update room assignment logic in NotificationProvider to use only connection ID for improved accuracy
2025-05-11 13:43:22 -07:00
needle
4526f253a6
fix(thread): attachment rendering
2025-05-11 23:41:04 +03:00
Aj Wazzan
6c72d3bfc8
fix: update room assignment logic in NotificationProvider to use connection ID for improved accuracy
2025-05-11 13:01:56 -07:00
Aj Wazzan
560ac66c9f
Merge branch 'staging' of https://github.com/nizzyabi/mail into staging
2025-05-11 12:39:16 -07:00
Aj Wazzan
0abf236d33
refactor: simplify room assignment logic in NotificationProvider for improved clarity
2025-05-11 12:36:49 -07:00
BlankParticle
1e1a0024a7
fix: use different cookie based on NODE_ENV
2025-05-12 00:08:11 +05:30
Aj Wazzan
0c23150047
refactor: restore headers logic and NotificationProvider in MailLayout for improved functionality
2025-05-11 11:32:14 -07:00