mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-08 01:57:31 +01:00
fix: scope quota reports to authorized subscription accounts
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
a85fa3af31
commit
e85b02f99e
24 files changed
+1983
-182
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { quotaUnavailableMessage } from "@/lib/quota-refresh";
|
||||
import type { QuotaWindow } from "@paperclipai/shared";
|
||||
import { cn, quotaSourceDisplayName } from "@/lib/utils";
|
||||
|
||||
@@ -66,7 +67,7 @@ export function ClaudeSubscriptionPanel({
|
||||
Anthropic subscription
|
||||
</div>
|
||||
<div className="mt-1 text-sm text-muted-foreground">
|
||||
Live Claude quota windows.
|
||||
Quota from the Claude subscription connected to this server.
|
||||
</div>
|
||||
</div>
|
||||
{source ? (
|
||||
@@ -77,8 +78,8 @@ export function ClaudeSubscriptionPanel({
|
||||
</div>
|
||||
|
||||
{error ? (
|
||||
<div className="mt-4 border border-destructive/40 bg-destructive/10 px-3 py-2 text-sm text-destructive">
|
||||
{error}
|
||||
<div role="status" className="mt-4 text-sm text-muted-foreground">
|
||||
{quotaUnavailableMessage(windows.length > 0)}
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { quotaUnavailableMessage } from "@/lib/quota-refresh";
|
||||
import type { QuotaWindow } from "@paperclipai/shared";
|
||||
import { cn, quotaSourceDisplayName } from "@/lib/utils";
|
||||
|
||||
@@ -69,7 +70,7 @@ export function CodexSubscriptionPanel({
|
||||
Codex subscription
|
||||
</div>
|
||||
<div className="mt-1 text-sm text-muted-foreground">
|
||||
Live Codex quota windows.
|
||||
Quota from the Codex subscription connected to this server.
|
||||
</div>
|
||||
</div>
|
||||
{source ? (
|
||||
@@ -80,8 +81,8 @@ export function CodexSubscriptionPanel({
|
||||
</div>
|
||||
|
||||
{error ? (
|
||||
<div className="mt-4 border border-destructive/40 bg-destructive/10 px-3 py-2 text-sm text-destructive">
|
||||
{error}
|
||||
<div role="status" className="mt-4 text-sm text-muted-foreground">
|
||||
{quotaUnavailableMessage(windows.length > 0)}
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
|
||||
Reference in new issue
Block a user