Skip to content

Dev#469

Merged
codeZe-us merged 44 commits into
mainfrom
dev
Apr 30, 2026
Merged

Dev#469
codeZe-us merged 44 commits into
mainfrom
dev

Conversation

@codeZe-us
Copy link
Copy Markdown
Contributor

\

Faith-okereke and others added 30 commits April 26, 2026 15:41
- Add global formatCurrency utility in src/utils/formatters.ts
- Implement secure kobo-to-NGN conversion using Intl.NumberFormat
- Update 6 components to use centralized currency formatting
- Add comprehensive unit tests for formatter utility
- Ensure consistent currency display across finance, payroll, and invoices

Files changed:
- src/utils/formatters.ts (new)
- src/utils/formatters.test.ts (new)
- src/app/(dashboard)/invoices/[id]/page.tsx
- src/app/(dashboard)/invoices/page.tsx
- src/app/(dashboard)/payroll/components/PayoutHistory.tsx
- src/components/features/finance/NairaTransactionHistory.tsx
- src/components/features/invoices/InvoiceSummary.tsx
- src/components/features/invoices/InvoiceDetailsSection.tsx
…-Currency-Display

feat: standardize currency display across platform
Replace hardcoded mock data with live API calls to:
- GET /api/v1/dashboard/user-summary (welcome greeting)
- GET /api/v1/dashboard/onboarding (checklist + progress)
- GET /api/v1/dashboard/attention (requiring attention counts)

Add src/lib/api/dashboard.ts following the auth.ts pattern.
Handle loading states with skeleton placeholders.

Closes #423
- Add src/lib/api/employees.ts with getEmployees() and addEmployee()
  using the shared apiClient (RFC 7807 error handling included)
- Create src/app/(dashboard)/employees/page.tsx that:
  - Fetches real employee records from GET /api/v1/team/employees
    with search, status/type filtering, and server-side pagination
  - Wires AddEmployeeWizard onSuccess to POST /api/v1/team/employees
  - Shows StatsBar, SearchFilterBar, FilterModal, and Pagination
    reusing existing team-management components

Closes #424
…tting

feat:standardize timestampp formatting across componetns
…layout

- Replace invoice-style mock data with payroll records (employee, contractType, amount, paidIn, timestamp)
- Add 8 static mock rows matching design
- Desktop: full table with avatar+initials, contract type badge, USDT pill, timestamp
- Mobile: compact card — name + badge top row, amount | USDT | timestamp below
- Real-time search filter by employee name
- Filter icon button (UI only)
- 800ms loading skeleton before table renders
- Empty state via existing EmptyState component
- Remove all alert() calls from form components
- Replace with useToast hook for consistent error/success notifications
- Update ImageUploadModal, CreateTimeOffForm, and BillingAddressForm
- Use error() for validation and catch errors, success() for confirmations
…ory-table

feat(payroll): build payout history table with search and responsive …
…tables

feat(payroll): build payout history table with search and responsive …
Implement finance transaction history
feat(finance): display organization fiat balance in navbar and finance page
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vestrollproduction Error Error Apr 30, 2026 2:54pm

@codeZe-us codeZe-us merged commit 059c82a into main Apr 30, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.