Commit Graph

54 Commits

Author SHA1 Message Date
b924496a26 feat(i18n, agents, players): enhance localization and improve agent and player management interfaces
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Updated localization files for English and Nepali, adding new entries and refining existing translations for better clarity. Enhanced the agent management interface with improved delegation features and child agent creation prompts. Improved player management functionalities, including confirmation dialogs for player actions and better handling of player creation and editing processes.
2026-06-16 17:08:12 +08:00
a020e34a7d refactor(admin-reports, i18n): remove rebate commission report and enhance localization
Removed the `getAdminReportRebateCommission` function and its references from the admin reports API and localization files. Updated CSS for improved money display handling in admin components. Enhanced localization support by adding new finance and support workspace entries in English, Nepali, and Chinese, improving user experience across the application.
2026-06-16 16:04:03 +08:00
a4454a54a4 refactor(risk, navigation): update risk management redirects and enhance loading states
Changed default redirects in risk management pages to point to the new risk pools section. Removed unused risk lock log components and streamlined the admin reports page with a loading state for better user experience. Added a new DocFigure component for improved documentation visuals and updated localization files to include new figure descriptions.
2026-06-16 13:50:58 +08:00
641c87ff50 feat(docs, agents, risk): enhance documentation, API queries, and UI components
Updated the public documentation site with improved layout and accessibility, including new sections for client integration and admin guides. Enhanced API queries by adding 'active_only' and 'group_by' parameters for better data filtering in risk management. Refined UI components for agent management, ensuring consistent styling and improved user experience across the application. Added localization support for new documentation content in English and Nepali.
2026-06-15 17:21:50 +08:00
17335cb47a feat(docs, integration): update integration documentation and redirect legacy paths
Introduced a new public documentation site for client integration at `/docs` and `/docs/integration`, removing the need for admin login. Updated the integration guide to redirect from the old admin path to the new documentation site. Added localization support for the integration documentation in English, Nepali, and Chinese. Enhanced the layout structure and improved the handling of currency display in settlement bills.
2026-06-15 11:08:19 +08:00
6ea0a6feec feat(agents, config, dashboard, i18n): add agent line provision wizard, site deletion, and site dashboard with multi-language support
Added agent line provision wizard page with permission gating, replacing redirect placeholder. Introduced site deletion API and UI with confirmation dialog in integration sites management. Added new site-scoped dashboard panel showing bet metrics, P/L trends, active players, and quick links. Enhanced chart tooltip to support custom formatters and fix indicator color
2026-06-12 20:47:53 +08:00
1eb6702c51 refactor: update agent API schemas, standardize UI text styling, and enhance settlement credit ledger components 2026-06-11 18:02:02 +08:00
44ad51698f feat(config, i18n): add integration guide documentation page with multi-language support
Added new integration guide page accessible from config hub, providing SSO and wallet integration documentation for client engineering teams. Includes translations in English, Nepali, and Chinese. Refactored percentage conversion utilities across agent management modules to use consistent `percentValueToUi` function, removing deprecated `ratioToPercentUi` and `percentUiToRatio` helpers.
2026-06-11 09:23:41 +08:00
b7278e68a4 feat(admin, settlement, dashboard): strengthen permission gating and billing workflows 2026-06-09 13:44:19 +08:00
7e65c53732 feat(admin, i18n): enhance reports, draws, config, and player workflows 2026-06-08 17:41:55 +08:00
af982bb9f7 feat(api, agents, i18n): enhance settlement features and multi-language support
Added new types and API functions for settlement period summaries and credit ledgers, improving the management of agent settlements. Updated the admin console to reflect these changes, enhancing user experience with better navigation and data presentation. Additionally, expanded multi-language support by incorporating new translations in English, Nepali, and Chinese for settlement-related terms, ensuring consistency across the platform.
2026-06-05 18:00:59 +08:00
65eaeecf8c feat(agents, i18n): enhance agent management and settlement features with new translations and UI updates
Added new translations for agent management and settlement features in English, Nepali, and Chinese, improving multi-language support. Updated the agents console to reflect changes in funding modes and player details, enhancing user experience. Refactored the admin permission gate to include new logic for handling bound line agents, ensuring better permission management. Additionally, streamlined the UI for agent-related pages and improved navigation to the settlement center, consolidating related functionalities for better accessibility.
2026-06-04 18:01:05 +08:00
cbc499e5b2 feat(api, agents): add agent node profile retrieval and update functionality
Implemented new API functions to fetch and update agent node profiles, enhancing the management capabilities for agent data. This addition improves the overall functionality of the admin agents console, allowing for better user interaction with agent profiles. Updated related types for improved type safety and clarity in the codebase.
2026-06-04 09:17:55 +08:00
ce27a3ec8a feat(admin, i18n): enhance admin dashboard and user management with new features and translations
Added the ability to filter admin dashboard data by site code and agent node ID, improving data retrieval capabilities. Introduced new functions for fetching dashboard data based on these parameters. Updated the admin users and roles management components to reflect these changes. Enhanced multi-language support by adding new translations for agent management and permission levels in English, Nepali, and Chinese, ensuring a consistent user experience across the admin interface.
2026-06-03 10:07:51 +08:00
b15e377187 feat(api, i18n): add agent_node_id to various admin queries and enhance multi-language support
Introduced the agent_node_id field in AdminDrawListQuery, AdminPlayerListQuery, AdminSettlementBatchListQuery, TicketItemsListQuery, and TransferOrderListQuery to improve filtering capabilities. Updated the admin-breadcrumb and admin-sidebar components to include new translations for agent-related terms in English, Nepali, and Chinese, enhancing the overall user experience and multi-language support across the admin interface.
2026-06-02 14:37:08 +08:00
a550c418e5 refactor(layout, i18n, admin): 优化布局结构与多语言支持
调整 AdminShell 组件的子组件顺序,提升代码可读性。更新 admin-breadcrumb 组件,简化导航标签翻译逻辑,确保多语言支持的一致性。重构 admin-language-switcher 组件,优化语言切换的用户体验,增强界面交互性。更新多语言配置,新增登录界面的副标题,提升用户体验。
2026-05-30 17:46:27 +08:00
36117144dc refactor(env, api, i18n): 更新环境配置与API代理逻辑
修改 .env.example,优化API配置说明并明确线上环境要求。更新多语言错误提示,确保用户在未启用API代理时获得清晰反馈。重构API代理逻辑,移除开发代理文件,简化代码结构,提升可维护性。
2026-05-29 15:55:18 +08:00
671c737781 refactor(env, i18n, http): 更新环境配置与错误提示信息
修改 .env.example,简化 API 配置说明并明确生产环境要求。更新多语言错误提示,确保用户在未启用 API 代理时获得清晰反馈。重构 admin-http.ts,优化 API 基础 URL 的解析逻辑,提升代码可维护性。
2026-05-29 11:48:13 +08:00
27727f6371 feat(env, config, i18n): 增强环境配置与多语言支持
更新 .env.example,提供更清晰的 API 配置说明与本地开发环境配置指引。
修改 next.config.ts:支持动态解析允许的开发环境来源(origins),提升配置灵活性。
重构 admin-language-switcher:优化语言切换同步机制,确保语言变更能够及时生效。
优化英文、尼泊尔语与中文语言包中的错误提示文案,进一步明确 API 配置要求。
精简 admin-http.ts:将 API Base URL 校验逻辑抽离至独立模块并统一导出,提升代码可维护性。
2026-05-29 09:17:37 +08:00
788c7998eb feat(integration): 为集成站点与开奖管理新增 AdminPermissionGate 权限控制
使用 AdminPermissionGate 包裹集成站点与开奖相关组件,根据权限进行访问控制。
新增集成管理与开奖管理相关权限常量。
更新相关 UI 组件以适配权限校验逻辑,提升系统安全性与用户体验。
增强国际化支持,在英文、尼泊尔语与中文语言包中新增集成相关文案。
2026-05-27 16:51:48 +08:00
5eabbcf0ee feat(integration): 新增 site_code 支持并增强玩家与注单管理界面
在后台玩家与注单相关 API 中新增 site_code 参数,支持按站点筛选数据。
更新 PlayersConsole 与 PlayerTicketsConsole UI 组件,新增站点选择筛选功能。
增强国际化支持,在英文与中文语言包中新增站点相关文案。
优化配置中心页面,新增跳转至集成站点管理的入口,提升后台导航体验。
2026-05-27 13:36:44 +08:00
4080f0b601 feat(ui): enhance table and admin components with improved layout and status display
- Updated global CSS to center-align table headers and cells, ensuring a consistent layout.
- Modified admin table components to replace switches with status badges for better clarity.
- Enhanced internationalization support by adding new strings for version actions and validation messages in multiple locales.
- Refactored configuration document screens to include version selection and improved user feedback on status changes.
2026-05-26 11:13:16 +08:00
fbe385666a feat(admin): enhance login form with language switcher and update script handling
- Added AdminLanguageSwitcher to the login form for improved language selection.
- Replaced inline script with next/script component for better performance and safety in layout.tsx.
- Updated language initialization logic to ensure consistent SSR and client rendering.
2026-05-26 09:57:05 +08:00
84bf924378 feat(i18n): 增强管理端多语言支持,优化语言初始化与恢复逻辑 2026-05-25 14:53:15 +08:00
ddedef824e refactor: 合并多语言支持的显示名称字段,优化奖池手动爆发功能的返回数据结构,增强管理端权限控制 2026-05-25 14:31:24 +08:00
7d01e5c47e refactor: 优化配置与奖池页面多语言编辑及管理端列表布局 2026-05-22 16:55:34 +08:00
2d4a23968e refactor: 更新风险监控页面标题为国际化支持,优化风险池控制台的标题处理 2026-05-22 16:11:36 +08:00
51891548a5 feat: 新增账号设置页面并优化报表与管理端交互样式 2026-05-22 14:34:04 +08:00
b2b934e25e feat(admin): 上线报表中心页面并接入九类报表查询导出
新增报表控制台、汇总 API 客户端与中英尼文案,九类报表均可筛选预览并导出 CSV/Excel。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 10:08:43 +08:00
e8a5507411 refactor: 更新管理端页面元数据,统一国际化支持,移除冗余代码 2026-05-21 17:27:52 +08:00
26feed3c4f refactor: 重构奖池配置页面,移除冗余组件,优化加载体验与国际化支持 2026-05-21 16:46:48 +08:00
055c613a6d feat: 添加货币管理功能,更新国际化支持,移除报表相关代码 2026-05-21 16:24:56 +08:00
08a11a1589 feat: 统一管理端多语言、配置与票据/结算页面重构 2026-05-20 16:27:06 +08:00
37b13278ef feat: 重构管理端列表与风控/结算导航,新增表格导出和结算审核确认 2026-05-19 17:06:56 +08:00
a1fb163f1b feat: 增加角色管理与奖池配置迁移,优化管理端权限与样式 2026-05-19 14:40:04 +08:00
1578c7e214 feat(config): 重构配置中心导航与版本展示,支持全量版本加载 2026-05-16 10:28:00 +08:00
8bd7cc3d73 feat(config): 重构配置模块导航与版本切换,新增版本删除能力 2026-05-15 15:30:52 +08:00
000295ae2b feat: 重构开奖模块导航与面包屑,优化期号详情与列表展示 2026-05-14 13:43:45 +08:00
afa592dd91 feat(config): add wallet configuration management page
新增钱包配置管理页面,包含转入转出限额配置功能,添加对应路由导航与API接口,完善配置元信息
2026-05-14 11:17:57 +08:00
96b966cf62 feat: 更新管理员导航,重定向菜单权限至根路径,添加角色同步API,移除菜单权限模块 2026-05-13 10:40:12 +08:00
188c6a04cf feat: 移除服务台模块,更新管理员导航以重定向至菜单权限页面 2026-05-13 09:52:36 +08:00
5dd7aa1185 feat: 更新管理员导航,添加管理员权限模块和相关API导出,优化仪表盘链接样式 2026-05-11 17:54:35 +08:00
76e318be8f refactor: 移除冗余注释和描述,优化管理员模块的代码结构 2026-05-11 17:21:12 +08:00
d0f75fcec8 feat: 更新仪表盘标题和描述,添加异常状态查询字段,优化管理员导航和API导出 2026-05-11 16:57:01 +08:00
b539bf0660 feat: 添加财务摘要接口,更新管理员抽奖模块和导航,优化权限管理逻辑 2026-05-11 16:21:22 +08:00
f083b28fc6 feat: 更新管理员导航,添加结算和奖池模块,并优化活动匹配逻辑 2026-05-11 15:35:41 +08:00
0103d25426 将 AdminRiskPage 改名为 AdminRiskIndexPage,并接入 RiskIndexConsole 组件。 2026-05-11 11:52:53 +08:00
78045de9a3 feat: 添加配置模块和更新管理员导航,优化钱包控制台加载逻辑 2026-05-11 10:08:56 +08:00
ac3f28459b feat: 添加日期处理库和日历选择器,更新管理员抽奖模块 2026-05-09 17:40:35 +08:00
4ace3151e6 feat: 添加管理员钱包相关API和更新模块结构 2026-05-09 15:22:27 +08:00