71 Commits

Author SHA1 Message Date
tema
d9f7c5c8b2 Enhance Freebit SIM management features and UI components
- Added optional service features to SimDetails interface: voiceMailEnabled, callWaitingEnabled, internationalRoamingEnabled, and networkType.
- Updated FreebitService to include new service feature flags based on SIM data.
- Enhanced SimDetailsCard component to display service features for eSIMs, including voice mail, call waiting, international roaming, and network type.
- Improved conditional rendering for optional fields in SimDetailsCard.
- Updated SimActions component with an ID for better accessibility.
2025-09-05 12:30:57 +09:00
tema
9e552d6a21 Enhance SIM management features and order details
- Added new environment variables for Freebit API configuration in env.validation.ts.
- Updated OrderOrchestrator to include unit price, total price, and billing cycle in order item details.
- Expanded SubscriptionsController with new SIM management endpoints for debugging, retrieving details, usage, top-ups, plan changes, cancellations, and eSIM reissues.
- Integrated SimManagementService into SubscriptionsModule and SubscriptionsController.
- Updated OrdersPage and SubscriptionDetailPage to display additional order item information and conditionally render SIM management sections.
2025-09-04 18:34:28 +09:00
tema
f2b34d9949 Merge branch 'main' of https://github.com/NTumurbars/customer-portal into Tema-v1 2025-09-04 14:17:14 +09:00
T. Narantuya
33e3963fcf Enhance manage.sh for flexible compose file selection
- Introduced logic to select the compose file based on the DEV_STACK environment variable, allowing for options: full, services, or auto.
- Updated preflight checks to provide clearer error messages regarding compose file requirements.
- Added logging to indicate which compose file is being used during service startup and status checks.
2025-09-04 10:51:44 +09:00
T. Narantuya
91a9142d8a Update PLESK_DEPLOYMENT.md to include new image build options
- Added Option A for using a helper script to build and upload images with tagging and registry push capabilities.
- Retained Option B for manual build commands.
2025-09-04 10:51:38 +09:00
tema
75e205b1e3 Update field mapping for billing address and enhance order page components
- Updated default field mappings for billing address in SalesforceFieldMap to maintain backward compatibility.
- Added new icons for service types in OrdersPage and OrderStatusPage for improved visual representation.
- Revised next action and timeline messages for clarity and consistency across order status components.
- Enhanced layout and styling for better user experience in order details and service overview sections.
2025-09-02 18:55:17 +09:00
NTumurbars
9fe9c59f10
Merge pull request #3 from NTumurbars/Tema-v1
Add OrderFulfillmentErrorService and update WhmcsModule exports
2025-09-02 17:47:59 +09:00
tema
22baa0af06 Add OrderFulfillmentErrorService and update WhmcsModule exports 2025-09-02 17:43:30 +09:00
T. Narantuya
bb6593c9a3 Refactor OrderFulfillmentController for improved readability and consistency
- Consolidated import statements for better clarity.
- Streamlined API operation and parameter definitions for enhanced readability.
- Cleaned up response schemas and error handling for consistency across API responses.
- Improved logging messages for better context during order fulfillment requests.
2025-09-02 16:09:54 +09:00
T. Narantuya
98f998db51 Refactor code for improved readability and maintainability
- Simplified import statements in auth.controller.ts and consolidated DTO imports.
- Streamlined accountStatus method in AuthController for better clarity.
- Refactored error handling in AuthService for existing mapping checks and password validation.
- Cleaned up whitespace and formatting across various files for consistency.
- Enhanced logging configuration in logging.module.ts to reduce noise and improve clarity.
- Updated frontend components for better formatting and readability in ProfilePage and SignupPage.
2025-09-02 16:09:17 +09:00
T. Narantuya
26eb8a7341 Enhance user service and Salesforce connection handling
- Added 'salesforceHealthy' property to EnhancedUser interface for tracking Salesforce account health.
- Updated toEnhancedUser method to accept 'salesforceHealthy' parameter for improved user data handling.
- Modified user retrieval logic to correctly reflect Salesforce account status.
- Refactored Salesforce connection service to handle session expiration with automatic re-authentication for SObject operations.
2025-09-02 14:15:24 +09:00
T. Narantuya
cc2a6a3046 Enhance authentication and password management features
- Added new endpoint for retrieving account status by email in AuthController.
- Implemented change password functionality with validation in AuthService.
- Updated password strength validation to require special characters across relevant DTOs.
- Introduced optional API Access Key in environment configuration for WHMCS.
- Refactored user address update logic in UsersController to improve clarity and maintainability.
- Enhanced error handling in various services to provide more user-friendly messages.
- Updated frontend components to support new password change and account status features.
2025-09-02 13:52:13 +09:00
T. Narantuya
0f7d680782 Update throttler configuration and enhance logging setup
- Adjusted authentication rate limit TTL from 15 minutes to 10 minutes for stricter control.
- Improved logging configuration to reduce noise by ignoring specific HTTP requests and customizing serializers.
- Refactored logging in checkout components to utilize useCallback for better performance and removed unnecessary console logs.
2025-09-01 18:47:30 +09:00
T. Narantuya
48116bf160 Update compose-plesk.yaml to include Redis service wait condition and correct main entry point for application 2025-09-01 17:24:00 +09:00
T. Narantuya
911b16b67a Update Dockerfile and package configurations for BFF module
- Refactor Dockerfile to improve clarity in production dependency installation and Prisma client generation.
- Update package.json to include express and adjust dependencies for better compatibility.
- Modify pnpm-lock.yaml to reflect changes in dependencies and ensure consistency across the project.
2025-09-01 16:45:12 +09:00
T. Narantuya
853a5473b3 Refactor Docker configuration in compose-plesk.yaml to streamline service setup by adding network mode and service links for frontend, backend, database, and cache services. 2025-09-01 15:50:53 +09:00
T. Narantuya
2dd049fcd4 Remove unused network configurations and service links in compose-plesk.yaml to streamline Docker setup. 2025-09-01 15:36:26 +09:00
T. Narantuya
0c2e5de9b0 Enhance Docker configuration in compose-plesk.yaml by adding service links for database and cache, and updating network settings to use an external bridge network. 2025-09-01 15:29:27 +09:00
T. Narantuya
d9c7ad66ad Update Docker network configuration in compose-plesk.yaml to disable IPv6 support 2025-09-01 15:26:53 +09:00
T. Narantuya
4d0baed4b2 Update Plesk environment configuration and enhance Docker setup
- Added detailed instructions for Plesk deployment in `.env.plesk` and `compose-plesk.yaml`.
- Updated `.gitignore` to exclude Docker-related files.
- Enhanced Dockerfiles for both frontend and backend to optimize for Plesk deployment.
- Refined TypeScript configurations across various files for improved module resolution and compatibility.
- Removed obsolete logger fixes summary file to streamline documentation.
2025-09-01 15:11:42 +09:00
NTumurbars
d77316f558
Merge pull request #2 from NTumurbars/Tema-v1
Refactor payment methods handling and enhance logging for better debu…
2025-08-30 18:56:43 +09:00
T. Narantuya
b0c8103ee2 Refactor TypeScript configurations and enhance logging setup
- Updated nest-cli.json to enable output directory deletion and refined TypeScript compiler options.
- Modified package.json to improve development command for BFF with preserved watch output.
- Adjusted tsconfig.json to extend from a higher-level configuration and removed unnecessary options.
- Enhanced logging.module.ts to simplify logger configuration and improve log message formatting.
- Updated next.config.mjs to manage server-only libraries and optimize Webpack configuration.
- Refined error logging in various components for better clarity and consistency.
2025-08-30 18:22:31 +09:00
T. Narantuya
807d37a729 Enhance TypeScript configuration and logging setup
- Added "rootDir" to tsconfig.build.json for improved build structure.
- Implemented dynamic import for fs/promises in nest-logger.config.ts to ensure compatibility in different environments and handle directory creation more robustly.
2025-08-30 17:23:50 +09:00
T. Narantuya
67c763016d Update TypeScript configurations and build process for BFF module
- Set entry file in nest-cli.json and disabled output directory deletion.
- Updated tsconfig.build.json to extend from tsconfig.base.json and refined compiler options.
- Modified tsconfig.json to extend from tsconfig.base.json and removed unnecessary overrides.
- Adjusted manage.sh script to build BFF using TypeScript compiler directly.
2025-08-30 17:11:10 +09:00
T. Narantuya
cde7cb3e3c Update package configurations and enhance BFF module structure
- Modified build command in package.json for improved reporting.
- Updated pnpm-lock.yaml to remove obsolete dependencies and add new ones.
- Enhanced TypeScript configuration in BFF for better compatibility with ES2024.
- Refactored app.module.ts for clearer module organization and added comments for better understanding.
- Adjusted next.config.mjs to conditionally enable standalone output based on environment.
- Improved InternetPlansPage to fetch and display installation options alongside internet plans.
- Cleaned up unnecessary comments and code in VPN plans page for better readability.
- Updated manage.sh script to build shared packages and BFF before starting development applications.
2025-08-30 16:45:22 +09:00
tema
e9bb080ad3 Refactor payment methods handling and enhance logging for better debugging
- Improved logging and error handling in `testWhmcsPaymentMethods` method of InvoicesService.
- Updated `getPaymentMethods` in WhmcsPaymentService to bypass cache for enhanced debugging.
- Refined payment method transformation in WhmcsDataTransformer for improved API response handling.
- Added detailed debug information in Checkout and AddressConfirmation components to assist in troubleshooting.
2025-08-30 16:03:01 +09:00
NTumurbars
9a7c1a06bb
Merge pull request #1 from NTumurbars/Tema-v1
Tema v1
2025-08-30 15:51:56 +09:00
NTumurbars
b99f256da3
Merge branch 'main' into Tema-v1 2025-08-30 15:51:31 +09:00
T. Narantuya
d055ba34d8 Remove obsolete deployment guides and ESLint report files to streamline project documentation and improve clarity. Updated package configurations and scripts for better development experience and logging integration. 2025-08-30 15:47:48 +09:00
tema
cc3ace04e4 Enhance WHMCS payment methods testing and logging
- Improved `testPaymentMethods` endpoint in InvoicesController for better client ID testing.
- Enhanced `testWhmcsPaymentMethods` method in InvoicesService with improved logging and error handling.
- Updated `getPaymentMethods` in WhmcsPaymentService to bypass cache and improve debugging.
- Refined payment method transformation in WhmcsDataTransformer for better API response handling.
- Added detailed debug information in Checkout and AddressConfirmation components for troubleshooting.
2025-08-30 15:45:22 +09:00
tema
a8f02ebc2b Add temporary debug endpoints and methods for WHMCS payment methods testing
- Introduced `testPaymentMethods` endpoint in InvoicesController to directly test WHMCS payment methods for a specific client ID.
- Added `testWhmcsPaymentMethods` method in InvoicesService for detailed logging and error handling during WHMCS API calls.
- Implemented cache bypassing and enhanced logging in `getPaymentMethods` method of WhmcsPaymentService for debugging purposes.
- Updated payment method transformation logic in WhmcsDataTransformer to handle variations in WHMCS API responses.
- Added debug information in Checkout and AddressConfirmation components to assist in troubleshooting address confirmation flow.
2025-08-30 15:41:08 +09:00
tema
1640fae457 Add new payment methods and health check endpoints in Auth and Invoices services
- Introduced `validateSignup` endpoint in AuthController for customer number validation during signup.
- Added `healthCheck` method in AuthService to verify service integrations and database connectivity.
- Implemented `getPaymentMethods`, `getPaymentGateways`, and `refreshPaymentMethods` endpoints in InvoicesController for managing user payment options.
- Enhanced InvoicesService with methods to invalidate payment methods cache and improved error handling.
- Updated currency handling across various services and components to reflect JPY as the default currency.
- Added new dependencies in package.json for ESLint configuration.
2025-08-30 15:10:24 +09:00
T. Narantuya
5e21d2840a Update backend service image to optimized version in Docker Compose configuration 2025-08-30 11:02:02 +09:00
T. Narantuya
e13f63cf0c Update Dockerfile to install all dependencies for build and optimize production setup
- Changed the installation command to include all dependencies necessary for the build process.
- Updated comments for clarity regarding the installation of production dependencies and rebuilding critical native modules.
2025-08-30 10:58:31 +09:00
T. Narantuya
cc7235e79c Refactor Docker Compose configuration to use pre-built images for services
- Updated the frontend and backend services to use pre-built images instead of build contexts.
- Set pull_policy to never to prevent automatic image pulls, ensuring consistent deployments.
2025-08-30 10:49:53 +09:00
T. Narantuya
6f1924065b Remove obsolete fallback Docker Compose configuration for Plesk
- Deleted the compose-plesk-fallback.yaml file as it is no longer needed.
- This cleanup helps streamline the project by removing unused configurations.
2025-08-29 19:05:34 +09:00
T. Narantuya
c025993384 Refactor Dockerfile to optimize production dependency installation
- Updated the Dockerfile to install only production dependencies, skipping unnecessary scripts to streamline the build process.
- Removed the copying of node_modules from the builder stage to reduce image size and improve efficiency.
- Ensured necessary postinstall scripts are executed for essential packages like Prisma and bcrypt.
2025-08-29 18:52:31 +09:00
T. Narantuya
e9c8d193b7 Update Dockerfile to streamline production dependencies and build process
- Simplified the installation of production dependencies by copying node_modules from the builder stage.
- Enhanced the Dockerfile by removing unnecessary environment variable settings and comments for clarity.
- Ensured all necessary built applications and dependencies are included in the final image.
2025-08-29 18:46:20 +09:00
T. Narantuya
fd4bef3ffe Update Docker Compose configuration to use host network mode for services
- Changed network configuration for frontend, backend, database, and cache services to use host network mode.
- Removed port mappings to enhance service communication and simplify network management.
2025-08-29 18:41:35 +09:00
T. Narantuya
c625b978d9 Refactor Docker Compose configuration to improve service dependencies and remove unused network
- Removed the portal-network configuration and associated network settings from services.
- Added service health checks for database and cache dependencies in the backend service.
- Updated links for backend service to connect directly to database and cache services.
2025-08-29 18:37:41 +09:00
T. Narantuya
ab7492f2ab Update Docker Compose configuration to disable IPv6 for portal-network
- Set enable_ipv6 to false for the portal-network to enhance compatibility and reduce potential network issues.
- Added driver options to explicitly disable IPv6 support in the Docker network configuration.
2025-08-29 18:35:12 +09:00
T. Narantuya
638638ea89 Refactor Docker Compose configuration to enhance network management
- Removed network_mode settings for services and replaced them with a dedicated portal-network.
- Ensured all services are connected to the new bridge network for improved communication and organization.
2025-08-29 18:33:30 +09:00
T. Narantuya
8b855ca371 Update Docker Compose configuration for security and functionality
- Restrict frontend service port to localhost for enhanced security.
- Add volume mapping for secrets to the application container.
- Update healthcheck command for the database service to reflect new user and database names.
2025-08-29 18:15:05 +09:00
T. Narantuya
11f57dfd56 Update GitHub Actions workflow and add archive files to .gitignore
- Modify deploy.yml workflow configuration
- Add *.tar, *.tar.gz, *.zip to .gitignore to prevent large file commits
2025-08-29 17:41:04 +09:00
T. Narantuya
d7a4d9f24a Update Docker Compose configuration and remove obsolete GitHub Actions workflows
- Changed image references in compose-plesk.yaml to use local images for frontend and backend services.
- Deleted outdated CI and test workflow files to streamline the repository and reduce maintenance overhead.
2025-08-29 17:27:08 +09:00
T. Narantuya
3270069324 Refactor GitHub Actions workflow to remove duplicate pnpm setup step for cleaner configuration 2025-08-29 16:52:02 +09:00
T. Narantuya
b1844d7017 Add Node.js and pnpm setup in GitHub Actions workflow for improved dependency management 2025-08-29 16:50:49 +09:00
T. Narantuya
26ccf6369e Update pnpm-lock.yaml to include '@eslint/js' dependency for improved linting capabilities 2025-08-29 16:48:06 +09:00
T. Narantuya
81c0efb0b8 Remove example environment configuration files and update Dockerfile for production dependency installation
- Deleted .env.dev.example and .env.production.example files to streamline configuration management.
- Updated Dockerfile to install production dependencies recursively, ensuring all necessary packages are included during the build process.
2025-08-29 16:25:59 +09:00
T. Narantuya
1762d67e3f Update CI and test workflows to build shared package and generate Prisma client
- Added steps to build the shared package and generate the Prisma client in both CI and test workflows.
- Removed redundant build step for the shared package in the CI workflow.
2025-08-29 14:19:39 +09:00