Store: featured products section on the homepage #23

Open
opened 2026-07-25 13:45:50 +00:00 by yuris · 0 comments
Owner

Target

apps/store/app/page.tsx.

Change

  • The homepage is static and currently shows no products. Add a featured grid populated from fetchCatalog() at build time.
  • Take the first N published items. There is no featured field on the catalog contract, so use a first-N heuristic and mark it with a ponytail: comment; upgrade to a real flag only if selection control is actually needed.
  • Reuse the product-card markup.

Constraints

  • Compatible with output: "export"; no new dependencies; no catalog contract change.

Acceptance

  • Homepage shows up to N products linking to their detail pages.
  • Renders correctly with an empty catalog (section hidden or empty-state).
  • Verify at http://localhost:3001/ via devenv up.

Non-goals

  • A curated/featured field in the catalog contract (separate issue if wanted).
  • Exposing price or stock.
## Target `apps/store/app/page.tsx`. ## Change - The homepage is static and currently shows no products. Add a featured grid populated from `fetchCatalog()` at build time. - Take the first N published items. There is no `featured` field on the catalog contract, so use a first-N heuristic and mark it with a `ponytail:` comment; upgrade to a real flag only if selection control is actually needed. - Reuse the product-card markup. ## Constraints - Compatible with `output: "export"`; no new dependencies; no catalog contract change. ## Acceptance - Homepage shows up to N products linking to their detail pages. - Renders correctly with an empty catalog (section hidden or empty-state). - Verify at http://localhost:3001/ via `devenv up`. ## Non-goals - A curated/featured field in the catalog contract (separate issue if wanted). - Exposing price or stock.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/garage#23
No description provided.