Commit Graph

2 Commits

Author SHA1 Message Date
k d50c05b120 fix: pre-launch UI hardening + KOL reduce-action type, proxy IP relay, settings redesign
Frontend half of the pre-launch audit campaign:

- types/index.ts + kol/KolPageClient.tsx: add missing 'reduce' KolAction
  (backend emits it; frontend lacked the type + color/label maps → undefined
  styling). Adds ACTION_COLOR/actionLabel/postActionLabel entries.
- proxy/[...path]/route.ts: relay real client IP (x-forwarded-for / x-real-ip)
  so the backend rate limiter buckets per-user instead of per-Next-server (BUG-02).
- Settings/BotConfigPanel redesign, paper-mode clarity, copy cleanup.
- Assorted page/display fixes, loading states, Pagination component.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 11:57:43 +08:00
k ee3648c4cb docs: add CLAUDE.md — AI-agent project entry doc
Convention file every new Claude session reads first when opening this
repo. Documents:

  - Next.js 16 quirks (proxy.ts replaces middleware.ts, async params,
    i18n shelved).
  - Full route + component map.
  - API layer + auth model (EIP-191 signed envelopes).
  - Design system tokens (oklch colors, .macro-* classes, dark mode).
  - "Looks like a bug but isn't" section — including the /en/btc → /en/macro
    rename + the isZh=false i18n-shelved pattern.
  - SEO/GEO surface (layout.tsx JSON-LD + public/llms.txt + sitemap) that
    must be kept in sync when renaming features.
  - Cross-repo coupling points with the backend.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 11:04:19 +08:00