Repository navigation
feat(puzzles): implement puzzle categorization hierarchy and tag system - #460
Open
Ranjeet2063 wants to merge 1 commit into
Open
Ranjeet2063 wants to merge 1 commit into
Ranjeet2063 wants to merge 1 commit into
Conversation
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.
Closes #450
Description
This pull request implements the puzzle categorization and tag system with hierarchy navigation, multi-tag filtering, search support, category analytics, and recommendation mechanisms.
Summary of Changes
Categoryentity with parent/child relations (parentId,parent,children),slug,icon,displayOrder, andisActivefields.getHierarchy()inCategoriesServiceto construct nested category trees.getCategoryAnalytics(id?)calculating total puzzles, completions, average ratings, difficulty breakdown, and popularity score.getRecommendations(limit)ranking categories by activity and popularity score.getTrendingTags(limit)inTagsServiceordering tags by usage frequency.getRecommendedTags(seeds, limit)for related tag suggestions.filterPuzzlesByMultiTags(tags, matchAll)supporting both conjunction and disjunction tag filtering.searchPuzzlesByCategory()inCategoriesServicesupporting child category aggregation, multi-tag filtering, and keyword search.CategoryFilterDtoandCategoryAnalyticsDtowith class-validator/transformer validations.GET /categories/hierarchy,GET /categories/recommendations,GET /categories/:id/analytics,GET /categories/:id/puzzlesonCategoriesController.GET /tags/trending,GET /tags/recommendationsonTagsController.src/puzzles/tests/puzzle-categorization-tags.spec.ts(100% passing).tags.service.spec.ts.