From 34ff87d504836ff71b3bb2d466842c00ee3c5ec2 Mon Sep 17 00:00:00 2001
From: GitHub Action
Date: Sat, 8 Nov 2025 01:59:02 +0000
Subject: chore: format code
---
.../workspace/[id]/billing/billing-section.tsx | 32 +++++-----------------
.../[id]/billing/monthly-limit-section.tsx | 8 ++----
.../workspace/[id]/billing/payment-section.tsx | 5 +---
.../workspace/[id]/billing/reload-section.tsx | 14 ++++------
.../app/src/routes/workspace/[id]/index.tsx | 4 +--
.../src/routes/workspace/[id]/keys/key-section.tsx | 10 ++-----
.../workspace/[id]/members/member-section.tsx | 7 +----
.../src/routes/workspace/[id]/model-section.tsx | 13 ++-------
.../src/routes/workspace/[id]/new-user-section.tsx | 15 ++--------
.../src/routes/workspace/[id]/provider-section.tsx | 16 ++---------
.../console/app/src/routes/workspace/common.tsx | 5 +---
11 files changed, 28 insertions(+), 101 deletions(-)
(limited to 'packages/console/app/src/routes/workspace')
diff --git a/packages/console/app/src/routes/workspace/[id]/billing/billing-section.tsx b/packages/console/app/src/routes/workspace/[id]/billing/billing-section.tsx
index 9e51bbe10..05f8edd01 100644
--- a/packages/console/app/src/routes/workspace/[id]/billing/billing-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/billing/billing-section.tsx
@@ -133,8 +133,7 @@ export function BillingSection() {
Billing
- Manage payments methods. Contact us if you have any
- questions.
+ Manage payments methods. Contact us if you have any questions.
@@ -164,32 +163,20 @@ export function BillingSection() {
placeholder="Enter amount"
/>
-
-
+
{(err: any) => {err()}
}
@@ -210,10 +197,7 @@ export function BillingSection() {
- ----}
- >
+ ----}>
••••
{billingInfo()?.paymentMethodLast4}
@@ -241,9 +225,7 @@ export function BillingSection() {
disabled={checkoutSubmission.pending || store.checkoutRedirecting}
onClick={onClickCheckout}
>
- {checkoutSubmission.pending || store.checkoutRedirecting
- ? "Loading..."
- : "Enable Billing"}
+ {checkoutSubmission.pending || store.checkoutRedirecting ? "Loading..." : "Enable Billing"}
diff --git a/packages/console/app/src/routes/workspace/[id]/billing/monthly-limit-section.tsx b/packages/console/app/src/routes/workspace/[id]/billing/monthly-limit-section.tsx
index e6461ac83..77c017964 100644
--- a/packages/console/app/src/routes/workspace/[id]/billing/monthly-limit-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/billing/monthly-limit-section.tsx
@@ -104,13 +104,9 @@ export function MonthlyLimitSection() {
- No usage limit set.
}
- >
+ No usage limit set.}>
- Current usage for{" "}
- {new Date().toLocaleDateString("en-US", { month: "long", timeZone: "UTC" })} is $
+ Current usage for {new Date().toLocaleDateString("en-US", { month: "long", timeZone: "UTC" })} is $
{(() => {
const dateLastUsed = billingInfo()?.timeMonthlyUsageUpdated
if (!dateLastUsed) return "0"
diff --git a/packages/console/app/src/routes/workspace/[id]/billing/payment-section.tsx b/packages/console/app/src/routes/workspace/[id]/billing/payment-section.tsx
index a7218546d..0fb2a0df6 100644
--- a/packages/console/app/src/routes/workspace/[id]/billing/payment-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/billing/payment-section.tsx
@@ -89,10 +89,7 @@ export function PaymentSection() {
{
- const receiptUrl = await downloadReceiptAction(
- params.id,
- payment.paymentID!,
- )
+ const receiptUrl = await downloadReceiptAction(params.id, payment.paymentID!)
if (receiptUrl) {
window.open(receiptUrl, "_blank")
}
diff --git a/packages/console/app/src/routes/workspace/[id]/billing/reload-section.tsx b/packages/console/app/src/routes/workspace/[id]/billing/reload-section.tsx
index 50d00ef30..8dcc4da92 100644
--- a/packages/console/app/src/routes/workspace/[id]/billing/reload-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/billing/reload-section.tsx
@@ -69,11 +69,7 @@ export function ReloadSection() {
})
createEffect(() => {
- if (
- !setReloadSubmission.pending &&
- setReloadSubmission.result &&
- !(setReloadSubmission.result as any).error
- ) {
+ if (!setReloadSubmission.pending && setReloadSubmission.result && !(setReloadSubmission.result as any).error) {
setStore("show", false)
}
})
@@ -108,8 +104,8 @@ export function ReloadSection() {
}
>
- Auto reload is enabled. We'll reload ${billingInfo()?.reloadAmount}{" "}
- (+$1.23 processing fee) when balance reaches ${billingInfo()?.reloadTrigger}.
+ Auto reload is enabled. We'll reload ${billingInfo()?.reloadAmount} (+$1.23 processing fee)
+ when balance reaches ${billingInfo()?.reloadTrigger}.
show()}>
@@ -194,8 +190,8 @@ export function ReloadSection() {
minute: "2-digit",
second: "2-digit",
})}
- . Reason: {billingInfo()?.reloadError?.replace(/\.$/, "")}. Please update your payment
- method and try again.
+ . Reason: {billingInfo()?.reloadError?.replace(/\.$/, "")}. Please update your payment method and try
+ again.
}
>
diff --git a/packages/console/app/src/routes/workspace/[id]/keys/key-section.tsx b/packages/console/app/src/routes/workspace/[id]/keys/key-section.tsx
index e1c2c00cf..565981c7f 100644
--- a/packages/console/app/src/routes/workspace/[id]/keys/key-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/keys/key-section.tsx
@@ -146,20 +146,14 @@ export function KeySection() {
title="Copy API key"
>
{key.keyDisplay}
- }
- >
+ }>
|
{key.email} |
-
+ |
{key.timeUsed ? formatDateForTable(key.timeUsed) : "-"}
|
diff --git a/packages/console/app/src/routes/workspace/[id]/members/member-section.tsx b/packages/console/app/src/routes/workspace/[id]/members/member-section.tsx
index 4b2a12fdc..5aa1b969e 100644
--- a/packages/console/app/src/routes/workspace/[id]/members/member-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/members/member-section.tsx
@@ -85,12 +85,7 @@ const updateMember = action(async (form: FormData) => {
)
}, "member.update")
-function MemberRow(props: {
- member: any
- workspaceID: string
- actorID: string
- actorRole: string
-}) {
+function MemberRow(props: { member: any; workspaceID: string; actorID: string; actorRole: string }) {
const submission = useSubmission(updateMember)
const isCurrentUser = () => props.actorID === props.member.id
const isAdmin = () => props.actorRole === "admin"
diff --git a/packages/console/app/src/routes/workspace/[id]/model-section.tsx b/packages/console/app/src/routes/workspace/[id]/model-section.tsx
index 223d69fc8..7a1980ebe 100644
--- a/packages/console/app/src/routes/workspace/[id]/model-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/model-section.tsx
@@ -5,15 +5,7 @@ import { withActor } from "~/context/auth.withActor"
import { ZenData } from "@opencode-ai/console-core/model.js"
import styles from "./model-section.module.css"
import { querySessionInfo } from "../common"
-import {
- IconAlibaba,
- IconAnthropic,
- IconMoonshotAI,
- IconOpenAI,
- IconStealth,
- IconXai,
- IconZai,
-} from "~/component/icon"
+import { IconAlibaba, IconAnthropic, IconMoonshotAI, IconOpenAI, IconStealth, IconXai, IconZai } from "~/component/icon"
const getModelLab = (modelId: string) => {
if (modelId.startsWith("claude")) return "Anthropic"
@@ -76,8 +68,7 @@ export function ModelSection() {
Models
- Manage which models workspace members can access.{" "}
- Learn more.
+ Manage which models workspace members can access. Learn more.
diff --git a/packages/console/app/src/routes/workspace/[id]/new-user-section.tsx b/packages/console/app/src/routes/workspace/[id]/new-user-section.tsx
index 7b949c661..65edc6847 100644
--- a/packages/console/app/src/routes/workspace/[id]/new-user-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/new-user-section.tsx
@@ -43,24 +43,15 @@ export function NewUserSection() {
Tested & Verified Models
-
- We've benchmarked and tested models specifically for coding agents to ensure the best
- performance.
-
+ We've benchmarked and tested models specifically for coding agents to ensure the best performance.
Highest Quality
-
- Access models configured for optimal performance - no downgrades or routing to cheaper
- providers.
-
+ Access models configured for optimal performance - no downgrades or routing to cheaper providers.
No Lock-in
-
- Use Zen with any coding agent, and continue using other providers with opencode
- whenever you want.
-
+ Use Zen with any coding agent, and continue using other providers with opencode whenever you want.
diff --git a/packages/console/app/src/routes/workspace/[id]/provider-section.tsx b/packages/console/app/src/routes/workspace/[id]/provider-section.tsx
index 67314fbdc..5419ed7fb 100644
--- a/packages/console/app/src/routes/workspace/[id]/provider-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/provider-section.tsx
@@ -55,10 +55,7 @@ const listProviders = query(async (workspaceID: string) => {
function ProviderRow(props: { provider: Provider }) {
const params = useParams()
const providers = createAsync(() => listProviders(params.id))
- const saveSubmission = useSubmission(
- saveProvider,
- ([fd]) => fd.get("provider")?.toString() === props.provider.key,
- )
+ const saveSubmission = useSubmission(saveProvider, ([fd]) => fd.get("provider")?.toString() === props.provider.key)
const removeSubmission = useSubmission(
removeProvider,
([fd]) => fd.get("provider")?.toString() === props.provider.key,
@@ -94,16 +91,9 @@ function ProviderRow(props: { provider: Provider }) {
{providerData() ? maskCredentials(providerData()!.credentials) : "-"}
- }
+ fallback={{providerData() ? maskCredentials(providerData()!.credentials) : "-"}}
>
- | |