Page And Layout Component Ownership
In sites and themes, each page or layout may import components only from parts/shared or from its own directory under parts. A component used by multiple pages or layouts must live in parts/shared. If a component belongs to a layout, define it in that layout’s directory under parts rather than a page directory. Keep each page and layout’s component ownership reflected in its directory and imports.
Philosophy
Component locations make ownership explicit and prevent pages and layouts from depending on each other’s private components.
Correct
Page components: parts/home/
Layout components: parts/layout/
Components shared by multiple pages or layouts: parts/shared/
Fix
Move each component into its owning page or layout directory under parts, or into parts/shared when used by multiple pages or layouts, and update imports to respect those ownership boundaries.