Open
Conversation
- Added research documentation outlining key decisions and implementation strategies for quick outfit generation based on user-specified occasions. - Created feature specification detailing user stories, functional requirements, and success criteria for the new outfit generation process. - Developed tasks for incremental implementation of the feature, including DTOs, service methods, and controller endpoints for generating and managing outfits. - Established session management for tracking previously shown combinations and enabling alternative outfit requests. - Implemented retry logic for AI service failures to enhance reliability during outfit generation.
…e methods, and controller endpoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a new quick outfit generation feature that allows users to generate complete outfits by simply providing an occasion (e.g., "casual Friday at work", "wedding reception"). This simplifies the existing category-based generation flow by eliminating manual base item and category selection.
Features Implemented
User Story 1: Quick Outfit Generation from Occasion (MVP)
POST /api/combinations/generate-quickUser Story 2: Save and Manage Quick-Generated Outfits
isAIGenerated: trueflagUser Story 3: Regenerate Alternative Outfits
requestAlternative: trueTechnical Details
Files Modified
src/modules/wardrobe/dtos/combinations.dto.ts- AddedQuickGenerateCombinationDtosrc/modules/wardrobe/interfaces/combinations.interface.ts- AddedQuickGenerationResponseandGenerationSessionsrc/modules/wardrobe/prompts/combinations.prompts.ts- AddedgenerateQuickCombinationsPrompt()src/modules/wardrobe/services/combinations.service.ts- Core implementation with helpers and session managementsrc/modules/wardrobe/controllers/combinations/combinations.controller.ts- Newgenerate-quickendpointKey Implementation Highlights
API Usage
Generate First Outfit
POST /api/combinations/generate-quick { "occasion": "casual Friday at work", "requestAlternative": false }Request Alternative
POST /api/combinations/generate-quick { "occasion": "casual Friday at work", "requestAlternative": true }Testing
Related Documentation
specs/001-quick-outfit-generation/spec.mdspecs/001-quick-outfit-generation/plan.mdspecs/001-quick-outfit-generation/tasks.mdspecs/001-quick-outfit-generation/contracts/quick-generate-endpoint.yaml🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com