5 Commits
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
184a7d16db |
feat: 三端集成 App升级 + 内部推送 + FCM外部推送框架 (genex-mobile/admin-app/mobile)
从 rwadurian/frontend/mobile-app 移植升级系统和通知系统到 Genex 三个 Flutter 客户端, 适配目标项目轻量架构(ValueNotifier 替代 Riverpod,Dio HTTP 客户端,移除 screenutil)。 ## 新增核心模块 (每个 app 13 个 Dart 文件) ### 升级系统 (core/updater/) - UpdateService: 统一升级服务单例,支持 Google Play + 自建服务器双渠道 - VersionChecker: 版本检测器,调用 GET /api/app/version/check - DownloadManager: APK 下载管理,支持断点续传 + SHA256 校验 - ApkInstaller: APK 安装器 (Platform Channel) - AppMarketDetector: 应用市场来源检测 - SelfHostedUpdater: 自建服务器渠道更新对话框 (i18n 化) - GooglePlayUpdater: Google Play 应用内更新 ### 通知系统 (core/services/ + core/providers/) - NotificationService: 通知 + 公告 API 服务 - GET /notifications, /notifications/unread-count - PUT /notifications/:id/read - GET /announcements, /announcements/unread-count - PUT /announcements/:id/read, /announcements/read-all - NotificationBadgeManager: 未读徽章管理器 - ValueNotifier<int> 驱动 UI - 30秒定时自动刷新 + 前后台切换刷新 (WidgetsBindingObserver) ### FCM 推送框架 (core/push/) - PushService: Firebase 推送服务框架 - Firebase 代码注释保护,无配置文件时静默跳过 - 设备 token 注册 POST /device-tokens - 待 Firebase 配置文件就绪后取消注释即可启用 ### HTTP 客户端 (core/network/) - ApiClient: Dio 封装单例,baseUrl = https://api.gogenex.cn ## Android 原生配置 (每个 app) - AndroidManifest.xml: 添加 REQUEST_INSTALL_PACKAGES 权限 + FileProvider - res/xml/file_paths.xml: FileProvider 路径配置 - MainActivity.kt: APK 安装器 + 应用市场检测 MethodChannel ## UI 层改造 (每个 app) - main.dart: 异步启动,初始化 UpdateService/PushService/NotificationBadgeManager - MainShell: 消息 Tab 徽章改为 ValueListenableBuilder 动态未读数,进入后 3 秒检查更新 - SettingsPage: StatefulWidget 化,动态版本号 (PackageInfo),点击版本号手动检查更新 - MessagePage: 移除 mock 数据,接入 NotificationService API,4 Tab 分类 + 下拉刷新 + 标记已读 ## i18n 新增 (~35 keys/语言) - update.*: 25 个升级相关 keys - notification.*: 9 个通知相关 keys - genex-mobile: 4 语言 (zh_CN/zh_TW/en/ja) 分文件 - admin-app: 3 语言 (zh_CN/en_US/ja_JP) 内联单文件 - mobile: 4 语言 (zh_CN/zh_TW/en/ja) 分文件 ## 三端差异化配置 | App | MethodChannel 前缀 | applicationId | |-----|-------------------|---------------| | genex-mobile | cn.gogenex.consumer | cn.gogenex.consumer | | admin-app | cn.gogenex.issuer | cn.gogenex.issuer | | mobile | cn.gogenex.mobile | cn.gogenex.mobile | Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
|
|
|
3cdb6a5eb9 |
feat: 全部前端项目完成国际化(i18n),支持中/英/日三语言
- miniapp (Taro/React): 11个页面/组件,~300翻译键 - admin-app (Flutter): 19个页面,475翻译键 (zh_CN/en_US/ja_JP) - admin-web (Next.js): 25个视图+布局,2000+翻译键 - mobile (Flutter): 33+页面/组件,686翻译键 (zh_CN/zh_TW/en/ja) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
|
|
|
5abb614d03 |
feat: Wire all navigation callbacks across mobile and admin-app
Replace empty onPressed/onTap placeholder callbacks with actual Navigator route calls so all pages are navigable during testing. Mobile (16 pages): - Auth flow: welcome → login/register → main shell, forgot password - Home: search bar → /search, coupon cards → /coupon/detail, AI FAB → /ai-chat - Market: coupon cards → /coupon/detail - Coupon detail: buy → /order/confirm - Order confirm: payment auth → /payment - Payment: confirm → /payment/success (fixed route typo) - Payment success: buttons → /main (clear stack) - My coupons: cards → /coupon/mine/detail - My coupon detail: transfer → /transfer, sell → /sell - Search: result cards → /coupon/detail - Profile: KYC → /kyc, payment → /payment/manage, wallet → /wallet, trading → /trading, pro mode → /pro-mode, settings → /settings, logout → / (clear stack) - Settings: KYC → /kyc, logout → / (clear stack) - Wallet: deposit → /wallet/deposit, withdraw → /wallet/withdraw, records → /wallet/records - Messages: items → /message/detail Admin-app (13 pages): - Dashboard: AI insight → createCoupon, credit suggestion → credit - Coupon list: coupon cards → couponDetail, FAB → createCoupon - Create coupon: save draft → pop back - Settings: store mgmt, employee mgmt → storeManagement, AI assistant → aiAgent, tier upgrade → credit, logout → login - Financing analysis: AI recommendation → aiAgent - Onboarding: complete → main shell - Login: register link → onboarding - Fix: pass BuildContext to _buildTierCard in settings_page.dart Both apps verified building successfully (flutter build apk --debug). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
|
|
|
5f3e660b05 |
feat: Add Flutter build configuration for admin-app and mobile
- Initialize Android/iOS platform code for both Flutter apps - admin-app: cn.gogenex.issuer (Genex发行方) - mobile: cn.gogenex.consumer (Genex消费者端) - Configure Android build.gradle.kts with: - Release signing config (keystore + key.properties) - Debug build type with .debug applicationId suffix - Release build type with ProGuard minification - minSdk 21, targetSdk from Flutter - Fix Flutter 3.38 API compatibility: - CardTheme → CardThemeData - TabBarTheme → TabBarThemeData - DialogTheme → DialogThemeData - Implement missing ForgotPasswordPage for mobile - Create cross-platform build scripts (build.sh + build.bat) - Supports: debug/release/clean/run modes - Supports: apk/appbundle/ios platforms - Unified build-output/ directory for APK artifacts - All 4 builds verified: debug + release × 2 apps Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
|
|
|
e450bef7cd |
feat: Complete all 4 frontend UI prototypes covering guides 00-04
Add 116 UI prototype files across 4 frontend applications, achieving ~95% coverage of all functional requirements from development guides. ## mobile/ (Flutter Consumer + Merchant App) — 48 files - Auth: welcome, login, register, forgot-password - Coupons: home, market, search, detail, my-coupons, my-coupon-detail, order-confirm, payment, payment-success, redeem-qr - Trading: trading, sell-order (AI pricing), transfer - Wallet: wallet, deposit, withdraw, transaction-records - Profile: profile, kyc (L0-L3), settings, payment-management, pro-mode (WalletConnect, chain address, tx hash, track selection) - AI Agent: agent-chat, ai-fab (floating button with unread count) - Merchant: merchant-home (scanner, confirm, success, history, dashboard), merchant-ai-assistant (redeem assist, traffic prediction, anomaly alerts) - Message: message-list, message-detail - Issuer: issuer-main-page - Shared widgets: coupon-card, price-tag, credit-badge, kyc-badge, status-tag, empty-state, skeleton-loader, confirm-sheet, genex-button, ai-confirm-dialog (3-level risk confirmation) - Theme: app-colors, app-typography, app-spacing, app-theme - i18n: zh-CN, en-US, ja-JP ## admin-app/ (Flutter Issuer Console) — 27 files - Auth: issuer-login - Onboarding: 5-step enterprise onboarding with AI compliance check - Dashboard: issuer-dashboard (stats, AI insight, credit/quota), user-portrait (age/geo/preference/repurchase/AI insight) - Coupon management: list, create (template-based, AI pricing), detail (recall/delist), batch-operations (issue/recall/price-adjust) - Redemption: scan-to-redeem with offline mode - Finance: overview, reconciliation (auto-reconcile, export PDF/Excel), financing-analysis (cost-benefit, liquidity, risk indicators, AI strategy) - Credit: credit-scoring (4-factor, tier progress, AI suggestions), quota-management (usage gauge, type breakdown, tier upgrade, increase requests) - AI Agent: full conversation UI with quick actions - Settings: account, notification, support, tier display - Store management: hierarchy (HQ/regional/store), employee roles - Shared: ai-suggestion-card - Theme: app-colors, app-theme, app-typography, app-spacing - i18n: zh-CN, en-US, ja-JP ## admin-web/ (React + Next.js Platform Admin) — 26 files - Layout: AdminLayout with collapsible sidebar, 10 nav sections - Dashboard: key metrics, transaction feed, system health - Users: user management with KYC filtering, risk tags - Issuers: issuer review with AI pre-screening, credit rating display - Trading: real-time monitor, order book, abnormal detection - Risk: risk dashboard, AI warnings, suspicious transactions, OFAC logs - Compliance: SAR/CTR management, audit logs, AI report generation - SEC Filing: S-1/10-K/10-Q/8-K tracker, filing timeline, auto-disclosure - License management: FinCEN MSB, BitLicense, MTL (48 states), renewal alerts - SOX compliance: ICFR/ITGC/access/change-mgmt controls, deficiency tracking - Tax compliance: Federal + 4 states, 8 IRS forms, tax calendar - IPO readiness: 28-item checklist (legal/financial/SOX/governance/insurance), blocker tracking, milestone timeline, category progress, key contacts - Finance: fee revenue, settlement queue, breakage tracking - Disputes: case management with SLA countdown, chain evidence - Analytics: user (DAU/MAU, cohort retention, geographic), coupon (category, breakage, secondary market), market-maker (TVL, spread, health, risk alerts), consumer-protection (complaints, CSAT, fund utilization, non-compliant issuers) - Insurance: consumer protection fund, claims, IPO checklist overview - Chain monitor: smart contract status, blockchain metrics - Reports: platform-wide report center - AI Agent panel: session stats, top questions, module accuracy - Merchant redemption: stats, store ranking, real-time feed - Design tokens: CSS custom properties (colors, typography, spacing, shadows) - i18n: zh-CN, en-US, ja-JP ## miniapp/ (Taro Mini Program + H5) — 15 files - Pages: home, detail, purchase, orders, my-coupons, login, redeem, profile - H5 pages: h5-share, h5-activity (countdown, featured coupons), h5-register (benefits, phone/SMS form, WeChat login) - Components: coupon-card, ai-guide (recommendation bar + purchase bubble), share-card (brand header, QR code, coupon info) - i18n: zh-CN, en-US, ja-JP ## Design System - Primary: #6C5CE7 (innovation purple), Material 3 style - Consistent design tokens across all platforms - Zero blockchain terminology — "我的券" not "NFT", "订单号" not "TX Hash" - Utility Track MVP only; Securities Track reserved as "coming soon" ## Not included (by design) - Data/Domain layers (API, state management, business logic) — UI prototypes only - Securities Track full UI — MVP focuses on Utility Track - P2 "求购" (want-to-buy) feature — marked as optional Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |