How uvend/uvendnuxt works
UvendNuxt is a Nuxt 3 interface for UVend prepaid utilities, with customer and admin workflows plus wallet and registration experiences. The clearest end-to-end paths shown are multi-step registration—collecting and retaining form sections before submission—and a wallet dashboard that retrieves meter and vending-history data for summary metrics. Customer meter statements and activity analysis form another capability. The README identifies the overall admin/customer product, but sampled source does not establish most admin-page interactions or backend contracts; those links are left unverified.
Main entry points: Registration/index.vue Registration flow · wallet/index.vue Wallet dashboard · account Admin accounts · summarisedPayload.js Statement normalizer
Components 22
Registration
- Registration flow
pages/Registration/index.vue - Registration type
components/registration/RegistrationType.vue - Personal details
components/registration/PersonalInfo.vue - Documents
components/registration/DocumentUpload.vue - Banking details
components/registration/BankingDetails.vue - Address details
components/registration/AddressDetails.vue - Meter and unit details
components/registration/MeterDetails.vue - Registration summary
components/registration/Summary.vue - Registration state
stores/registration.ts
Customer utilities
- Customer statements
pages/my/[customer_id]/statement.vue - Meter overview
pages/my/[customer_id]/meters/index.vue - Meter activity
composables/useMeterActivity.js - Statement normalizer
composables/summarisedPayload.js
Wallet
- Wallet dashboard
pages/wallet/index.vue - Wallet management
pages/wallet
Administration
- Admin accounts
pages/admin/account - Admin payments
pages/admin/account/payments.vue - Admin batches
pages/admin/account/batch - M-Pesa requests
pages/admin/mpesa
Other components
- Registrant
- Statement API
- Wallet API
Connections 22
- Registrant → Registration flow: starts
- Registration flow → Registration type: renders step
pages/Registration/index.vue - Registration flow → Personal details: renders step
pages/Registration/index.vue - Registration flow → Documents: renders step
pages/Registration/index.vue - Registration flow → Banking details: renders step
pages/Registration/index.vue - Registration flow → Address details: renders step
pages/Registration/index.vue - Registration flow → Meter and unit details: renders step
pages/Registration/index.vue - Registration flow → Registration summary: renders step
pages/Registration/index.vue - Registration flow → Registration state: reads form state
pages/Registration/index.vue - Registration flow → Registration state: advances steps
pages/Registration/index.vue - Customer statements → Statement API: requests data
- Customer statements → Statement normalizer: normalizes response
pages/my/[customer_id]/statement.vue - Meter overview → Statement API: requests data
- Meter overview → Statement normalizer: normalizes response
pages/my/[customer_id]/meters/index.vue - Meter activity → Statement API: fetches summary
composables/useMeterActivity.js - Meter activity → Statement normalizer: normalizes response
composables/useMeterActivity.js - Wallet dashboard → Wallet API: fetches meters
pages/wallet/index.vue - Wallet dashboard → Wallet API: fetches history
pages/wallet/index.vue - Wallet dashboard → Wallet management: supports
- Admin accounts → Admin payments: includes route
- Admin accounts → Admin batches: includes route
- Admin accounts → M-Pesa requests: integrates requests