67 Commits
Author SHA1 Message Date
i701 c67b8ade10 fix: verification response handling 🐛 2025-09-15 22:00:57 +05:00
i701 17aa65a686 feat(user-update-form): display field errors in user update form 2025-07-28 10:03:17 +05:00
i701 a717c3d242 feat(admin-topup): add description field to topup request payload
fix(wallet-transactions-table): update badge colors for better visibility
2025-07-27 22:13:49 +05:00
i701 3da668a94a feat(admin-topup): add description field to topup form and validation for amount
fix(verify-registration-otp): improve styling and structure of OTP verification form
2025-07-27 16:01:15 +05:00
i701 644e4f730f feat(user): add admin topup functionality in user details page 2025-07-27 12:37:38 +05:00
i701 e0b76bb865 feat(wallet): implement wallet transactions table and filtering options 2025-07-25 16:01:20 +05:00
i701 9b2f2c1528 add admin checks for admin pages and run biome formating 🔨 2025-07-25 13:31:12 +05:00
i701 aedf7cdf7d feat(topups): add support for fetching all topups in getTopups function 2025-07-25 11:06:55 +05:00
i701 c2578f1c8f feat(user-agreement): implement user agreement upload functionality and update related components 2025-07-25 10:39:15 +05:00
i701 c34285c66d feat(admin): add admin payment tables + filters 2025-07-23 23:12:10 +05:00
i701 dc3b5f9bf9 feat(user-verification): implement user verification functionality and update dialog UI 2025-07-16 02:03:03 +05:00
i701 9926de99d6 feat(filters): replace existing filters with dynamic filters for improved user and device management 2025-07-14 21:39:31 +05:00
i701 8fac07bb60 feat(user): implement user update functionality and enhance verification page UI 2025-07-14 21:38:29 +05:00
i701 255c03ae6a feat: implement user verification and rejection functionality with improved error handling 2025-07-13 22:51:46 +05:00
i701 78673e050c refactor: remove unused user verification function and clean up user type definitions 🔨 2025-07-11 14:41:30 +05:00
i701 a20c939c91 feat: implement user profile page and integrate profile fetching logic in AccountPopover and ApplicationLayout components 2025-07-11 14:41:06 +05:00
i701 1a11f1a06c refactor: implement device payment verification with useActionState hook 🔨 2025-07-06 23:06:51 +05:00
i701 e984705849 refactor: update cancelPayment function to use PATCH method and new endpoint 🔨 2025-07-06 22:38:55 +05:00
i701 b9d8e56c3c feat: update cancelTopup API call to use PATCH method and enhance success message with topup details 2025-07-06 20:01:10 +05:00
i701 9fe3c3b774 feat: enhance payment retrieval with flexible query parameters and add dynamic filters to payments page 2025-07-06 20:01:10 +05:00
i701 013befa433 refactor: enhance topup payment verification with improved state management and error handling 🔨 2025-07-05 15:34:02 +05:00
i701 ee461bbbf8 feat: implement topup functionality with create, get, and cancel operations 2025-07-04 23:06:13 +05:00
i701 01b064aee7 WIP feat(admin-devices): enhance device management from admin with dynamic filters and improved blocking functionality 2025-06-30 15:16:36 +05:00
i701 07349cda05 Refactor payment verification and add MAC address guide
- Updated payment verification logic in `actions/payment.ts` to remove unused code and improve clarity.
- Enhanced `DevicesToPay` component to handle separate states for wallet and transfer payment verification.
- Introduced a new `GetMacAccordion` component to guide users on finding their MAC addresses.
- Created a reusable accordion component in `ui/accordion.tsx` for better UI consistency.
- Integrated the MAC address guide into the device addition dialog.
- Updated Tailwind CSS configuration to include animations for the accordion component.
- Added Radix UI Accordion dependency to package.json and package-lock.json.
- Improved error handling in API response utility to log unauthorized responses.
2025-05-30 23:53:08 +05:00
i701 0c093f1303 feat: add age validation in signup and update payment verification logic 2025-04-20 12:36:24 +05:00
i701 ba91d2c8d4 feat: add getProfile function and integrate user profile retrieval in payment and layout components 2025-04-20 07:40:31 +05:00
i701 e0e3de064a fix: update error messages and statuses in VerifyRegistrationOTP function for clarity 2025-04-18 18:53:20 +05:00
i701 00705bcd1a fix: update signin function to handle user verification response correctly 2025-04-18 15:04:24 +05:00
i701 923887b559 feat: integrate checkTempIdOrPhone in signup logic to validate temporary phone numbers 2025-04-18 14:35:34 +05:00
i701 f3f5800df6 feat: implement checkTempIdOrPhone function and update OTP verification logic 2025-04-18 13:50:58 +05:00
i701 4127035471 fix: add logging for user data and adjust verification check in signin function 2025-04-18 13:21:47 +05:00
i701 2cb2059f9e feat: integrate backend mobile login and enhance user verification flow 2025-04-17 23:25:06 +05:00
i701 1e023ebf13 feat: update signup and OTP verification forms to enhance error handling and state management 2025-04-17 15:18:01 +05:00
i701 470e8452b5 registration verification WIP 2025-04-17 14:04:22 +05:00
i701 0f9d1107de feat: implement user registration and OTP verification flow with backend integration 2025-04-17 13:02:35 +05:00
i701 0d578c9add feat: add loading skeleton for devices table and improve payment processing logic 2025-04-12 17:01:37 +05:00
i701 aff9d26e0e refactor: enhance error handling and add pagination to device queries 2025-04-12 14:35:23 +05:00
i701 7e49bf119a refactor: update axios client import, enhance device and payment handling, and add cancel payment button component 2025-04-08 21:37:51 +05:00
i701 daab793592 refactor: implement session checking utility, enhance device queries with session validation, and improve UI interactions for device management 2025-04-06 22:43:12 +05:00
i701 9e2a2f430e refactor: update payment types and user interface, enhance error handling, and adjust API base URL 2025-04-05 23:25:17 +05:00
i701 aa18484475 refactor: add tryCatch utility for error handling, update device-related components and types, and clean up unused code in payment actions 2025-04-05 16:07:11 +05:00
i701 ef9f032366 refactor: streamline authentication flow by removing unused code, replacing custom auth utilities with NextAuth, and updating session handling in components 2025-03-28 22:24:45 +05:00
i701 99c5fef748 refactor: enhance authentication and signup flow with new providers, update middleware matcher, and improve type safety for API responses 2025-03-26 22:48:14 +05:00
i701 32bb01b656 refactor: replace custom authentication middleware with NextAuth, remove unused authentication pages, and update matcher configuration 2025-03-23 18:06:27 +05:00
i701 020d74c5e2 refactor: update authentication flow to use NextAuth, replace better-auth with axios for API calls, and clean up unused code 2025-03-23 15:07:03 +05:00
i701 0fd269df31 refactor: migrate authentication and signup flow to use external API and improve type safety 2025-01-24 11:42:38 +05:00
i701 8ffabb1fcb Refactor authentication middleware to use native fetch, update dependencies, and enhance error handling. Add new error boundary component for dashboard and improve user verification UI. Update payment handling and device management components for better user experience. Adjust CSS for error backgrounds and refine input read-only components with validation indicators. 2025-01-15 10:35:03 +05:00
i701 2c67848618 Enhance user verification and UI components
- Updated `auth-actions.ts` to improve user verification notification formatting and date handling.
- Modified `layout.tsx` to support dark mode styling for better user experience.
- Refactored `signup/page.tsx` to enhance layout and responsiveness.
- Introduced a new API route in `route.ts` for sending user verification notifications.
- Improved user feedback in `user-payments-table.tsx` by updating the no payment message.
- Made minor adjustments in `application-layout.tsx` for consistent padding.
- Enhanced `signup-form.tsx` to display error messages for invalid user validation.

These changes improve the user verification process, enhance UI consistency, and provide better feedback to users.
2025-01-10 23:34:53 +05:00
i701 a3f0759731 Refactor user verification and data handling
- Updated `package.json` to add a new script for Prisma database setup.
- Replaced `usePerson` hook with `getNationalPerson` function in `lib/person.ts` for improved national data fetching.
- Refactored imports in `auth-actions.ts`, `user-actions.ts`, and `verify/page.tsx` to use the new `getNationalPerson` function.
- Enhanced device notification logic in `check-devices/route.ts` to correctly handle payment data.
- Improved error handling in `devices-to-pay.tsx` for better user feedback.

These changes streamline user verification processes and enhance data integrity across the application.
2025-01-10 21:58:13 +05:00
i701 ff0eae6ec4 Enhance user verification and data validation features
- Updated `next.config.ts` to include remote image patterns for user verification.
- Introduced `VerifyUserDetails` function in `lib/person.ts` to validate user data against national records.
- Added `usePerson` hook for fetching national data based on ID card.
- Enhanced `signup` and `signin` functions in `auth-actions.ts` to handle user verification status and send notifications for pending verifications.
- Refactored `VerifyUser` function in `user-actions.ts` to incorporate national data validation.
- Improved UI components in the user verification page to display both database and national information.
- Updated `InputReadOnly` component to support customizable label classes for better styling.

These changes improve the user verification process, ensuring data integrity and enhancing the overall user experience.
2025-01-10 15:59:44 +05:00