Skip to content

Component Hierarchy with Wireframes

tjshiu edited this page Apr 3, 2018 · 9 revisions

Component Hierarchy with Wireframes

Functional Component Hierarchy

  • Root
    • App
      • NavBar
      • MainPage
      • Footer

NavBar

  • NavBar
    • Components
      • SessionButtonsContainer + SessionButtons + ShoppingCart
        • State: session
      • SearchContainer + Search

Note: All other components are rendered inside of MainPage

Homepage

  • ProductIndexContainer + ProductIndex
    • Route: /#/
    • State: products
    • Components
      • ProductIndexItem *State: product[:id]
  • Search Container + SearchForm
  • Splash

Homepage Search

Products

  • ProductIndexContainer + ProductIndex
    • Route: /#/products
    • State: products
    • Components
      • ProductIndexItem
        • State: product[:id]
  • SearchContainer + SearchNarrowForm
    • Route: /#/products
    • State: search

Product Index

  • ProductShowContainer + ProductShow
    • Route: /#/product/:productId
    • State: product[:id]
    • Components
      • ProductShowOverview
        • State: product[:id]
      • ProductShowDescription
        • State: product[:id]
  • ShoppingCartFormContainer + ShoppingCartForm
    • Route: /#/product/:productId
    • State: product[:id]
  • ReviewIndexContainer + Review Index
    • Route: /#/product/:productId
    • State: product[:id]
    • Components
      • ReviewIndexItem
        • State: product[:id]

Product Show

  • 'ReviewFormContainer + ReviewForm
    • Route: /#/product/:productId
    • State: product[:id]

Review Form

  • CreateProductContainer + CreateProductForm
    • Route: /#/product/new
    • State: product
    • Components
      • AddPhotoComponent
        • State: product

CreateProduct

User

User Show Create User

Session

SignIn

Shopping Cart

Shopping Cart

Clone this wiki locally