21 Commits
Author SHA1 Message Date
i701 171b1d4d7c feat(agreements): implement agreement fetching and display with error handling
feat(agreement-card): create AgreementCard component for displaying user agreements
fix(devices-table): update no devices message for clarity based on parental control
fix(payments-table): update no payments message for consistency
fix(topups-table): update no topups message for consistency
feat(user): add agreement field to User interface
2025-07-27 19:43:01 +05:00
i701 9b2f2c1528 add admin checks for admin pages and run biome formating 🔨 2025-07-25 13:31:12 +05:00
i701 1f6fe7db38 feat(user-topups): add user topups page with dynamic filtering and admin table integration
feat(admin-devices-table): update admin check to use is_admin and clean up device display logic 
feat(admin-topup-table): create admin topups table with pagination and detail view links 
fix(user-payments-table): correct user data access and display payment amount with currency 
feat(app-sidebar): add link for user topups in the admin sidebar 
fix(backend-types): enhance Payment interface to include user details for better data handling 
2025-07-24 23:01:41 +05:00
i701 71f48b1270 fix: remove unnecessary JSON display of payment creation date and improve conditional styling in MobilePaymentDetails component 🐛 2025-07-09 21:44:54 +05:00
i701 27a0b5d4b3 bug: fix payment status display and force timezones in creation date in PaymentsTable and DevicesToPay components 🐛 2025-07-09 21:14:49 +05:00
i701 783d4b360d fix: pagination in PaymentsTable and TopupsTable components 🐛 2025-07-08 22:40:06 +05:00
i701 df2b3da22e feat: enhance payment and topup interfaces with status and expiration details 2025-07-06 22:38:01 +05:00
i701 fa0d088f7f feat: enhance payment retrieval with flexible query parameters and add dynamic filters to payments page 2025-07-05 20:41:12 +05:00
i701 a6d844e8d1 refactor: reorganize imports and improve session handling in various components 🔨 2025-07-01 07:53:21 +05:00
i701 6365a701ba feat: enhance error handling and improve API response management across components 2025-04-14 01:05:07 +05:00
i701 b932fcf03c TEMPORARY FIX TO TEST BUILD 2025-04-10 23:18:19 +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 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 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 fcf4f37561 remove unused imports 2025-01-10 21:44:47 +05:00
i701 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
i701 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
i701 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
i701 e9d81c089a Implement Omada device management and enhance payment processing
- Added new omada-actions.ts file to handle fetching and updating device groups in Omada.
- Updated authMiddleware to include new payment routes.
- Enhanced createPayment function to add devices to a group upon successful payment verification.
- Improved payment verification process to include device management.
- Refactored PaymentsTable and DevicesToPay components for better UI and state handling.
- Removed unused hasSession function from auth-guard.ts for cleaner code.
2024-12-13 11:24:13 +05:00
i701 e815da495a Add payment processing and device management features
- Introduced createPayment action for handling payment creation.
- Added PaymentsTable component for displaying payment records with pagination.
- Implemented new PaymentPage for viewing individual payment details and associated devices.
- Refactored DeviceCartDrawer to integrate payment creation and device selection.
- Enhanced DevicesToPay component to display devices based on payment status.
- Updated PriceCalculator component for better user input handling.
- Introduced NumberInput component for consistent number input across forms.
- Modified Prisma schema to include new fields for payments and devices.
- Improved overall user experience with responsive design adjustments and new UI elements.
2024-12-07 14:09:53 +05:00