Commit Graph

77 Commits

Author SHA1 Message Date
b8e1671248 test: add HTTP integration tests for catalog endpoints
Tests cover directory and file operations:
- List, fetch, create directories
- Fetch, download, rename files
- Trash and permanent delete (single and bulk)
- 404 for non-existent resources
- Verification that permanent deletes return 404

Directory rename test skipped due to VFS bug with blob
key resolution for directories.

Co-authored-by: Ona <no-reply@ona.com>
2026-01-04 23:54:30 +00:00
86e90af5c2 feat(backend): hide drive uuid and return root dir 2026-01-04 17:48:51 +00:00
21a751c10b test(backend): add http test for organization pkg 2026-01-03 18:47:12 +00:00
55143bbbd6 test(backend): add http test for auth 2026-01-03 18:21:23 +00:00
04698bcbf9 test(backend): add http test for registration 2026-01-03 16:18:42 +00:00
0002affaff test(backend): move tests to *_test pkg 2026-01-03 16:07:38 +00:00
ceb4c9f23c feat(backend): return "my" slug for personal org 2026-01-02 23:16:00 +00:00
37056db77f feat(backend): add individual org query endpoint 2026-01-02 19:31:25 +00:00
efd93f099e feat(backend): add list orgs endpoint 2026-01-02 16:57:20 +00:00
b40a80e4b6 feat(backend): return list of orgs in login resp 2026-01-02 15:57:35 +00:00
490699e113 feat(backend): introduce org namespaced api routes 2026-01-02 00:22:08 +00:00
ebcdcf2cea feat(backend): add organization slugs 2026-01-01 23:21:35 +00:00
3953fa8232 test(backend): sharing service tests 2026-01-01 22:34:17 +00:00
488168969d test(backend): registration service tests 2026-01-01 19:14:35 +00:00
51d70ceca4 test(backend): drive service tests 2026-01-01 19:14:23 +00:00
30d1e1e40d test(backend): user service tests 2026-01-01 19:00:06 +00:00
4ca8aec7d6 test(backend): organization service tests 2026-01-01 18:59:57 +00:00
6366cf985a test(backend): account service tests 2026-01-01 18:59:44 +00:00
12ed13b2d6 fix: wrong sql query for drive listing 2026-01-01 18:35:59 +00:00
88492dd876 refactor: account model overhaul 2026-01-01 18:29:52 +00:00
294fadfe4c fix(backend): optional auth ret 401 if token invalid 2025-12-29 01:01:28 +00:00
a956481215 fix(backend): move node wrong conflict filtering 2025-12-29 00:36:27 +00:00
c3a173de66 fix(backend): remove unused secure cookie config 2025-12-29 00:36:08 +00:00
f4620dff3a fix(backend): optional auth for share routes
Add auth.NewOptionalAuthMiddleware to run auth only when credentials are
present (Authorization header or auth cookies). Use it on share
consumption routes so public shares remain accessible unauthenticated,
while authenticated callers can resolve account-scoped shares. This
prevents a panic in share middleware when accountId was provided but the
request wasn’t authenticated (nil reqctx.AuthenticatedUser type
assertion).
2025-12-29 00:07:44 +00:00
51f1add4f0 fix(backend): Complete completed upload should clear pending 2025-12-28 23:52:22 +00:00
0933c19c5e fix(backend): HKR rets wrong deletion keys 2025-12-28 23:48:20 +00:00
fdfad036f8 fix(backend): CreateShare wrong common parent check 2025-12-28 23:43:17 +00:00
19a870a4e7 feat(backend): includesExpired for file/dir shares
add includesExpired query param for file/dir shares query
2025-12-28 22:12:55 +00:00
0e8c616489 docs(backend): document PATCH share endpoint 2025-12-28 19:06:51 +00:00
e3d78497e8 feat(backend): impl share expiry update 2025-12-28 19:01:53 +00:00
eca3b95c3e fix: resolving path for shared item leaks parent info
when an item is shared, their path should stop at the closest directory
that is shared. eg if file c is in shared dir b which is in private dir
a, its public facing path should be b/c, not a/b/c. internally, the real
path is still a/b/c.
2025-12-27 20:25:54 +00:00
1a1fc4743a feat: initial sharing impl 2025-12-27 19:27:08 +00:00
1024f36a9f fix: vfs list children not handling empty rows 2025-12-18 00:47:41 +00:00
f2cce889af impl: dir content pagination 2025-12-17 22:59:18 +00:00
6fb49ba61a feat: ret dir item parent id in dir content query 2025-12-16 01:47:00 +00:00
3686f87377 feat: suppor tokenDelivery field for account reg 2025-12-16 00:41:30 +00:00
3b37a8d189 fix: auto refresh if access token not in cookies 2025-12-15 00:38:23 +00:00
05edf69ca7 refactor: initial frontend wiring for new api 2025-12-15 00:13:10 +00:00
528aa943fa feat: migrate to OpenAPI 3.0 with oneOf unions
- Add swagger2openapi conversion step to generate OpenAPI 3.0
- Add patch-openapi.ts script to inject oneOf discriminated unions
- Update docs server to embed static openapi.json
- Update moveItemsToDirectory response to use oneOf for items
- Add docs/README.md documenting the pipeline
- Use bun instead of node for scripts
2025-12-14 16:43:05 +00:00
7b13326e22 docs: add OpenAPI documentation with Scalar UI
- Add swaggo annotations to all HTTP handlers
- Add Swagger/OpenAPI spec generation with swag
- Create separate docs server binary (drexa-docs)
- Add Makefile with build, run, and docs targets
- Configure Scalar as the API documentation UI

Run 'make docs' to regenerate, 'make run-docs' to serve.
2025-12-13 22:44:37 +00:00
918b85dfd5 feat: support bulk file move in same dir 2025-12-13 19:24:54 +00:00
085bbd4ffe fix: use db tx when creating directory 2025-12-05 00:55:41 +00:00
1c9e049448 fix: handle create dir conflict in api 2025-12-05 00:38:31 +00:00
3ea12cf51a feat: add query param to include dir path in query 2025-12-05 00:38:05 +00:00
1bedafd3de feat: add /users/me route 2025-12-04 00:49:59 +00:00
539b15dcb7 refactor: introduce reqctx pkg for request context 2025-12-04 00:48:43 +00:00
57167d5715 feat: impl cookie-based auth tokens exchange
implement access/refresh token exchange via cookies as well as automatic
access token refresh
2025-12-04 00:26:20 +00:00
d4c4e84fbf feat: use argon2id to hash refresh tokens in db 2025-12-03 23:05:00 +00:00
589158a8ed feat: impl directory endpoints 2025-12-03 00:56:44 +00:00
3a6fafacca feat: impl refresh token rotation 2025-12-03 00:07:39 +00:00