Commit graph

77 commits

Author SHA1 Message Date
senke
c85d7ffaa3 [INT-AUTH-002] Remove duplicate auth store - migrate to features/auth/store/authStore.ts 2025-12-26 09:11:46 +01:00
senke
6bb5cccdfa [INT-API-004] Add request timeout configuration per endpoint type 2025-12-25 22:42:56 +01:00
senke
936ed41619 [INT-API-003] Standardize error handling across all services 2025-12-25 22:42:07 +01:00
senke
a83adf936b [INT-TYPE-008] Validate AuthResponse matches backend exactly 2025-12-25 22:39:41 +01:00
senke
56d872f260 [INT-TYPE-005] Create PlaylistVisibility enum aligned with backend 2025-12-25 22:36:51 +01:00
senke
c7b46be087 [INT-TYPE-004] Create TrackStatus enum aligned with backend 2025-12-25 22:36:20 +01:00
senke
9508adefd9 [INT-TYPE-003] Standardize Playlist.id to string everywhere 2025-12-25 22:35:38 +01:00
senke
65fdf68efc [INT-TYPE-002] Standardize Track.id to string everywhere 2025-12-25 22:34:55 +01:00
senke
d0703b5946 [INT-TYPE-001] Standardize User.id to string everywhere 2025-12-25 22:33:16 +01:00
senke
9f9edd370a [FE-TEST-011] test: Add integration tests for playlist management
- Enhanced existing integration tests for playlist management
- Added 6 new comprehensive tests covering:
  - Complete playlist creation flow with CreatePlaylistDialog
  - Complete playlist editing flow with PlaylistForm
  - Error handling for creation and update
  - Form rendering and validation

Tests focus on end-to-end user interactions with playlist forms
and services. Fixed component references and ID types.

Phase: PHASE-5
Priority: P2
Progress: 248/267 (92.88%)
2025-12-25 17:47:11 +01:00
senke
ed2b82ec5a [FE-TEST-010] test: Add integration tests for track upload flow
- Created comprehensive integration tests for complete track upload flow
- Added 11 tests covering:
  - Complete upload flow with valid audio file
  - Upload with metadata using trackApi
  - Upload progress tracking
  - Error handling (validation, network, server, quota errors)
  - Async upload with status polling
  - Retryable errors

All 11 tests pass. Tests cover end-to-end upload functionality using
trackService and trackApi services.

Phase: PHASE-5
Priority: P2
Progress: 247/267 (92.51%)
2025-12-25 17:36:08 +01:00
senke
cae1c7c8cd [FE-TEST-009] test: Add integration tests for auth flow
- Enhanced existing integration tests with comprehensive flow coverage
- Added 10 new tests for complete authentication flows:
  - Full login flow with form interaction
  - Full registration flow with form interaction
  - Forgot password flow
  - Reset password flow
  - Form validation and error handling
  - Navigation between auth pages
  - Remember me functionality
  - Email verification flow

All 30 tests pass. Tests cover end-to-end user interactions with forms,
validation, navigation, and error handling scenarios.

Phase: PHASE-5
Priority: P2
Progress: 246/267 (92.13%)
2025-12-25 17:27:19 +01:00
senke
08c8f674f2 [FE-TEST-008] test: Add component tests for player components
- Fixed failing test in AudioPlayer.test.tsx (removed non-existent text assertion)
- Added 8 additional tests for queue functionality and edge cases
- Tests cover queue navigation, compact mode, error/loading states
- All 217 tests pass across all player components

Comprehensive coverage for:
- Audio player component
- Queue management and navigation
- All control components (play/pause, next/previous, volume, repeat/shuffle)

Phase: PHASE-5
Priority: P2
Progress: 245/267 (91.76%)
2025-12-25 17:23:39 +01:00
senke
10d77e36da [FE-TEST-007] test: Add component tests for playlist components
- Created comprehensive tests for CollaboratorManagement component
- Created comprehensive tests for PlaylistHeader component
- Created comprehensive tests for AddCollaboratorModal component
- Created comprehensive tests for PlaylistFollowButton component

All 51 tests pass. These components are essential for playlist detail and collaboration functionality.

Phase: PHASE-5
Priority: P2
Progress: 244/267 (91.39%)
2025-12-25 17:21:59 +01:00
senke
eea399fb11 [FE-TEST-006] test: Add component tests for track components
- Created comprehensive tests for CommentThread component
- Created comprehensive tests for ShareDialog component

All 30 tests pass. These components are used in TrackDetailPage for comments and sharing functionality.

Phase: PHASE-5
Priority: P2
Progress: 243/267 (91.01%)
2025-12-25 17:18:28 +01:00
senke
815d449c3d [FE-TEST-005] test: Add component tests for auth components
- Created comprehensive tests for ForgotPasswordForm component
- Created comprehensive tests for AuthButton component
- Created comprehensive tests for AuthFormField component
- Created comprehensive tests for AuthErrorMessage component
- Created comprehensive tests for TwoFactorVerify component

All 48 tests pass. Covers all auth components that were missing tests.

Phase: PHASE-5
Priority: P2
Progress: 242/267 (90.64%)
2025-12-25 17:12:50 +01:00
senke
5b0a333bad [FE-TEST-001] fe-test: Add unit tests for API services
- Created comprehensive unit tests for marketplaceService (11 tests)
- Created comprehensive unit tests for profileService (12 tests)
- Created comprehensive unit tests for avatarService (9 tests)
- Created comprehensive unit tests for 2fa-service (8 tests)
- All 40 tests pass successfully
- Tests cover success cases, error handling, edge cases, and validation scenarios

Files modified:
- apps/web/src/services/marketplaceService.test.ts (new)
- apps/web/src/features/profile/services/profileService.test.ts (new)
- apps/web/src/features/profile/services/avatarService.test.ts (new)
- apps/web/src/services/2fa-service.test.ts (new)
- VEZA_COMPLETE_MVP_TODOLIST.json
2025-12-25 15:55:53 +01:00
senke
0425a3a504 [FE-TYPE-012] fe-type: Add type safety for hooks 2025-12-25 14:57:57 +01:00
senke
e296e8a88b [FE-TYPE-011] fe-type: Add type safety for stores 2025-12-25 14:54:40 +01:00
senke
aba18183b8 [FE-TYPE-001] fe-type: Fix all ID type mismatches
- Created ID normalization utility (idNormalization.ts) with:
  * normalizeId: Convert IDs to strings (handles number/string/null)
  * normalizeObjectIds: Recursively normalize IDs in objects
  * normalizeArrayIds: Normalize IDs in arrays of objects
  * Type guards for ID validation
- Updated stores/chat.ts to use normalization instead of manual String() conversions
- Fixed type definitions:
  * PlaylistAnalytics: playlistId number -> string
  * ImportPlaylistButton: playlistId number -> string
  * ExportPlaylistButton: playlistId number -> string
  * usePlaylistNotifications: lastNotificationId number -> string
- Removed unnecessary String() conversions in comparisons
- Comprehensive test suite (20 tests, all passing)
- Ensures all IDs are consistently strings (UUIDs) throughout the app
2025-12-25 14:27:28 +01:00
senke
7c11f838ad [FE-STATE-009] fe-state: Add state normalization
- Created state normalization utility (stateNormalization.ts) with functions:
  * normalize/denormalize for converting arrays to normalized state
  * addToNormalized, updateInNormalized, removeFromNormalized
  * Helper functions for working with normalized state
- Applied normalization to LibraryStore (items and favorites)
- Updated storeSelectors to convert normalized state to arrays
- Updated DashboardPage components to use new selectors
- Updated tests to work with normalized state structure
- Improved performance with O(1) lookups instead of O(n) array searches
2025-12-25 14:10:14 +01:00
senke
a350cddaa3 [FE-API-013] fe-api: Add error handling improvements 2025-12-25 13:20:07 +01:00
senke
99993e3acc [FE-API-012] fe-api: Add conversation service improvements 2025-12-25 13:15:39 +01:00
senke
3f2ef8a28c [FE-API-011] fe-api: Add roles service integration 2025-12-25 13:13:25 +01:00
senke
a0294eea23 [FE-API-010] fe-api: Add analytics service integration 2025-12-25 12:31:54 +01:00
senke
cb693b809d [FE-API-009] fe-api: Add notifications service integration 2025-12-25 12:29:29 +01:00
senke
43f8439923 [FE-API-008] fe-api: Add search service integration 2025-12-25 12:27:42 +01:00
senke
928927adaf [FE-COMP-019] fix: Correct TypeScript errors in TrackCard keyboard handlers 2025-12-25 12:11:38 +01:00
senke
b31d7e3e21 [FE-COMP-019] fe-comp: Add accessibility (a11y) improvements 2025-12-25 12:11:08 +01:00
senke
8b7a6aa308 [FE-COMP-017] fe-comp: Add playlist follow/unfollow button 2025-12-25 12:07:29 +01:00
senke
6d42a391e5 [FE-COMP-016] fe-comp: Add track like/unlike button 2025-12-25 12:04:49 +01:00
senke
420e22100c [FE-COMP-015] fix: Remove unused initialFollowerCount prop 2025-12-25 12:02:22 +01:00
senke
18be728c8d [FE-COMP-015] fix: Correct TypeScript errors in FollowButton 2025-12-25 12:01:57 +01:00
senke
6a65f3007a [FE-COMP-015] fe-comp: Add user follow/unfollow button 2025-12-25 12:00:19 +01:00
senke
9a229f1d81 [FE-COMP-012] fix: Remove unused refetchReplies variable 2025-12-25 11:52:13 +01:00
senke
f39c7f1aa7 [FE-COMP-012] fe-comp: Add comment system UI 2025-12-25 11:51:52 +01:00
senke
792616cf80 [FE-COMP-011] fe-comp: Add playlist collaborator management UI 2025-12-25 11:49:08 +01:00
senke
0b43465762 [FE-COMP-010] fe-comp: Add track upload component improvements 2025-12-25 11:47:22 +01:00
senke
3f5a4f5df3 [FE-COMP-006] fe-comp: Add pagination component to all list views 2025-12-25 11:36:48 +01:00
senke
4be1925173 [FE-PAGE-018] fe-page: Improve error pages (404, 500) 2025-12-25 11:30:50 +01:00
senke
67749f0f51 [FE-PAGE-015] fe-page: Add Analytics page 2025-12-25 11:25:06 +01:00
senke
891be91d86 [FE-API-007] fe-api: Add webhook service integration 2025-12-25 11:20:45 +01:00
senke
b1c1395c76 [FE-COMP-004] fe-comp: Add confirmation dialogs for destructive actions
- Created reusable ConfirmationDialog component for destructive actions
- Replaced native confirm() dialogs with ConfirmationDialog in ChatSidebar (leave room, delete room)
- Replaced native confirm() dialogs with ConfirmationDialog in RolesPage (delete role)
- Replaced Dialog with ConfirmationDialog in PlaylistActions (delete playlist)
- Replaced window.confirm() with ConfirmationDialog in SessionsPage (revoke session, revoke all sessions)
- All destructive actions now use consistent confirmation dialogs
- Confirmation dialogs include proper messaging, loading states, and variant support
- Improved UX with better visual feedback and clearer action descriptions
2025-12-24 14:38:55 +01:00
senke
0ff8055e68 [FE-COMP-003] fix: Add missing useAuthStore import 2025-12-24 14:34:19 +01:00
senke
9348d107cd [FE-COMP-003] fix: Add missing currentUser import in UserProfilePage 2025-12-24 14:34:10 +01:00
senke
56b8f7419c [FE-COMP-003] fix: Fix TypeScript errors in empty states
- Fixed isOwnProfile reference in UserProfilePage
- Fixed possibly undefined data in PlaylistList pagination
2025-12-24 14:34:00 +01:00
senke
47249693b3 [FE-COMP-003] fe-comp: Add empty states to all list views
- Created reusable EmptyState component with icon, title, description, and action support
- Improved empty state in PlaylistList with better messaging and icons
- Improved empty states in UserProfilePage for tracks and playlists tabs
- Added contextual messages based on whether viewing own profile or others
- Added helpful descriptions and icons to all empty states
- Empty states now provide clear guidance on what users can do next
- All list views now have consistent and helpful empty state messaging
2025-12-24 14:33:20 +01:00
senke
b3eb9cee17 [FE-PAGE-014] fe-page: Add Notifications page
- Created dedicated Notifications page with full notification management
- Added notification service with API integration (get, mark as read, mark all as read)
- Added filtering by status (all/unread/read) and type (message/track/mention/system/etc)
- Added mark as read functionality for individual notifications
- Added mark all as read functionality
- Added notification type icons and labels
- Added notification timestamps with relative time formatting
- Added notification links support for navigation
- Added empty states for no notifications
- Added loading and error states
- Integrated with backend notification APIs
- Added route /notifications to router
- Added lazy loading for NotificationsPage component
- Added visual distinction for unread notifications (badge, background)
- Added notification type badges
2025-12-24 13:22:31 +01:00
senke
c81408c4ca [FE-PAGE-013] fe-page: Add Search page
- Created dedicated Search page with unified search interface
- Added search functionality for tracks, playlists, and users
- Implemented tabs for filtering results by type (All/Tracks/Playlists/Users)
- Added search query debouncing for performance
- Added URL query parameter synchronization (q, type)
- Added pagination for each result type
- Added empty states for no query and no results
- Added loading states for all search operations
- Added error handling for search failures
- Integrated with existing search APIs (tracks, playlists, users)
- Added search service for user search API
- Added route /search to router
- Added lazy loading for SearchPage component
- Added result previews in All tab (6 items per type)
- Added View All buttons to navigate to specific tabs
2025-12-24 13:19:54 +01:00
senke
814443ae90 [FE-PAGE-012] fe-page: Complete Sessions page implementation
- Added user agent parser to extract device information (OS, browser, device type)
- Added device information display with formatted device details
- Added location information display (with support for private IP detection)
- Enhanced session cards with device type badges and detailed info
- Improved device icon selection based on device type (mobile/tablet/desktop)
- Added formatted device info display (OS, browser, versions)
- Added location display with MapPin icon
- Added device type badge (mobile/tablet/desktop)
- Improved visual hierarchy with better spacing and badges
- Maintained existing session management actions (revoke, revoke all)
2025-12-24 13:16:32 +01:00