Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 2.03 KB

File metadata and controls

39 lines (24 loc) · 2.03 KB

Equipment catalog: Implementation plan

Completed work — summary of already implemented features. Technical debt — accepted follow-up work that is intentionally deferred.

Architecture decisions are captured in AGENTS.md.

Iteration order

1. Browsing API

2. Admin catalog management

Tasks in execution order:

  1. Foundations — shared patterns for all admin endpoints
  2. Brands CRUD — create, update, delete brands
  3. Groups CRUD — create, update, delete groups
  4. Categories CRUD — create, update, delete categories
  5. Category properties — manage property definitions and enum options
  6. Item creation — create items with property values (multi-table transaction)
  7. Item maintenance — update and delete items

3. User inventory

4. Frontend

  • Frontend — UI for browsing, item detail, user inventory, admin management

Someday

  • Expand DB-free Vitest handler coverage — the current catalog handlers already use the baseline pattern: direct handler imports plus mocked event, dbHttp, and auth/body helpers. Extend the same approach to the remaining API endpoints as they stabilize.
  • Refine category detail loading — in GET /api/equipment/categories/[slug], fetch enum options only for enum properties instead of loading relation data that is later discarded for non-enum properties.