🔥 fully removed old section list logic #66
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 type definitions and structure of components and categories throughout the codebase. The most important changes involve renaming types, updating properties, and removing utility functions related to components and categories.
Type Definition Updates:
apps/website/src/app/(site)/[section]/[category]/multiple-component-section.tsx
: ChangedNewCategoryType
toCategoryType
and updated thecomingSoonCategory
property toisComingSoon
. (apps/website/src/app/(site)/[section]/[category]/multiple-component-section.tsxL6-R16)apps/website/src/app/(site)/[section]/page.tsx
: Updated thecomingSoonCategory
property toisComingSoon
. (apps/website/src/app/(site)/[section]/page.tsxL53-R53)apps/website/src/components/component-wrapper/component-tab-renderer.tsx
: ReplacedNewComponentType
andNewVariantType
withComponentType
andVariantType
. [1] [2] [3] [4]apps/website/src/components/navigation/navigation-menu.tsx
: Updated type definitions and replacedcomingSoonCategory
withisComingSoon
. [1] [2] [3]apps/website/src/components/search-menu/search-group-multi-component-section.tsx
: ReplacedNewSectionType
andNewCategoryType
withSectionType
andCategoryType
. [1] [2]Property Renaming:
packages/ui/cuicui/application-ui/action-menu/category.ts
: ChangedcomingSoonCategory
toisComingSoon
.packages/ui/cuicui/application-ui/cookie-banner/category.ts
: ChangedcomingSoonCategory
toisComingSoon
.packages/ui/cuicui/common-ui/avatars/category.ts
: ChangedcomingSoonCategory
toisComingSoon
.Utility Function Removal:
apps/website/src/app/api/get-components/get-components.utils.ts
: Removed helper functionsextractCategories
,extractComponents
, andextractVariants
, along with their related type definitions.apps/website/src/app/api/get-components/route.ts
: Removed the entire file, including thegetDirectoryTree
function and theGET
function that utilized the removed utility functions.Component Metadata Updates:
packages/internal-cli/templates/category.template.tsx
: Simplified the category template by removing theCategoryType
import and commented out the icon property.component.ts
,component.simple-cookie-banner.tsx
,component.dynamic-island-notification.tsx
, etc.): Updated component metadata to useComponentMetaType
instead ofComponentType
and removedvariantList
properties. [1] [2] [3] [4] [5]