- Add avatar_url field to MemberSettingsUpdate schema - Create AvatarService for generating default avatars using DiceBear - Update auth service to generate avatars on user registration - Add avatar upload UI to settings page - Update settings endpoint to handle avatar URL updates - Display current avatar in settings with upload/generate options Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2.6 KiB
2.6 KiB
Verification Steps for Comment Waveform Integration
Changes Made
1. API Schema Changes
- Added
author_avatar_url: str | NonetoSongCommentReadschema - Updated
from_modelmethod to include avatar URL from author
2. Frontend Interface Changes
- Added
author_avatar_url: string | nulltoSongCommentinterface
3. Comment Creation Changes
- Modified
addCommentMutationto accept{ body: string; timestamp: number } - Updated button click handler to pass
currentTimewhen creating comments
4. Marker Display Changes
- Changed marker icon from placeholder to
comment.author_avatar_url || placeholder - Improved marker styling (size, border, shadow)
- Added proper image styling (object-fit, border-radius)
Verification Steps
1. Test Comment Creation with Timestamp
- Play a song and let it progress to a specific time (e.g., 30 seconds)
- Add a comment while the song is playing
- Verify the comment appears with the correct timestamp
- Check that a marker appears on the waveform at the correct position
2. Test Avatar Display
- Create comments with different users (or check existing comments)
- Verify that user avatars appear in the waveform markers
- Check that placeholder is used when no avatar is available
3. Test Marker Interaction
- Click on a waveform marker
- Verify that the comment section scrolls to the corresponding comment
- Check that the comment is highlighted temporarily
4. Test Timestamp Display
- Look at comments with timestamps
- Verify that the timestamp button appears (e.g., "1:30")
- Click the timestamp button and verify playback seeks to that position
Expected Behavior
Before Fix
- Comments created without timestamps (no waveform markers)
- All markers used placeholder icons
- No visual indication of comment timing
After Fix
- Comments created with current playhead timestamp
- Markers show user avatars when available
- Markers positioned correctly on waveform
- Timestamp buttons work for seeking
- Markers have improved visibility (border, shadow)
Troubleshooting
If markers don't appear
- Check browser console for API errors
- Verify database migration is applied (timestamp column exists)
- Ensure
currentTimeis valid when creating comments
If avatars don't show
- Check that
author_avatar_urlis included in API response - Verify user records have valid avatar URLs
- Check network tab for image loading errors
If timestamps are incorrect
- Verify
currentTimefrom waveform hook is correct - Check that timestamp is properly sent to API
- Ensure backend stores and returns timestamp correctly