Commit Graph

12 Commits

Author SHA1 Message Date
javayhu
6c584c75e2 feat: enhance CreditTransactions component with loading skeleton and refactor state management using useQueryStates 2025-08-28 01:08:48 +08:00
javayhu
31116cbf8b refactor: remove unused Stripe dependency and update credit expiration logic 2025-07-12 23:41:50 +08:00
javayhu
c7a1ec69bb feat: add ConsumeCreditCard component for credit consumption 2025-07-12 11:08:28 +08:00
javayhu
75db5e85a7 feat: enhance sorting functionality in tables by implementing dropdown menus 2025-07-11 22:10:04 +08:00
javayhu
59c7c807db refactor: rename PURCHASE to PURCHASE_PACKAGE in transaction types 2025-07-10 22:52:26 +08:00
javayhu
263440742a feat: add CreditDetailViewer component and enhance credit transaction details in English and Chinese 2025-07-10 21:43:43 +08:00
javayhu
b75e9eb282 refactor: initialize sorting state with default value in UsersPage and CreditTransactionsPage components 2025-07-10 19:40:08 +08:00
javayhu
2aeb027e2f feat: add subscription renewal and lifetime monthly messages in English and Chinese 2025-07-10 19:34:06 +08:00
javayhu
0af0aa3b09 refactor: reorganize credit transaction types and update imports
- Moved CREDIT_TRANSACTION_TYPE from constants to a new types.ts file for better modularity.
- Updated import paths in credit-related components to reflect the new structure.
- Removed the old CREDIT_TRANSACTION_TYPE definition from constants.ts to streamline the codebase.
2025-07-06 23:25:38 +08:00
javayhu
04c2b2d7ee refactor: update translations and improve table component structure
- Removed unused translation keys from English and Chinese JSON files.
- Updated UsersTable and CreditTransactionsTable components to utilize a centralized translation function for table-related messages.
- Initialized sorting state in both table components for consistent default behavior.
2025-07-06 18:20:31 +08:00
javayhu
d9cda3e122 feat: enhance credits settings with tabbed interface and improved translations
- Implemented a tabbed interface in the CreditsPage component to separate balance and transactions views.
- Updated CreditPackages and CreditTransactionsPageClient components to utilize the new tab structure.
- Enhanced translation support for credits-related messages in both English and Chinese.
- Improved error handling and user feedback in credit-related components.
- Refactored CreditTransactionsTable to utilize translations for table headers and pagination controls.
2025-07-06 17:17:24 +08:00
javayhu
40af0f6922 feat: add credit transactions table
- Introduced a new CreditTransactionsPageClient component to display credit transactions.
- Implemented getCreditTransactions action for fetching transaction data.
- Added CreditTransactionsTable component for rendering transaction details with pagination and sorting.
- Updated English and Chinese translation files to include credit transaction messages.
- Integrated the credit transactions page into the existing credits settings layout.
2025-07-06 10:44:13 +08:00