Commit Graph

104 Commits

Author SHA1 Message Date
2569718930@qq.com 90bc895000 Update referral points pricing 2026-05-30 18:04:36 +08:00
2569718930@qq.com 8507afedd6 Fix account payment layout responsiveness 2026-05-29 21:34:36 +08:00
2569718930@qq.com 3e24080466 feat: implement AccountCenter dashboard with subscription and payment management features 2026-05-29 21:23:12 +08:00
2569718930@qq.com 522e35de7f Add trial and referral subscription program 2026-05-29 19:24:46 +08:00
2569718930@qq.com 1d9f0033a6 Tighten payment tx validation before submit 2026-05-29 12:11:19 +08:00
2569718930@qq.com f2e90fbcda feat: support ethereum usdc payment route 2026-05-29 01:57:42 +08:00
2569718930@qq.com fb7e27d9ed fix: recover account subscription state 2026-05-27 12:14:07 +08:00
2569718930@qq.com 617d3c910e 支付域名识别更新:Vercel → polyweather.top
payment-host.ts 新增 polyweather.top。site-url.ts/wallet.ts/usePaymentFlow/AccountCenter 硬编码域名替换。PRODUCTION_SITE_URL 改为 https://polyweather.top
2026-05-26 00:33:02 +08:00
2569718930@qq.com 7f8dca2066 拆分 AccountCenter:提取支付与钱包逻辑至 useAccountPayment hook,主组件从 2917 行减至 1280 行 2026-05-25 02:38:20 +08:00
2569718930@qq.com b6725ea36d 全站 i18n 收尾:账户中心状态消息、权限提示页、终端因子面板
账户中心 account-copy.ts 新增 60+ 条状态/错误翻译 key,AccountCenter.tsx
将所有硬编码中英文支付提示改为 copy.xxx 引用。
entitlement-required 页拆分为 Client 组件接入 I18nProvider。
account/error.tsx 接入 useI18n 双语言支持。
终端 Global Weather Factors / Terminal Status 面板和大陆分组头
接入 t() 翻译,Heat/Active/Tradable/Primary/Closed 等标签跟随语言切换。

Tested: tsc --noEmit 通过, npm run build 通过
2026-05-25 01:59:31 +08:00
2569718930@qq.com 9a49ff3f5e 新增终端大洲分组与移动端卡片 CSS 模块
包含分组标题行、移动端 Tab 隐藏滚动条、信号卡片样式及浅色主题适配。
2026-05-25 01:55:55 +08:00
2569718930@qq.com 45e9c28437 feat: implement account management and subscription payment center components 2026-05-24 23:09:13 +08:00
2569718930@qq.com 4832678d72 修复 Telegram 绑定弹窗拦截:拦截时展示可点击链接供手动跳转 2026-05-24 18:55:52 +08:00
2569718930@qq.com 20c8395c0b 全局配置更新:OAuth 回调修复、支付安全加固、站点 URL 工具
- 新增 NEXT_PUBLIC_SITE_URL 支持及 site-url.ts 工具模块
- 修复 OAuth 回调域名:import.meta.env 统一读取站点 URL
- 支付 API 路由新增收款地址校验
- 后端支付服务更新
- middleware 清理
- 新增 paymentSecurity 测试
2026-05-24 18:33:47 +08:00
2569718930@qq.com 2be0b71018 修复 Telegram 绑定按钮被浏览器 popup 拦截:先同步打开窗口再设置跳转 2026-05-24 18:12:07 +08:00
2569718930@qq.com 89394e12ef 拆分 AccountCenter 超大组件:提取类型、常量、钱包、支付等独立模块
- AccountCenter.tsx 从 3565 行缩减约 1000 行
- 新增 8 个模块:types / constants / formatters / account-copy / wallet / payment-utils / usePaymentState / AccountInfoRow
- 同步更新 paymentShell 测试

Confidence: high
2026-05-23 23:30:48 +08:00
2569718930@qq.com 105713c799 @
支付提交增加 Tx 预校验:提交前链上验签收款地址与金额,防止转错地址;409 错误展示友好中文提示并自动对账恢复

- 新增 validate_intent_tx 方法及 POST /api/payments/intents/{id}/validate 端点,
  在提交前查链上 receipt 对比收款地址和金额,mismatch 直接拦截
- 新增 handleSubmit409 辅助函数,根据后端错误详情分流处理:
  已支付→自动 reconcile,已过期→提示重下单,其他→透传具体原因
- submit/validate 路由透传后端 detail 字段,生产环境也能看到具体错误
- 手动转账面板粘贴 tx hash 后自动触发验证,绿色/红色提示,
  验证不通过时禁用提交按钮

Tested: tsc --noEmit + ruff check . 均通过
@
2026-05-22 04:44:14 +08:00
2569718930@qq.com 8022464e78 移除所有用户可见的 Matic 过时引用,统一使用 Polygon / POL
Polygon 已于 2021 年从 Matic 更名,2024 年 token 从 MATIC 迁移为 POL。
- polygonChain 标签: "Polygon (Matic) Network" → "Polygon Network"
- chainIdToDisplayName: "Polygon (Matic)" → "Polygon"
- paymentGasWarning: "POL/MATIC" → "POL"
- chainSwitchPrompt: "Polygon (Matic)" → "Polygon"
- 错误检测正则保留 matic 关键字以兼容旧钱包

Tested: tsc --noEmit
2026-05-21 13:04:37 +08:00
2569718930@qq.com 982d192499 支付管理摘要区新增支付网络信息行
用户反馈支付管理区未标明链网络,在账号/钱包/收款合约行下方
新增"支付网络 (Payment Network)" InfoRow,明确显示 Polygon (Matic)。

Tested: tsc --noEmit
2026-05-21 12:54:18 +08:00
2569718930@qq.com 0234104a63 支付方式选择区域补全中英文 i18n,链网络标签明确 Polygon (Matic)
- 支付方式选择区域全部硬编码中文替换为 copy 对象引用
- 新增 20 个 i18n key:支付方式标签、描述、警告、手动转账表单
- 链相关标签从模糊的 "Polygon Chain" 改为明确的双语 "Polygon (Matic)"
- 链切换错误提示支持中英文
- TypeScript 类型检查通过

Tested: tsc --noEmit
2026-05-21 12:25:57 +08:00
2569718930@qq.com 2f9889d63a 修复后台漏斗无数据:埋点默认启用、补全 signup_completed 和 dashboard_active 事件上报 2026-05-20 20:13:18 +08:00
2569718930@qq.com ef2691a37b 同步文件换行符 2026-05-20 20:00:32 +08:00
2569718930@qq.com 84a2d4ce06 恢复币安注入提供者列表但添加 WalletConnect 提示,更新支付测试 2026-05-20 19:48:13 +08:00
2569718930@qq.com 8ba9567f64 移除深圳宝安机场跑道数据采集,深圳市场结算使用流浮山 HKO 数据 2026-05-20 19:38:07 +08:00
2569718930@qq.com dd01383b3a 优化钱包兼容性:移除 value:0x0 以兼容更多钱包、增强币安检测和网络切换提示 2026-05-20 19:18:29 +08:00
2569718930@qq.com edf41efad6 过滤币安 Web3 注入提供者,引导用户使用 WalletConnect 支付 2026-05-20 19:00:07 +08:00
2569718930@qq.com 871d21792e 修复账户页 Pro 状态偶发性丢失 2026-05-20 18:50:17 +08:00
2569718930@qq.com 9b2ac614cb 重构跑道观测系统:全跑道展示、结算跑道标注、热力模型、风场分析 2026-05-20 18:16:27 +08:00
2569718930@qq.com 9a5f9abf21 @
修复 trial 用户无法打开付款入口

canOpenCheckoutOverlay 缺少 isTrialPlan 条件,导致试用用户无法升级付费
@
2026-05-20 11:27:46 +08:00
2569718930@qq.com 60093d3162 @
统一月付价格为 10 USDC 并清理所有 trial 文案

- 默认月付 fallback 从 5U 改为 10U(contract_checkout.py、AccountCenter.tsx)
- 移除 LoginClient / HeaderBar / AccountCenter / UnlockProOverlay 中的试用推广文案
- VPS 同步: PLAN_CATALOG_JSON、GROUP_MEMBER_PRICE_USDC 更新为 10
- SIGNUP_TRIAL_ENABLED=false 保持关闭
@
2026-05-20 11:12:29 +08:00
2569718930@qq.com 6e3b7f60a2 fix(payment): display payment management panel for non-subscribed users to allow manual transfer tx submission 2026-05-20 09:59:27 +08:00
2569718930@qq.com 9ff0685756 Unify subscription pricing to 10 USDC, update documentation, and improve manual payment address copy experience 2026-05-20 09:20:07 +08:00
2569718930@qq.com 95192e8b58 Fix manual payment receiver address truncation 2026-05-20 09:05:14 +08:00
2569718930@qq.com 1af33c3ab8 chore(account): separate payment methods into tabs and fix noWallet copy 2026-05-20 08:33:59 +08:00
2569718930@qq.com 76d5a0abe8 refactor: remove redundant telegram pricing, align daily forecast date, and hide sunrise/sunset from UI 2026-05-20 07:55:47 +08:00
2569718930@qq.com 82d60cf05f feat: implement Telegram-to-Web account binding flow and add supporting database and UI components 2026-05-19 18:26:45 +08:00
2569718930@qq.com a5c508cce8 feat: implement SQLite database management and Supabase integration for user authentication and points synchronization 2026-05-19 18:07:39 +08:00
2569718930@qq.com ac4f70e33d feat: implement basic command handlers, orchestrator, database manager, and account binding UI 2026-05-19 17:47:51 +08:00
2569718930@qq.com 89914a296b feat: add AccountCenter component for user profile and subscription management 2026-05-19 17:31:31 +08:00
2569718930@qq.com 6e2baa14ad 账户页付费用户新增城市话题群入口链接 2026-05-19 17:15:16 +08:00
2569718930@qq.com c38dc80f58 后台新增 API 状态检测页:实时检测 Supabase/Open-Meteo/METAR/KNMI/MADIS/Telegram 连通性 2026-05-18 23:25:16 +08:00
2569718930@qq.com ad16ae6b3b 账户页 Telegram 区块仅付费用户可见,移除过期的频道升级通知和市场监控链接 2026-05-18 18:44:20 +08:00
2569718930@qq.com 78b23ef361 feat: implement Telegram account binding and update project structure in documentation 2026-05-18 17:10:44 +08:00
2569718930@qq.com 6041d25f23 feat: add telegram group pricing and direct payments 2026-05-18 16:18:26 +08:00
2569718930@qq.com 58e6557c66 feat: implement mobile scan terminal dashboard and city picker with backend forum automation scripts 2026-05-17 17:05:47 +08:00
2569718930@qq.com c4b1844a67 fix: stabilize pro checkout loading 2026-05-15 00:58:40 +08:00
AmandaloveYang 787d04619b feat: revamp points/reward system for inclusive engagement
- /city /deb now free, capped at 10/day each (was 2 pts cost)
- Welcome bonus +20 pts on first-ever valid message
- First-message-of-day bonus +2 pts
- Weekly winner point bonuses reduced (500→200, 300→100, 150→50)
- Weekly participation rewards for all active users (+5 base, +15 for ≥20 pts)
- Pro-day rewards for top 3 unchanged

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 13:35:52 +08:00
2569718930@qq.com 1ccc275a23 Make mobile account surfaces readable
Mobile review found that account payment rows could collapse labels vertically and several secondary links had small touch targets on narrow phones. The patch keeps the existing visual system but allows account rows to stack on mobile, improves tap height, and tightens the Scan Terminal narrow-screen container.

Constraint: Must keep the current desktop layout and avoid adding dependencies

Rejected: Rebuild the account page layout wholesale | too broad for a targeted mobile audit

Confidence: high

Scope-risk: narrow

Directive: Keep long account/payment identifiers breakable on narrow screens

Tested: iPhone SE and iPhone 12 Playwright mobile audits show no horizontal overflow on checked pages

Tested: npx tsc --noEmit --pretty false --project frontend/tsconfig.json

Tested: npm run build

Tested: npm run test:business

Not-tested: Authenticated /ops data state because local Supabase/admin gating redirects to the public shell
2026-04-29 12:40:37 +08:00
2569718930@qq.com 6914e6277b feat: implement backend routing, dashboard components, and transaction reconciliation scripts 2026-04-19 20:14:07 +08:00
2569718930@qq.com f98388ce69 Allow trial users to open checkout 2026-04-17 20:01:18 +08:00