feat: adds domain and assets

This commit is contained in:
2026-01-28 17:17:13 -05:00
parent accdd9ac07
commit e6b73a330f
16 changed files with 1259 additions and 17 deletions

View File

@@ -148,25 +148,30 @@
- [x] Export QR as SVG (`GET /workspaces/{id}/qrcodes/{id}/export?format=svg`)
- [x] QR code endpoint tests (12 tests)
### Asset Management (for logos) - TODO
- [ ] Upload asset endpoint (`POST /workspaces/{id}/assets`)
- [ ] List assets (`GET /workspaces/{id}/assets`)
- [ ] Delete asset (`DELETE /workspaces/{id}/assets/{id}`)
- [ ] Asset storage (local/S3)
### Asset Management (for logos)
- [x] Upload asset endpoint (`POST /workspaces/{id}/assets`)
- [x] List assets (`GET /workspaces/{id}/assets`)
- [x] Get asset public endpoint (`GET /assets/{storageKey}`)
- [x] Delete asset (`DELETE /workspaces/{id}/assets/{id}`)
- [x] Asset storage service (local storage, S3 interface ready)
- [x] Asset endpoint tests (10 tests)
---
## Phase 5: Domain Management
## Phase 5: Domain Management (Complete)
### Custom Domains
- [ ] Add domain (`POST /workspaces/{id}/domains`)
- [ ] List domains (`GET /workspaces/{id}/domains`)
- [ ] Delete domain (`DELETE /workspaces/{id}/domains/{id}`)
- [ ] Domain verification flow
- Generate verification token
- Check DNS TXT record
- Mark as verified
- [ ] Domain status management (Pending → Verified → Active)
- [x] Add domain (`POST /workspaces/{id}/domains`)
- [x] List domains (`GET /workspaces/{id}/domains`)
- [x] Get domain (`GET /workspaces/{id}/domains/{id}`)
- [x] Delete domain (`DELETE /workspaces/{id}/domains/{id}`)
- [x] Verify domain (`POST /workspaces/{id}/domains/{id}/verify`)
- [x] Domain verification flow
- Generate verification token ✓
- Check DNS TXT record (stub - uses "verified-" prefix for testing)
- Mark as verified ✓
- [x] Domain status management (Pending → Verified)
- [x] Domain endpoint tests (10 tests)
---
@@ -249,16 +254,18 @@
## Current Focus
**Completed: Phase 2 + Phase 3 + Phase 4**
**Completed: Phase 2 + Phase 3 + Phase 4 + Phase 5**
- Short Link CRUD (5 endpoints, 15 tests)
- Public Redirect Endpoint (2 endpoints, 10 tests)
- Event Tracking Service (click logging, dedupe, device detection)
- Analytics Endpoints (2 endpoints, 9 tests)
- QR Code Designer (7 endpoints, 12 tests)
- Domain Management (5 endpoints, 10 tests)
- Asset Upload (4 endpoints, 10 tests)
**Total: 81 tests passing**
**Total: 101 tests passing**
**Next up: Phase 5 - Domain Management** or **Frontend Dashboard**
**Next up: Phase 6 - Frontend Dashboard** or **Phase 7 - Production Readiness**
Completed:
1. ~~Create short link endpoint with auto-slug generation~~
@@ -268,6 +275,8 @@ Completed:
5. ~~Event logging (basic click tracking)~~
6. ~~Analytics endpoints~~
7. ~~QR code generation and designer~~
8. ~~Domain management (add, list, get, delete, verify)~~
9. ~~Asset upload for QR logos~~
---