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
This commit is contained in:
Dayuan Jiang
2025-12-08 20:26:51 +09:00
committed by GitHub
parent 622829b903
commit ac09f9f8f9
5 changed files with 303 additions and 32 deletions

View File

@@ -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 && (
<Link
href="/about"
prefetch={false}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-muted-foreground hover:text-foreground transition-colors ml-2"
>
About
</Link>
)}
{!isMobile && (
<ButtonWithTooltip
tooltipContent="Recent generation failures were caused by our AI provider's infrastructure issue, not the app code. After extensive debugging, I've switched providers and observed 6 hours of stability. If issues persist, please report on GitHub."
variant="ghost"
size="icon"
className="h-6 w-6 text-green-500 hover:text-green-600"
<Link
href="/about"
target="_blank"
rel="noopener noreferrer"
>
<CheckCircle className="h-4 w-4" />
</ButtonWithTooltip>
<ButtonWithTooltip
tooltipContent="Due to high usage, I have added usage limits. See About page for details."
variant="ghost"
size="icon"
className="h-6 w-6 text-amber-500 hover:text-amber-600"
>
<AlertTriangle className="h-4 w-4" />
</ButtonWithTooltip>
</Link>
)}
</div>
<div className="flex items-center gap-1">