feat: add marketplace metrics, privacy features, and service registry endpoints
- Add Prometheus metrics for marketplace API throughput and error rates with new dashboard panels - Implement confidential transaction models with encryption support and access control - Add key management system with registration, rotation, and audit logging - Create services and registry routers for service discovery and management - Integrate ZK proof generation for privacy-preserving receipts - Add metrics instru
This commit is contained in:
@ -1,38 +1,43 @@
|
||||
# Marketplace Web – Task Breakdown
|
||||
|
||||
## Status (2025-09-27)
|
||||
## Status (2025-12-22)
|
||||
|
||||
- **Stage 1**: Frontend scaffolding pending. Awaiting API definitions from coordinator/pool hub before wiring mock vs real data sources.
|
||||
- **Stage 1**: ✅ Completed - Vite + TypeScript project initialized with API layer, auth scaffolding, and mock/live data toggle.
|
||||
- **Stage 2**: ✅ Completed - Connected to coordinator endpoints with feature flags for live mode rollout.
|
||||
|
||||
## Stage 1 (MVP)
|
||||
## Stage 1 (MVP) - Completed
|
||||
|
||||
- **Project Initialization**
|
||||
- Scaffold Vite + TypeScript project under `apps/marketplace-web/`.
|
||||
- Define `package.json`, `tsconfig.json`, `vite.config.ts`, and `.env.example` with `VITE_API_BASE`, `VITE_FEATURE_WALLET`.
|
||||
- Configure ESLint/Prettier presets if desired.
|
||||
- ✅ Scaffold Vite + TypeScript project under `apps/marketplace-web/`.
|
||||
- ✅ Define `package.json`, `tsconfig.json`, `vite.config.ts`, and `.env.example` with `VITE_API_BASE`, `VITE_FEATURE_WALLET`.
|
||||
- ✅ Configure ESLint/Prettier presets.
|
||||
|
||||
- **API Layer**
|
||||
- Implement `src/api/http.ts` for base fetch wrapper with mock vs real toggle.
|
||||
- Create `src/api/marketplace.ts` with typed functions for offers, bids, stats, wallet.
|
||||
- Provide mock JSON files under `public/.mock/` for development.
|
||||
- ✅ Implement `src/api/http.ts` for base fetch wrapper with mock vs real toggle.
|
||||
- ✅ Create `src/api/marketplace.ts` with typed functions for offers, bids, stats, wallet.
|
||||
- ✅ Provide mock JSON files under `public/mock/` for development.
|
||||
|
||||
- **State Management**
|
||||
- Implement lightweight store in `src/store/state.ts` with pub/sub and caching.
|
||||
- Define shared TypeScript interfaces in `src/store/types.ts` per bootstrap doc.
|
||||
- ✅ Implement lightweight store in `src/lib/api.ts` with pub/sub and caching.
|
||||
- ✅ Define shared TypeScript interfaces in `src/lib/types.ts`.
|
||||
|
||||
- **Views & Components**
|
||||
- Build router in `src/router.ts` and bootstrap in `src/app.ts`.
|
||||
- Implement views: `HomeView`, `OfferDetailView`, `BidsView`, `StatsView`, `WalletView`.
|
||||
- Create components: `OfferCard`, `BidForm`, `Table`, `Sparkline`, `Toast` with validation and responsive design.
|
||||
- Add filters (region, hardware, price, latency) on home view.
|
||||
- ✅ Build router in `src/main.ts` and bootstrap application.
|
||||
- ✅ Implement views: offer list, bid form, stats cards.
|
||||
- ✅ Create components with validation and responsive design.
|
||||
- ✅ Add filters (region, hardware, price, latency).
|
||||
|
||||
- **Styling & UX**
|
||||
- Create CSS files (`styles/base.css`, `styles/layout.css`, `styles/components.css`) implementing dark theme and 960px layout.
|
||||
- Ensure accessibility: semantic HTML, focus states, keyboard navigation.
|
||||
- Add toast notifications and form validation messaging.
|
||||
- ✅ Create CSS system implementing design and responsive layout.
|
||||
- ✅ Ensure accessibility: semantic HTML, focus states, keyboard navigation.
|
||||
- ✅ Add toast notifications and form validation messaging.
|
||||
|
||||
- **Authentication**
|
||||
- ✅ Implement auth/session scaffolding in `src/lib/auth.ts`.
|
||||
- ✅ Add feature flags for marketplace actions.
|
||||
|
||||
- **Documentation**
|
||||
- Update `apps/marketplace-web/README.md` with instructions for dev/build, mock API usage, and configuration.
|
||||
- ✅ Update `apps/marketplace-web/README.md` with instructions for dev/build, mock API usage, and configuration.
|
||||
|
||||
## Stage 2+
|
||||
|
||||
|
||||
Reference in New Issue
Block a user