Fix hardcoded preferences bug - use actual user profile data #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Fixes critical bug where hardcoded preferences were used instead of user's actual profile data in CuratedBox component.
Changes
profilestate to fetch and store user's style profilefetchProfilefunction to load profile from/api/profile/:userIdgenerateBoxto useprofile.preferred_colors,profile.style_preferences, andprofile.budgetwith fallback defaultsTesting
Related
✅ Review — APPROVED
What's Fixed
This PR correctly addresses the hardcoded preferences bug that was identified in PR #31 (@market review):
fetchProfile()loads user data from/api/profile/:userIdbefore generating boxprofile.preferred_colors,profile.style_preferences,profile.budgetdrive the box generationComparison with #34
This PR (v2) resolves what #34 (v1) left unfixed: the actual profile data is fetched and used, not just hardcoded defaults. Clean approach.
Status
This was fixed in PR #34 (merged) and is already in main. The
CuratedBox.jscomponent now fetches the user's actual profile from/api/profile/:userIdand uses real preferences with fallback defaults. Closing as resolved.