Commit Graph

21 Commits

Author SHA1 Message Date
Nizzy
330754f786 analytics 2025-02-14 23:40:37 -05:00
Rahul Mishra
53104458e3 chore: restructure files to have less folders (#172) 2025-02-14 17:14:25 +05:30
Nizzy
f0d90147df process env 2025-02-14 02:07:36 -05:00
Nizzy
55b8c86c41 BASE URL FIX 2025-02-14 01:32:10 -05:00
Adam
8fe30fb3ec fix: authentication and connection handling improvements (#168)
* fix: authentication and connection handling improvements

* no ip_address and userAgent

* adding ipAddress back

* chore: disable IP tracking in authentication configuration

---------

Co-authored-by: Nizzy <nizabizaher@gmail.com>
2025-02-13 18:38:06 -05:00
Rahul Mishra
43f1272055 chore: better env validation error (#165) 2025-02-13 18:18:42 -05:00
Nizzy
215066e3cb deployment error 2025-02-13 16:10:54 -05:00
Rahul Mishra
fbc1e73d65 feat: type safe env (#161) 2025-02-13 11:22:48 -05:00
Nizzy
cc2e07afa5 io 2025-02-12 22:04:50 -05:00
Nizzy
6a7867b54c email 2025-02-12 22:02:14 -05:00
nizzy
a5a3e2ab04 Multi gmail connection (#148)
* feat: Integrate Google OAuth and SWR for mail threads

* refactor: simplify mail list and navigation UI

* feat: enhance mail parsing and UI with sender details and unread status

* chore: update pnpm lock with new dependencies

* refactor: organize imports in app-sidebar component

* dynamic rendering data

* chore: update .gitignore with IDE-specific exclusions

* refactor(mail): update routing and component structure for mail views

* refactor(mail): remove draft and junk routes; update folder names to proper terms in UI and API

* refactor(mail): clean up imports, adjust API endpoints, and improve mail component structures for better clarity and performance

* automatic search

* YOP!

* KIND OF lint. lmao.

* feat:gmail connection WIP

* feat(mail): add mail count endpoint and dynamic sidebar stats

* feat(mail): add sanitization and dynamic provider support for email rendering

* grim's changes

* feat(mail): implement indexedDB caching for email threads and improve SWR configuration in layout component

* feat(mail): enhance indexedDB operations for email threads caching and update SWR configuration for better data handling

* idk

* fix(mail): adjust email body processing and reverse cached email messages for consistent order

* Fullscreen (#154)

* FULL SCREEN!!! RAH!!!

* Update mail-display.tsx

* auth

* email dispaly

* gmail connection

* env example resend add

* fix: env issues

* refactor: replace nanoid with randomUUID for ID generation in early access and update database schema to unify connection table

* refactor: update API endpoint for email connections and modify driver initialization for async support across mail routes

* feat: enhance Gmail OAuth flow and connection handling

- Update Google OAuth driver with expanded scopes and improved token management
- Modify callback route to handle user info extraction and connection creation more robustly
- Add unique constraint to email in connection table
- Improve error handling and logging in authentication process

* fix: improve error responses and connection handling in Gmail integration

- Enhance error messages when tokens or emails are missing.
- Update handling of Gmail connections in the API and user-related components

* feat: add default connection support and improve connection switching

- Add `defaultConnectionId` to user schema
- Implement PUT endpoint to set default connection for a user
- Update mail API routes to use dynamic provider and connection ID
- Enhance NavUser component with account switching functionality
- Modify hooks and auth logic to support default connection selection

* typo

* feat: integrate thread hook for email data loading in MailDisplay component

- Replace local email data state with useThread hook for improved loading management

* fix: improve mail route authorization with connection validation

- Add explicit check for connectionId in session
- Update database query to filter by both userId and connectionId
- Make connectionId optional in ParsedMessage type to support flexible connection handling

* privacy and tos

* linting

---------

Co-authored-by: Aj Wazzan <x_1337@outlook.com>
Co-authored-by: grim <75869731+vys69@users.noreply.github.com>
Co-authored-by: BlankParticle <blankparticle@gmail.com>
2025-02-12 21:56:07 -05:00
Dominik Koch
30615e04d0 feat(ratelimit): switch to upstash redis and middleware (#117)
Switches to redis (upstash) for ratelimiting, to future-proof the applications ratelimits. It also moves the ratelimit handling to the middleware rather than having it in the route.
2025-02-09 11:09:32 -05:00
Yared Yilma
ed3018ae8c feat: finish compose dialog persistence functionality (#95)
* feat: finish compose dialog persistence functionality

* fix: fix merge conflict

* fix: eslint warning and errors
2025-02-08 14:32:27 -05:00
Nizzy
19a9bf3e98 ui 2025-02-08 13:36:01 -05:00
Aman Jain
c34c0ed185 add ratelimit , protected early access route (#81) 2025-02-08 08:12:44 -05:00
its_Exey_
4d65f0adb3 feat: add test routes and state management for active/inactive links (#46)
* feat: add active and inactive state management

* feat: add test routes and state management for active/inactive links
2025-02-07 10:09:16 -05:00
Nizzy
13f3ea4b01 early access page, auth page 2025-02-07 01:25:26 -05:00
Argenis Cuellar
15a961a8b9 feat: better-auth implementation with drizzle (#17)
* feat: better-auth implementation

* feat: added signout

* feat: added conditional sign in or signout button

* chore: updated sign in description

* feat: added conditional log in rendering

* Update example.env

Co-authored-by: Praash <99237795+Praashh@users.noreply.github.com>

* chore: remove param

* chore: lint and format

* chore: rename env example file

* fixes

---------

Co-authored-by: Praash <99237795+Praashh@users.noreply.github.com>
Co-authored-by: Nizzy <nizabizaher@gmail.com>
2025-02-06 20:39:45 -05:00
Rahul Mishra
2c00726c00 chore: add prettier, format and add CI (#34) 2025-02-06 14:17:20 -05:00
Manoj Dasari
6a8cba3e16 chore: refactored the code for better maintainability 2025-02-06 17:56:18 +05:30
Nizzy
9a240648a0 initial commit 2025-02-02 17:26:24 -05:00