Commit graph

67 commits

Author SHA1 Message Date
senke
66d046b28e [FIX] ISSUE-001 & ISSUE-002: Fix authentication workflow for MVP
ISSUE-001: Auto-verify email on registration
- Set IsVerified: true in Register() to allow immediate login
- Removes blocking email verification requirement for MVP

ISSUE-002: Generate tokens in Register
- Modified Register() signature to return (*User, *TokenPair, error)
- Added JWT token generation after user creation
- Store refresh token in database
- Updated handlers to use returned tokens
- Added nil checks for JWTService and refreshTokenService

Changes:
- veza-backend-api/internal/core/auth/service.go
- veza-backend-api/internal/handlers/auth.go
- veza-backend-api/internal/core/auth/handler.go
- REAL_ISSUES_TODOLIST.json

Note: Backend needs to be recompiled and restarted for changes to take effect.
2026-01-04 01:44:13 +01:00
senke
7294985ac0 [TEST] MVP integration tests executed - 2/28 API passed, 0/20 E2E passed, 3 bugs found
- API Tests: 2 passed, 1 failed, 25 skipped (blocked by auth issues)
- E2E Tests: 0 passed, 1 failed (global setup timeout), 19 skipped
- Bugs found: 3 (2 critical, 1 high)
  - BUG-001: Auth register endpoint format issue (CRITICAL)
  - BUG-002: E2E global setup timeout (CRITICAL)
  - BUG-003: Token extraction in test script (HIGH)

Files added:
- MVP_TEST_REPORT.md: Complete test report with bug analysis
- MVP_BUGS_TODOLIST.json: Detailed bug tracking
- scripts/test-mvp-api.sh: API test suite
- scripts/setup-mvp-test-env.sh: Environment setup
- apps/web/e2e/mvp-integration.spec.ts: E2E test suite
- TESTS_MVP_README.md: Complete documentation
2026-01-04 01:44:13 +01:00
senke
81918d35ba [INT-TEST-002] Create E2E test for CRUD operations 2025-12-26 09:32:00 +01:00
senke
fd1fc4346b [INT-TEST-001] Create E2E test for complete auth flow 2025-12-26 09:31:16 +01:00
senke
7f4757d2db [FE-TEST-018] fe-test: Add error boundary tests 2025-12-25 18:47:45 +01:00
senke
547f8dec61 [FE-TEST-017] fe-test: Add mobile responsive tests 2025-12-25 18:47:07 +01:00
senke
42024abf87 [FE-TEST-016] fe-test: Add cross-browser tests 2025-12-25 18:46:16 +01:00
senke
8dba321e53 [FE-TEST-015] fe-test: Add performance tests 2025-12-25 18:45:44 +01:00
senke
75f91f317b [FE-TEST-014] fe-test: Add visual regression tests 2025-12-25 18:45:01 +01:00
senke
e9e1902107 [FE-TEST-012] test: Add E2E tests for critical user flows
- Created comprehensive E2E tests for critical user flows
- Added 3 complete end-to-end test scenarios:
  1. Complete user journey (Login → Upload → Create Playlist)
  2. Login → Create Playlist (no upload)
  3. Login → Upload Track (no playlist)

Tests use Playwright and cover the most critical user journeys.
Tests require development server to be running (npm run dev).

Phase: PHASE-5
Priority: P2
Progress: 249/267 (93.26%)
2025-12-25 17:48:58 +01:00
senke
d421377255 [BE-API-013] be-api: Implement track comments endpoints
- Added GET /tracks/:id/comments route (public)
- Added POST /tracks/:id/comments route (protected)
- Added DELETE /comments/:id route (protected)
- Initialized CommentService and CommentHandler in setupTrackRoutes
- Standardized API responses in comment handlers
- Handlers use RespondSuccess and RespondWithAppError

Phase: PHASE-2
Priority: P1
Progress: 22/267 (8.2%)
2025-12-24 11:19:05 +01:00
senke
b6bdf82d2b [BE-SEC-001] security: Fix ownership verification for user profile updates
- Verified RequireOwnershipOrAdmin middleware is correctly applied to PUT /users/:id
- Added integration tests for ownership verification
- Test: user cannot update another user's profile (403 Forbidden)
- Test: admin can update any profile (200 OK)
- Test: user can update own profile (200 OK)
- All tests pass

Phase: PHASE-1
Priority: P0
Progress: 1/267 (0.4%)
2025-12-23 01:36:04 +01:00
senke
4d8c019abf fix(MVP-006): Standardize environment variable names (VITE_API_BASE_URL → VITE_API_URL) 2025-12-22 22:56:37 +01:00
senke
6d036133ca batch 1 2025-12-22 22:00:50 +01:00
senke
a2b8d1dc47 fix(frontend): stabilize architecture (router, lazy loading, build, auth) 2025-12-17 09:15:45 -05:00
senke
ae1c9c2795 stabilizing apps/web: FIRST BATCH 2025-12-17 08:07:35 -05:00
okinrev
8d6ce72bb2 report generation and future tasks selection 2025-12-08 19:57:54 +01:00