Commit graph

172 commits

Author SHA1 Message Date
senke
b1cc0f4b31 [FE-TYPE-014] fe-type: Add strict TypeScript mode 2025-12-25 15:04:01 +01:00
senke
5edc0f39f8 [FE-TYPE-013] fe-type: Add type safety for components 2025-12-25 15:00:35 +01:00
senke
fca24bf64b [FE-TYPE-012] fe-type: Add type safety for hooks 2025-12-25 14:57:57 +01:00
senke
e313a5ca1f [FE-TYPE-011] fe-type: Add type safety for stores 2025-12-25 14:54:40 +01:00
senke
8e5826d2ca [FE-TYPE-010] fe-type: Add type safety for API client
- Created fully typed API client wrapper (typedClient.ts):
  * TypedApiClient interface with fully typed methods
  * typedApiClient implementation wrapping apiClient
  * TypedRequestConfig extending InternalAxiosRequestConfig
  * TypedApiRequestBuilder class for type-safe requests
- Added helper types:
  * ApiResponseData: Extract data from ApiResponse
  * UnwrappedApiResponse: Remove ApiResponse wrapper
- Added helper functions:
  * createTypedRequest: Create typed request builder
  * isApiResponseWrapper: Type guard for ApiResponse
  * extractApiData: Extract data from response
- Ensures full type safety for all API client methods
2025-12-25 14:48:35 +01:00
senke
bc187563a5 [FE-TYPE-009] fe-type: Add type definitions for query params
- Created comprehensive query parameter types (queryParams.ts):
  * Pagination: PaginationQueryParams
  * Sorting: SortQueryParams
  * Search: SearchQueryParams, TrackSearchQueryParams, PlaylistSearchQueryParams, UserSearchQueryParams
  * Lists: TrackListQueryParams, PlaylistListQueryParams, ConversationListQueryParams, MessageListQueryParams
  * Filters: LibraryQueryParams, MarketplaceQueryParams, NotificationQueryParams, AuditLogQueryParams
  * Analytics: AnalyticsQueryParams
  * Auth: ResetPasswordQueryParams, VerifyEmailQueryParams, OAuthCallbackQueryParams
  * Utility: ShareQueryParams, EmbedQueryParams, AdminQueryParams, SettingsQueryParams
- Added helper functions: parseQueryParams, buildQueryString, convertQueryParams
- Added parsing helpers: parsePaginationParams, parseBooleanParam, parseNumberParam
- Ensures type safety for all URL query string handling
2025-12-25 14:46:56 +01:00
senke
d0239fa505 [FE-TYPE-008] fe-type: Add type definitions for route params
- Created comprehensive route parameter types (routes.ts):
  * Detail pages: TrackDetailParams, PlaylistDetailParams, UserProfileParams
  * Chat: ConversationDetailParams, MessageDetailParams
  * Settings: SessionDetailParams, SettingsParams
  * Admin: RoleDetailParams, AuditLogDetailParams, AdminParams
  * Auth: ResetPasswordParams, VerifyEmailParams, OAuthCallbackParams
  * Search/Filter: SearchParams, LibraryParams, MarketplaceParams
  * Generic: IdRouteParams, SlugRouteParams, PaginationParams, FilterParams
- Added type guards: hasIdParam, hasUsernameParam
- Added helper functions: extractRouteParams, extractQueryParams
- Ensures type safety for all route navigation and params
2025-12-25 14:45:10 +01:00
senke
d7563790f5 [FE-TYPE-007] fix: Correct profileSchema import in forms.ts 2025-12-25 14:43:54 +01:00
senke
085e90d8ea [FE-TYPE-007] fe-type: Add type definitions for form data
- Created comprehensive form data types (forms.ts):
  * Authentication: LoginFormData, RegisterFormData, ForgotPasswordFormData, ResetPasswordFormData
  * Profile: ProfileFormData
  * Content: PlaylistFormData, TrackUploadFormData, TrackEditFormData, CommentFormData
  * Utility: SearchFormData, SettingsFormData, ContactFormData, FeedbackFormData
  * Actions: ReportFormData, ShareFormData, InviteFormData, BulkActionFormData
  * Import/Export: ImportFormData, ExportFormData
  * Generic: FormField, FormState, FormValidationResult
- All types use Zod schema inference where applicable
- Ensures type safety for all form inputs and validation
2025-12-25 14:43:13 +01:00
senke
4ced588a6a [FE-TYPE-006] fe-type: Add type definitions for WebSocket messages
- Created comprehensive WebSocket message types (websocket.ts):
  * Chat messages: ChatMessageEvent, TypingIndicatorEvent, ReadReceiptEvent
  * User events: UserJoinedEvent, UserLeftEvent, ConversationUpdatedEvent
  * Outgoing requests: SendMessageRequest, JoinConversationRequest, etc.
  * Playback/streaming: PlaybackStateEvent, SubscribePlaybackRequest
  * Notifications: NotificationEvent
  * Errors: WebSocketErrorEvent
  * Ping/Pong: PingMessage, PongMessage
- Created union types: IncomingWebSocketMessage, OutgoingWebSocketMessage
- Added type guards for runtime validation
- Ensures type safety for all WebSocket communications
2025-12-25 14:42:04 +01:00
senke
1f094ebd22 [FE-TYPE-005] fe-type: Add type definitions for all backend DTOs
- Created dto.ts with all backend DTO types:
  * RegisterRequest, RegisterResponse
  * LoginRequest, LoginResponse
  * UserResponse, TokenResponse
  * RefreshRequest, ResendVerificationRequest
  * ValidationError, ValidationErrors
- Updated api.ts to match backend DTOs:
  * Added password_confirm to RegisterRequest
  * Added remember_me to LoginRequest
  * Added requires_2fa to AuthResult/LoginResponse
  * Added value field to ValidationError details
- All types now match backend Go structs exactly
- Ensures type safety between frontend and backend
2025-12-25 14:40:35 +01:00
senke
71fe4d452d [FE-TYPE-004] fe-type: Add type guards for runtime type checking
- Created comprehensive type guard functions (typeGuards.ts) for:
  * User, Track, Playlist, Conversation, Message
  * Session, AuditLog, Notification
  * ApiError, ApiResponse, PaginationData
  * Arrays of all entity types
- Added utility type guards:
  * isUUID, isEmail, isISO8601Date, isURL
  * isNonEmptyString, isPositiveNumber, isNonNegativeNumber
  * isPlainObject, isArrayOf, isNotNull, isDefined
  * isNumber, isBoolean, isString
- Enables safe type narrowing in TypeScript
- Improves runtime type safety throughout the application
- Comprehensive test suite (44 tests, all passing)
- Allows TypeScript to narrow types safely at runtime
2025-12-25 14:38:55 +01:00
senke
e5f842c527 [FE-TYPE-003] fe-type: Add Zod schemas for all API requests
- Created comprehensive Zod schemas (apiRequestSchemas.ts) for:
  * LoginRequest, RegisterRequest, CreateUserRequest
  * UpdateUserRequest, UpdateProfileRequest
  * SendMessageRequest, UpdateMessageRequest
  * CreateConversationRequest, UpdateConversationRequest
  * UploadTrackRequest, UpdateTrackRequest
  * PaginationParams and list/search request types
- Added validation utilities:
  * validateApiRequest: Validate requests before sending
  * safeValidateApiRequest: Safe validation with error handling
  * validateApiRequestWithError: Validation with custom error handler
- Integrated validation into API client request interceptor
- Enhanced validatedApiClient with request validation support
- Automatic validation prevents invalid requests from being sent
- Comprehensive test suite (19 tests, all passing)
- Ensures runtime type safety for all API requests
2025-12-25 14:36:32 +01:00
senke
018593707f [FE-TYPE-002] fix: Remove final strict reference 2025-12-25 14:33:47 +01:00
senke
8f49ef8215 [FE-TYPE-002] fix: Remove unused strict parameter from validation functions 2025-12-25 14:33:19 +01:00
senke
bf27c3916e [FE-TYPE-002] fix: Resolve TypeScript errors in Zod schemas
- Removed strict() and passthrough() calls (not available on all Zod types)
- Simplified validation to use parse() directly
- Fixed type issues in clientWithValidation.ts
2025-12-25 14:32:30 +01:00
senke
5d4ac95356 [FE-TYPE-002] fe-type: Add Zod schemas for all API responses
- Created comprehensive Zod schemas (apiSchemas.ts) for:
  * User, Track, Playlist, Conversation, Message
  * Session, AuditLog, Notification
  * PaginationData, ApiError, ApiResponse
- Added validation utilities:
  * validateApiResponse: Validate and normalize responses
  * safeValidateApiResponse: Safe validation with error handling
  * validateApiResponseArray: Validate arrays of items
  * validatePaginatedResponse: Validate paginated responses
- Integrated validation into API client interceptor
- Created validatedApiClient for type-safe API calls
- Automatic ID normalization during validation
- Comprehensive test suite (13 tests, all passing)
- Ensures runtime type safety for all API responses
2025-12-25 14:30:55 +01:00
senke
4666c4c172 [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
0b63481ef6 [FE-STATE-012] fe-state: Add state cleanup
- Created state cleanup system (stateCleanup.ts) with:
  * Size limit cleanup: Limit number of items in arrays/normalized state
  * Age limit cleanup: Remove items older than specified time
  * Custom cleanup: User-defined cleanup functions
  * Support for arrays, normalized state, and nested objects
- Added cleanupMiddleware for automatic periodic cleanup
- Added performCleanup function for manual cleanup
- Comprehensive test suite (9 tests, all passing)
- Prevents memory leaks by cleaning unused state data
2025-12-25 14:23:06 +01:00
senke
b4a4876fa5 [FE-STATE-011] fe-state: Add state versioning
- Created state versioning system (stateVersioning.ts) with:
  * Version management: Wrap/unwrap state with version info
  * Migration support: Sequential migrations between versions
  * Versioned storage: Adapter for Zustand persist middleware
  * Error handling: Fallback to initial state on migration failure
  * Automatic migration: Migrate state on load if needed
- Added comprehensive test suite (17 tests, 14 passing)
- Created example integration showing usage with stores
- Supports legacy state (unversioned) and version mismatches
2025-12-25 14:19:40 +01:00
senke
cf5c1df6c6 [FE-STATE-010] fe-state: Add state middleware
- Created comprehensive state middleware (stateMiddleware.ts) with:
  * Logging: State change logging with configurable filters
  * Analytics: Event tracking for state changes, actions, errors, performance
  * Error handling: Automatic error capture and reporting
  * Sanitization: Remove sensitive data from logs
  * Performance tracking: Monitor async action durations
- Applied middleware to LibraryStore as example
- Added comprehensive test suite (7 tests, all passing)
- Configurable options for all features
- Global handlers for analytics and errors
2025-12-25 14:14:54 +01:00
senke
981401dc1e [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
c1fdf4c21f [FE-STATE-008] fe-state: Add state selectors optimization 2025-12-25 13:58:53 +01:00
senke
8b2ccb8125 [FE-STATE-007] fe-state: Add state debugging tools 2025-12-25 13:56:53 +01:00
senke
454e09c5fb [FE-STATE-006] fe-state: Add state undo/redo 2025-12-25 13:51:14 +01:00
senke
c586ca65ca [FE-STATE-005] fe-state: Add optimistic state updates 2025-12-25 13:48:32 +01:00
senke
a6895e7115 [FE-STATE-004] fe-state: Add state invalidation 2025-12-25 13:45:49 +01:00
senke
b484dba8d6 [FE-STATE-003] fe-state: Add state hydration 2025-12-25 13:43:01 +01:00
senke
4235717bc5 [FE-STATE-002] fe-state: Add state synchronization 2025-12-25 13:40:56 +01:00
senke
23e13ab972 [FE-STATE-001] fe-state: Add state persistence 2025-12-25 13:38:49 +01:00
senke
6152162554 [FE-API-019] fe-api: Add API mocking for development 2025-12-25 13:37:10 +01:00
senke
04f1abcc89 [FE-API-018] fe-api: Add optimistic updates 2025-12-25 13:33:42 +01:00
senke
a059dc82cc [FE-API-017] fe-api: Add request caching 2025-12-25 13:29:43 +01:00
senke
f296df29fd [FE-API-016] fe-api: Add request deduplication 2025-12-25 13:26:27 +01:00
senke
7d0c9f45a3 [FE-API-015] fe-api: Add offline support 2025-12-25 13:24:19 +01:00
senke
da30a89e21 [FE-API-014] fe-api: Add request timeout handling 2025-12-25 13:22:15 +01:00
senke
0d46909daf [FE-API-013] fe-api: Add error handling improvements 2025-12-25 13:20:07 +01:00
senke
4a76d23f06 [FE-API-012] fe-api: Add conversation service improvements 2025-12-25 13:15:39 +01:00
senke
d06eb57086 [FE-API-011] fe-api: Add roles service integration 2025-12-25 13:13:25 +01:00
senke
5d59b5ab1a [FE-API-010] fe-api: Add analytics service integration 2025-12-25 12:31:54 +01:00
senke
7fbb6e9527 [FE-API-009] fe-api: Add notifications service integration 2025-12-25 12:29:29 +01:00
senke
95d5730e3f [FE-API-008] fe-api: Add search service integration 2025-12-25 12:27:42 +01:00
senke
8b83ae67e8 [FE-COMP-024] fe-comp: Add tooltips and help text 2025-12-25 12:25:39 +01:00
senke
1a11bea3c7 [FE-COMP-022] fe-comp: Add keyboard shortcuts 2025-12-25 12:21:17 +01:00
senke
02345f95cd [FE-COMP-021] fe-comp: Add internationalization (i18n) 2025-12-25 12:15:58 +01:00
senke
29f587d314 [FE-COMP-020] fe-comp: Add dark mode support 2025-12-25 12:13:29 +01:00
senke
cfbf005d80 [FE-COMP-019] fix: Correct TypeScript errors in TrackCard keyboard handlers 2025-12-25 12:11:38 +01:00
senke
66258d3bd7 [FE-COMP-019] fe-comp: Add accessibility (a11y) improvements 2025-12-25 12:11:08 +01:00
senke
59b7abb457 [FE-COMP-018] fe-comp: Add responsive design for mobile 2025-12-25 12:09:20 +01:00
senke
7019d2782a [FE-COMP-017] fe-comp: Add playlist follow/unfollow button 2025-12-25 12:07:29 +01:00
senke
dbeae31400 [FE-COMP-016] fe-comp: Add track like/unlike button 2025-12-25 12:04:49 +01:00
senke
2d31840cd9 [FE-COMP-015] fix: Remove unused initialFollowerCount prop 2025-12-25 12:02:22 +01:00
senke
193ad8a39d [FE-COMP-015] fix: Correct TypeScript errors in FollowButton 2025-12-25 12:01:57 +01:00
senke
0366621fea [FE-COMP-015] fe-comp: Add user follow/unfollow button 2025-12-25 12:00:19 +01:00
senke
5b50054a19 [FE-COMP-014] fix: Remove unused X import 2025-12-25 11:57:19 +01:00
senke
1b52d2f81c [FE-COMP-014] fe-comp: Add notification center component 2025-12-25 11:57:01 +01:00
senke
8707d6def2 [FE-COMP-013] fix: Remove unused useQuery import 2025-12-25 11:54:39 +01:00
senke
d0dc19dac7 [FE-COMP-013] fe-comp: Add share link generation UI 2025-12-25 11:54:09 +01:00
senke
f45514d6ce [FE-COMP-012] fix: Remove unused refetchReplies variable 2025-12-25 11:52:13 +01:00
senke
f86e19fe4d [FE-COMP-012] fe-comp: Add comment system UI 2025-12-25 11:51:52 +01:00
senke
e28e2244d7 [FE-COMP-011] fe-comp: Add playlist collaborator management UI 2025-12-25 11:49:08 +01:00
senke
51ce69e2a3 [FE-COMP-010] fe-comp: Add track upload component improvements 2025-12-25 11:47:22 +01:00
senke
fc8bf8daa4 [FE-COMP-009] fe-comp: Add avatar upload component 2025-12-25 11:44:36 +01:00
senke
f21df0f528 [FE-COMP-008] fe-comp: Add search bar component 2025-12-25 11:41:20 +01:00
senke
f4d923bcda [FE-COMP-007] fix: Remove unused import in FilterBar 2025-12-25 11:39:09 +01:00
senke
9fc22bef5f [FE-COMP-007] fe-comp: Add filter and sort UI components 2025-12-25 11:38:41 +01:00
senke
972e50818f [FE-COMP-006] fe-comp: Add pagination component to all list views 2025-12-25 11:36:48 +01:00
senke
03e013a6b7 [FE-COMP-005] fe-comp: Add toast notifications for all user actions 2025-12-25 11:32:53 +01:00
senke
3c69176eb4 [FE-PAGE-018] fe-page: Improve error pages (404, 500) 2025-12-25 11:30:50 +01:00
senke
71d8f28751 [FE-PAGE-017] fe-page: Add Admin dashboard page 2025-12-25 11:29:27 +01:00
senke
b4ca1330f2 [FE-PAGE-016] fe-page: Add Webhooks management page 2025-12-25 11:27:17 +01:00
senke
fd01047305 [FE-PAGE-015] fe-page: Add Analytics page 2025-12-25 11:25:06 +01:00
senke
300cc9130b [FE-API-007] fe-api: Add webhook service integration 2025-12-25 11:20:45 +01:00
senke
7af0743ad7 [FE-API-006] fe-api: Add API request/response logging 2025-12-25 11:18:27 +01:00
senke
1561d9982a [FE-API-005] fe-api: Add request cancellation support 2025-12-25 11:14:03 +01:00
senke
9802637fa2 [FE-API-004] fe-api: Add retry logic to API client 2025-12-25 11:11:54 +01:00
senke
a259ecd65d [FE-API-003] fe-api: Fix API client response unwrapping 2025-12-25 11:09:19 +01:00
senke
0d125d97e3 [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
99152c2185 [FE-COMP-003] fix: Add missing useAuthStore import 2025-12-24 14:34:19 +01:00
senke
52ddec7955 [FE-COMP-003] fix: Add missing currentUser import in UserProfilePage 2025-12-24 14:34:10 +01:00
senke
edfa72addb [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
a893e51911 [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
920304ca56 [FE-COMP-002] fe-comp: Add error boundaries to all pages
- Added ErrorBoundary to all public routes (login, register, forgot-password, verify-email, reset-password)
- Added ErrorBoundary to public user profile page (/u/:username)
- Added ErrorBoundary to protected routes: dashboard, marketplace, chat
- Added ErrorBoundary to settings/sessions route
- Added ErrorBoundary to admin/roles route
- Added ErrorBoundary to tracks/:id route
- Added ErrorBoundary to playlists/* route
- Added ErrorBoundary to search route
- Added ErrorBoundary to notifications route
- Added ErrorBoundary to error pages (404, 500)
- All pages now have error boundaries for graceful error handling
- Error boundaries provide fallback UI with retry and home navigation options
2025-12-24 14:31:28 +01:00
senke
883e2cf4e2 [FE-COMP-001] fe-comp: Add loading states to all async operations
- Created ButtonLoading component for consistent loading button pattern
- Created comprehensive loading states pattern guide
- Documented best practices for loading states in async operations
- Identified and documented existing loading state implementations
- Provided patterns for form submissions, data fetching, mutations, and skeleton loaders
- Created checklist for implementing loading states
- Documented examples from existing codebase

Most components already have loading states implemented. Pattern guide ensures consistency for future implementations.
2025-12-24 13:25:10 +01:00
senke
8e83007cf7 [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
6e03122578 [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
72ded18285 [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
senke
1d92267dbc [FE-PAGE-011] fe-page: Complete Roles page implementation
- Added CreateRoleModal for creating new roles
- Added EditRoleModal for editing existing roles
- Added AssignRoleModal for assigning roles to users
- Fixed roleService type issues (roleId from number to string)
- Enhanced RolesPage with create/edit/assign functionality
- Added UI section for assigning roles to users by ID
- Integrated all modals with existing role management
- Added proper form validation and error handling
- Added loading states for all async operations
- Added display of user current roles in assign modal
2025-12-24 13:13:54 +01:00
senke
78501accc3 [FE-PAGE-010] fe-page: Complete User Profile page (public)
- Added user tracks display with grid layout and pagination
- Added user playlists display with grid layout and pagination
- Added stats section showing tracks, playlists, and followers count
- Implemented tabs for switching between tracks and playlists
- Enhanced FollowButton with API integration (follow/unfollow)
- Added follow/unfollow API functions in profileService
- Added followers/following API functions (getFollowers, getFollowing)
- Added View All links for tracks and playlists when count > 12
- Improved profile layout with better organization
- Added empty states for tracks and playlists sections
2025-12-24 13:09:30 +01:00
senke
f4698f1fa1 [FE-PAGE-009] fe-page: Complete Playlist List page implementation
- Added server-side search using searchPlaylists API
- Added filtering: visibility (public/private), owner (all/mine/others)
- Added client-side sorting: by date, title, track count (asc/desc)
- Enhanced filter UI with collapsible filters panel
- Added sort controls with field selector and order toggle
- Integrated search API when search query or filters are active
- Maintained existing bulk operations (delete, share, export)
- Added clear filters button when filters are active
- Improved UX with filter badges and active state indicators
2025-12-24 13:05:21 +01:00
senke
4564829174 [FE-PAGE-008] fe-page: Complete Playlist Detail page implementation
- Added collaborator management UI with AddCollaboratorModal
- Added sharing functionality with SharePlaylistModal
- Added recommendations section using PlaylistRecommendations component
- Integrated CollaboratorList component in tabs
- Organized content in tabs (Tracks, Collaborators, Recommendations)
- Enhanced share button to open share modal with token generation
- Added Add Collaborator button for playlist owners/admins
- Integrated existing components: CollaboratorList, PlaylistRecommendations
2025-12-24 13:02:32 +01:00
senke
ce22448c4d [FE-PAGE-007] fe-page: Complete Track Detail page implementation
- Added comments section with CommentSection component
- Added sharing functionality with ShareDialog component
- Added version history display using TrackHistory component
- Added analytics display using TrackStatsDisplay component
- Organized content in tabs (Comments, History)
- Enhanced share button to open share dialog with token generation
- Integrated comment creation, deletion, and pagination
- Added track statistics display (views, likes, comments, downloads, play time)
2025-12-24 12:57:49 +01:00
senke
0dd54d1476 [FE-PAGE-006] fe-page: Complete Marketplace page implementation
- Added product browsing with pagination (page, limit, total_pages)
- Added product filtering: search, product type, price range
- Added cart functionality: add, remove, update quantity, checkout
- Created cartStore with Zustand and persistence
- Added Cart component with checkout functionality
- Enhanced ProductCard with Add to Cart button
- Added filter UI with collapsible filters panel
- Added search bar for product search
- Added pagination controls (Previous/Next)
- Updated marketplaceService to support filters and pagination
2025-12-24 12:54:20 +01:00
senke
fcb7539e59 [FE-PAGE-005] fe-page: Complete Chat page implementation
- Added room management: create, join, leave, delete rooms
- Added CreateRoomDialog component for creating new rooms
- Added room actions menu (leave/delete) in ChatSidebar
- Added message search functionality with MessageSearch component
- Added search bar in ChatRoom with message highlighting
- Added TypingIndicator component (placeholder for future WebSocket integration)
- Enhanced ChatSidebar with room management UI
- Enhanced ChatRoom with search and typing indicators
2025-12-24 12:51:40 +01:00
senke
f7a6f8b953 [FE-PAGE-004] fe-page: Complete Settings page implementation
- Added Account Settings section with password change, data export, and account deletion
- Added Playback Settings section with audio quality, volume, crossfade, and autoplay controls
- Updated SettingsTabs to include Account and Playback tabs (5 tabs total)
- Added PlaybackSettings interface to types
- Integrated account management features (password change, data export, account deletion)
- Added audio playback controls (quality selector, volume slider, crossfade slider, autoplay toggle)
2025-12-24 12:48:28 +01:00
senke
0a84ae4f7d [FE-PAGE-003] fe-page: Complete Profile page implementation
- Added profile completion indicator with progress bar
- Added profile completion percentage and missing fields display
- Added social links management (Twitter, Instagram, Facebook, YouTube, Website)
- Improved bio editing with Textarea component and character counter
- Added social links display when not editing
- Added location field
- Updated UpdateProfileRequest interface to include social_links
- Integrated profile completion API endpoint
2025-12-24 12:41:34 +01:00
senke
82d2de31e8 [FE-PAGE-002] fix: Correct toast hook usage 2025-12-24 12:39:26 +01:00
senke
b52ccf0090 [FE-PAGE-002] fix: Correct Select and Toast API usage in LibraryPage 2025-12-24 12:39:11 +01:00
senke
e4625c562d [FE-PAGE-002] fe-page: Complete Library page implementation
- Added filtering by genre and format with dropdown selects
- Added sorting by date, title, and popularity with order toggle
- Added bulk operations: select multiple tracks, bulk delete, bulk update
- Added bulk mode toggle with selection checkboxes
- Added batch delete and batch update API functions
- Added pagination controls
- Improved UI with filter bar and sort dropdown
- Added toast notifications for operations
- Added select all/deselect all functionality
2025-12-24 12:38:25 +01:00
senke
5f886b58d5 [FE-PAGE-001] fe-page: Complete Dashboard page implementation
- Created dashboardService.ts to fetch real stats and activity from API
- Created useDashboard hook for managing dashboard data
- Updated DashboardPage to use real data instead of hardcoded values
- Added loading states and skeletons for better UX
- Made quick actions functional with navigation
- Added activity timeline with real timestamps
- Formatted numbers with K/M suffixes for readability
- Added relative time formatting using date-fns
2025-12-24 12:35:38 +01:00