Conversation
- 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
…tract history empty state messages
- 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 team invitation flow
Implement finance transaction history
feat(finance): display organization fiat balance in navbar and finance page
feat: unify loading spinners with central LoadingSpinner component (#…
Add Secure File Uploads for KYB
add protected middleware
…agement-crud feat(#424): connect employee directory to live API
…s-profile-427 feat: connect organization settings profile to backend
…tics-api Feat/connect dashboard statistics api
…bmission feat(team): connect time-off form to API (Closes #437)
Unify refactor error toasts
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
\