Skip to content

Enhancement/fixs and refactor#91

Open
yassenRamadan1 wants to merge 17 commits into
developfrom
enhancement/fixs-and-refactor
Open

Enhancement/fixs and refactor#91
yassenRamadan1 wants to merge 17 commits into
developfrom
enhancement/fixs-and-refactor

Conversation

@yassenRamadan1

Copy link
Copy Markdown
Contributor

No description provided.

DevOmarAmer and others added 17 commits July 9, 2026 11:04
Add the data layer support for survey-based product recommendations. This includes:
- New DTOs for request/response serialization
- Repository method to transform survey answers into recommendations
- RemoteDataSource interface and stub implementation (pending backend endpoint)
… mapping

- Inject named AI HttpClient into RemoteDatasourceImpl
- Implement getSurveyRecommendations using Ktor POST to AI endpoint
- Update SurveyRecommendationRequestDto to include full survey answers
- Map product DTOs with new fields (featuredImage, price.amount, available)
- Extract product ID from path and handle missing vendor field
- Add Reset data object to SurveyIntent sealed interface
- Handle Reset in SurveyViewModel to reset currentStep, answers, and isSubmitting
- Trigger Reset via LaunchedEffect when SurveyBottomSheet is launched

This ensures the survey starts from a clean state each time the screen is opened, preventing stale data from previous sessions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants