Commit Graph

62 Commits

Author SHA1 Message Date
0157eccd57 feat: add dual range slider component and integrate it into dynamic filter for device management
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m49s
2025-06-29 20:46:34 +05:00
3f92a00bfe fix: correct font variable usage and improve type handling in dynamic filter
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 7m18s
2025-06-28 12:01:25 +05:00
11ac852762 chore: upgrade to tailwind v4 and add a generic filter for dynamic filter handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 7m51s
2025-06-27 14:27:44 +05:00
9e0d2d277b refactor: streamline package.json and tailwind.config.ts
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m56s
- Simplified dependencies in package.json by removing unused packages and organizing existing ones.
- Updated tailwind.config.ts for better readability and maintainability, ensuring consistent formatting and structure.
2025-06-27 13:12:29 +05:00
383ffddde6 fix: remove unused components and fix build 🐛
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m13s
2025-06-26 19:01:25 +05:00
59adaaf281 feat(devices): add proper filter handling and update shadcn 🔨 2025-06-26 18:42:48 +05:00
6aea54884d feat: add admin check for device and payment pages; update session type to include is_admin property
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 8m9s
2025-06-26 11:36:34 +05:00
406733b360 feat: update authentication layout and forms for improved user experience; add new dependencies and enhance styling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 5m39s
2025-06-09 01:12:16 +05:00
bed426a6b4 feat: add loading state and full-page loader component; update payment page and application layout to improve user experience
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 7m23s
2025-05-31 12:37:46 +05:00
886b0b15d0 fix: remove unused authentication imports in PaymentPage component
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 5m39s
2025-04-20 08:14:06 +05:00
3d12786332 fix: remove unused session retrieval in PaymentPage component
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m52s
2025-04-20 07:58:36 +05:00
ba91d2c8d4 feat: add getProfile function and integrate user profile retrieval in payment and layout components
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m47s
2025-04-20 07:40:31 +05:00
1ae529c758 fix: remove unused imports from authentication pages for cleaner code
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m47s
2025-04-19 11:08:44 +05:00
a4ffb1e34a feat: implement AuthLayout component and streamline OTP verification forms with enhanced messaging
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m49s
2025-04-19 10:22:42 +05:00
acb0ead6de refactor: remove unused import of checkIdOrPhone in OTP verification page
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m33s
2025-04-18 14:38:21 +05:00
f3f5800df6 feat: implement checkTempIdOrPhone function and update OTP verification logic
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m29s
2025-04-18 13:50:58 +05:00
322f526069 fix: streamline redirect logic for verified OTP response
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m21s
2025-04-18 12:05:08 +05:00
0b2dcfcc01 feat: enhance OTP verification flow with error handling and response checks
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m20s
2025-04-18 11:57:20 +05:00
0f9d1107de feat: implement user registration and OTP verification flow with backend integration
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m29s
2025-04-17 13:02:35 +05:00
de1e842145 fix: remove unused type prop from BlockDeviceDialog component
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m16s
2025-04-14 01:10:10 +05:00
6365a701ba feat: enhance error handling and improve API response management across components
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m39s
2025-04-14 01:05:07 +05:00
0d578c9add feat: add loading skeleton for devices table and improve payment processing logic
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m30s
2025-04-12 17:01:37 +05:00
7750c5a1cc feat: add Dashboard layout main Error component for error handling in dashboard
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Has been cancelled
2025-04-12 14:47:25 +05:00
bb5eff8b5b refactor: remove layout error component from dashboard
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m10s
2025-04-12 14:42:24 +05:00
aff9d26e0e refactor: enhance error handling and add pagination to device queries
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m37s
2025-04-12 14:35:23 +05:00
b932fcf03c TEMPORARY FIX TO TEST BUILD
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m15s
2025-04-10 23:18:19 +05:00
e8296ae3f6 temporary fix for build and remove previous auth related code 2025-04-10 22:39:38 +05:00
7e49bf119a refactor: update axios client import, enhance device and payment handling, and add cancel payment button component
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 6m28s
2025-04-08 21:37:51 +05:00
daab793592 refactor: implement session checking utility, enhance device queries with session validation, and improve UI interactions for device management
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 6m36s
2025-04-06 22:43:12 +05:00
9e2a2f430e refactor: update payment types and user interface, enhance error handling, and adjust API base URL
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 3m14s
2025-04-05 23:25:17 +05:00
aa18484475 refactor: add tryCatch utility for error handling, update device-related components and types, and clean up unused code in payment actions
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 13m55s
2025-04-05 16:07:11 +05:00
dbdc1df7d5 refactor: update authentication flow to use PIN instead of email/password, enhance OTP verification with NextAuth, and improve session handling in components
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 6m26s
2025-04-05 11:50:39 +05:00
ef9f032366 refactor: streamline authentication flow by removing unused code, replacing custom auth utilities with NextAuth, and updating session handling in components
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 5m56s
2025-03-28 22:24:45 +05:00
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
32bb01b656 refactor: replace custom authentication middleware with NextAuth, remove unused authentication pages, and update matcher configuration 2025-03-23 18:06:27 +05:00
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
0fd269df31 refactor: migrate authentication and signup flow to use external API and improve type safety
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m58s
2025-01-24 11:42:38 +05:00
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.
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 3m9s
2025-01-15 10:35:03 +05:00
0943898cc1 remove test api route
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m41s
2025-01-11 00:46:17 +05:00
2c67848618 Enhance user verification and UI components
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m24s
- 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
a3f0759731 Refactor user verification and data handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 55s
- 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
fcf4f37561 remove unused imports
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 32s
2025-01-10 21:44:47 +05:00
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
0a63e4337e Enhance user management and payment processing features
- Updated `package.json` to include a new script for launching Prisma Studio.
- Modified `signup` function in `auth-actions.ts` to include account number in user data.
- Refactored `createPayment` function in `payment.ts` to improve error handling and return structured responses.
- Updated UI components in the dashboard to improve layout and responsiveness, including changes to `UserDevices` and `UserPayments` pages.
- Introduced new `AdminDevicesTable` and `UsersPaymentsTable` components for better admin functionalities.
- Enhanced `DeviceCartDrawer` to provide user feedback during payment processing.
- Added account number input to the signup form and updated validation schema accordingly.
- Updated Prisma schema to include a new `ninja_user_id` field for user management.

These changes improve the overall functionality, maintainability, and user experience of the application, particularly in user management and payment processing.
2025-01-06 12:49:13 +05:00
745f8d8fad Enhance device management and user experience features
- Updated `package.json` to include the latest version of `@radix-ui/react-separator` and added `moment` for date handling.
- Modified `blockDevice` function in `omada-actions.ts` to include a `blockedBy` parameter, allowing differentiation between admin and parent actions.
- Refactored `payment.ts` to include expiry date handling for devices during payment processing.
- Improved `DevicesTable` and `ClickableRow` components to support admin functionalities and enhance device interaction.
- Updated `BlockDeviceDialog` to accept an `admin` prop, allowing for tailored blocking actions based on user role.
- Enhanced UI components for better consistency and responsiveness across the dashboard.

These changes improve the overall functionality and maintainability of the application, providing a better user experience in device management.
2025-01-01 23:48:56 +05:00
bdf3729b0d Implement new features and enhance existing components for improved user experience
- Added a new `bun.lockb` file for dependency management.
- Updated `next.config.ts` to set output to "standalone" for better deployment options.
- Removed `package-lock.json` to streamline package management.
- Modified `package.json` to update dependencies, including `@prisma/client` and `sonner`, and adjusted build scripts for improved functionality.
- Enhanced Tailwind CSS configuration to include new animations and color schemes.
- Refactored various dashboard components to improve UI consistency, including adding a new `My Wallet` page and updating existing pages to use a unified styling approach.
- Introduced a new `BlockDeviceDialog` component for managing device blocking with user-defined reasons.
- Improved logging and error handling in payment verification and device management functions.

These changes enhance the overall functionality, maintainability, and user experience of the application.
2024-12-26 20:25:59 +05:00
0f17800a00 Refactor UI components for improved consistency and functionality
- Removed unnecessary border styles from various dashboard components including Devices, DeviceDetails, Parental Control, Payments, and Users pages to enhance visual consistency.
- Updated DevicesTable to utilize a new ClickableRow component for better device interaction and management.
- Refactored AddDevicesToCartButton to use a checkbox for selecting devices, improving user experience.
- Enhanced DeviceCard component to streamline device information display and interaction.
- Overall improvements to the layout and responsiveness of the dashboard components.

These changes enhance the user interface and improve the maintainability of the codebase.
2024-12-26 00:43:39 +05:00
5c167e436d Refactor SMS notification handling to use environment variables
- Updated SMS API calls in auth-actions.ts, user-actions.ts, and check-devices/route.ts to utilize environment variables for the base URL and API key.
- Changed request body parameters from 'text' to 'message' and added 'check_delivery' to improve SMS delivery tracking.

These changes enhance security and maintainability by centralizing configuration settings.
2024-12-25 21:22:30 +05:00
75ad431160 Enhance payment processing and device management features
- Introduced wallet payment option in verifyPayment function to allow users to pay using their wallet balance.
- Added new BlockDeviceDialog component for managing device blocking and unblocking actions.
- Updated DeviceCard component to display device status and integrate blocking functionality.
- Refactored DevicesTable to utilize DeviceCard for better UI representation of devices.
- Implemented Wallet component to manage wallet balance and top-up functionality.
- Enhanced API routes and Prisma schema to support wallet transactions and device blocking reasons.
- Improved overall user experience with responsive design adjustments and new UI elements.

These changes improve user control over payments and device management, enhancing the overall functionality of the application.
2024-12-25 17:21:04 +05:00
c06c4fee3f Implement parental control features and enhance device management
- Added a new Parental Control page for managing device access and notifications.
- Introduced blockDevice function to handle blocking and unblocking devices based on payment status.
- Enhanced omada-actions.ts to include device blocking logic and improved error handling.
- Updated DevicesTable component to integrate BlockDeviceButton for managing device states.
- Implemented API route for checking device statuses and sending notifications for expiring devices.
- Refactored payment processing to update device statuses upon successful payment verification.
- Added new utility functions for API key validation and SMS notifications.

These changes improve user control over device management and enhance the overall functionality of the application.
2024-12-22 21:34:57 +05:00