New architecture - Automate section list #65
Merged
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 includes significant changes to the
apps/website
directory, primarily focusing on refactoring and updating various components and utilities. The changes involve renaming files, updating import statements, and modifying component structures to use new utility functions and metadata properties.Refactoring and Utility Updates:
apps/website/src/app/(site)/[section]/[category]/layout.tsx
: Updated import statements to usenewFindCategoryBySlug
andnewFindSectionBySlug
functions and replaced references toname
anddescription
withmeta.name
andmeta.description
respectively. (apps/website/src/app/(site)/[section]/[category]/layout.tsxL6-R9, apps/website/src/app/(site)/[section]/[category]/layout.tsxL18-R36, apps/website/src/app/(site)/[section]/[category]/layout.tsxL72-R66, apps/website/src/app/(site)/[section]/[category]/layout.tsxL91-R81)apps/website/src/app/(site)/[section]/[category]/page.tsx
: Replaced old utility functions withnewFindCategoryBySlug
andnewFindSectionBySlug
and updated the component structure to use the new metadata properties. (apps/website/src/app/(site)/[section]/[category]/page.tsxL3-R9, apps/website/src/app/(site)/[section]/[category]/page.tsxL18-L94)Component and File Renaming:
apps/website/src/app/(site)/[section]/[category]/_single-component-section.tsx
: Renamed fromsingle-component-section.tsx
and added//@ts-nocheck
directive. (apps/website/src/app/(site)/[section]/[category]/_single-component-section.tsxR1)Metadata and Component Updates:
apps/website/src/app/(site)/[section]/layout.tsx
: Updated metadata generation to use new utility functions and metadata properties. (apps/website/src/app/(site)/[section]/layout.tsxL7-R7, apps/website/src/app/(site)/[section]/layout.tsxL18-R30, apps/website/src/app/(site)/[section]/layout.tsxL41-R41)apps/website/src/app/(site)/[section]/page.tsx
: Added a function to generate static params and updated the component to use new metadata properties. (apps/website/src/app/(site)/[section]/page.tsxL6-L71)Type and Component Structure Changes:
apps/website/src/app/(site)/[section]/[category]/multiple-component-section.tsx
: Updated to useNewCategoryType
and modified component rendering to use new metadata properties. (apps/website/src/app/(site)/[section]/[category]/multiple-component-section.tsxL2-R38, apps/website/src/app/(site)/[section]/[category]/multiple-component-section.tsxL44-R55)apps/website/src/app/card.tsx
: Updated component props and logic to handle new category metadata. [1] [2]Removal of Obsolete Tests:
apps/website/__tests__/components/component-categories.test.tsx
: Removed obsolete tests related to thesectionList
and component categories.