refactor: Cleanup terminology and update docstrings

This commit is contained in:
DSS
2025-12-11 06:35:13 -03:00
parent 42b146ca02
commit bcb4475744

View File

@@ -11,11 +11,11 @@ class AtomicType(str, Enum):
Classification of components based on their composition.
- PRIMITIVE_COMPONENT: Fundamental UI elements (e.g., Button, Icon).
- COMPOSITE_COMPONENT: Composed of multiple primitive or other composite components (e.g., Card, NavBar).
- TEMPLATE: Page-level structures, arranging organisms to show underlying page structure.
- TEMPLATE: Page-level structures, arranging composite components to show underlying page structure.
- PAGE: Instances of templates, with real content in place.
"""
PRIMITIVE_COMPONENT = "primitive_component" # Formerly ATOM
COMPOSITE_COMPONENT = "composite_component" # Formerly MOLECULE and ORGANISM
PRIMITIVE_COMPONENT = "primitive_component"
COMPOSITE_COMPONENT = "composite_component"
TEMPLATE = "template"
PAGE = "page"
UNKNOWN = "unknown"
@@ -66,6 +66,6 @@ class Component(BaseModel):
variants: List[str] = Field(default_factory=list, description="Available variants")
props: Dict[str, Any] = Field(default_factory=dict, description="Component props schema")
dependencies: List[str] = Field(default_factory=list, description="UUIDs of components this component depends on (e.g., an organism depends on molecules/atoms)")
dependencies: List[str] = Field(default_factory=list, description="UUIDs of components this component depends on (e.g., a composite component depends on primitive components)")
sub_components: List[str] = Field(default_factory=list, description="UUIDs of components that are children of this component in the atomic hierarchy")