Commit Graph

131 Commits

Author SHA1 Message Date
5cc13a34b2 chore: remove console log 2025-11-08 23:17:45 +00:00
879287f8bf feat: implement file cutting 2025-11-08 23:17:36 +00:00
ad99bca7fd style: rename unused param 2025-11-08 18:41:30 +00:00
b241f4e211 feat: add clear uploads button
add a clear upload button that is visible when there are upload errors

Co-authored-by: Ona <no-reply@ona.com>
2025-11-08 18:38:43 +00:00
027a315a04 style: apply biome formatting to config and generated files
- Convert spaces to tabs in tsconfig files
- Format CLI commands and prompts
- Update generated Convex files
- Format betterauth adapter and schema

Co-authored-by: Ona <no-reply@ona.com>
2025-11-08 18:03:32 +00:00
015524cd63 style: apply biome formatting to UI components
- Convert spaces to tabs for consistency
- Add 'type' modifier to React imports
- Format component code

Co-authored-by: Ona <no-reply@ona.com>
2025-11-08 18:03:26 +00:00
4ebb3fe620 style: format imports and code style
- Consolidate multi-line imports
- Apply consistent formatting

Co-authored-by: Ona <no-reply@ona.com>
2025-11-08 18:03:21 +00:00
b8c46217f7 chore: remove debug console.logs and add error handling
- Remove console.log statements from upload file dialog
- Add onError handler to display error toasts
- Update ErrorCode reference in use-file-drop

Co-authored-by: Ona <no-reply@ona.com>
2025-11-08 18:03:15 +00:00
94d6a22ab2 refactor: update remaining error imports to use ErrorCode
- Replace Err.Code with ErrorCode throughout convex model files
- Update error() function calls to use new signature
- Remove unused Err namespace imports

Co-authored-by: Ona <no-reply@ona.com>
2025-11-08 18:03:10 +00:00
f20f1a93c7 refactor: replace namespace import with direct type import
- Replace 'import type * as Err' with direct ApplicationErrorData import
- Update Err.ApplicationErrorData references to ApplicationErrorData

This improves code clarity and follows the project's import conventions.

Co-authored-by: Ona <no-reply@ona.com>
2025-11-08 17:56:42 +00:00
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
d2c09f5d0f feat: add ctx menu to recent file items 2025-10-29 00:00:52 +00:00
952a0e41b4 feat: add className prop to MiddleTruncatedText 2025-10-29 00:00:23 +00:00
8f194eec55 chore: remove console log 2025-10-28 20:26:35 +00:00
a8c7a8f60b feat: basic recent file browsing 2025-10-28 20:26:28 +00:00
7fe5184e81 fix: remove file preview dialog in trash page 2025-10-28 19:58:24 +00:00
3209ce1cd2 chore: remove unused import 2025-10-21 23:58:18 +00:00
af5d887bd1 fix: update last accessed at on open file 2025-10-21 23:54:25 +00:00
a862442979 chore: remove bun dev line elision 2025-10-21 23:45:35 +00:00
6234c5efd3 feat: initial impl of file proxy 2025-10-21 23:45:04 +00:00
6eded27121 feat[cli]: add run script for cli 2025-10-20 00:18:33 +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
a4544a3f09 feat[cli]: new admin cli
new admin cli for general admin task. only supports api key generation
for now
2025-10-20 00:15:42 +00:00
14e2ee1e28 feat[auth]: custom hasher & api key validation
Co-authored-by: Ona <no-reply@ona.com>
2025-10-20 00:14:50 +00:00
e58caa6b16 feat: auth pkg and file proxy scaffold
Co-authored-by: Ona <no-reply@ona.com>
2025-10-19 17:05:15 +00:00
c0f852ad35 fix: directory table optimistic update
fix optimistic update not working for directory table and trash table
2025-10-18 22:58:23 +00:00
efd4eefa49 fix: trash page breadcrumb
Co-authored-by: Ona <no-reply@ona.com>
2025-10-18 20:14:13 +00:00
1ae649850a feat: make dir path breadcrumb generic 2025-10-18 19:55:14 +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
49b76934b2 feat: show upload success in upload dialog title 2025-10-13 22:55:25 +00:00
2ed8be94f1 feat: upload file dialog err handling & new flow
- add basic err handling to upload file dialog.
- rework the upload flow. now, on all successful uploads, the dialog
won't auto disappear. if some fails, the dialog will allow for retry.
2025-10-12 23:48:21 +00:00
b17de812b9 feat: show in progress upload in upload btn 2025-10-12 17:09:42 +00:00
0c7e4c43e7 feat: decouple btn loading from disabled state 2025-10-12 17:09:11 +00:00
03d36a2c80 feat: implement empty trash 2025-10-12 14:31:02 +00:00
5eff2fa756 fix: upload dialog title in root dir 2025-10-12 13:22:59 +00:00
0e460370da feat: initial bulk file upload dialog 2025-10-12 00:43:31 +00:00
bcc0f9f5e2 fix: duplicate outlet in _authenticated 2025-10-12 00:43:05 +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
1fcdaf4f86 feat: improve sign up form err handling 2025-10-05 20:49:41 +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
4978a173a8 feat: global progress indicator in sidebar
add a global progress indicator in the dashboard sidebar that can be
used to indicate progress for any background task

Co-authored-by: Ona <no-reply@ona.com>
2025-10-05 14:17:12 +00:00
4686744fd0 feat: add file preview in trash page 2025-10-05 13:29:17 +00:00