Problem
Vendors have no way to register or manage their profile
on StepFi-Web. The /vendors page is a placeholder.
Context
Vendors are one of the main participants in the StepFi
protocol. They need to register, list their products, and
see which learner loans are tied to their catalog.
Before Starting
Read these context files:
- context/architecture-context.md
- context/code-standards.md
What To Build
-
Create src/services/vendors.service.ts:
- listVendors(page, limit) -> GET /vendors
- getVendor(id) -> GET /vendors/:id
- registerVendor(data) -> POST /vendors
-
Build /vendors page showing:
- Search bar with category filter
- Grid of vendor cards (name, category, country,
rating)
- Each card links to vendor detail page
-
Build /vendors/register page with form:
- Name (required)
- Category (select: Electronics, Bootcamp,
OnlineCourse, DevTools, Books)
- Country (required)
- City (optional)
- Website (optional, URL validation)
- Description (optional, max 500 chars)
- Submit calls POST /vendors with JWT auth
-
Build /vendors/:id page showing vendor detail
Files To Touch
- src/pages/Vendors.tsx
- src/pages/VendorDetail.tsx (new)
- src/pages/VendorRegister.tsx (new)
- src/services/vendors.service.ts
- src/router/index.tsx (add new routes)
Acceptance Criteria
Mandatory Checks Before PR
Problem
Vendors have no way to register or manage their profile
on StepFi-Web. The /vendors page is a placeholder.
Context
Vendors are one of the main participants in the StepFi
protocol. They need to register, list their products, and
see which learner loans are tied to their catalog.
Before Starting
Read these context files:
What To Build
Create src/services/vendors.service.ts:
Build /vendors page showing:
rating)
Build /vendors/register page with form:
OnlineCourse, DevTools, Books)
Build /vendors/:id page showing vendor detail
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR