diff --git a/packages/console/app/src/config.ts b/packages/console/app/src/config.ts index 2cd039fef7ef..78da7eba3120 100644 --- a/packages/console/app/src/config.ts +++ b/packages/console/app/src/config.ts @@ -9,8 +9,8 @@ export const config = { github: { repoUrl: "https://github.com/anomalyco/opencode", starsFormatted: { - compact: "160K", - full: "160,000", + compact: "195K", + full: "195,000", }, }, @@ -22,8 +22,8 @@ export const config = { // Static stats (used on landing page) stats: { - contributors: "900", + contributors: "950", commits: "13,000", - monthlyUsers: "7.5M", + monthlyUsers: "16M", }, } as const diff --git a/packages/console/app/src/routes/zen/util/handler.ts b/packages/console/app/src/routes/zen/util/handler.ts index 4d31756161d8..7319295a67ba 100644 --- a/packages/console/app/src/routes/zen/util/handler.ts +++ b/packages/console/app/src/routes/zen/util/handler.ts @@ -197,7 +197,9 @@ export async function handler( if (Array.isArray(v)) return [[k, v]] if (typeof v === "object") return [[k, replacer(v)]] if (typeof v === "string") { - if (v === "$workspace") return authInfo?.workspaceID ? [[k, authInfo?.workspaceID]] : [] + if (v === "$workspace") return authInfo?.workspaceID ? [[k, authInfo.workspaceID]] : [] + if (v === "$org") + return authInfo?.workspaceID ? [[k, authInfo.workspaceID.replace("wrk_", "org_")]] : [] if (v === "$user") return stickyId ? [[k, stickyId]] : [] if (v.startsWith("$header.")) { const headerValue = input.request.headers.get(v.slice(8)) diff --git a/packages/console/core/src/schema/billing.sql.ts b/packages/console/core/src/schema/billing.sql.ts index b177858f363f..915646cf3da0 100644 --- a/packages/console/core/src/schema/billing.sql.ts +++ b/packages/console/core/src/schema/billing.sql.ts @@ -53,7 +53,6 @@ export const BillingTable = mysqlTable( ...workspaceIndexes(table), uniqueIndex("global_customer_id").on(table.customerID), uniqueIndex("global_subscription_id").on(table.subscriptionID), - uniqueIndex("global_lite_subscription_id").on(table.liteSubscriptionID), ], ) diff --git a/packages/console/core/src/schema/referral.sql.ts b/packages/console/core/src/schema/referral.sql.ts index be2499ee1158..9850c92457db 100644 --- a/packages/console/core/src/schema/referral.sql.ts +++ b/packages/console/core/src/schema/referral.sql.ts @@ -1,4 +1,4 @@ -import { bigint, index, mysqlTable, primaryKey, uniqueIndex, varchar } from "drizzle-orm/mysql-core" +import { bigint, mysqlTable, primaryKey, uniqueIndex, varchar } from "drizzle-orm/mysql-core" import { timestamps, ulid, utc, workspaceColumns } from "../drizzle/types" import { workspaceIndexes } from "./workspace.sql" @@ -31,8 +31,5 @@ export const ReferralRewardTable = mysqlTable( amount: bigint("amount", { mode: "number" }).notNull(), timeApplied: utc("time_applied"), }, - (table) => [ - primaryKey({ columns: [table.workspaceID, table.referralID] }), - index("referral_id").on(table.referralID), - ], + (table) => [primaryKey({ columns: [table.workspaceID, table.referralID] })], ) diff --git a/packages/stats/app/src/component/model-compare-detail.tsx b/packages/stats/app/src/component/model-compare-detail.tsx index d02723e4614f..3790789b58b3 100644 --- a/packages/stats/app/src/component/model-compare-detail.tsx +++ b/packages/stats/app/src/component/model-compare-detail.tsx @@ -31,6 +31,7 @@ import { applyThemePreference, Footer, getGitHubStars, + githubLink, Header, isThemePreference, themeStorageKey, @@ -240,7 +241,11 @@ export default function ModelCompareDetailPage(props: ModelCompareDetailPageProp -
+
-
+
}> diff --git a/packages/stats/app/src/routes/[lab]/index.tsx b/packages/stats/app/src/routes/[lab]/index.tsx index 3d4a1a663c37..ab202fc89f7d 100644 --- a/packages/stats/app/src/routes/[lab]/index.tsx +++ b/packages/stats/app/src/routes/[lab]/index.tsx @@ -32,6 +32,7 @@ import { applyThemePreference, Footer, getGitHubStars, + githubLink, Header, isThemePreference, themeStorageKey, @@ -141,7 +142,11 @@ export default function StatsLab() { -
+
}> diff --git a/packages/stats/app/src/routes/compare/index.tsx b/packages/stats/app/src/routes/compare/index.tsx index 7aa5cbe4c708..861f69493473 100644 --- a/packages/stats/app/src/routes/compare/index.tsx +++ b/packages/stats/app/src/routes/compare/index.tsx @@ -20,6 +20,7 @@ import { applyThemePreference, Footer, getGitHubStars, + githubLink, Header, isThemePreference, themeStorageKey, @@ -125,7 +126,11 @@ export default function ModelCompareIndex() { -
+
diff --git a/packages/stats/app/src/routes/stats-shell.tsx b/packages/stats/app/src/routes/stats-shell.tsx index 8906dc9d5a7a..1aa6e7a26fa8 100644 --- a/packages/stats/app/src/routes/stats-shell.tsx +++ b/packages/stats/app/src/routes/stats-shell.tsx @@ -10,7 +10,7 @@ export type HeaderLink = { href: string; label: string } export const githubLink = { href: "https://github.com/anomalyco/opencode", apiHref: "https://api.github.com/repos/anomalyco/opencode", - fallbackStars: "150K", + fallbackStars: "195K", } export const themePreferences = ["dark", "light", "system"] as const export const themeStorageKey = "opencode:stats-theme" @@ -18,7 +18,8 @@ export type ThemePreference = (typeof themePreferences)[number] const compactNumberFormatter = new Intl.NumberFormat("en", { notation: "compact", - maximumFractionDigits: 1, + maximumFractionDigits: 0, + roundingIncrement: 5, }) export const getGitHubStars = query(async () => {