From ac09f9f8f9fa8393b7d0257c524f53c50f5299fa Mon Sep 17 00:00:00 2001 From: Dayuan Jiang <34411969+DayuanJiang@users.noreply.github.com> Date: Mon, 8 Dec 2025 20:26:51 +0900 Subject: [PATCH] feat: redesign usage limits section on about pages (#173) - Redesign usage limits card with gradient border and modern styling - Remove emojis and combine title/subtitle on same line - Make all 3 language pages (EN/CN/JP) consistent in design - Update text content with exact localized wording - Add warning triangle icon in chat panel linking to about page - Add 'Learn more' link in quota limit toast - Open about page links in new tab to preserve diagram state --- app/about/cn/page.tsx | 96 +++++++++++++++++++++++++-- app/about/ja/page.tsx | 96 +++++++++++++++++++++++++-- app/about/page.tsx | 107 ++++++++++++++++++++++++++++--- components/chat-panel.tsx | 25 +++++--- components/quota-limit-toast.tsx | 11 +++- 5 files changed, 303 insertions(+), 32 deletions(-) diff --git a/app/about/cn/page.tsx b/app/about/cn/page.tsx index 4d0534e..74bedbe 100644 --- a/app/about/cn/page.tsx +++ b/app/about/cn/page.tsx @@ -85,12 +85,96 @@ export default function AboutCN() { -
- 本应用设计运行于 Claude Opus 4.5 - 以获得最佳性能。但由于流量超出预期,运行顶级模型的成本变得难以承受。为避免服务中断并控制成本,我已将后端切换至 - Claude Haiku 4.5。 -
++ 大家对这个项目的热情太高了——看来大家都真的很喜欢画图!但这也带来了一个幸福的烦恼:我们经常触发出上游 + AI 接口的频率限制 + (TPS/TPM)。一旦超限,系统就会暂停,导致请求失败。 +
++ 作为一个 + + 独立开发者 + + ,目前的 API + 费用全是我自己在掏腰包(纯属为爱发电)。为了保证服务能细水长流,同时也为了避免我个人陷入财务危机,我不得不设置以下临时用量限制: +
++ 要想彻底解除这些限制,扩容后端是唯一的办法。我正在积极寻求 + AI API 提供商或云平台的赞助。 +
++ 作为回报(无论是额度支持还是资金支持),我将在 + GitHub 仓库和 Live Demo + 网站的显眼位置展示贵公司的 Logo + 作为平台赞助商。 +
+ + 联系我 + +diff --git a/app/about/ja/page.tsx b/app/about/ja/page.tsx index 3844619..f5e87ad 100644 --- a/app/about/ja/page.tsx +++ b/app/about/ja/page.tsx @@ -93,13 +93,95 @@ export default function AboutJA() {
- 本アプリは最高のパフォーマンスを発揮するため、Claude - Opus 4.5 - で動作するよう設計されています。しかし、予想以上のトラフィックにより、最上位モデルの運用コストが負担となっています。サービスの中断を避け、コストを管理するため、バックエンドを - Claude Haiku 4.5 に切り替えました。 -
++ 予想以上の反響をいただき、ありがとうございます!皆様にダイアグラム作成を楽しんでいただいているのは嬉しい限りですが、その熱量により + AI API のレート制限 (TPS/TPM) + に頻繁に引っかかってしまっています。制限に達するとシステムが一時停止し、エラーが発生してしまいます。 +
++ 私は現在、 + + 個人開発者 + + として API + 費用を全額自腹で負担しています。サービスを継続し、かつ私自身が借金を背負わないようにするため(笑)、一時的に以下の利用制限を設けさせていただきました。 +
++ これらの制限を取り払い、バックエンドをスケールさせるには皆様の支援が必要です。現在、AI + API + プロバイダー様やクラウドプラットフォーム様からのスポンサー支援を積極的に募集しています。 +
++ ご支援(クレジット提供や資金援助)をいただける場合、GitHub + リポジトリおよびデモサイトにて、プラットフォームスポンサーとして貴社を大々的にご紹介させていただきます。 +
+ + お問い合わせ + +diff --git a/app/about/page.tsx b/app/about/page.tsx index 92dae5e..d7c466c 100644 --- a/app/about/page.tsx +++ b/app/about/page.tsx @@ -93,15 +93,104 @@ export default function About() {
- This app is designed to run on Claude Opus 4.5 for - best performance. However, due to - higher-than-expected traffic, running the top-tier - model has become cost-prohibitive. To avoid service - interruptions and manage costs, I have switched the - backend to Claude Haiku 4.5. -
++ The response to this project has been + incredible—you all love making diagrams! + However, this enthusiasm means we are + frequently hitting the AI API rate limits + (TPS/TPM). When this happens, the system + pauses, leading to failed requests. +
++ As an{" "} + + indie developer + + , I am currently footing the entire API + bill. To keep the lights on and ensure the + service remains available to everyone + without sending me into debt, I have + implemented the following temporary caps: +
++ Scaling the backend is the only way to + remove these limits. I am actively seeking + sponsorship from AI API providers or Cloud + Platforms. +
++ In return for support (credits or funding), + I will prominently feature your company as a + platform sponsor on both the GitHub + repository and the live demo site. +
+ + Contact Me + +
diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx
index ad1f618..52e85b3 100644
--- a/components/chat-panel.tsx
+++ b/components/chat-panel.tsx
@@ -6,7 +6,7 @@ import {
lastAssistantMessageIsCompleteWithToolCalls,
} from "ai"
import {
- CheckCircle,
+ AlertTriangle,
PanelRightClose,
PanelRightOpen,
Settings,
@@ -1034,21 +1034,28 @@ Please retry with an adjusted search pattern or use display_diagram if retries a
{!isMobile && (
About
)}
{!isMobile && (
-
The good news is that you can self-host the project in