Frontend/apiservice/userdashboardimplementation#50
Merged
CDevmina merged 34 commits intoDevelopmentfrom Apr 23, 2025
Merged
Conversation
…sts and implement corresponding service logic
…or retrieving categories
- Implemented new hooks for user activity summary, spending analytics, and store consent lists. - Created new API endpoints for retrieving user activity summary, spending analytics, and store consent lists. - Added new types for user activity summary, spending analytics, and store consent details in data contracts. - Developed UserAnalyticsPage and UserConsentPage components for displaying analytics and managing consent. - Updated UserDashboard to include recent activity and spending patterns. - Created UserPreferencesPage for managing user preferences with a slider interface. - Enhanced caching settings and keys for new data types. - Added routes for new pages in the application.
This reverts commit 35be692.
…pending analytics
- Updated package.json and package-lock.json to include recharts. - Enhanced apiClient to instantiate the Taxonomy client. - Created useTaxonomy hook for fetching taxonomy categories. - Added new hooks in useUserHooks for recent user data, spending analytics, and store consent lists. - Updated cache utility to include new cache keys for recent data and spending analytics. - Expanded routing in main.tsx to include new user dashboard sub-routes for preferences, data sharing, and analytics.
…ces, enhance layout, and improve data handling
…ta structures, and improve UserDashboard layout
…both double and int types
…for provided and inferred demographics
…schemas for provided and inferred demographics" This reverts commit ff7fc57.
…te user creation logic
…value lists for categories
…n and navigation handling
…with taxonomy validation
…acy setting changes, including cache invalidation
- Incremented schema version from 2.0.4 to 2.0.5. - Added inferred demographic fields to user schema: inferredHasKids, inferredRelationshipStatus, inferredEmploymentStatus, inferredEducationLevel, inferredAgeBracket. - Expanded taxonomy.yaml with new categories and attributes for kids' clothing, gardening, tools & home improvement, and more. - Implemented demographic inference functions for employment status, education level, and age bracket. - Integrated demographic inference into preference processing, enhancing user data with inferred demographics. - Added new boosts in recommendation logic based on inferred demographics.
… improve subcategory handling
…ata submission, and taxonomy guides
…d object structure - Refactored updateUserProfile to use dot notation for demographic fields within a new demographicData object. - Added validation for age input to ensure it is either null or an integer. - Enhanced privacy settings update logic to use dot notation. - Improved logging for user updates and cache invalidation. chore: Increment schema version and update user schema to reflect demographicData structure - Updated SCHEMA_VERSION to '2.0.7'. - Refactored user schema to include demographicData object with relevant fields. - Added inferred demographic fields within the demographicData object. fix: Update taxonomy.yaml version to '1.0.2' - Incremented version number for taxonomy file. feat: Enhance demographic inference logic with detailed logging - Added debug logging to demographic inference functions for better traceability. - Updated inference functions to handle demographic data from the new structure. - Implemented a fallback mechanism for processing user data and marking failures. refactor: Improve preference processing logic and error handling - Refactored process_user_data to extract demographics from the nested demographicData object. - Enhanced error handling and logging for user data processing. - Added a helper function to mark processing as failed in the database.
…d improve taxonomy integration
…rvices for simplification
…ve user dashboard activity limit
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.
This pull request introduces several updates to the Tapiro Store API, including new documentation, enhancements to user preference handling, and additional API endpoints. The changes primarily focus on improving API usability, adding validation mechanisms, and expanding functionality for managing user and store data.
Documentation Updates:
README.mdfile with detailed instructions for integrating with the Tapiro Store API, including authentication, endpoints, taxonomy usage, and error handling.User Preferences Enhancements:
updateUserPreferencesfunction inAIService.jsand replaced its functionality with in-service validation for user preferences, including taxonomy-based validation and improved error handling. [1] [2]gender,incomeBracket,country,age) in theregisterUserfunction withinAuthenticationService.js. These fields are now stored in the database and default tonullif not provided. [1] [2]New API Endpoints:
getStoreConsentListsinPreferenceManagement.jsto retrieve a user's store opt-in and opt-out lists. [1] [2]lookupStoresinStoreProfile.jsandStoreProfileService.jsto fetch basic details (e.g., name) for a list of store IDs. [1] [2]getTaxonomyCategoriesinTaxonomy.jsto retrieve taxonomy categories via theTaxonomyService.Code Refactoring and Cleanup:
AIServiceimports and functions, replacing them with in-service logic and validation.These changes collectively enhance the functionality, reliability, and developer experience of the Tapiro Store API.