MVP completion — product expansion, feedback tuning, user auth #44

Merged
sscoble merged 1 commit from feature/complete-mvp into main 2026-05-03 08:15:08 +00:00
Owner

PR: MVP Completion

Changes

  • Product DB: 26 → 50 products across 7 categories
  • Weight tuning: Feedback-driven algorithm learns from keep/return history
  • Auth: PBKDF2 password hashing + Bearer tokens + owner-only profile access
  • Fix: Duplicate AFFILIATE_ID declaration removed

Testing

  • node --check server.js passes
  • 50 products, no duplicate ASINs

Closes #43

## PR: MVP Completion ### Changes - **Product DB:** 26 → 50 products across 7 categories - **Weight tuning:** Feedback-driven algorithm learns from keep/return history - **Auth:** PBKDF2 password hashing + Bearer tokens + owner-only profile access - **Fix:** Duplicate AFFILIATE_ID declaration removed ### Testing - `node --check server.js` passes - 50 products, no duplicate ASINs Closes #43
sscoble added 1 commit 2026-05-03 08:14:54 +00:00
- Added 24 new products across 7 categories (Shoes, Accessories, Dresses, Bottoms, Tops, Outerwear, Undergarments)
- Expanded color coverage: Green, Red, Purple, Yellow, Orange, Brown, Gold
- Implemented feedback-driven matching algorithm weight tuning
  - Analyzes kept vs not-kept feedback when 10+ submissions exist
  - Blends default weights with learned signals (max 50% shift)
  - Returns tunedWeights in response when model is active
- Added user authentication (email+password, PBKDF2 hashing):
  - POST /api/auth/signup — register + auto-login
  - POST /api/auth/login — authenticate + return token
  - POST /api/auth/logout — revoke token
  - authenticate middleware on /api/profile, /api/box, /api/feedback
  - Profile fetch enforces owner-only access
  - Frontend passes Bearer token on authenticated requests
  - 401 response redirects to login flow
- Fixed duplicate AFFILIATE_ID declaration
sscoble merged commit fd4ebed84d into main 2026-05-03 08:15:08 +00:00
sscoble deleted branch feature/complete-mvp 2026-05-03 08:15:08 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sscoble/wardrobe-ai#44
No description provided.