Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 2.99 KB

File metadata and controls

59 lines (45 loc) · 2.99 KB

Handoff

Current State

As of 2026-05-26, the project is deployed and functional.

Production:

Implemented:

  • Static Predict rewards-market dashboard.
  • Market rows link to the matching Predict market page.
  • Favorite stars for market rows.
  • Favorite list showing all saved markets.
  • Search input keeps focus during continuous typing.
  • Favorite actions preserve scroll position.
  • Manual Feishu report button.
  • Daily 10:00 Asia/Shanghai Feishu report with price changes and GPT web-search impact brief.
  • Worker KV storage for favorites and price snapshots.
  • Wallet monitor page for Predict wallet positions.
  • Position markets from monitored wallets auto-merge into favorites.
  • Password-protected Worker-hosted site with a seven-day HttpOnly session cookie.
  • Wallet signing flow for OKX, Binance, MetaMask, and other EIP-1193 wallets.
  • Authenticated self-wallet OPEN orders, with order markets auto-merged into favorites.
  • Predict account-address detection after wallet signing via /v1/account.

Important Commits

  • d869fa0 - Add favorite list and manual report push.
  • 653e23c - Use Node 22 for Worker deployment.
  • 91f46ce - Add favorite markets and daily Feishu reports.
  • 325e351 - Add wallet monitor page.
  • 0e05baf - Add private site login and self wallet orders.
  • 05512d0 - Use Predict account address for wallet monitoring.

Verification Already Done

  • npm test passes with 29 tests in the latest verification run.
  • Cloudflare Worker deployment is the production deployment path.
  • Worker health check returned {"ok":true}.
  • Online search verification: typing nexus preserved focus and returned matching rows.
  • Online favorite verification: adding and removing a favorite preserved scroll position.
  • Online manual report verification: the page returned 已推送 23:51 · 15 个市场 on 2026-05-19 Asia/Shanghai.

Known Limitations

  • GPT impact briefs depend on OPENAI_API_KEY. If OpenAI is not configured or fails, the report still sends price changes and fallback rows.
  • Arbitrary-address open orders remain unavailable because Predict's documented orders API requires authenticated user context. Self-wallet open orders are supported after wallet signing.
  • If Predict returns the login wallet as accountAddress but the UI stores positions in a different internal wallet, manually add the internal wallet for position monitoring. Open-order monitoring still depends on the JWT's account context.
  • If the Predict JWT expires, reconnect and sign again from the wallet monitor page.

Next Useful Improvements

  • Add a favicon to avoid the harmless favicon.ico 404 in browser console.
  • Add exact market-profile overrides for recurring markets whose settlement wording needs more precision than the generic title patterns.
  • Add a lightweight UI test for search focus and favorite scroll preservation.
  • Consider rotating the Feishu webhook/signing secret because the values were shared in the chat on 2026-05-19.