All modules, configs, paths, and references updated. 836 tests pass, zero warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
446 B
Elixir
25 lines
446 B
Elixir
defmodule BerrypodWeb.Shop.Home do
|
|
use BerrypodWeb, :live_view
|
|
|
|
alias Berrypod.Products
|
|
|
|
@impl true
|
|
def mount(_params, _session, socket) do
|
|
products = Products.list_visible_products(limit: 8)
|
|
|
|
socket =
|
|
socket
|
|
|> assign(:page_title, "Home")
|
|
|> assign(:products, products)
|
|
|
|
{:ok, socket}
|
|
end
|
|
|
|
@impl true
|
|
def render(assigns) do
|
|
~H"""
|
|
<BerrypodWeb.PageTemplates.home {assigns} />
|
|
"""
|
|
end
|
|
end
|