Commit Graph

67 Commits

Author SHA1 Message Date
1164d9d728 feat(settlement): 支持结算时区与已关账漏账流水显示
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 為結算期間相關接口與前端組件新增 settlement_timezone 字段
- 在账期范围格式化函数中支持传入时区参数显示当地日期
- 在开账面板和账期视图中增加漏账流水(orphanActivity)高亮显示
- 统一调整账期视图默认子页面为“账单处理”而非“待处理”
- 在开奖管理中添加开奖提供商(provider)信息展示和选择功能
- 结算中心增加账单状态筛选项支持待确认、待收付、已结清、调账/冲正
- 移除部分账期页状态筛选标签,改用文本方式显示待确认与待收付数量
- 集成站点管理中新增结算时区字段,支持编辑与保存
- 多语言新增与更新与结算时区和漏账流水相关的文案提示及翻译
2026-07-09 15:48:03 +08:00
330063abf6 feat(odds): 支持多开注商赔率快照与配置管理
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 在赔率行数据结构和接口中新增 provider_code 字段支持多开注商
- 管理后台赔率配置页新增开注商筛选,支持查看和编辑指定开注商赔率
- 未指定专属赔率时,自动继承通用(Global)赔率并显示继承标识
- 新增赔率快照展示组件,显示票据下注时锁定的开注商赔率快照
- 优化赔率保存流程,支持基于开注商区分并批量更新赔率数据
- 更新多语言文案,增加开注商与赔率来源标识翻译
- 调整环境配置文档和默认域名为新的开注商域名地址
- 优化界面标签样式,清晰区分通用、专属和继承赔率来源
- Tickets模块新增赔率快照数据类型及详细展示表格
- 修复管理后台及票据详情页部分链接和操作按钮,提升用户体验
2026-07-09 10:51:56 +08:00
4f612ccbda feat(bet-providers): 添加开注商管理功能,包括增删改查接口及前端页面
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
2026-07-08 15:56:41 +08:00
99e644caa1 feat(i18n): 添加多语言支持及翻译文本更新
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 在错误页面和未找到页面组件中集成 i18next,实现多语言动态显示
- 新增英文和尼泊尔语的错误信息、按钮文本及页面提示的翻译键值
- 扩充英文语言包,完善代理、玩家、结算中心和通用配置相关的翻译内容
- 修正和补充尼泊尔语翻译文本,统一界面用词,提升本地化体验
- 在多个配置文件中新增和调整用于界面交互和状态提示的翻译项
- 在代码中替换硬编码文本为相应的翻译函数调用,支持国际化展示
2026-07-07 09:44:12 +08:00
ef8e763551 feat(settlement): 优化回水分摊明细展示及分组逻辑
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 新增多语言支持,补充回水分摊相关字段翻译
- 优化回水分摊数据汇总逻辑,合并相同参与方的数据
- 增加分摊占比显示,提升明细信息直观性
- 实现按注单分组的回水明细展开与收起功能
- 使用表格展示汇总数据,提升界面可读性和美观度
- 调整样式和交互细节,增强用户体验
2026-07-02 14:57:55 +08:00
409b3ddd87 i18n(ne): 更新सेटलमेन्ट केंद्र和账单界面尼泊尔语翻译
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 修改सेटलमेन्ट中心相关文本,更新账单关闭对话框内容为尼泊尔语
- 完整翻译账单详情、账户账本及工作台界面相关文案
- 将所有界面操作提示、筛选器、按钮文本本地化为尼泊尔语
- 调整支付流程及层级说明为尼泊尔语,确保表达准确
- 更新错误提示与toast通知内容为尼泊尔语以提升用户体验
2026-07-02 11:40:54 +08:00
e299e84e9b Translate various JSON files to Nepali and Chinese, updating keys and values for jackpot, players, reconcile, reports, settlement, settlement center, and wallet sections. Add new keys for better localization and improve existing translations for clarity and accuracy.
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
2026-07-02 10:35:11 +08:00
2f9e06fb78 feat(settlement): 优化结算中心待处理视图与账单显示
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 新增接口参数 agent_scope 支持筛选直接代理
- 结算中心导航新增“待处理”视图,并设置默认视图为“待处理”
- 结算中心页面新增待处理账单工作台,支持待确认、待收付和异常账单分类显示
- 调整账单状态文本,明确“已确认”改为“待收付”,“部分结清”改为“部分收付”
- 优化账单明细中的代理结算说明和收益展示文案
- 账单详情页添加当前账单主要操作提示区,提示确认、登记付款或复核状态
- 结算中心流水模块及多语言资源关于“账务流水”统一改为“流水审计”
- 优化结算主面板中待处理模式与全部模式的筛选和分页逻辑
- 结合管理员权限控制结算中心可见站点列表,增强集成站点加载逻辑
2026-07-01 15:35:25 +08:00
4484a7a77a Refactor agents console and related components
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- Simplified share rate calculation in AgentsConsole by removing unnecessary checks and directly setting the profile share rate.
- Updated the use of `profileParentCaps` to always return total share rate in the agent profile.
- Removed unused variables and memoized calculations for improved performance.
- Cleaned up imports in various files, removing unused components and optimizing the code structure.
- Added `tRef` dependency to several useEffect hooks to ensure proper reactivity to translation changes.
- Enhanced report preview tables with better label handling for various statuses and actions.
- Updated wallet filter options to align with player-side transaction types.
- Introduced new properties in types for better type safety and clarity.
2026-06-30 17:55:00 +08:00
bea342a4d7 fix(settlement): 操作记录服务端分页、流水提示与坏账幂等键
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 操作记录 Tab 改用 settlement-operations API 服务端筛选分页
- 流水面板展示 truncated 截断提示
- 坏账核销对齐收付/补差的幂等键生成与复用
- 结算中心 URL 同步、代理控制台 lint 与玩家/奖池模块更新
2026-06-26 16:40:46 +08:00
0d984b00f0 feat(admin): 仪表盘重构、代理线路修复与后台体验优化
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
- 各角色仪表盘:KPI 可点击跳转、快捷入口、去重冗余区块,代理/站点降级 analytics
- 代理线路:创建玩家权限、侧栏搜索、深链 URL、档案保存与删除预检等修复
- 统一密码最短 6 位;代理模块表格/侧栏背景色一致(admin-table-inset)
- 报表、钱包、对账、开奖、结算、配置等模块结构与 i18n 同步更新
2026-06-26 14:39:22 +08:00
7d075ceb62 feat(i18n, config): enhance agent management localization and add settings/currencies hub cards
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Added new agent-related translation keys across English, Nepali, and Chinese including agentCode, agentName, loginUsername, and detailTabs. Enhanced agent console hints for child creation permissions and line root profile read-only states. Added validation error messages for share/rebate parent limits and username charset validation. Introduced common status labels (enabled/disabled) and yes/no/none text
2026-06-24 11:19:07 +08:00
9491ff10dd refactor(docs): remove legacy documentation pages and admin manual assets
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Deleted all admin and integration documentation pages from /docs routes, including admin manual PNG assets. Removed DocCode, DocFigure, DocsSidebar, and DocsShell components along with their associated navigation configurations. Eliminated "Related Docs" menu item from admin toolbar. Cleaned up unused documentation layout files and redirect pages across admin-manual, integration-guide, and docs sections.
2026-06-24 10:14:26 +08:00
ce38995546 feat(settlement): add idempotency keys to bill operations and enhance credit ledger filtering
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Added idempotency_key parameter to settlement bill payment and adjustment API calls to prevent duplicate transactions. Enhanced credit ledger panel with expanded reason filters including bet_hold_release, game_settlement_win/loss/reversal, and settlement_confirm/payout. Updated localization files to include new game_settlement_reversal labels across English, Nepali, and Chinese. Improved credit ledger reason
2026-06-23 16:50:14 +08:00
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
d4cf4ff436 feat(dashboard, i18n): enhance agent dashboard and localization support
Updated the agent dashboard to include new metrics for today's bets and payouts, improving visibility for users. Enhanced localization files with additional hints and labels for better user experience across English, Nepali, and Chinese. Introduced new functions for formatting business dates and improved the handling of analytics permissions in the dashboard components.
2026-06-16 14:18:58 +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
b774e22352 refactor(i18n, admin): remove page guide components and documentation links across modules
Deleted AdminPageGuide component and ADMIN_DOC_LINKS constants. Removed pageGuide text from Chinese translations and eliminated guide displays from agents, draws, integration sites, players, reports, and settlement center consoles. Cleaned up unused CardDescription elements in reconcile console.
2026-06-15 18:06:43 +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
24fd7c10bd feat(settlement, admin): introduce new types and functions for downline share and settlement period hints
Added new types for downline share breakdown and settlement period open hints to enhance the agent settlement API. Updated the admin console components to support these new features, improving the user experience with better data presentation and interaction. Additionally, refined the date range field to accommodate new calendar markers and hints, ensuring a more intuitive interface for managing settlement periods.
2026-06-12 16:01:42 +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
c2eac2fafc feat(i18n, agents): enhance multi-language support with new agent-related translations
Added new translations for agent management features in English, Nepali, and Chinese, including terms related to sub-agents, player management, and validation messages. This update improves the user experience by ensuring consistent terminology across different languages in the agents console.
2026-06-04 10:15:19 +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
bbb6f28459 feat(admin, i18n): implement user deletion functionality and enhance permission management translations
Added a new API function to delete admin users, improving user management capabilities. Updated the admin permission package selector to include new permission levels for nodes, roles, and users. Enhanced multi-language support by adding translations for these new permission levels in English, Nepali, and Chinese. Additionally, improved the agents console to handle deletion confirmations and display relevant block reasons, ensuring a smoother user experience.
2026-06-03 10:56:44 +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
a4e7a2d228 feat(dashboard, i18n): 增强玩家身份信息展示并完善多语言支持
更新仪表盘相关组件,采用新的玩家身份信息字段(Player Identity Columns),提升数据展示的清晰度与可读性。
优化奖池记录(Jackpot Records)中的玩家信息展示方式,便于快速识别玩家身份。
改进结算明细(Settlement Details)页面的玩家身份展示,提升数据追踪与核对效率。
更新玩家注单(Player Tickets)与钱包交易(Wallet Transactions)相关界面,统一使用新的玩家身份信息展示逻辑。
在英文、尼泊尔语与中文语言包中新增玩家相关术语翻译,增强多语言支持。
提升系统整体用户体验,确保各模块中的玩家信息展示更加一致、直观。
2026-06-01 17:25:22 +08:00
2716591164 feat(dashboard, i18n): enhance result batch queue management and translations
Added new translations for "resultBatchQueueScope", "batchPendingDraws", and "batchCurrentDrawPending" in English, Nepali, and Chinese language files. Updated the dashboard console to manage the result batch queue, including a new component for displaying pending review totals and related draw counts. This improves the user interface for monitoring batch statuses and enhances multi-language support.
2026-06-01 16:01:32 +08:00
53bf64cc53 feat(draws, i18n): 新增批量删除功能并增强多语言支持
在后台开奖管理模块中新增删除待发布结果批次的 API 接口。
更新 DrawPublishConsole 与 DrawReviewConsole 组件,新增“丢弃批次”按钮,支持删除草稿状态的结果批次。
新增删除成功与删除失败的 Toast 提示,优化用户操作反馈体验。
在英文、尼泊尔语与中文语言包中新增批量删除确认及删除成功相关翻译文案,完善多语言支持。
提升开奖管理流程的灵活性与易用性,方便管理员快速清理无效或误创建的批次数据。
2026-06-01 15:41:28 +08:00
d30c135dde feat(i18n, draws): 新增“随机填充”翻译并实现随机选号功能
在英文、尼泊尔语与中文语言包中新增 “Fill Randomly(随机填充)” 翻译文案,完善多语言支持。
在 DrawReviewConsole 组件中新增随机选号功能,用户可通过按钮一键填充随机号码。
优化开奖录入流程,减少手动输入操作,提升使用效率与用户体验。
2026-06-01 14:54:53 +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
0bfcf6c59c feat(i18n, config): 增强多语言支持并新增系统配置项
更新英文、尼泊尔语与中文语言包,新增默认币种、开奖间隔、投注窗口及相关设置的翻译文案,提升界面清晰度与用户体验。
在系统设置中新增开奖相关配置字段,增强彩票系统参数管理的灵活性。
优化多语言国际化支持,确保后台管理界面在不同语言环境下的信息表达一致性。
2026-05-28 14:51:07 +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
e87229c1b7 feat(i18n): 更新英文、尼泊尔语与中文的注单状态翻译
修改多语言配置文件,将 success 统一替换为 placed,并新增 partial_failed 与 refunded 状态,以提升注单管理中的状态表达清晰度。
增强国际化支持,确保多语言间术语一致性,进一步优化后台管理界面的用户体验。
2026-05-27 09:57:56 +08:00
0bd9d8d3d8 feat(dashboard, i18n): 增强仪表盘视觉效果与多语言支持
在英文、尼泊尔语和中文语言包中新增 “Other statuses” 翻译,提升仪表盘指标展示的清晰度。
在仪表盘中集成新的 StatCard 组件,用于更直观地展示关键指标数据。
更新仪表盘趋势图表,采用 recharts 实现更丰富的数据可视化效果。
重构现有组件与布局,优化整体交互与用户体验,使界面更加直观易用。
2026-05-26 16:32:11 +08:00
eb83bcf360 feat(api, ui, i18n): 增强奖池管理与钱包功能
新增奖池余额调整与调整记录查询相关 API,提升后台对奖池的管理与控制能力。
更新奖池与钱包相关多语言文案,新增余额调整与转账完成提示信息,提升用户理解与反馈体验。
优化奖池管理相关 UI 组件,新增余额调整功能并改进页面布局,提升操作易用性。
重构相关组件以整合新功能,并进一步优化后台管理界面的整体用户体验。
2026-05-26 14:59:41 +08:00
60271d87fb feat(i18n): enhance locale support for rebate settings and report exports
- Updated English, Nepali, and Chinese locale files to include new translations for the "apply rebate to payout" feature, enhancing clarity on its functionality.
- Added new export options for previewing CSV and Excel files in reports, improving user experience with clearer export capabilities.
- Enhanced internationalization support across multiple locales to ensure consistent messaging in the admin interface.
2026-05-26 13:53:22 +08:00
a76b681828 feat(api, i18n): add admin report job functionalities and enhance locale support
- Introduced new API functions for managing admin report jobs, including download and post operations.
- Updated English, Nepali, and Chinese locale files to include new messages related to report job actions and rollback confirmations.
- Enhanced user experience by providing clearer instructions and feedback in the admin interface.
- Refactored related components to integrate new functionalities and improve overall usability.
2026-05-26 11:48:51 +08:00