Conversation
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] 参考 #file:index.tsx #file:[...slug].tsx ,生成 https://github.com/Gar-b-age/CookLikeHOC 的页面。
Add recipes section for CookLikeHOC repository following policy pages pattern
Sep 22, 2025
TechQuery
requested changes
Sep 22, 2025
…ared components, and BadgeBar Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Contributor
Author
Copilot
AI
changed the title
Add recipes section for CookLikeHOC repository following policy pages pattern
Add recipes section for CookLikeHOC repository with navigation integration and code refactoring
Sep 22, 2025
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests
Comment |
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 PR implements a new recipes section that provides access to Chinese cooking recipes from the CookLikeHOC repository, following the same pattern as the existing policy pages.
What's Added
New Recipe Pages:
/recipes- Index page showing all 238 recipes organized in hierarchical categories (主食, 炒菜, 汤, etc.)/recipes/[...slug]- Individual recipe pages with full markdown content renderingNavigation Integration:
GitHub Integration:
recipeContentStoreinmodels/Wiki.tstargeting theGar-b-age/CookLikeHOCrepositoryAcknowledgment Section:
Multilingual Support:
Added translation keys in all supported languages:
Code Refactoring & Improvements
Shared Components:
ContentTreecomponent (components/Layout/ContentTree.tsx)UI Component Upgrades:
BadgeBarcomponent frommobx-restful-tableTranslation Cleanup:
github_document_descriptionacross all pagesImplementation Details
The implementation follows the exact same patterns as the existing policy pages:
ContentModelfrommobx-githubfor repository accessgetStaticPropsandgetStaticPathsLive Example
The updated recipes homepage now features the acknowledgment section and improved navigation:
The recipe page for 宫保鸡丁 (Kung Pao Chicken) demonstrates the complete functionality:
Features include:
Files Changed
components/Navigator/MainNavigator.tsx- Added recipes link to Wiki dropdowncomponents/Layout/ContentTree.tsx- New shared component for tree renderingmodels/Wiki.ts- AddedrecipeContentStorefor CookLikeHOC repositorypages/recipes/index.tsx- Recipe index page with acknowledgment and shared componentpages/recipes/[...slug].tsx- Dynamic recipe pages with BadgeBar componentpages/policy/index.tsx- Refactored to use shared ContentTree componentpages/policy/[...slug].tsx- Updated to use BadgeBar componenttranslation/*.ts- Updated translation keys in all languagesThis provides seamless access to hundreds of Chinese cooking recipes while maintaining full consistency with the existing codebase architecture and improving code quality through refactoring.
Created from VS Code via the GitHub Pull Request extension.
Created from VS Code via the GitHub Pull Request extension.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.