Commit Graph

37 Commits

Author SHA1 Message Date
acfe1523df refactor: wrap all errors in ConvexError
- Update error() helper to throw ConvexError instead of plain objects
- Add isApplicationConvexError() type guard for client-side error checking
- Fix Vite config to include convex/values in optimizeDeps for proper instanceof checks
- Update error handling to check ConvexError wrapper and extract data property

This ensures all application errors are properly typed and can be identified
using instanceof ConvexError on the client side.

Co-authored-by: Ona <no-reply@ona.com>
2025-11-08 17:56:28 +00:00
9b8367ade4 feat: add basic storage usage tracking 2025-11-02 18:12:33 +00:00
a8c7a8f60b feat: basic recent file browsing 2025-10-28 20:26:28 +00:00
af5d887bd1 fix: update last accessed at on open file 2025-10-21 23:54:25 +00:00
6234c5efd3 feat: initial impl of file proxy 2025-10-21 23:45:04 +00:00
0307cbbf61 style[convex]: reorganize imports 2025-10-20 00:17:50 +00:00
d0893e13be feat[convex]: api key auth support 2025-10-20 00:17:41 +00:00
cd9dee9371 refactor: add import maps for generated code
- Add export mappings in @fileone/convex package.json for cleaner imports
- Map @fileone/convex/dataModel to _generated/dataModel.d.ts
- Map @fileone/convex/api to _generated/api.js
- Map @fileone/convex/server to _generated/server.js
- Update all imports across packages/convex and apps/drive-web
- Maintain backward compatibility with _generated/* exports

Co-authored-by: Ona <no-reply@ona.com>
2025-10-18 19:32:05 +00:00
25796ab609 refactor: migrate to vite and restructure repo
Co-authored-by: Ona <no-reply@ona.com>
2025-10-18 14:02:20 +00:00
83a5f92506 feat: implement comprehensive access control system
- Add authorizedGet function for secure resource access
- Implement ownership verification for all file/directory operations
- Use security through obscurity (not found vs access denied)
- Optimize bulk operations by removing redundant authorization checks
- Move generateFileUrl to filesystem.ts as fetchFileUrl with proper auth
- Ensure all database access goes through authorization layer

Co-authored-by: Ona <no-reply@ona.com>
2025-10-16 21:43:23 +00:00
b802cb5aec feat: add last access time to files 2025-10-16 20:56:16 +00:00
03d36a2c80 feat: implement empty trash 2025-10-12 14:31:02 +00:00
bf2087cded refactor: migrate betterauth to local install
also added a login page

Co-authored-by: Ona <no-reply@ona.com>
2025-10-05 23:25:20 +00:00
f7bc5fd958 fix: root directory creation
Co-authored-by: Ona <no-reply@ona.com>
2025-10-05 22:14:44 +00:00
483aa19351 refactor: use betterauth instead of workos 2025-10-05 20:21:45 +00:00
b654f50ddd fix: broken dir path breadcrumb links 2025-10-05 15:01:55 +00:00
33b235517c feat: impl file/dir restoration from trash 2025-10-05 14:29:45 +00:00
19e52feebb impl: permanent file deletion
implement trash page and permanent file deletion logic

Co-authored-by: Ona <no-reply@ona.com>
2025-10-05 00:41:59 +00:00
c2d9010508 feat: add trash page 2025-10-03 23:23:05 +00:00
0e686a1f85 refactor[db]: store time as unix ms
Co-authored-by: Ona <no-reply@ona.com>
2025-10-03 21:23:51 +00:00
c6d346394c feat: impl multi file deletion support 2025-09-28 15:45:49 +00:00
3dfcdd84cf feat: new directory dialog
repalces the new item table row
2025-09-26 23:04:02 +00:00
56fb2aa24f fix: file/dir drag and drop 2025-09-26 22:20:30 +00:00
30027ae159 feat: check for name conflict on file/dir move
Co-authored-by: Ona <no-reply@ona.com>
2025-09-25 23:12:13 +00:00
8062fdb7f3 wip: directory/file move name conflict check 2025-09-21 22:24:24 +00:00
29eab87c71 feat: impl multi file/dir moving
Co-authored-by: Ona <no-reply@ona.com>
2025-09-21 17:03:50 +00:00
19535396ad fix: directory table multi select 2025-09-21 15:12:05 +00:00
7eefe2b96e feat: allow file drop on path breadcrumb 2025-09-20 23:54:27 +00:00
0f5b1f79ff refactor: directory path handling
intsead of storing path as field in directories table, it is derived on demand, because it makes moving directories a heck lot eaiser

Co-authored-by: Ona <no-reply@ona.com>
2025-09-20 23:23:28 +00:00
d6b693b54b feat: basic file drag and drop 2025-09-20 22:25:01 +00:00
367e248062 feat: impl image preview dialog 2025-09-20 19:55:20 +00:00
4dec5e5bb5 feat: make file upload dir id required 2025-09-19 23:17:13 +00:00
4812fcc0a2 refactor: top level dir + moved route
create a root directory entry in table for each user and move file browser under /directories/$id
2025-09-19 23:01:44 +00:00
9fbd5e678a feat: impl file rename 2025-09-18 00:14:16 +00:00
44ce32fd84 feat: basic directory navigation 2025-09-17 00:04:12 +00:00
c7fb40e8eb refactor: use path util 2025-09-16 23:18:53 +00:00
68ca8cbccd refactor: move convex into packages 2025-09-16 23:17:01 +00:00