diff --git a/apps/desktop/src/renderer/hooks/useCloudUsageEnabled/useCloudUsageEnabled.ts b/apps/desktop/src/renderer/hooks/useCloudUsageEnabled/useCloudUsageEnabled.ts index 8280c36e48a..bd53717cbfd 100644 --- a/apps/desktop/src/renderer/hooks/useCloudUsageEnabled/useCloudUsageEnabled.ts +++ b/apps/desktop/src/renderer/hooks/useCloudUsageEnabled/useCloudUsageEnabled.ts @@ -3,12 +3,13 @@ import { cloudTrpc } from "renderer/lib/cloud-trpc"; /** * The cloud usage flag is evaluated for the organization on the server, and * this app's PostHog client has no organization group, so the router's answer - * is the flag: off, every cloud.* procedure is FORBIDDEN. + * is the flag: off, every cloud.* procedure is FORBIDDEN. Any other error + * leaves the pages reachable, so they can show it and offer a retry. */ export function useCloudUsageEnabled(): boolean { - const { isSuccess } = cloudTrpc.cloud.periods.list.useQuery( + const { isSuccess, error } = cloudTrpc.cloud.periods.list.useQuery( { limit: 1 }, { staleTime: 5 * 60_000, refetchOnWindowFocus: false }, ); - return isSuccess; + return isSuccess || (error !== null && error.data?.code !== "FORBIDDEN"); } diff --git a/apps/desktop/src/renderer/routes/_authenticated/hooks/useMachineSizeOptions/useMachineSizeOptions.ts b/apps/desktop/src/renderer/routes/_authenticated/hooks/useMachineSizeOptions/useMachineSizeOptions.ts index 659709e6d60..17183df3dfd 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/hooks/useMachineSizeOptions/useMachineSizeOptions.ts +++ b/apps/desktop/src/renderer/routes/_authenticated/hooks/useMachineSizeOptions/useMachineSizeOptions.ts @@ -6,6 +6,7 @@ import { machineSpec, offeredMachineSizes, } from "@superset/shared/billing"; +import { MACHINE_SIZE_NAMES } from "@superset/shared/machine-size-names"; import { useMemo } from "react"; import { useActiveOrganizationId } from "renderer/hooks/useActiveOrganizationId"; import { cloudTrpc } from "renderer/lib/cloud-trpc"; @@ -22,7 +23,7 @@ export function useMachineSizeOptions(): { options: MachineSizeOption[]; defaultSize: MachineSize; } { - const { t } = useLingui(); + const { i18n, t } = useLingui(); const { formatNumber } = useFormat(); const organizationId = useActiveOrganizationId(); const { data } = cloudTrpc.cloudWorkspace.machineSizes.useQuery( @@ -31,13 +32,6 @@ export function useMachineSizeOptions(): { ); return useMemo(() => { const sizes = data?.sizes.map((size) => size.name) ?? FALLBACK_SIZES; - const names: Record = { - small: t({ message: "Small", context: "machine size" }), - medium: t({ message: "Medium", context: "machine size" }), - large: t({ message: "Large", context: "machine size" }), - xlarge: t({ message: "X-Large", context: "machine size" }), - "2xlarge": t({ message: "2X-Large", context: "machine size" }), - }; return { defaultSize: data?.defaultSize ?? defaultMachineSize(sizes), @@ -47,10 +41,10 @@ export function useMachineSizeOptions(): { const memory = formatNumber(memoryGb); return { size, - name: names[size], + name: i18n._(MACHINE_SIZE_NAMES[size]), spec: t({ message: `${vcpuCount} vCPU · ${memory} GB` }), }; }), }; - }, [data, t, formatNumber]); + }, [data, i18n, t, formatNumber]); } diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageGate/CloudUsageGate.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageGate/CloudUsageGate.tsx new file mode 100644 index 00000000000..c1033d68af5 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageGate/CloudUsageGate.tsx @@ -0,0 +1,35 @@ +import { PERIODS_INPUT, QueryStatus } from "@superset/ui/cloud-usage-page"; +import { useNavigate } from "@tanstack/react-router"; +import { type ReactNode, useEffect } from "react"; +import { useOrganizationMembership } from "renderer/hooks/useOrganizationMembership"; +import { cloudTrpc } from "renderer/lib/cloud-trpc"; + +/** Waits for the member's role, and leaves the cloud usage pages when the router says the flag is off. */ +export function CloudUsageGate({ + children, +}: { + children: (isAdmin: boolean) => ReactNode; +}) { + const navigate = useNavigate(); + const { role, ...membership } = useOrganizationMembership(); + const periods = cloudTrpc.cloud.periods.list.useQuery(PERIODS_INPUT); + const isDisabled = periods.error?.data?.code === "FORBIDDEN"; + + useEffect(() => { + if (isDisabled) navigate({ to: "/settings/account", replace: true }); + }, [isDisabled, navigate]); + + if (isDisabled) return null; + return ( +
+ {role === undefined ? ( + + ) : ( + children(role === "owner" || role === "admin") + )} +
+ ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageGate/index.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageGate/index.ts new file mode 100644 index 00000000000..9c1fdd88ba9 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageGate/index.ts @@ -0,0 +1 @@ +export { CloudUsageGate } from "./CloudUsageGate"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageLink/CloudUsageLink.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageLink/CloudUsageLink.tsx new file mode 100644 index 00000000000..46049090849 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageLink/CloudUsageLink.tsx @@ -0,0 +1,36 @@ +import type { CloudUsageLink as LinkType } from "@superset/ui/cloud-usage-page"; +import { Link } from "@tanstack/react-router"; + +export const CloudUsageLink: LinkType = ({ to, ...props }) => { + switch (to.view) { + case "overview": + return ( + + ); + case "workspaces": { + const { view: _, ...search } = to; + return ( + + ); + } + case "workspace": + return ( + + ); + case "billing": + return ; + } +}; diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageLink/index.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageLink/index.ts new file mode 100644 index 00000000000..f4c0676cdbe --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageLink/index.ts @@ -0,0 +1 @@ +export { CloudUsageLink } from "./CloudUsageLink"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageSettings/CloudUsageSettings.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageSettings/CloudUsageSettings.tsx index 916a26c28e0..49b2d8a60a9 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageSettings/CloudUsageSettings.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/components/CloudUsageSettings/CloudUsageSettings.tsx @@ -1,95 +1,51 @@ -import { Trans } from "@lingui/react/macro"; -import { Button } from "@superset/ui/button"; import { CloudUsagePage, cloudUsageQueries, - PERIODS_INPUT, - QueryStatus, - selectedPeriod, - usageRange, - type WorkspaceRef, } from "@superset/ui/cloud-usage-page"; -import { Link, useNavigate } from "@tanstack/react-router"; -import { useEffect, useState } from "react"; -import { useOrganizationMembership } from "renderer/hooks/useOrganizationMembership"; import { cloudTrpc } from "renderer/lib/cloud-trpc"; +import { useCloudUsagePeriod } from "../../hooks/useCloudUsagePeriod"; +import { CloudUsageLink } from "../CloudUsageLink"; -export function CloudUsageSettings() { - const navigate = useNavigate(); - const { role, ...membership } = useOrganizationMembership(); - const isAdmin = role === "owner" || role === "admin"; - const periods = cloudTrpc.cloud.periods.list.useQuery(PERIODS_INPUT); - const [periodId, setPeriodId] = useState(); - const [workspace, setWorkspace] = useState(null); - const period = selectedPeriod(periods.data?.items, periodId); +interface CloudUsageSettingsProps { + isAdmin: boolean; + periodId: string | undefined; +} + +export function CloudUsageSettings({ + isAdmin, + periodId, +}: CloudUsageSettingsProps) { + const { periods, period, range } = useCloudUsagePeriod(periodId); const queries = cloudUsageQueries({ - range: usageRange(period), + range, periodsLoaded: periods.isSuccess, isAdmin, - workspaceId: workspace?.id, }); const byDay = cloudTrpc.cloud.usage.query.useQuery(queries.byDay.input, { enabled: queries.byDay.enabled, }); const byPerson = cloudTrpc.cloud.usage.query.useQuery( queries.byPerson.input, - { enabled: queries.byPerson.enabled }, - ); - const workspaces = cloudTrpc.cloud.usage.query.useInfiniteQuery( - queries.workspaces.input, { - getNextPageParam: (page) => page.nextCursor, - enabled: queries.workspaces.enabled, + enabled: queries.byPerson.enabled, }, ); - const boots = cloudTrpc.cloud.boots.list.useInfiniteQuery( - queries.boots.input, + const workspaces = cloudTrpc.cloud.usage.query.useQuery( + queries.topWorkspaces.input, { - getNextPageParam: (page) => page.nextCursor, - enabled: queries.boots.enabled, + enabled: queries.topWorkspaces.enabled, }, ); - const isDisabled = periods.error?.data?.code === "FORBIDDEN"; - - useEffect(() => { - if (isDisabled) navigate({ to: "/settings/account", replace: true }); - }, [isDisabled, navigate]); - - if (isDisabled) return null; - if (role === undefined) { - return ( -
- -
- ); - } return ( -
- - - Billing - - - ) - } - periods={periods} - period={period} - onPeriodChange={setPeriodId} - byDay={byDay} - byPerson={byPerson} - workspaces={workspaces} - workspace={workspace} - onWorkspaceChange={setWorkspace} - boots={boots} - /> -
+ ); } diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/hooks/useCloudUsagePeriod/index.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/hooks/useCloudUsagePeriod/index.ts new file mode 100644 index 00000000000..1f798afd1c0 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/hooks/useCloudUsagePeriod/index.ts @@ -0,0 +1 @@ +export { useCloudUsagePeriod } from "./useCloudUsagePeriod"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/hooks/useCloudUsagePeriod/useCloudUsagePeriod.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/hooks/useCloudUsagePeriod/useCloudUsagePeriod.ts new file mode 100644 index 00000000000..9d86aefef12 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/hooks/useCloudUsagePeriod/useCloudUsagePeriod.ts @@ -0,0 +1,13 @@ +import { + PERIODS_INPUT, + selectedPeriod, + usageRange, +} from "@superset/ui/cloud-usage-page"; +import { cloudTrpc } from "renderer/lib/cloud-trpc"; + +/** The billing periods, and the one the route's `period` names. */ +export function useCloudUsagePeriod(periodId: string | undefined) { + const periods = cloudTrpc.cloud.periods.list.useQuery(PERIODS_INPUT); + const period = selectedPeriod(periods.data?.items, periodId); + return { periods, period, range: usageRange(period) }; +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/page.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/page.tsx index 04a857db1d8..0a8f1a767a5 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/page.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/page.tsx @@ -1,11 +1,19 @@ import { createFileRoute } from "@tanstack/react-router"; import { useActiveOrganizationId } from "renderer/hooks/useActiveOrganizationId"; +import { CloudUsageGate } from "./components/CloudUsageGate"; import { CloudUsageSettings } from "./components/CloudUsageSettings"; +import { cloudUsageSearch } from "./utils/cloudUsageSearch"; export const Route = createFileRoute("/_authenticated/settings/cloud-usage/")({ component: CloudUsageSettingsPage, + validateSearch: cloudUsageSearch, }); function CloudUsageSettingsPage() { - return ; + const { period } = Route.useSearch(); + return ( + + {(isAdmin) => } + + ); } diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/utils/cloudUsageSearch/cloudUsageSearch.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/utils/cloudUsageSearch/cloudUsageSearch.ts new file mode 100644 index 00000000000..e1a1bd07348 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/utils/cloudUsageSearch/cloudUsageSearch.ts @@ -0,0 +1,16 @@ +import { + type WorkspacesFilters, + workspacesFilters, +} from "@superset/ui/cloud-usage-page"; + +/** `period` is a period id; absent means the newest. The rest are the Workspaces page's filters. */ +export function cloudUsageSearch( + search: Record, +): { period?: string } & WorkspacesFilters { + const period = search.period; + return { + period: + typeof period === "string" && period.length > 0 ? period : undefined, + ...workspacesFilters((key) => search[key]), + }; +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/utils/cloudUsageSearch/index.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/utils/cloudUsageSearch/index.ts new file mode 100644 index 00000000000..55186f271e1 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/utils/cloudUsageSearch/index.ts @@ -0,0 +1 @@ +export { cloudUsageSearch } from "./cloudUsageSearch"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/$workspaceId/components/CloudWorkspaceSettings/CloudWorkspaceSettings.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/$workspaceId/components/CloudWorkspaceSettings/CloudWorkspaceSettings.tsx new file mode 100644 index 00000000000..19685f8b67a --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/$workspaceId/components/CloudWorkspaceSettings/CloudWorkspaceSettings.tsx @@ -0,0 +1,76 @@ +import { Trans } from "@lingui/react/macro"; +import { FEATURE_FLAGS } from "@superset/shared/constants"; +import { Button } from "@superset/ui/button"; +import { + CloudWorkspacePage, + cloudUsageQueries, +} from "@superset/ui/cloud-usage-page"; +import { Link } from "@tanstack/react-router"; +import { useFeatureFlagEnabled } from "posthog-js/react"; +import { LuArrowUpRight } from "react-icons/lu"; +import { cloudTrpc } from "renderer/lib/cloud-trpc"; +import { CloudUsageLink } from "../../../../components/CloudUsageLink"; +import { useCloudUsagePeriod } from "../../../../hooks/useCloudUsagePeriod"; + +interface CloudWorkspaceSettingsProps { + workspaceId: string; + periodId: string | undefined; +} + +export function CloudWorkspaceSettings({ + workspaceId, + periodId, +}: CloudWorkspaceSettingsProps) { + const canOpen = + useFeatureFlagEnabled(FEATURE_FLAGS.CLOUD_WORKSPACES) === true; + const { periods, period, range } = useCloudUsagePeriod(periodId); + const queries = cloudUsageQueries({ + range, + periodsLoaded: periods.isSuccess, + isAdmin: false, + workspaceId, + }); + const workspace = cloudTrpc.cloud.usage.query.useQuery( + queries.workspace.input, + { + enabled: queries.workspace.enabled, + }, + ); + const allTime = cloudTrpc.cloud.usage.query.useQuery( + queries.workspaceAllTime.input, + { enabled: queries.workspaceAllTime.enabled }, + ); + const boots = cloudTrpc.cloud.boots.list.useInfiniteQuery( + queries.boots.input, + { + getNextPageParam: (page) => page.nextCursor, + enabled: queries.boots.enabled, + }, + ); + + return ( + ( + + ) + : undefined + } + /> + ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/$workspaceId/components/CloudWorkspaceSettings/index.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/$workspaceId/components/CloudWorkspaceSettings/index.ts new file mode 100644 index 00000000000..5aa880352ac --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/$workspaceId/components/CloudWorkspaceSettings/index.ts @@ -0,0 +1 @@ +export { CloudWorkspaceSettings } from "./CloudWorkspaceSettings"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/$workspaceId/page.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/$workspaceId/page.tsx new file mode 100644 index 00000000000..e304a639ef6 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/$workspaceId/page.tsx @@ -0,0 +1,24 @@ +import { createFileRoute } from "@tanstack/react-router"; +import { useActiveOrganizationId } from "renderer/hooks/useActiveOrganizationId"; +import { CloudUsageGate } from "../../components/CloudUsageGate"; +import { cloudUsageSearch } from "../../utils/cloudUsageSearch"; +import { CloudWorkspaceSettings } from "./components/CloudWorkspaceSettings"; + +export const Route = createFileRoute( + "/_authenticated/settings/cloud-usage/workspaces/$workspaceId/", +)({ + component: CloudWorkspaceSettingsPage, + validateSearch: cloudUsageSearch, +}); + +function CloudWorkspaceSettingsPage() { + const { workspaceId } = Route.useParams(); + const { period } = Route.useSearch(); + return ( + + {() => ( + + )} + + ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/CloudWorkspacesSettings.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/CloudWorkspacesSettings.tsx new file mode 100644 index 00000000000..469092255d9 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/CloudWorkspacesSettings.tsx @@ -0,0 +1,60 @@ +import { + CloudWorkspacesPage, + cloudUsageQueries, + type WorkspacesFilters, +} from "@superset/ui/cloud-usage-page"; +import { useNavigate } from "@tanstack/react-router"; +import { cloudTrpc } from "renderer/lib/cloud-trpc"; +import { CloudUsageLink } from "../../../components/CloudUsageLink"; +import { useCloudUsagePeriod } from "../../../hooks/useCloudUsagePeriod"; + +interface CloudWorkspacesSettingsProps { + isAdmin: boolean; + periodId: string | undefined; + filters: WorkspacesFilters; +} + +export function CloudWorkspacesSettings({ + isAdmin, + periodId, + filters, +}: CloudWorkspacesSettingsProps) { + const navigate = useNavigate(); + const { periods, period, range } = useCloudUsagePeriod(periodId); + const queries = cloudUsageQueries({ + range, + periodsLoaded: periods.isSuccess, + isAdmin, + filters, + }); + const workspaces = cloudTrpc.cloud.usage.query.useInfiniteQuery( + queries.workspaces.input, + { + getNextPageParam: (page) => page.nextCursor, + enabled: queries.workspaces.enabled, + }, + ); + const byPerson = cloudTrpc.cloud.usage.query.useQuery( + queries.byPerson.input, + { enabled: queries.byPerson.enabled }, + ); + + return ( + + navigate({ + to: "/settings/cloud-usage/workspaces", + search, + replace: true, + }) + } + isAdmin={isAdmin} + periods={periods} + period={period} + workspaces={workspaces} + filters={filters} + byPerson={byPerson} + /> + ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/index.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/index.ts new file mode 100644 index 00000000000..30e0f480dc2 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/index.ts @@ -0,0 +1 @@ +export { CloudWorkspacesSettings } from "./CloudWorkspacesSettings"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/page.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/page.tsx new file mode 100644 index 00000000000..346325dbdfe --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/cloud-usage/workspaces/page.tsx @@ -0,0 +1,27 @@ +import { createFileRoute } from "@tanstack/react-router"; +import { useActiveOrganizationId } from "renderer/hooks/useActiveOrganizationId"; +import { CloudUsageGate } from "../components/CloudUsageGate"; +import { cloudUsageSearch } from "../utils/cloudUsageSearch"; +import { CloudWorkspacesSettings } from "./components/CloudWorkspacesSettings"; + +export const Route = createFileRoute( + "/_authenticated/settings/cloud-usage/workspaces/", +)({ + component: CloudWorkspacesSettingsPage, + validateSearch: cloudUsageSearch, +}); + +function CloudWorkspacesSettingsPage() { + const { period, ...filters } = Route.useSearch(); + return ( + + {(isAdmin) => ( + + )} + + ); +} diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageLink/CloudUsageLink.tsx b/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageLink/CloudUsageLink.tsx new file mode 100644 index 00000000000..7a7e85f4a99 --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageLink/CloudUsageLink.tsx @@ -0,0 +1,9 @@ +"use client"; + +import type { CloudUsageLink as LinkType } from "@superset/ui/cloud-usage-page"; +import Link from "next/link"; +import { cloudUsageHref } from "../../utils/cloudUsageHref"; + +export const CloudUsageLink: LinkType = ({ to, ...props }) => ( + +); diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageLink/index.ts b/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageLink/index.ts new file mode 100644 index 00000000000..f4c0676cdbe --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageLink/index.ts @@ -0,0 +1 @@ +export { CloudUsageLink } from "./CloudUsageLink"; diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageSettings/CloudUsageSettings.tsx b/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageSettings/CloudUsageSettings.tsx index c81516f862b..3897b535658 100644 --- a/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageSettings/CloudUsageSettings.tsx +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/components/CloudUsageSettings/CloudUsageSettings.tsx @@ -1,39 +1,21 @@ "use client"; -import { Trans } from "@lingui/react/macro"; -import { Button } from "@superset/ui/button"; import { CloudUsagePage, cloudUsageQueries, - PERIODS_INPUT, - selectedPeriod, - usageRange, - type WorkspaceRef, } from "@superset/ui/cloud-usage-page"; -import { useInfiniteQuery, useQuery } from "@tanstack/react-query"; -import Link from "next/link"; -import { useState } from "react"; +import { useQuery } from "@tanstack/react-query"; import { useTRPC } from "@/trpc/react"; +import { useCloudUsagePeriod } from "../../hooks/useCloudUsagePeriod"; +import { CloudUsageLink } from "../CloudUsageLink"; -interface CloudUsageSettingsProps { - isAdmin: boolean; - isOwner: boolean; -} - -export function CloudUsageSettings({ - isAdmin, - isOwner, -}: CloudUsageSettingsProps) { +export function CloudUsageSettings({ isAdmin }: { isAdmin: boolean }) { const trpc = useTRPC(); - const periods = useQuery(trpc.cloud.periods.list.queryOptions(PERIODS_INPUT)); - const [periodId, setPeriodId] = useState(); - const [workspace, setWorkspace] = useState(null); - const period = selectedPeriod(periods.data?.items, periodId); + const { periods, period, range } = useCloudUsagePeriod(); const queries = cloudUsageQueries({ - range: usageRange(period), + range, periodsLoaded: periods.isSuccess, isAdmin, - workspaceId: workspace?.id, }); const byDay = useQuery({ ...trpc.cloud.usage.query.queryOptions(queries.byDay.input), @@ -43,41 +25,21 @@ export function CloudUsageSettings({ ...trpc.cloud.usage.query.queryOptions(queries.byPerson.input), enabled: queries.byPerson.enabled, }); - const workspaces = useInfiniteQuery({ - ...trpc.cloud.usage.query.infiniteQueryOptions(queries.workspaces.input, { - getNextPageParam: (page) => page.nextCursor, - }), - enabled: queries.workspaces.enabled, - }); - const boots = useInfiniteQuery({ - ...trpc.cloud.boots.list.infiniteQueryOptions(queries.boots.input, { - getNextPageParam: (page) => page.nextCursor, - }), - enabled: queries.boots.enabled, + const workspaces = useQuery({ + ...trpc.cloud.usage.query.queryOptions(queries.topWorkspaces.input), + enabled: queries.topWorkspaces.enabled, }); return (
- - Billing - - - ) - } periods={periods} period={period} - onPeriodChange={setPeriodId} byDay={byDay} byPerson={byPerson} workspaces={workspaces} - workspace={workspace} - onWorkspaceChange={setWorkspace} - boots={boots} />
); diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/hooks/useCloudUsagePeriod/index.ts b/apps/web/src/app/(app)/(page)/settings/cloud-usage/hooks/useCloudUsagePeriod/index.ts new file mode 100644 index 00000000000..1f798afd1c0 --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/hooks/useCloudUsagePeriod/index.ts @@ -0,0 +1 @@ +export { useCloudUsagePeriod } from "./useCloudUsagePeriod"; diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/hooks/useCloudUsagePeriod/useCloudUsagePeriod.ts b/apps/web/src/app/(app)/(page)/settings/cloud-usage/hooks/useCloudUsagePeriod/useCloudUsagePeriod.ts new file mode 100644 index 00000000000..7cfb4c7a94f --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/hooks/useCloudUsagePeriod/useCloudUsagePeriod.ts @@ -0,0 +1,21 @@ +"use client"; + +import { + PERIODS_INPUT, + selectedPeriod, + usageRange, +} from "@superset/ui/cloud-usage-page"; +import { useQuery } from "@tanstack/react-query"; +import { useSearchParams } from "next/navigation"; +import { useTRPC } from "@/trpc/react"; + +/** The billing periods, and the one in the URL's `period`. */ +export function useCloudUsagePeriod() { + const trpc = useTRPC(); + const periods = useQuery(trpc.cloud.periods.list.queryOptions(PERIODS_INPUT)); + const period = selectedPeriod( + periods.data?.items, + useSearchParams().get("period") ?? undefined, + ); + return { periods, period, range: usageRange(period) }; +} diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/page.tsx b/apps/web/src/app/(app)/(page)/settings/cloud-usage/page.tsx index 27b32fd56d9..6f5329bf45b 100644 --- a/apps/web/src/app/(app)/(page)/settings/cloud-usage/page.tsx +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/page.tsx @@ -1,24 +1,7 @@ -import { findOrgMembership } from "@superset/db/utils"; -import { notFound } from "next/navigation"; -import { cloudUsageEnabled } from "../../../utils/cloudUsageEnabled"; -import { requireSession } from "../../../utils/requireSession"; import { CloudUsageSettings } from "./components/CloudUsageSettings"; +import { cloudUsageAccess } from "./utils/cloudUsageAccess"; export default async function CloudUsagePage() { - const session = await requireSession(); - const organizationId = session.session.activeOrganizationId; - if (!organizationId || !(await cloudUsageEnabled())) notFound(); - const membership = await findOrgMembership({ - userId: session.user.id, - organizationId, - }); - if (!membership) notFound(); - - return ( - - ); + const { organizationId, isAdmin } = await cloudUsageAccess(); + return ; } diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageAccess/cloudUsageAccess.ts b/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageAccess/cloudUsageAccess.ts new file mode 100644 index 00000000000..e3d3bc6005b --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageAccess/cloudUsageAccess.ts @@ -0,0 +1,20 @@ +import { findOrgMembership } from "@superset/db/utils"; +import { notFound } from "next/navigation"; +import { cloudUsageEnabled } from "../../../../../utils/cloudUsageEnabled"; +import { requireSession } from "../../../../../utils/requireSession"; + +/** The signed-in member's view of the cloud usage pages; not found while the flag is off. */ +export async function cloudUsageAccess() { + const session = await requireSession(); + const organizationId = session.session.activeOrganizationId; + if (!organizationId || !(await cloudUsageEnabled())) notFound(); + const membership = await findOrgMembership({ + userId: session.user.id, + organizationId, + }); + if (!membership) notFound(); + return { + organizationId, + isAdmin: membership.role === "owner" || membership.role === "admin", + }; +} diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageAccess/index.ts b/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageAccess/index.ts new file mode 100644 index 00000000000..7d650937821 --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageAccess/index.ts @@ -0,0 +1 @@ +export { cloudUsageAccess } from "./cloudUsageAccess"; diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageHref/cloudUsageHref.ts b/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageHref/cloudUsageHref.ts new file mode 100644 index 00000000000..0dc56db6626 --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageHref/cloudUsageHref.ts @@ -0,0 +1,22 @@ +import type { CloudUsageTarget } from "@superset/ui/cloud-usage-page"; + +const BASE = "/settings/cloud-usage"; + +export function cloudUsageHref(to: CloudUsageTarget): string { + if (to.view === "billing") return "/settings/billing"; + const path = + to.view === "overview" + ? BASE + : to.view === "workspaces" + ? `${BASE}/workspaces` + : `${BASE}/workspaces/${to.workspaceId}`; + const { view: _, ...params } = to; + const search = new URLSearchParams( + Object.entries(params).flatMap(([key, value]) => + key !== "workspaceId" && value !== undefined + ? [[key, String(value)]] + : [], + ), + ).toString(); + return search ? `${path}?${search}` : path; +} diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageHref/index.ts b/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageHref/index.ts new file mode 100644 index 00000000000..e79c2bef97a --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/utils/cloudUsageHref/index.ts @@ -0,0 +1 @@ +export { cloudUsageHref } from "./cloudUsageHref"; diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/[workspaceId]/components/CloudWorkspaceSettings/CloudWorkspaceSettings.tsx b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/[workspaceId]/components/CloudWorkspaceSettings/CloudWorkspaceSettings.tsx new file mode 100644 index 00000000000..c48972685e2 --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/[workspaceId]/components/CloudWorkspaceSettings/CloudWorkspaceSettings.tsx @@ -0,0 +1,52 @@ +"use client"; + +import { + CloudWorkspacePage, + cloudUsageQueries, +} from "@superset/ui/cloud-usage-page"; +import { useInfiniteQuery, useQuery } from "@tanstack/react-query"; +import { useTRPC } from "@/trpc/react"; +import { CloudUsageLink } from "../../../../components/CloudUsageLink"; +import { useCloudUsagePeriod } from "../../../../hooks/useCloudUsagePeriod"; + +export function CloudWorkspaceSettings({ + workspaceId, +}: { + workspaceId: string; +}) { + const trpc = useTRPC(); + const { periods, period, range } = useCloudUsagePeriod(); + const queries = cloudUsageQueries({ + range, + periodsLoaded: periods.isSuccess, + isAdmin: false, + workspaceId, + }); + const workspace = useQuery({ + ...trpc.cloud.usage.query.queryOptions(queries.workspace.input), + enabled: queries.workspace.enabled, + }); + const allTime = useQuery({ + ...trpc.cloud.usage.query.queryOptions(queries.workspaceAllTime.input), + enabled: queries.workspaceAllTime.enabled, + }); + const boots = useInfiniteQuery({ + ...trpc.cloud.boots.list.infiniteQueryOptions(queries.boots.input, { + getNextPageParam: (page) => page.nextCursor, + }), + enabled: queries.boots.enabled, + }); + + return ( +
+ +
+ ); +} diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/[workspaceId]/components/CloudWorkspaceSettings/index.ts b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/[workspaceId]/components/CloudWorkspaceSettings/index.ts new file mode 100644 index 00000000000..5aa880352ac --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/[workspaceId]/components/CloudWorkspaceSettings/index.ts @@ -0,0 +1 @@ +export { CloudWorkspaceSettings } from "./CloudWorkspaceSettings"; diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/[workspaceId]/page.tsx b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/[workspaceId]/page.tsx new file mode 100644 index 00000000000..329aac92fe8 --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/[workspaceId]/page.tsx @@ -0,0 +1,14 @@ +import { cloudUsageAccess } from "../../utils/cloudUsageAccess"; +import { CloudWorkspaceSettings } from "./components/CloudWorkspaceSettings"; + +export default async function CloudWorkspacePage({ + params, +}: { + params: Promise<{ workspaceId: string }>; +}) { + const { organizationId } = await cloudUsageAccess(); + const { workspaceId } = await params; + return ( + + ); +} diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/CloudWorkspacesSettings.tsx b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/CloudWorkspacesSettings.tsx new file mode 100644 index 00000000000..4232c2be9db --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/CloudWorkspacesSettings.tsx @@ -0,0 +1,52 @@ +"use client"; + +import { + CloudWorkspacesPage, + cloudUsageQueries, + workspacesFilters, +} from "@superset/ui/cloud-usage-page"; +import { useInfiniteQuery, useQuery } from "@tanstack/react-query"; +import { useRouter, useSearchParams } from "next/navigation"; +import { useTRPC } from "@/trpc/react"; +import { CloudUsageLink } from "../../../components/CloudUsageLink"; +import { useCloudUsagePeriod } from "../../../hooks/useCloudUsagePeriod"; +import { cloudUsageHref } from "../../../utils/cloudUsageHref"; + +export function CloudWorkspacesSettings({ isAdmin }: { isAdmin: boolean }) { + const trpc = useTRPC(); + const router = useRouter(); + const searchParams = useSearchParams(); + const filters = workspacesFilters((key) => searchParams.get(key)); + const { periods, period, range } = useCloudUsagePeriod(); + const queries = cloudUsageQueries({ + range, + periodsLoaded: periods.isSuccess, + isAdmin, + filters, + }); + const workspaces = useInfiniteQuery({ + ...trpc.cloud.usage.query.infiniteQueryOptions(queries.workspaces.input, { + getNextPageParam: (page) => page.nextCursor, + }), + enabled: queries.workspaces.enabled, + }); + const byPerson = useQuery({ + ...trpc.cloud.usage.query.queryOptions(queries.byPerson.input), + enabled: queries.byPerson.enabled, + }); + + return ( +
+ router.replace(cloudUsageHref(to), { scroll: false })} + isAdmin={isAdmin} + periods={periods} + period={period} + workspaces={workspaces} + filters={filters} + byPerson={byPerson} + /> +
+ ); +} diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/index.ts b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/index.ts new file mode 100644 index 00000000000..30e0f480dc2 --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/components/CloudWorkspacesSettings/index.ts @@ -0,0 +1 @@ +export { CloudWorkspacesSettings } from "./CloudWorkspacesSettings"; diff --git a/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/page.tsx b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/page.tsx new file mode 100644 index 00000000000..86ba7c84dbf --- /dev/null +++ b/apps/web/src/app/(app)/(page)/settings/cloud-usage/workspaces/page.tsx @@ -0,0 +1,7 @@ +import { cloudUsageAccess } from "../utils/cloudUsageAccess"; +import { CloudWorkspacesSettings } from "./components/CloudWorkspacesSettings"; + +export default async function CloudWorkspacesPage() { + const { organizationId, isAdmin } = await cloudUsageAccess(); + return ; +} diff --git a/bun.lock b/bun.lock index 4f5ec6ee16b..aacf2cc7eee 100644 --- a/bun.lock +++ b/bun.lock @@ -1386,6 +1386,7 @@ "@lingui/babel-plugin-lingui-macro": "6.12.0", "@rolldown/plugin-babel": "0.3.0", "@storybook/react-vite": "10.6.2", + "@superset/auth": "workspace:*", "@superset/trpc": "workspace:*", "@superset/typescript": "workspace:*", "@tailwindcss/postcss": "4.2.2", diff --git a/packages/auth/package.json b/packages/auth/package.json index cd4c51a5f0d..a037e2ba209 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -20,6 +20,10 @@ "types": "./src/autumn.ts", "default": "./src/autumn.ts" }, + "./billing/cloud-usage": { + "types": "./src/lib/billing/autumn/cloud-usage.ts", + "default": "./src/lib/billing/autumn/cloud-usage.ts" + }, "./billing": { "types": "./src/lib/billing/index.ts", "default": "./src/lib/billing/index.ts" diff --git a/packages/auth/src/lib/billing/autumn/cloud-usage.ts b/packages/auth/src/lib/billing/autumn/cloud-usage.ts index 0ba06ba4ee9..440565cfb8f 100644 --- a/packages/auth/src/lib/billing/autumn/cloud-usage.ts +++ b/packages/auth/src/lib/billing/autumn/cloud-usage.ts @@ -1,4 +1,9 @@ -import type { GbHourPack } from "@superset/shared/billing"; +import { + ALLOWANCE_UNAVAILABLE_FIELDS, + type ALLOWANCE_UNAVAILABLE_REASONS, + type GbHourPack, + gbMinutesUsd, +} from "@superset/shared/billing"; import type { getAutumnCustomer } from "./customer"; import { BOX_GB_MINUTES_FEATURE_ID } from "./features"; @@ -128,3 +133,69 @@ export function cloudUsageFromBalances( : null, }; } + +/** A field of the period's allowance this value cannot give, and why. */ +export interface AllowanceUnavailable { + field: (typeof ALLOWANCE_UNAVAILABLE_FIELDS)[number]; + reason: (typeof ALLOWANCE_UNAVAILABLE_REASONS)[number]; +} + +function creditLine(credit: CloudUsage["bought"], rate: number | null) { + if (!credit?.grantedGbMinutes) return null; + const used = credit.grantedGbMinutes - credit.remainingGbMinutes; + return { + usedGbHours: used / 60, + totalGbHours: credit.grantedGbMinutes / 60, + usedUsd: gbMinutesUsd(used, rate), + totalUsd: gbMinutesUsd(credit.grantedGbMinutes, rate), + }; +} + +export function allowanceOf( + cloudUsage: CloudUsage, + resetsAt: Date, + rate: number | null, +) { + const included = cloudUsage.includedGbMinutes; + const limit = cloudUsage.overageLimit; + const unavailable: AllowanceUnavailable[] = + cloudUsage.bought === null + ? ALLOWANCE_UNAVAILABLE_FIELDS.map((field) => ({ + field, + reason: "not_read", + })) + : []; + if (limit?.type === "usage_percentage") { + unavailable.push({ + field: "extraUsageLimit", + reason: "percent_of_allowance", + }); + } + if (cloudUsage.bought !== null && cloudUsage.limitReached === null) { + unavailable.push({ field: "limitReached", reason: "not_tracked" }); + } + return { + allowance: { + includedGbHours: included === null ? null : included / 60, + usedGbHours: cloudUsage.usedGbMinutes / 60, + overageGbHours: cloudUsage.overageGbMinutes / 60, + prepaidRemainingGbHours: cloudUsage.prepaidGbMinutes / 60, + resetsAt, + usedUsd: gbMinutesUsd(cloudUsage.usedGbMinutes, rate), + includedUsd: included === null ? null : gbMinutesUsd(included, rate), + overageUsd: gbMinutesUsd(cloudUsage.overageGbMinutes, rate), + seats: cloudUsage.seats, + bought: creditLine(cloudUsage.bought, rate), + freeCredits: creditLine(cloudUsage.freeCredits, rate), + extraUsageLimit: + limit?.type === "absolute" + ? { + gbHours: limit.gbMinutes / 60, + usd: gbMinutesUsd(limit.gbMinutes, rate), + } + : null, + limitReached: cloudUsage.limitReached, + }, + unavailable, + }; +} diff --git a/packages/db/src/cloud-usage-query.ts b/packages/db/src/cloud-usage-query.ts index 29fccde16de..ecd8ccb5bb9 100644 --- a/packages/db/src/cloud-usage-query.ts +++ b/packages/db/src/cloud-usage-query.ts @@ -1,5 +1,6 @@ // Runs whole queries, unlike task-list-query's condition builders: the admin repo shares them and vendors packages/db but not packages/trpc. import { + gbMinutesUsd, isMachineSize, LEGACY_MACHINE_SIZE, MACHINE_SIZE_VCPUS, @@ -40,6 +41,8 @@ import { } from "./schema/schema"; import { escapeLikePattern } from "./utils/like"; +export { gbMinutesUsd }; + export type Db = PgDatabase>; export const cloudUsageGroupByValues = ["user", "day", "workspace"] as const; @@ -194,15 +197,6 @@ const sizeOfVcpus = new Map( MACHINE_SIZES.map((size) => [MACHINE_SIZE_VCPUS[size], size]), ); -export function gbMinutesUsd( - gbMinutes: number, - overagePerGbHour: number | null, -) { - return overagePerGbHour === null - ? null - : Math.round((gbMinutes / 60) * overagePerGbHour * 100) / 100; -} - function scopeConditions( scope: Scope, filters: CloudFleetFilters, diff --git a/packages/i18n/locales/cs/messages.po b/packages/i18n/locales/cs/messages.po index bfc2975c7fb..d6d55827cc4 100644 --- a/packages/i18n/locales/cs/messages.po +++ b/packages/i18n/locales/cs/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {načtena # stránka} few {načteny # stránky} many msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Importovat # worktree} few {Importovat # worktree} many {Importovat # worktree} other {Importovat # worktree}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {v # pracovním prostoru za posledních 30 dní} few {ve # pracovních prostorech za posledních 30 dní} many {v # pracovního prostoru za posledních 30 dní} other {v # pracovních prostorech za posledních 30 dní}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {v # pracovním prostoru v tomto období} few {ve # pracovních prostorech v tomto období} many {v # pracovního prostoru v tomto období} other {v # pracovních prostorech v tomto období}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {Sloučit # pull request?} few {Sloučit # pull requesty?} many {Sloučit # pull requestu?} other {Sloučit # pull requestů?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-hodin" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# skrytý řádek} few {# skryté řádky} many {# skrytého řádku} other {# skrytých řádků}}" @@ -1347,6 +1350,12 @@ msgstr "Zbývající tokeny: {remaining}" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Změny v # souboru byly vráceny.} few {Změny v # souborech byly vráceny.} many {Změny v # souboru byly vráceny.} other {Změny v # souborech byly vráceny.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} z # řádku} few {{first}–{last} z # řádků} many {{first}–{last} z # řádku} other {{first}–{last} z # řádků}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Zahrnuto s # místem} few {Zahrnuto se # místy} many {Zahrnuto s # místa} other {Zahrnuto s # místy}}" + msgid "{seconds}s" msgstr "{seconds} s" @@ -1364,17 +1373,17 @@ msgstr "{shown} z {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "zobrazeno {shownCount} · {0} · {1} tokenů" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# přeskočeno} few {# přeskočeno} many {# přeskočeno} other {# přeskočeno}}" msgid "{starCount} stars and counting" msgstr "{starCount} hvězd a přibývá" -msgid "{start} to {end}" -msgstr "{start} až {end}" - -msgid "{start} to {end} (current)" -msgstr "{start} až {end} (aktuální)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {Spuštěna # automatizace} few {Spuštěny # automatizace} many {Spuštěno # automatizace} other {Spuštěno # automatizací}}" @@ -1433,9 +1442,15 @@ msgstr "{used} z {limit} prostředí" msgid "{used} of {size} tokens" msgstr "{used} z {size} tokenů" +msgid "{used} of {total}" +msgstr "{used} z {total}" + msgid "{used} used" msgstr "Využito {used}" +msgid "{used} used by you" +msgstr "Vaše využití: {used}" + msgid "{user} and {others} joined and left." msgstr "{user} a {others} se připojili a zase kanál opustili." @@ -1463,9 +1478,6 @@ msgstr "{user} se znovu připojil(a)." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "Čeká: {waiting}" @@ -1646,6 +1658,9 @@ msgstr "0 $" msgid "$11.5M seed led by Union Square Ventures" msgstr "Seed kolo 11,5 mil. USD pod vedením Union Square Ventures" +msgid "0 rows" +msgstr "0 řádků" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Jakékoli jméno" msgid "Any page" msgstr "Jakákoli stránka" +msgid "Any person" +msgstr "Kdokoli" + msgid "Any project" msgstr "Jakýkoli projekt" @@ -2903,6 +2921,9 @@ msgstr "Libovolný recenzent" msgid "any sender" msgstr "jakýkoli odesílatel" +msgid "Any size" +msgstr "Jakákoli velikost" + msgid "Any status" msgstr "Jakýkoli stav" @@ -3462,6 +3483,10 @@ msgstr "Čeká na vaši revizi" msgid "Awaiting review from you or your team" msgstr "Čeká na revizi od vás nebo vašeho týmu" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Běží" + msgid "Away" msgstr "Nepřítomen" @@ -3589,9 +3614,6 @@ msgstr "Fakturace" msgid "Billing details" msgstr "Fakturační údaje" -msgid "Billing period" -msgstr "Fakturační období" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Fakturace odmítla spustit cloudový pracovní prostor: plán organizace nezahrnuje cloudové pracovní prostory, nebo organizace dosáhla limitu využití cloudu. Cloudové pracovní prostory vyžadují plán Team nebo Ultra. Přejděte na vyšší plán nebo zvyšte limit v Nastavení > Fakturace, nebo spusťte automatizaci na zařízení." @@ -3672,6 +3694,9 @@ msgstr "Vypůjčeno z toho, jak se známkují samořídící auta, a použito na msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Spodní drawer, na dotykových zařízeních ovladatelný přejetím prstem." +msgid "Bought credits" +msgstr "Zakoupené kredity" + msgid "Bought GB-hours left: {prepaid}" msgstr "Zbývající zakoupené GB-hodiny: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Autorizací umožníte této aplikaci přístup k vašim datům podle je msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Kliknutím na Pokračovat souhlasíte s <0>podmínkami služby a <1>zásadami ochrany soukromí." +msgid "By day" +msgstr "Podle dnů" + +msgid "By person" +msgstr "Podle osob" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Přihlášením souhlasíte s\n" @@ -4831,9 +4862,6 @@ msgstr "Využití cloudu není pro tuto organizaci zapnuto." msgid "Cloud workspace" msgstr "Cloudový pracovní prostor" -msgid "Cloud workspace usage for the whole organization." -msgstr "Využití cloudových pracovních prostorů za celou organizaci." - msgid "Cloud workspace: asleep" msgstr "Cloudový pracovní prostor: uspaný" @@ -4859,6 +4887,9 @@ msgstr "Cloudové pracovní prostory nejsou pro {account} zapnuté. Jsou součá msgid "Cloud workspaces are not included in your plan." msgstr "Cloudové pracovní prostory nejsou součástí vašeho tarifu." +msgid "Cloud workspaces cannot start." +msgstr "Cloudové pracovní prostory se nemohou spustit." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Cloudové pracovní prostory commitují, pushují a otevírají pull requesty vaším jménem" @@ -5815,9 +5846,6 @@ msgstr "Nepodařilo se vypsat adresář" msgid "Could not load agents from {0}" msgstr "Nepodařilo se načíst agenty z {0}" -msgid "Could not load cloud usage." -msgstr "Využití cloudu se nepodařilo načíst." - msgid "Could not load environments" msgstr "Nepodařilo se načíst prostředí" @@ -5998,6 +6026,9 @@ msgstr "Relaci se nepodařilo spustit" msgid "Could not start the chat" msgstr "Chat se nepodařilo spustit" +msgid "Could not start." +msgstr "Nepodařilo se spustit." + msgid "Could not steer" msgstr "Změna směru se nezdařila" @@ -7776,6 +7807,9 @@ msgstr "Každá plocha má vlastní typografii. Změny se okamžitě projeví v msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Každý pracovní prostor dostane vlastní cloudový stroj a pracuje dál i se zavřeným notebookem. Stav sledujte na počítači, iPhonu nebo iPadu." +msgid "Earlier period" +msgstr "Předchozí období" + msgid "Early 2024" msgstr "Zač. 2024" @@ -8301,6 +8335,9 @@ msgstr "Velmi vysoké" msgid "Extra small" msgstr "Velmi malé" +msgid "Extra usage" +msgstr "Využití navíc" + msgid "Extra usage limit reached" msgstr "Dosažen limit dodatečného využití" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Selhalo" -msgid "Failed {failedAt}" -msgstr "Selhalo {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Neúspěšná spuštění <0>· 7 d" @@ -8532,6 +8566,9 @@ msgstr "Nepodařilo se načíst obrázek" msgid "Failed to load repositories. Please try again." msgstr "Nepodařilo se načíst repozitáře. Zkuste to prosím znovu." +msgid "Failed to load usage" +msgstr "Využití se nepodařilo načíst" + msgid "Failed to log out. Please try again." msgstr "Nepodařilo se odhlásit. Zkuste to prosím znovu." @@ -9019,6 +9056,9 @@ msgstr "hotovo · pracoval 7 s" msgid "Finishing the move…" msgstr "Dokončování přesunu…" +msgid "First page" +msgstr "První stránka" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Poprvé? Zapněte přihlášení kódem zařízení v <0>nastavení ChatGPT." @@ -9284,6 +9324,13 @@ msgstr "Zakládající inženýr" msgid "Free" msgstr "Free" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Zdarma" + +msgid "Free credits" +msgstr "Kredity zdarma" + msgid "Free for everyone" msgstr "Zdarma pro všechny" @@ -10110,6 +10157,10 @@ msgstr "Identita" msgid "Idle" msgstr "Nečinný" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Nečinný" + msgid "Idle · branch pushed" msgstr "Nečinné · větev odeslána" @@ -10303,6 +10354,9 @@ msgstr "V revizi" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "V desktopové aplikaci {appName} otevřete Nastavení → Vzdálený přístup a zapněte „Povolit vzdálený přístup k tomuto zařízení přes relay“." +msgid "in the last 30 days" +msgstr "za posledních 30 dní" + msgid "In the merge queue" msgstr "Ve frontě slučování" @@ -10312,6 +10366,9 @@ msgstr "Ve frontě slučování. GitHub ho sloučí, až přijde na řadu." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "V desktopové aplikaci Paradev otevřete <0>Nastavení → Vzhled → Motiv." +msgid "in this period" +msgstr "v tomto období" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "Za méně než rok spustilo {productName} více než 145 000 vývojářů ze 180 zemí a vytvořilo přes 1,85 milionu pracovních prostorů agentů." @@ -10342,6 +10399,9 @@ msgstr "Zahrnuto v Enterprise" msgid "Included with Team and Ultra." msgstr "Součástí plánů Team a Ultra." +msgid "Included with the plan" +msgstr "Zahrnuto v plánu" + msgid "Includes the Paradev-specific box variant" msgstr "Obsahuje variantu box specifickou pro Paradev" @@ -10963,6 +11023,9 @@ msgstr "Poslední 3 měsíce" msgid "last 30 days" msgstr "posledních 30 dní" +msgid "Last 30 days" +msgstr "Posledních 30 dní" + msgid "Last 4 weeks" msgstr "Poslední 4 týdny" @@ -11037,6 +11100,9 @@ msgstr "Latence" msgid "Later messages are removed." msgstr "Pozdější zprávy budou odstraněny." +msgid "Later period" +msgstr "Další období" + msgid "Latest" msgstr "Nejnovější" @@ -11444,6 +11510,9 @@ msgstr "Načítám další..." msgid "Loading more…" msgstr "Načítám další…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Načítání stránky {loadingPage} z {targetPage}..." + msgid "Loading project…" msgstr "Načítám projekt…" @@ -12570,6 +12639,9 @@ msgstr "Další obrázek" msgid "Next match" msgstr "Další shoda" +msgid "Next page" +msgstr "Další stránka" + msgid "Next Right Sidebar Tab" msgstr "Další karta pravého postranního panelu" @@ -13292,6 +13364,9 @@ msgstr "Na tomto hostu zatím nejsou žádné pracovní prostory" msgid "No workspaces yet" msgstr "Zatím žádné pracovní prostory" +msgid "No workspaces." +msgstr "Žádné pracovní prostory." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Ne. {companyName} nikdy nezprostředkovává volání modelů přes proxy. Agenti používají vaše vlastní předplatná a klíče." @@ -13340,6 +13415,9 @@ msgstr "Na tomto serveru není k dispozici" msgid "Not bound · configure in Settings → Links" msgstr "Nepřiřazeno · nastavte v Nastavení → Odkazy" +msgid "Not broken down yet" +msgstr "Zatím nerozepsáno" + msgid "Not configured" msgstr "Nenastaveno" @@ -13352,6 +13430,9 @@ msgstr "Nepřipojeno" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Nepřipojeno · cloudové pracovní prostory pushují jako GitHub App vaší organizace" +msgid "Not counted by billing yet" +msgstr "Zatím nezapočteno ve vyúčtování" + msgid "Not demoed here" msgstr "Tady se neukazuje" @@ -13523,6 +13604,12 @@ msgstr "Předměty" msgid "of {0}" msgstr "z {0}" +msgid "of {cap} included" +msgstr "z {cap} v plánu" + +msgid "of {cap} limit" +msgstr "z limitu {cap}" + msgid "of {total}" msgstr "z {total}" @@ -13804,9 +13891,6 @@ msgstr "Toto připojení můžete používat jen vy. Kolegové si připojí vlas msgid "Only you. Teammates forward their own." msgstr "Jen vy. Kolegové si přesměrují vlastní." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Pouze vaše vlastní pracovní prostory. Souhrny organizace vidí vlastníci a správci." - msgid "open" msgstr "otevřít" @@ -14398,6 +14482,10 @@ msgstr "Originály" msgid "Other" msgstr "Ostatní" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Ostatní" + msgid "Other apps" msgstr "Ostatní aplikace" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Stránka" +msgid "Page {page} of {pages}" +msgstr "Stránka {page} z {pages}" + msgid "Page actions" msgstr "Akce stránky" @@ -14567,6 +14658,10 @@ msgstr "stránkování" msgid "Pagination" msgstr "Stránkování" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Placené" + msgid "Paid plans" msgstr "Placené tarify" @@ -15340,6 +15435,9 @@ msgstr "Předchozí obrázek" msgid "Previous match" msgstr "Předchozí shoda" +msgid "Previous page" +msgstr "Předchozí stránka" + msgid "Previous prompts" msgstr "Předchozí prompty" @@ -15576,6 +15674,10 @@ msgstr "Vlastnosti" msgid "Provide either id or slug" msgstr "Zadejte buď id, nebo slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Připravuje se" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Provisioning selhal a sandbox byl zrušen. Nic neběží a tento pracovní prostor nejde otevřít. Zkuste to znovu vytvořením nového." @@ -16338,6 +16440,9 @@ msgstr "odebrat agenta" msgid "remove the PR link" msgstr "odebrat propojení s PR" +msgid "Remove this filter" +msgstr "Odebrat tento filtr" + msgid "Remove trigger" msgstr "Odebrat spouštěč" @@ -17075,6 +17180,9 @@ msgstr "Akce řádku" msgid "Rows changed" msgstr "Změněny řádky" +msgid "Rows per page" +msgstr "Řádků na stránku" + msgid "Rule" msgstr "Pravidlo" @@ -17215,7 +17323,7 @@ msgstr "běží" msgid "Running" msgstr "Běží" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Běží" @@ -17667,6 +17775,9 @@ msgstr "Hledám použití Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Místa odebraná v průběhu období zůstanou aktivní do {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Místa, kredity a limit využití navíc zatím nejsou načteny. Zobrazí se po příští aktualizaci fakturačních údajů." + msgid "Secondary" msgstr "Secondary" @@ -19154,10 +19265,6 @@ msgstr "spouští se" msgid "Starting" msgstr "Spouštím" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Spouští se" - msgid "Starting {agentLabel}" msgstr "Spouštím {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "zastaveno" msgid "Stopped" msgstr "Zastaveno" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Zastaveno" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "Zastaveno {0} ({1} GB) pro uvolnění paměti" -msgid "Stopped by a person" -msgstr "Zastaveno osobou" - msgid "Stopped by the usage limit" msgstr "Zastaveno limitem využití" msgid "Stopped moving {name}" msgstr "Přesun {name} byl zastaven" -msgid "Stopped when idle" -msgstr "Zastaveno při nečinnosti" - msgid "Stopping the agent in {what}" msgstr "Zastavuje se agent v {what}" @@ -20003,6 +20108,9 @@ msgstr "Nejlepší agent se změní.<0/>Vaše workflow ne." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "Stroj se spustil s {actual} vCPU místo {wanted}. Restartujte ho a zkuste to znovu." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Rozpis podle plánu se uchovává jen pro aktuální období." + msgid "The button now stands out. I checked it in your pane." msgstr "Tlačítko je teď výrazné. Zkontroloval jsem to ve vašem panelu." @@ -20075,6 +20183,9 @@ msgstr "Prostředí, ze kterého tato automatizace spouští cloudové pracovní msgid "The extension and its local data are deleted from this browser." msgstr "Rozšíření a jeho místní data se z tohoto prohlížeče smažou." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "Limit využití navíc je procento z plánu, proto se jeho částka nezobrazuje." + msgid "The factory" msgstr "Továrna" @@ -20151,9 +20262,6 @@ msgstr "Člověk přečte každý řádek, než se sloučí." msgid "The image upload expired — attach it again" msgstr "Platnost nahrání obrázku vypršela — připojte ho znovu" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Zahrnuté GB-hodiny a GB-hodiny nad rámec plánu se uchovávají jen pro aktuální období." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "Popis práce se posouvá. Z inženýrů přestávají být písaři s vkusem a stávají se dispečery s vkusem: rozkládají práci, směrují ji flotilám a rozsuzují konflikty mezi agenty, kteří sáhli na stejný modul." @@ -20662,15 +20770,15 @@ msgstr "Změní se jen zobrazovaný název, ne větev." msgid "this organization" msgstr "této organizace" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Tato organizace nemá fakturační období, proto stránka zobrazuje posledních 30 dní." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Tato organizace nemá žádná fakturační období. Zvolte místo toho časový rozsah." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Tato organizace má tarif Free. {appName} Mobile je dostupný pro organizace s tarifem Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Tato stránka nepozná, kdy je dosažen limit využití." + msgid "This page could not be loaded" msgstr "Tuto stránku se nepodařilo načíst" @@ -20876,6 +20984,9 @@ msgstr "Tento pracovní prostor" msgid "This workspace has no project to branch from" msgstr "Tento pracovní prostor nemá projekt, ze kterého by šlo větvit" +msgid "This workspace has no usage in this period." +msgstr "Tento pracovní prostor nemá v tomto období žádné využití." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Tento pracovní prostor mohl být odstraněn, nebo k němu už nemáte přístup." @@ -21458,6 +21569,10 @@ msgstr "neznámý" msgid "Unknown" msgstr "Neznámá" +msgctxt "boot end" +msgid "Unknown" +msgstr "Neznámé" + msgctxt "person" msgid "Unknown" msgstr "Neznámá" @@ -21782,21 +21897,21 @@ msgstr "Identifikátor vhodný do URL, jedinečný v rámci vaší organizace." msgid "Usage" msgstr "Využití" -msgid "Usage by day" -msgstr "Využití podle dnů" - -msgid "Usage by person" -msgstr "Využití podle osob" - msgid "Usage is out of date" msgstr "Údaje o využití jsou zastaralé" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Využití se zobrazuje v den (UTC), kdy bylo vyúčtováno, což může být o něco později, než pracovní prostor běžel." +msgid "usage limit" +msgstr "limit využití" + +msgid "Usage limit" +msgstr "Limit využití" msgid "Usage limit reached" msgstr "Dosažen limit využití" +msgid "Usage limit reached." +msgstr "Dosažen limit využití." + msgid "Usage sections" msgstr "Sekce využití" @@ -23119,6 +23234,9 @@ msgstr "Vaše organizace dosáhla limitu prostředí." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Vaše vlastní účty. Integrace vaší organizace umožňují Paradevu přístup k jejím nástrojům; když připojíte své účty, práce, kterou pro vás Paradev udělá, se zobrazí pod vaším jménem." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Pouze vaše vlastní využití. Souhrny organizace, její kvóta a využití podle osob jsou pro vlastníky a administrátory." + msgid "Your Paradev download is starting." msgstr "Vaše stahování Paradevu se spouští." @@ -23134,9 +23252,6 @@ msgstr "Váš plán nezahrnuje cloudová prostředí." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Váš plán nezahrnuje cloudová prostředí. Pro vytvoření přejděte na vyšší plán v Nastavení, Fakturace." -msgid "Your plan includes no cloud GB-hours." -msgstr "Váš plán nezahrnuje žádné cloudové GB-hodiny." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Váš plán se změní na {planName} dne {startDate}. Dnes se nic neúčtuje." diff --git a/packages/i18n/locales/de/messages.po b/packages/i18n/locales/de/messages.po index 17c5f9debfd..89f5f24719a 100644 --- a/packages/i18n/locales/de/messages.po +++ b/packages/i18n/locales/de/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {# Seite abgerufen} other {# Seiten abgerufen}}" msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {# Worktree importieren} other {# Worktrees importieren}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {in # Arbeitsbereich in den letzten 30 Tagen} other {in # Arbeitsbereichen in den letzten 30 Tagen}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {in # Arbeitsbereich in diesem Zeitraum} other {in # Arbeitsbereichen in diesem Zeitraum}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {# Pull Request zusammenführen?} other {# Pull Requests zusammenführen?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-Stunden" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# ausgeblendete Zeile} other {# ausgeblendete Zeilen}}" @@ -1347,6 +1350,12 @@ msgstr "Noch {remaining} Tokens frei" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Änderungen an # Datei rückgängig gemacht.} other {Änderungen an # Dateien rückgängig gemacht.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} von # Zeile} other {{first}–{last} von # Zeilen}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Enthalten mit # Platz} other {Enthalten mit # Plätzen}}" + msgid "{seconds}s" msgstr "{seconds} Sek." @@ -1364,17 +1373,17 @@ msgstr "{shown} von {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount} angezeigt · {0} · {1} Tokens" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# übersprungen} other {# übersprungen}}" msgid "{starCount} stars and counting" msgstr "{starCount} Stars und es werden mehr" -msgid "{start} to {end}" -msgstr "{start} bis {end}" - -msgid "{start} to {end} (current)" -msgstr "{start} bis {end} (aktuell)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {# Automatisierung gestartet} other {# Automatisierungen gestartet}}" @@ -1433,9 +1442,15 @@ msgstr "{used} von {limit} Umgebungen" msgid "{used} of {size} tokens" msgstr "{used} von {size} Tokens" +msgid "{used} of {total}" +msgstr "{used} von {total}" + msgid "{used} used" msgstr "{used} verbraucht" +msgid "{used} used by you" +msgstr "{used} von dir genutzt" + msgid "{user} and {others} joined and left." msgstr "{user} und {others} sind beigetreten und haben den Kanal wieder verlassen." @@ -1463,9 +1478,6 @@ msgstr "{user} ist wieder beigetreten." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} ausstehend" @@ -1646,6 +1658,9 @@ msgstr "0 $" msgid "$11.5M seed led by Union Square Ventures" msgstr "11,5 Mio. $ Seed-Runde unter Führung von Union Square Ventures" +msgid "0 rows" +msgstr "0 Zeilen" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Beliebiger Name" msgid "Any page" msgstr "Beliebige Seite" +msgid "Any person" +msgstr "Alle Personen" + msgid "Any project" msgstr "Beliebiges Projekt" @@ -2903,6 +2921,9 @@ msgstr "Alle Reviewer" msgid "any sender" msgstr "beliebiger Absender" +msgid "Any size" +msgstr "Alle Größen" + msgid "Any status" msgstr "Beliebiger Status" @@ -3462,6 +3483,10 @@ msgstr "Wartet auf dein Review" msgid "Awaiting review from you or your team" msgstr "Wartet auf ein Review von dir oder deinem Team" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Aktiv" + msgid "Away" msgstr "Abwesend" @@ -3589,9 +3614,6 @@ msgstr "Abrechnung" msgid "Billing details" msgstr "Rechnungsdaten" -msgid "Billing period" -msgstr "Abrechnungszeitraum" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Abrechnung hat den Start eines Cloud-Workspace abgelehnt: Der Plan der Organisation enthält keine Cloud-Workspaces, oder das Cloud-Nutzungslimit ist erreicht. Cloud-Workspaces brauchen den Team- oder Ultra-Plan. Upgraden oder das Limit erhöhen unter Einstellungen > Abrechnung, oder die Automation auf einem Gerät ausführen." @@ -3672,6 +3694,9 @@ msgstr "Übernommen davon, wie selbstfahrende Autos bewertet werden, angewandt d msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Drawer von unten, wischfreundlich auf Touch-Geräten." +msgid "Bought credits" +msgstr "Gekauftes Guthaben" + msgid "Bought GB-hours left: {prepaid}" msgstr "Verbleibende gekaufte GB-Stunden: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Mit der Autorisierung erlaubst du dieser Anwendung, gemäß ihren Nutzun msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Mit dem Klick auf „Weiter“ stimmst du unseren <0>Nutzungsbedingungen und der <1>Datenschutzerklärung zu." +msgid "By day" +msgstr "Nach Tag" + +msgid "By person" +msgstr "Nach Person" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Mit der Anmeldung stimmst du zu:\n" @@ -4831,9 +4862,6 @@ msgstr "Cloud-Nutzung ist für diese Organisation nicht aktiviert." msgid "Cloud workspace" msgstr "Cloud-Arbeitsbereich" -msgid "Cloud workspace usage for the whole organization." -msgstr "Nutzung der Cloud-Arbeitsbereiche für die gesamte Organisation." - msgid "Cloud workspace: asleep" msgstr "Cloud-Arbeitsbereich: im Ruhezustand" @@ -4859,6 +4887,9 @@ msgstr "Cloud-Workspaces sind für {account} nicht aktiviert. Sie sind in den Pl msgid "Cloud workspaces are not included in your plan." msgstr "Cloud-Workspaces sind in Ihrem Tarif nicht enthalten." +msgid "Cloud workspaces cannot start." +msgstr "Cloud-Arbeitsbereiche können nicht starten." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Cloud-Arbeitsbereiche committen, pushen und öffnen Pull Requests als du" @@ -5815,9 +5846,6 @@ msgstr "Verzeichnis konnte nicht gelistet werden" msgid "Could not load agents from {0}" msgstr "Agenten von {0} konnten nicht geladen werden" -msgid "Could not load cloud usage." -msgstr "Cloud-Nutzung konnte nicht geladen werden." - msgid "Could not load environments" msgstr "Umgebungen konnten nicht geladen werden" @@ -5998,6 +6026,9 @@ msgstr "Sitzung konnte nicht gestartet werden" msgid "Could not start the chat" msgstr "Der Chat konnte nicht gestartet werden" +msgid "Could not start." +msgstr "Konnte nicht starten." + msgid "Could not steer" msgstr "Steuern nicht möglich" @@ -7776,6 +7807,9 @@ msgstr "Jede Oberfläche hat ihre eigene Typografie. Änderungen erscheinen sofo msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Jeder Arbeitsbereich bekommt eine eigene Cloud-Maschine und arbeitet weiter, wenn dein Laptop zugeklappt ist. Schau auf dem Desktop, iPhone oder iPad nach dem Stand." +msgid "Earlier period" +msgstr "Früherer Zeitraum" + msgid "Early 2024" msgstr "Anfang 2024" @@ -8301,6 +8335,9 @@ msgstr "Sehr hoch" msgid "Extra small" msgstr "Sehr klein" +msgid "Extra usage" +msgstr "Zusätzliche Nutzung" + msgid "Extra usage limit reached" msgstr "Limit für zusätzliche Nutzung erreicht" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Fehlgeschlagen" -msgid "Failed {failedAt}" -msgstr "Fehlgeschlagen am {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Fehlgeschlagene Läufe <0>· 7 T." @@ -8532,6 +8566,9 @@ msgstr "Bild konnte nicht geladen werden" msgid "Failed to load repositories. Please try again." msgstr "Repositories konnten nicht geladen werden. Bitte versuche es erneut." +msgid "Failed to load usage" +msgstr "Nutzung konnte nicht geladen werden" + msgid "Failed to log out. Please try again." msgstr "Abmelden fehlgeschlagen. Bitte versuche es erneut." @@ -9019,6 +9056,9 @@ msgstr "fertig · 7 s gearbeitet" msgid "Finishing the move…" msgstr "Verschieben wird abgeschlossen…" +msgid "First page" +msgstr "Erste Seite" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Zum ersten Mal? Aktiviere die Anmeldung per Gerätecode in den <0>ChatGPT-Einstellungen." @@ -9284,6 +9324,13 @@ msgstr "Gründungsingenieur" msgid "Free" msgstr "Free" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Kostenlos" + +msgid "Free credits" +msgstr "Kostenloses Guthaben" + msgid "Free for everyone" msgstr "Kostenlos für alle" @@ -10110,6 +10157,10 @@ msgstr "Identität" msgid "Idle" msgstr "Inaktiv" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Inaktiv" + msgid "Idle · branch pushed" msgstr "Inaktiv · Branch gepusht" @@ -10303,6 +10354,9 @@ msgstr "In Review" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "Öffne in der {appName}-Desktop-App Einstellungen → Fernzugriff und aktiviere „Fernzugriff auf dieses Gerät über den Relay erlauben“." +msgid "in the last 30 days" +msgstr "in den letzten 30 Tagen" + msgid "In the merge queue" msgstr "In der Merge-Warteschlange" @@ -10312,6 +10366,9 @@ msgstr "In der Merge-Warteschlange. GitHub führt ihn zusammen, wenn er an der R msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "Öffne in der Paradev-Desktop-App <0>Einstellungen → Darstellung → Theme." +msgid "in this period" +msgstr "in diesem Zeitraum" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "In weniger als einem Jahr haben mehr als 145.000 Entwickler in 180 Ländern {productName} genutzt und über 1,85 Millionen Agent-Arbeitsbereiche erstellt." @@ -10342,6 +10399,9 @@ msgstr "In Enterprise enthalten" msgid "Included with Team and Ultra." msgstr "In Team und Ultra enthalten." +msgid "Included with the plan" +msgstr "Im Plan enthalten" + msgid "Includes the Paradev-specific box variant" msgstr "Enthält die Paradev-spezifische Box-Variante" @@ -10963,6 +11023,9 @@ msgstr "Letzte 3 Monate" msgid "last 30 days" msgstr "letzte 30 Tage" +msgid "Last 30 days" +msgstr "Letzte 30 Tage" + msgid "Last 4 weeks" msgstr "Letzte 4 Wochen" @@ -11037,6 +11100,9 @@ msgstr "Latenz" msgid "Later messages are removed." msgstr "Spätere Nachrichten werden entfernt." +msgid "Later period" +msgstr "Späterer Zeitraum" + msgid "Latest" msgstr "Neueste" @@ -11444,6 +11510,9 @@ msgstr "Mehr wird geladen..." msgid "Loading more…" msgstr "Mehr wird geladen…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Seite {loadingPage} von {targetPage} wird geladen..." + msgid "Loading project…" msgstr "Projekt wird geladen…" @@ -12570,6 +12639,9 @@ msgstr "Nächstes Bild" msgid "Next match" msgstr "Nächster Treffer" +msgid "Next page" +msgstr "Nächste Seite" + msgid "Next Right Sidebar Tab" msgstr "Nächster Tab der rechten Seitenleiste" @@ -13292,6 +13364,9 @@ msgstr "Noch keine Arbeitsbereiche auf diesem Host" msgid "No workspaces yet" msgstr "Noch keine Arbeitsbereiche" +msgid "No workspaces." +msgstr "Keine Arbeitsbereiche." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Nein. {companyName} leitet Modellaufrufe niemals über einen Proxy. Die Agenten nutzen deine eigenen Abonnements und Schlüssel." @@ -13340,6 +13415,9 @@ msgstr "Auf diesem Server nicht verfügbar" msgid "Not bound · configure in Settings → Links" msgstr "Nicht belegt · in Einstellungen → Links konfigurieren" +msgid "Not broken down yet" +msgstr "Noch nicht aufgeschlüsselt" + msgid "Not configured" msgstr "Nicht konfiguriert" @@ -13352,6 +13430,9 @@ msgstr "Nicht verbunden" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Nicht verbunden · Cloud-Arbeitsbereiche pushen als GitHub-App deiner Organisation" +msgid "Not counted by billing yet" +msgstr "Noch nicht abgerechnet" + msgid "Not demoed here" msgstr "Hier nicht gezeigt" @@ -13523,6 +13604,12 @@ msgstr "Objekte" msgid "of {0}" msgstr "von {0}" +msgid "of {cap} included" +msgstr "von {cap} enthalten" + +msgid "of {cap} limit" +msgstr "von {cap} Limit" + msgid "of {total}" msgstr "von {total}" @@ -13804,9 +13891,6 @@ msgstr "Nur du kannst diese Verbindung nutzen. Teammitglieder verbinden ihre eig msgid "Only you. Teammates forward their own." msgstr "Nur du. Teammitglieder leiten ihre eigenen weiter." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Nur Ihre eigenen Arbeitsbereiche. Die Summen der Organisation sehen Eigentümer und Admins." - msgid "open" msgstr "öffnen" @@ -14398,6 +14482,10 @@ msgstr "Originale" msgid "Other" msgstr "Sonstige" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Sonstiges" + msgid "Other apps" msgstr "Andere Apps" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Seite" +msgid "Page {page} of {pages}" +msgstr "Seite {page} von {pages}" + msgid "Page actions" msgstr "Seitenaktionen" @@ -14567,6 +14658,10 @@ msgstr "Seitennavigation" msgid "Pagination" msgstr "Seitennavigation" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Bezahlt" + msgid "Paid plans" msgstr "Kostenpflichtige Tarife" @@ -15340,6 +15435,9 @@ msgstr "Vorheriges Bild" msgid "Previous match" msgstr "Vorheriger Treffer" +msgid "Previous page" +msgstr "Vorherige Seite" + msgid "Previous prompts" msgstr "Frühere Prompts" @@ -15576,6 +15674,10 @@ msgstr "Eigenschaften" msgid "Provide either id or slug" msgstr "Gib entweder id oder slug an" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Wird bereitgestellt" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Die Bereitstellung ist fehlgeschlagen und die Sandbox wurde abgebaut. Es läuft nichts, und dieser Arbeitsbereich lässt sich nicht öffnen. Erstelle einen neuen, um es erneut zu versuchen." @@ -16338,6 +16440,9 @@ msgstr "den Agenten entfernen" msgid "remove the PR link" msgstr "den PR-Link entfernen" +msgid "Remove this filter" +msgstr "Diesen Filter entfernen" + msgid "Remove trigger" msgstr "Auslöser entfernen" @@ -17075,6 +17180,9 @@ msgstr "Zeilenaktionen" msgid "Rows changed" msgstr "Zeilen geändert" +msgid "Rows per page" +msgstr "Zeilen pro Seite" + msgid "Rule" msgstr "Regel" @@ -17215,7 +17323,7 @@ msgstr "läuft" msgid "Running" msgstr "Läuft" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Läuft" @@ -17667,6 +17775,9 @@ msgstr "Suche nach Kbd-Verwendungen" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Mitten im Zeitraum entfernte Plätze bleiben bis zum {0} aktiv." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Plätze, Guthaben und das Limit für zusätzliche Nutzung sind noch nicht geladen. Sie erscheinen, wenn die Abrechnungsdaten das nächste Mal aktualisiert werden." + msgid "Secondary" msgstr "Sekundär" @@ -19154,10 +19265,6 @@ msgstr "startet" msgid "Starting" msgstr "Startet" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Wird gestartet" - msgid "Starting {agentLabel}" msgstr "{agentLabel} wird gestartet" @@ -19306,23 +19413,21 @@ msgstr "gestoppt" msgid "Stopped" msgstr "Gestoppt" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Gestoppt" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "{0} ({1} GB) beendet, um Speicher freizugeben" -msgid "Stopped by a person" -msgstr "Von einer Person gestoppt" - msgid "Stopped by the usage limit" msgstr "Durch das Nutzungslimit gestoppt" msgid "Stopped moving {name}" msgstr "Verschieben von {name} gestoppt" -msgid "Stopped when idle" -msgstr "Bei Inaktivität gestoppt" - msgid "Stopping the agent in {what}" msgstr "Agent in {what} wird gestoppt" @@ -20003,6 +20108,9 @@ msgstr "Der beste Agent wird wechseln.<0/>Dein Workflow nicht." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "Die Maschine lief mit {actual} vCPU statt {wanted} wieder an. Starte sie neu, um es erneut zu versuchen." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Die Aufschlüsselung nach Plan wird nur für den aktuellen Zeitraum gespeichert." + msgid "The button now stands out. I checked it in your pane." msgstr "Der Button hebt sich jetzt ab. Ich habe es in deinem Bereich geprüft." @@ -20075,6 +20183,9 @@ msgstr "Die Umgebung, aus der diese Automatisierung Cloud-Arbeitsbereiche starte msgid "The extension and its local data are deleted from this browser." msgstr "Die Erweiterung und ihre lokalen Daten werden aus diesem Browser gelöscht." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "Das Limit für zusätzliche Nutzung ist ein Prozentsatz des Plans, deshalb wird sein Betrag nicht angezeigt." + msgid "The factory" msgstr "Die Fabrik" @@ -20151,9 +20262,6 @@ msgstr "Der Mensch liest jede Zeile, bevor sie gemergt wird." msgid "The image upload expired — attach it again" msgstr "Der Bild-Upload ist abgelaufen — erneut anhängen" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Enthaltene GB-Stunden und GB-Stunden über dem Plan werden nur für den aktuellen Zeitraum gespeichert." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "Die Stellenbeschreibung verschiebt sich. Entwickler sind nicht länger Tipper mit Geschmack, sondern Disponenten mit Geschmack: Arbeit zerlegen, an Flotten verteilen, Konflikte zwischen Agenten schlichten, die beide dasselbe Modul angefasst haben." @@ -20662,15 +20770,15 @@ msgstr "Das ändert nur den Anzeigenamen, nicht den Branch." msgid "this organization" msgstr "diese Organisation" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Diese Organisation hat keine Abrechnungszeiträume, daher zeigt diese Seite die letzten 30 Tage." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Diese Organisation hat keine Abrechnungszeiträume. Wähle stattdessen einen Zeitraum." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Diese Organisation nutzt den Free-Tarif. {appName} Mobile ist für Organisationen mit Pro verfügbar." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Diese Seite kann nicht erkennen, wann das Nutzungslimit erreicht ist." + msgid "This page could not be loaded" msgstr "Diese Seite konnte nicht geladen werden" @@ -20876,6 +20984,9 @@ msgstr "Dieser Arbeitsbereich" msgid "This workspace has no project to branch from" msgstr "Dieser Workspace hat kein Projekt, von dem aus verzweigt werden kann" +msgid "This workspace has no usage in this period." +msgstr "Dieser Arbeitsbereich hat in diesem Zeitraum keine Nutzung." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Dieser Arbeitsbereich wurde möglicherweise entfernt, oder du hast keinen Zugriff mehr darauf." @@ -21458,6 +21569,10 @@ msgstr "unbekannt" msgid "Unknown" msgstr "Unbekannt" +msgctxt "boot end" +msgid "Unknown" +msgstr "Unbekannt" + msgctxt "person" msgid "Unknown" msgstr "Unbekannt" @@ -21782,21 +21897,21 @@ msgstr "URL-tauglicher Bezeichner, eindeutig innerhalb deiner Organisation." msgid "Usage" msgstr "Nutzung" -msgid "Usage by day" -msgstr "Nutzung nach Tag" - -msgid "Usage by person" -msgstr "Nutzung nach Person" - msgid "Usage is out of date" msgstr "Die Nutzungsdaten sind veraltet" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Die Nutzung erscheint am UTC-Tag der Abrechnung, der etwas nach der Laufzeit des Arbeitsbereichs liegen kann." +msgid "usage limit" +msgstr "Nutzungslimit" + +msgid "Usage limit" +msgstr "Nutzungslimit" msgid "Usage limit reached" msgstr "Nutzungslimit erreicht" +msgid "Usage limit reached." +msgstr "Nutzungslimit erreicht." + msgid "Usage sections" msgstr "Nutzungsbereiche" @@ -23119,6 +23234,9 @@ msgstr "Ihre Organisation hat ihr Umgebungslimit erreicht." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Deine eigenen Konten. Die Integrationen deiner Organisation lassen Paradev ihre Tools erreichen; wenn du deine verbindest, erscheint die Arbeit, die Paradev für dich erledigt, unter deinem Namen." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Nur deine eigene Nutzung. Die Gesamtwerte der Organisation, ihr Kontingent und die Nutzung nach Person sind für Inhaber und Admins." + msgid "Your Paradev download is starting." msgstr "Dein Paradev-Download startet." @@ -23134,9 +23252,6 @@ msgstr "Dein Plan enthält keine Cloud-Umgebungen." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Dein Plan enthält keine Cloud-Umgebungen. Upgrade unter Einstellungen, Abrechnung, um eine zu erstellen." -msgid "Your plan includes no cloud GB-hours." -msgstr "Ihr Plan enthält keine Cloud-GB-Stunden." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Ihr Plan wechselt am {startDate} zu {planName}. Heute wird nichts berechnet." diff --git a/packages/i18n/locales/en/messages.po b/packages/i18n/locales/en/messages.po index 69b12585d45..40ac358e091 100644 --- a/packages/i18n/locales/en/messages.po +++ b/packages/i18n/locales/en/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {fetched # page} other {fetched # pages}}" msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Import # worktree} other {Import # worktrees}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-hours" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# hidden line} other {# hidden lines}}" @@ -1347,6 +1350,12 @@ msgstr "{remaining} tokens left" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Included with # seat} other {Included with # seats}}" + msgid "{seconds}s" msgstr "{seconds}s" @@ -1364,17 +1373,17 @@ msgstr "{shown} of {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount} shown · {0} · {1} tokens" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# skipped} other {# skipped}}" msgid "{starCount} stars and counting" msgstr "{starCount} stars and counting" -msgid "{start} to {end}" -msgstr "{start} to {end}" - -msgid "{start} to {end} (current)" -msgstr "{start} to {end} (current)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {Started # automation} other {Started # automations}}" @@ -1433,9 +1442,15 @@ msgstr "{used} of {limit} environments" msgid "{used} of {size} tokens" msgstr "{used} of {size} tokens" +msgid "{used} of {total}" +msgstr "{used} of {total}" + msgid "{used} used" msgstr "{used} used" +msgid "{used} used by you" +msgstr "{used} used by you" + msgid "{user} and {others} joined and left." msgstr "{user} and {others} joined and left." @@ -1463,9 +1478,6 @@ msgstr "{user} rejoined." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} Waiting" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "$11.5M seed led by Union Square Ventures" +msgid "0 rows" +msgstr "0 rows" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Any name" msgid "Any page" msgstr "Any page" +msgid "Any person" +msgstr "Any person" + msgid "Any project" msgstr "Any project" @@ -2903,6 +2921,9 @@ msgstr "Any reviewer" msgid "any sender" msgstr "any sender" +msgid "Any size" +msgstr "Any size" + msgid "Any status" msgstr "Any status" @@ -3462,6 +3483,10 @@ msgstr "Awaiting review from you" msgid "Awaiting review from you or your team" msgstr "Awaiting review from you or your team" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Awake" + msgid "Away" msgstr "Away" @@ -3589,9 +3614,6 @@ msgstr "Billing" msgid "Billing details" msgstr "Billing details" -msgid "Billing period" -msgstr "Billing period" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." @@ -3672,6 +3694,9 @@ msgstr "Borrowed from how self-driving cars are graded, applied to how software msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Bottom drawer, swipe-friendly on touch devices." +msgid "Bought credits" +msgstr "Bought credits" + msgid "Bought GB-hours left: {prepaid}" msgstr "Bought GB-hours left: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "By authorizing, you allow this application to access your data according msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." +msgid "By day" +msgstr "By day" + +msgid "By person" +msgstr "By person" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "By signing in, you agree to our\n" @@ -4831,9 +4862,6 @@ msgstr "Cloud usage is not enabled for this organization." msgid "Cloud workspace" msgstr "Cloud workspace" -msgid "Cloud workspace usage for the whole organization." -msgstr "Cloud workspace usage for the whole organization." - msgid "Cloud workspace: asleep" msgstr "Cloud workspace: asleep" @@ -4859,6 +4887,9 @@ msgstr "Cloud workspaces are not enabled for {account}. They come with the Team msgid "Cloud workspaces are not included in your plan." msgstr "Cloud workspaces are not included in your plan." +msgid "Cloud workspaces cannot start." +msgstr "Cloud workspaces cannot start." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Cloud workspaces commit, push and open pull requests as you" @@ -5815,9 +5846,6 @@ msgstr "Could not list directory" msgid "Could not load agents from {0}" msgstr "Could not load agents from {0}" -msgid "Could not load cloud usage." -msgstr "Could not load cloud usage." - msgid "Could not load environments" msgstr "Could not load environments" @@ -5998,6 +6026,9 @@ msgstr "Could not start session" msgid "Could not start the chat" msgstr "Could not start the chat" +msgid "Could not start." +msgstr "Could not start." + msgid "Could not steer" msgstr "Could not steer" @@ -7776,6 +7807,9 @@ msgstr "Each surface has its own typography. Changes appear immediately in the l msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." +msgid "Earlier period" +msgstr "Earlier period" + msgid "Early 2024" msgstr "Early 2024" @@ -8301,6 +8335,9 @@ msgstr "Extra high" msgid "Extra small" msgstr "Extra small" +msgid "Extra usage" +msgstr "Extra usage" + msgid "Extra usage limit reached" msgstr "Extra usage limit reached" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Failed" -msgid "Failed {failedAt}" -msgstr "Failed {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Failed runs <0>· 7d" @@ -8532,6 +8566,9 @@ msgstr "Failed to load image" msgid "Failed to load repositories. Please try again." msgstr "Failed to load repositories. Please try again." +msgid "Failed to load usage" +msgstr "Failed to load usage" + msgid "Failed to log out. Please try again." msgstr "Failed to log out. Please try again." @@ -9019,6 +9056,9 @@ msgstr "finished · worked for 7s" msgid "Finishing the move…" msgstr "Finishing the move…" +msgid "First page" +msgstr "First page" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "First time? Turn on device code sign-in in <0>ChatGPT settings." @@ -9284,6 +9324,13 @@ msgstr "Founding Engineer" msgid "Free" msgstr "Free" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Free" + +msgid "Free credits" +msgstr "Free credits" + msgid "Free for everyone" msgstr "Free for everyone" @@ -10110,6 +10157,10 @@ msgstr "Identity" msgid "Idle" msgstr "Idle" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Idle" + msgid "Idle · branch pushed" msgstr "Idle · branch pushed" @@ -10303,6 +10354,9 @@ msgstr "In review" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." +msgid "in the last 30 days" +msgstr "in the last 30 days" + msgid "In the merge queue" msgstr "In the merge queue" @@ -10312,6 +10366,9 @@ msgstr "In the merge queue. GitHub merges it when its turn comes." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "In the Paradev desktop app, open <0>Settings → Appearance → Theme." +msgid "in this period" +msgstr "in this period" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." @@ -10342,6 +10399,9 @@ msgstr "Included in Enterprise" msgid "Included with Team and Ultra." msgstr "Included with Team and Ultra." +msgid "Included with the plan" +msgstr "Included with the plan" + msgid "Includes the Paradev-specific box variant" msgstr "Includes the Paradev-specific box variant" @@ -10963,6 +11023,9 @@ msgstr "Last 3 months" msgid "last 30 days" msgstr "last 30 days" +msgid "Last 30 days" +msgstr "Last 30 days" + msgid "Last 4 weeks" msgstr "Last 4 weeks" @@ -11037,6 +11100,9 @@ msgstr "Latency" msgid "Later messages are removed." msgstr "Later messages are removed." +msgid "Later period" +msgstr "Later period" + msgid "Latest" msgstr "Latest" @@ -11444,6 +11510,9 @@ msgstr "Loading more..." msgid "Loading more…" msgstr "Loading more…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Loading page {loadingPage} of {targetPage}..." + msgid "Loading project…" msgstr "Loading project…" @@ -12570,6 +12639,9 @@ msgstr "Next image" msgid "Next match" msgstr "Next match" +msgid "Next page" +msgstr "Next page" + msgid "Next Right Sidebar Tab" msgstr "Next Right Sidebar Tab" @@ -13292,6 +13364,9 @@ msgstr "No workspaces on this host yet" msgid "No workspaces yet" msgstr "No workspaces yet" +msgid "No workspaces." +msgstr "No workspaces." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." @@ -13340,6 +13415,9 @@ msgstr "Not available on this server" msgid "Not bound · configure in Settings → Links" msgstr "Not bound · configure in Settings → Links" +msgid "Not broken down yet" +msgstr "Not broken down yet" + msgid "Not configured" msgstr "Not configured" @@ -13352,6 +13430,9 @@ msgstr "Not Connected" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Not connected · cloud workspaces push as your organization's GitHub App" +msgid "Not counted by billing yet" +msgstr "Not counted by billing yet" + msgid "Not demoed here" msgstr "Not demoed here" @@ -13523,6 +13604,12 @@ msgstr "Objects" msgid "of {0}" msgstr "of {0}" +msgid "of {cap} included" +msgstr "of {cap} included" + +msgid "of {cap} limit" +msgstr "of {cap} limit" + msgid "of {total}" msgstr "of {total}" @@ -13804,9 +13891,6 @@ msgstr "Only you can use this connection. Teammates connect their own {name} acc msgid "Only you. Teammates forward their own." msgstr "Only you. Teammates forward their own." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Only your own workspaces. Organization totals are for owners and admins." - msgid "open" msgstr "open" @@ -14398,6 +14482,10 @@ msgstr "Originals" msgid "Other" msgstr "Other" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Other" + msgid "Other apps" msgstr "Other apps" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Page" +msgid "Page {page} of {pages}" +msgstr "Page {page} of {pages}" + msgid "Page actions" msgstr "Page actions" @@ -14567,6 +14658,10 @@ msgstr "pagination" msgid "Pagination" msgstr "Pagination" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Paid" + msgid "Paid plans" msgstr "Paid plans" @@ -15340,6 +15435,9 @@ msgstr "Previous image" msgid "Previous match" msgstr "Previous match" +msgid "Previous page" +msgstr "Previous page" + msgid "Previous prompts" msgstr "Previous prompts" @@ -15576,6 +15674,10 @@ msgstr "Properties" msgid "Provide either id or slug" msgstr "Provide either id or slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Provisioning" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." @@ -16338,6 +16440,9 @@ msgstr "remove the agent" msgid "remove the PR link" msgstr "remove the PR link" +msgid "Remove this filter" +msgstr "Remove this filter" + msgid "Remove trigger" msgstr "Remove trigger" @@ -17075,6 +17180,9 @@ msgstr "Row actions" msgid "Rows changed" msgstr "Rows changed" +msgid "Rows per page" +msgstr "Rows per page" + msgid "Rule" msgstr "Rule" @@ -17215,7 +17323,7 @@ msgstr "running" msgid "Running" msgstr "Running" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Running" @@ -17667,6 +17775,9 @@ msgstr "Searching for Kbd usages" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Seats removed mid-cycle stay active until {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." + msgid "Secondary" msgstr "Secondary" @@ -19154,10 +19265,6 @@ msgstr "starting" msgid "Starting" msgstr "Starting" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Starting" - msgid "Starting {agentLabel}" msgstr "Starting {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "stopped" msgid "Stopped" msgstr "Stopped" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Stopped" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "Stopped {0} ({1} GB) to free memory" -msgid "Stopped by a person" -msgstr "Stopped by a person" - msgid "Stopped by the usage limit" msgstr "Stopped by the usage limit" msgid "Stopped moving {name}" msgstr "Stopped moving {name}" -msgid "Stopped when idle" -msgstr "Stopped when idle" - msgid "Stopping the agent in {what}" msgstr "Stopping the agent in {what}" @@ -20003,6 +20108,9 @@ msgstr "The best agent will change.<0/>Your workflow shouldn't." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." +msgid "The breakdown by plan is kept for the current period only." +msgstr "The breakdown by plan is kept for the current period only." + msgid "The button now stands out. I checked it in your pane." msgstr "The button now stands out. I checked it in your pane." @@ -20075,6 +20183,9 @@ msgstr "The environment this automation starts cloud workspaces from was archive msgid "The extension and its local data are deleted from this browser." msgstr "The extension and its local data are deleted from this browser." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "The extra-usage limit is a percentage of the plan, so its amount is not shown." + msgid "The factory" msgstr "The factory" @@ -20151,9 +20262,6 @@ msgstr "The human reads every line before it merges." msgid "The image upload expired — attach it again" msgstr "The image upload expired — attach it again" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "The included and overage GB-hours are kept for the current period only." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." @@ -20662,15 +20770,15 @@ msgstr "This only changes the display name, not the branch." msgid "this organization" msgstr "this organization" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "This organization has no billing periods, so this page shows the last 30 days." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "This organization has no billing periods. Choose a time range instead." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "This page cannot tell when the usage limit is reached." + msgid "This page could not be loaded" msgstr "This page could not be loaded" @@ -20876,6 +20984,9 @@ msgstr "This workspace" msgid "This workspace has no project to branch from" msgstr "This workspace has no project to branch from" +msgid "This workspace has no usage in this period." +msgstr "This workspace has no usage in this period." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "This workspace may have been removed, or you no longer have access to it." @@ -21458,6 +21569,10 @@ msgstr "unknown" msgid "Unknown" msgstr "Unknown" +msgctxt "boot end" +msgid "Unknown" +msgstr "Unknown" + msgctxt "person" msgid "Unknown" msgstr "Unknown" @@ -21782,21 +21897,21 @@ msgstr "URL-friendly identifier, unique within your organization." msgid "Usage" msgstr "Usage" -msgid "Usage by day" -msgstr "Usage by day" - -msgid "Usage by person" -msgstr "Usage by person" - msgid "Usage is out of date" msgstr "Usage is out of date" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." +msgid "usage limit" +msgstr "usage limit" + +msgid "Usage limit" +msgstr "Usage limit" msgid "Usage limit reached" msgstr "Usage limit reached" +msgid "Usage limit reached." +msgstr "Usage limit reached." + msgid "Usage sections" msgstr "Usage sections" @@ -23119,6 +23234,9 @@ msgstr "Your organization reached its environment limit." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." + msgid "Your Paradev download is starting." msgstr "Your Paradev download is starting." @@ -23134,9 +23252,6 @@ msgstr "Your plan does not include cloud environments." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." -msgid "Your plan includes no cloud GB-hours." -msgstr "Your plan includes no cloud GB-hours." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Your plan switches to {planName} on {startDate}. Nothing is charged today." diff --git a/packages/i18n/locales/es/messages.po b/packages/i18n/locales/es/messages.po index 4fb00c63287..0803fec8bf0 100644 --- a/packages/i18n/locales/es/messages.po +++ b/packages/i18n/locales/es/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {obtuvo # página} other {obtuvo # páginas}}" msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Importar # worktree} other {Importar # worktrees}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {en # espacio de trabajo en los últimos 30 días} other {en # espacios de trabajo en los últimos 30 días}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {en # espacio de trabajo en este periodo} other {en # espacios de trabajo en este periodo}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {¿Fusionar # pull request?} other {¿Fusionar # pull requests?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-horas" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# línea oculta} other {# líneas ocultas}}" @@ -1347,6 +1350,12 @@ msgstr "Quedan {remaining} tokens" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Se deshicieron los cambios en # archivo.} other {Se deshicieron los cambios en # archivos.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} de # fila} other {{first}–{last} de # filas}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Incluido con # puesto} other {Incluido con # puestos}}" + msgid "{seconds}s" msgstr "{seconds} s" @@ -1364,17 +1373,17 @@ msgstr "{shown} de {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount} mostrados · {0} · {1} tokens" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# omitida} other {# omitidas}}" msgid "{starCount} stars and counting" msgstr "{starCount} estrellas y subiendo" -msgid "{start} to {end}" -msgstr "Del {start} al {end}" - -msgid "{start} to {end} (current)" -msgstr "Del {start} al {end} (actual)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {# automatización iniciada} other {# automatizaciones iniciadas}}" @@ -1433,9 +1442,15 @@ msgstr "{used} de {limit} entornos" msgid "{used} of {size} tokens" msgstr "{used} de {size} tokens" +msgid "{used} of {total}" +msgstr "{used} de {total}" + msgid "{used} used" msgstr "{used} usado" +msgid "{used} used by you" +msgstr "{used} usados por ti" + msgid "{user} and {others} joined and left." msgstr "{user} y {others} se unieron y salieron." @@ -1463,9 +1478,6 @@ msgstr "{user} volvió a unirse." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} en espera" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Ronda semilla de 11,5 M$ liderada por Union Square Ventures" +msgid "0 rows" +msgstr "0 filas" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Cualquier nombre" msgid "Any page" msgstr "Cualquier página" +msgid "Any person" +msgstr "Cualquier persona" + msgid "Any project" msgstr "Cualquier proyecto" @@ -2903,6 +2921,9 @@ msgstr "Cualquier revisor" msgid "any sender" msgstr "cualquier remitente" +msgid "Any size" +msgstr "Cualquier tamaño" + msgid "Any status" msgstr "Cualquier estado" @@ -3462,6 +3483,10 @@ msgstr "Pendientes de tu revisión" msgid "Awaiting review from you or your team" msgstr "Pendientes de tu revisión o la de tu equipo" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Activo" + msgid "Away" msgstr "Ausente" @@ -3589,9 +3614,6 @@ msgstr "Facturación" msgid "Billing details" msgstr "Datos de facturación" -msgid "Billing period" -msgstr "Periodo de facturación" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "La facturación rechazó iniciar un espacio de trabajo en la nube: el plan de la organización no incluye espacios en la nube, o alcanzó su límite de uso en la nube. Los espacios en la nube necesitan el plan Team o Ultra. Mejora el plan o sube el límite en Configuración > Facturación, o ejecuta la automatización en un dispositivo." @@ -3672,6 +3694,9 @@ msgstr "Tomada de cómo se califican los coches autónomos y aplicada a cómo se msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Panel inferior, cómodo de deslizar en dispositivos táctiles." +msgid "Bought credits" +msgstr "Créditos comprados" + msgid "Bought GB-hours left: {prepaid}" msgstr "GB-horas compradas restantes: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Al autorizar, permites que esta aplicación acceda a tus datos según su msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Al hacer clic en continuar, aceptas nuestras <0>Condiciones del servicio y nuestra <1>Política de privacidad." +msgid "By day" +msgstr "Por día" + +msgid "By person" +msgstr "Por persona" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Al iniciar sesión, aceptas nuestros\n" @@ -4831,9 +4862,6 @@ msgstr "El uso de la nube no está activado para esta organización." msgid "Cloud workspace" msgstr "Espacio de trabajo en la nube" -msgid "Cloud workspace usage for the whole organization." -msgstr "Uso de los espacios de trabajo en la nube de toda la organización." - msgid "Cloud workspace: asleep" msgstr "Espacio de trabajo en la nube: en reposo" @@ -4859,6 +4887,9 @@ msgstr "Los espacios de trabajo en la nube no están habilitados para {account}. msgid "Cloud workspaces are not included in your plan." msgstr "Los espacios de trabajo en la nube no están incluidos en tu plan." +msgid "Cloud workspaces cannot start." +msgstr "Los espacios de trabajo en la nube no pueden iniciarse." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Los espacios de trabajo en la nube hacen commit, push y abren pull requests como tú" @@ -5815,9 +5846,6 @@ msgstr "No se pudo listar el directorio" msgid "Could not load agents from {0}" msgstr "No se pudieron cargar los agentes de {0}" -msgid "Could not load cloud usage." -msgstr "No se pudo cargar el uso de la nube." - msgid "Could not load environments" msgstr "No se pudieron cargar los entornos" @@ -5998,6 +6026,9 @@ msgstr "No se pudo iniciar la sesión" msgid "Could not start the chat" msgstr "No se pudo iniciar el chat" +msgid "Could not start." +msgstr "No se pudo iniciar." + msgid "Could not steer" msgstr "No se pudo redirigir" @@ -7776,6 +7807,9 @@ msgstr "Cada superficie tiene su propia tipografía. Los cambios se ven al insta msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Cada espacio de trabajo tiene su propia máquina en la nube y sigue trabajando con el portátil cerrado. Revísalo desde el escritorio, el iPhone o el iPad." +msgid "Earlier period" +msgstr "Periodo anterior" + msgid "Early 2024" msgstr "Principios de 2024" @@ -8301,6 +8335,9 @@ msgstr "Muy alto" msgid "Extra small" msgstr "Muy pequeño" +msgid "Extra usage" +msgstr "Uso adicional" + msgid "Extra usage limit reached" msgstr "Límite de uso adicional alcanzado" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Con errores" -msgid "Failed {failedAt}" -msgstr "Falló el {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Ejecuciones fallidas <0>· 7 d" @@ -8532,6 +8566,9 @@ msgstr "No se pudo cargar la imagen" msgid "Failed to load repositories. Please try again." msgstr "No se pudieron cargar los repositorios. Inténtalo de nuevo." +msgid "Failed to load usage" +msgstr "No se pudo cargar el uso" + msgid "Failed to log out. Please try again." msgstr "No se pudo cerrar la sesión. Inténtalo de nuevo." @@ -9019,6 +9056,9 @@ msgstr "finalizado · trabajó 7 s" msgid "Finishing the move…" msgstr "Terminando de mover…" +msgid "First page" +msgstr "Primera página" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "¿Primera vez? Activa el inicio de sesión con código de dispositivo en la <0>configuración de ChatGPT." @@ -9284,6 +9324,13 @@ msgstr "Ingeniero fundador" msgid "Free" msgstr "Gratis" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Gratis" + +msgid "Free credits" +msgstr "Créditos gratuitos" + msgid "Free for everyone" msgstr "Gratis para todos" @@ -10110,6 +10157,10 @@ msgstr "Identidad" msgid "Idle" msgstr "Inactivo" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Inactivo" + msgid "Idle · branch pushed" msgstr "Inactivo · rama subida" @@ -10303,6 +10354,9 @@ msgstr "En revisión" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "En la app de escritorio de {appName}, abre Configuración → Acceso remoto y activa “Permitir el acceso remoto a este dispositivo a través del relay”." +msgid "in the last 30 days" +msgstr "en los últimos 30 días" + msgid "In the merge queue" msgstr "En la cola de fusión" @@ -10312,6 +10366,9 @@ msgstr "En la cola de fusión. GitHub la fusiona cuando llega su turno." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "En la app de escritorio de Paradev, abre <0>Configuración → Apariencia → Tema." +msgid "in this period" +msgstr "en este periodo" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "En menos de un año, más de 145.000 desarrolladores de 180 países han usado {productName} y han creado más de 1,85 millones de espacios de trabajo de agentes." @@ -10342,6 +10399,9 @@ msgstr "Incluido en Enterprise" msgid "Included with Team and Ultra." msgstr "Incluido en Team y Ultra." +msgid "Included with the plan" +msgstr "Incluido en el plan" + msgid "Includes the Paradev-specific box variant" msgstr "Incluye la variante de caja propia de Paradev" @@ -10963,6 +11023,9 @@ msgstr "Últimos 3 meses" msgid "last 30 days" msgstr "últimos 30 días" +msgid "Last 30 days" +msgstr "Últimos 30 días" + msgid "Last 4 weeks" msgstr "Últimas 4 semanas" @@ -11037,6 +11100,9 @@ msgstr "Latencia" msgid "Later messages are removed." msgstr "Se eliminarán los mensajes posteriores." +msgid "Later period" +msgstr "Periodo siguiente" + msgid "Latest" msgstr "Última" @@ -11444,6 +11510,9 @@ msgstr "Cargando más..." msgid "Loading more…" msgstr "Cargando más…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Cargando la página {loadingPage} de {targetPage}..." + msgid "Loading project…" msgstr "Cargando proyecto…" @@ -12570,6 +12639,9 @@ msgstr "Imagen siguiente" msgid "Next match" msgstr "Coincidencia siguiente" +msgid "Next page" +msgstr "Página siguiente" + msgid "Next Right Sidebar Tab" msgstr "Pestaña siguiente de la barra lateral derecha" @@ -13292,6 +13364,9 @@ msgstr "Aún no hay espacios de trabajo en este host" msgid "No workspaces yet" msgstr "Aún no hay espacios de trabajo" +msgid "No workspaces." +msgstr "No hay espacios de trabajo." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "No. {companyName} nunca actúa como proxy de las llamadas a modelos. Los agentes usan tus propias suscripciones y claves." @@ -13340,6 +13415,9 @@ msgstr "No disponible en este servidor" msgid "Not bound · configure in Settings → Links" msgstr "Sin asignar · configurar en Configuración → Enlaces" +msgid "Not broken down yet" +msgstr "Aún sin desglosar" + msgid "Not configured" msgstr "Sin configurar" @@ -13352,6 +13430,9 @@ msgstr "Sin conectar" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "No conectado · los espacios de trabajo en la nube hacen push como la GitHub App de tu organización" +msgid "Not counted by billing yet" +msgstr "Aún no contabilizado en la facturación" + msgid "Not demoed here" msgstr "No se muestra aquí" @@ -13523,6 +13604,12 @@ msgstr "Objetos" msgid "of {0}" msgstr "de {0}" +msgid "of {cap} included" +msgstr "de {cap} incluidos" + +msgid "of {cap} limit" +msgstr "de un límite de {cap}" + msgid "of {total}" msgstr "de {total}" @@ -13804,9 +13891,6 @@ msgstr "Solo tú puedes usar esta conexión. Tus compañeros conectan sus propia msgid "Only you. Teammates forward their own." msgstr "Solo tú. Cada compañero reenvía los suyos." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Solo tus propios espacios de trabajo. Los totales de la organización son para propietarios y administradores." - msgid "open" msgstr "abrir" @@ -14398,6 +14482,10 @@ msgstr "Originales" msgid "Other" msgstr "Otros" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Otro" + msgid "Other apps" msgstr "Otras apps" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Página" +msgid "Page {page} of {pages}" +msgstr "Página {page} de {pages}" + msgid "Page actions" msgstr "Acciones de la página" @@ -14567,6 +14658,10 @@ msgstr "paginación" msgid "Pagination" msgstr "Paginación" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "De pago" + msgid "Paid plans" msgstr "Planes de pago" @@ -15340,6 +15435,9 @@ msgstr "Imagen anterior" msgid "Previous match" msgstr "Coincidencia anterior" +msgid "Previous page" +msgstr "Página anterior" + msgid "Previous prompts" msgstr "Prompts anteriores" @@ -15576,6 +15674,10 @@ msgstr "Propiedades" msgid "Provide either id or slug" msgstr "Proporciona id o slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Aprovisionando" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "El aprovisionamiento falló y el sandbox se desmontó. No hay nada en marcha y este espacio de trabajo no se puede abrir: crea uno nuevo para volver a intentarlo." @@ -16338,6 +16440,9 @@ msgstr "quitar el agente" msgid "remove the PR link" msgstr "quitar el enlace a la PR" +msgid "Remove this filter" +msgstr "Quitar este filtro" + msgid "Remove trigger" msgstr "Eliminar disparador" @@ -17075,6 +17180,9 @@ msgstr "Acciones de la fila" msgid "Rows changed" msgstr "Filas modificadas" +msgid "Rows per page" +msgstr "Filas por página" + msgid "Rule" msgstr "Regla" @@ -17215,7 +17323,7 @@ msgstr "en ejecución" msgid "Running" msgstr "En ejecución" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "En ejecución" @@ -17667,6 +17775,9 @@ msgstr "Buscando usos de Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Los puestos eliminados a mitad del ciclo siguen activos hasta el {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Los puestos, los créditos y el límite de uso adicional aún no se han cargado. Aparecerán la próxima vez que se actualicen los datos de facturación." + msgid "Secondary" msgstr "Secundario" @@ -19154,10 +19265,6 @@ msgstr "iniciando" msgid "Starting" msgstr "Iniciando" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Iniciando" - msgid "Starting {agentLabel}" msgstr "Iniciando {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "detenido" msgid "Stopped" msgstr "Detenido" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Detenido" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "Se detuvo {0} ({1} GB) para liberar memoria" -msgid "Stopped by a person" -msgstr "Detenido por una persona" - msgid "Stopped by the usage limit" msgstr "Detenido por el límite de uso" msgid "Stopped moving {name}" msgstr "Se detuvo el traslado de {name}" -msgid "Stopped when idle" -msgstr "Detenido por inactividad" - msgid "Stopping the agent in {what}" msgstr "Deteniendo el agente en {what}" @@ -20003,6 +20108,9 @@ msgstr "El mejor agente cambiará.<0/>Tu flujo de trabajo, no." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "La máquina volvió con {actual} vCPU en lugar de {wanted}. Reiníciala para intentarlo de nuevo." +msgid "The breakdown by plan is kept for the current period only." +msgstr "El desglose por plan solo se guarda para el periodo actual." + msgid "The button now stands out. I checked it in your pane." msgstr "El botón ahora destaca. Lo he comprobado en tu panel." @@ -20075,6 +20183,9 @@ msgstr "El entorno desde el que esta automatización inicia espacios de trabajo msgid "The extension and its local data are deleted from this browser." msgstr "La extensión y sus datos locales se eliminan de este navegador." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "El límite de uso adicional es un porcentaje del plan, así que su importe no se muestra." + msgid "The factory" msgstr "La fábrica" @@ -20151,9 +20262,6 @@ msgstr "La persona lee cada línea antes de que se fusione." msgid "The image upload expired — attach it again" msgstr "La subida de la imagen expiró — adjúntala de nuevo" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Las GB-horas incluidas y las excedentes solo se guardan para el periodo actual." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "La descripción del puesto cambia. Los ingenieros dejan de ser mecanógrafos con criterio y pasan a ser despachadores con criterio: descomponen el trabajo, lo enrutan a flotas y arbitran conflictos entre agentes que tocaron el mismo módulo." @@ -20662,15 +20770,15 @@ msgstr "Esto solo cambia el nombre mostrado, no la rama." msgid "this organization" msgstr "esta organización" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Esta organización no tiene periodos de facturación, así que esta página muestra los últimos 30 días." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Esta organización no tiene períodos de facturación. Elige un intervalo de tiempo." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Esta organización tiene el plan Gratis. {appName} Mobile está disponible para organizaciones con el plan Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Esta página no puede saber cuándo se alcanza el límite de uso." + msgid "This page could not be loaded" msgstr "No se pudo cargar esta página" @@ -20876,6 +20984,9 @@ msgstr "Este espacio de trabajo" msgid "This workspace has no project to branch from" msgstr "Este espacio de trabajo no tiene un proyecto desde el que bifurcar" +msgid "This workspace has no usage in this period." +msgstr "Este espacio de trabajo no tiene uso en este periodo." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Puede que este espacio de trabajo se haya eliminado o que ya no tengas acceso a él." @@ -21458,6 +21569,10 @@ msgstr "desconocido" msgid "Unknown" msgstr "Desconocida" +msgctxt "boot end" +msgid "Unknown" +msgstr "Desconocido" + msgctxt "person" msgid "Unknown" msgstr "Desconocida" @@ -21782,21 +21897,21 @@ msgstr "Identificador apto para URL, único dentro de tu organización." msgid "Usage" msgstr "Uso" -msgid "Usage by day" -msgstr "Uso por día" - -msgid "Usage by person" -msgstr "Uso por persona" - msgid "Usage is out of date" msgstr "Los datos de uso están desactualizados" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "El uso se muestra en el día UTC en que se facturó, que puede ser un poco posterior a cuando se ejecutó el espacio de trabajo." +msgid "usage limit" +msgstr "límite de uso" + +msgid "Usage limit" +msgstr "Límite de uso" msgid "Usage limit reached" msgstr "Límite de uso alcanzado" +msgid "Usage limit reached." +msgstr "Límite de uso alcanzado." + msgid "Usage sections" msgstr "Secciones de uso" @@ -23119,6 +23234,9 @@ msgstr "Tu organización alcanzó su límite de entornos." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Tus propias cuentas. Las integraciones de tu organización permiten a Paradev acceder a sus herramientas; conectar las tuyas hace que el trabajo que Paradev hace por ti aparezca a tu nombre." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Solo tu propio uso. Los totales de la organización, su asignación y el uso por persona son para propietarios y administradores." + msgid "Your Paradev download is starting." msgstr "Tu descarga de Paradev está comenzando." @@ -23134,9 +23252,6 @@ msgstr "Tu plan no incluye entornos en la nube." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Tu plan no incluye entornos en la nube. Mejora tu plan en Configuración, Facturación para crear uno." -msgid "Your plan includes no cloud GB-hours." -msgstr "Tu plan no incluye GB-horas en la nube." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Tu plan cambia a {planName} el {startDate}. Hoy no se cobra nada." diff --git a/packages/i18n/locales/fr/messages.po b/packages/i18n/locales/fr/messages.po index fe596b969b2..da758a30a2d 100644 --- a/packages/i18n/locales/fr/messages.po +++ b/packages/i18n/locales/fr/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {# page récupérée} other {# pages récupérées}} msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Importer # worktree} other {Importer # worktrees}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {dans # espace de travail au cours des 30 derniers jours} other {dans # espaces de travail au cours des 30 derniers jours}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {dans # espace de travail sur cette période} other {dans # espaces de travail sur cette période}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {Fusionner # pull request ?} other {Fusionner # pull requests ?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate} : {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-heures" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# ligne masquée} other {# lignes masquées}}" @@ -1347,6 +1350,12 @@ msgstr "{remaining} tokens restants" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Modifications annulées sur # fichier.} other {Modifications annulées sur # fichiers.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} sur # ligne} other {{first}–{last} sur # lignes}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Inclus avec # siège} other {Inclus avec # sièges}}" + msgid "{seconds}s" msgstr "{seconds} s" @@ -1364,17 +1373,17 @@ msgstr "{shown} sur {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount} affichés · {0} · {1} tokens" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} Go" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# ignoré} other {# ignorés}}" msgid "{starCount} stars and counting" msgstr "{starCount} étoiles, et ça continue" -msgid "{start} to {end}" -msgstr "Du {start} au {end}" - -msgid "{start} to {end} (current)" -msgstr "Du {start} au {end} (en cours)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {# automatisation lancée} other {# automatisations lancées}}" @@ -1433,9 +1442,15 @@ msgstr "{used} environnements sur {limit}" msgid "{used} of {size} tokens" msgstr "{used} sur {size} tokens" +msgid "{used} of {total}" +msgstr "{used} sur {total}" + msgid "{used} used" msgstr "{used} utilisés" +msgid "{used} used by you" +msgstr "{used} utilisés par vous" + msgid "{user} and {others} joined and left." msgstr "{user} et {others} ont rejoint puis quitté le canal." @@ -1463,9 +1478,6 @@ msgstr "{user} a de nouveau rejoint le canal." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} Go" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} Go" - msgid "{waiting} Waiting" msgstr "{waiting} en attente" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Levée d’amorçage de 11,5 M$ menée par Union Square Ventures" +msgid "0 rows" +msgstr "0 ligne" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Tout nom" msgid "Any page" msgstr "Toute page" +msgid "Any person" +msgstr "Toutes les personnes" + msgid "Any project" msgstr "Tout projet" @@ -2903,6 +2921,9 @@ msgstr "N'importe quel relecteur" msgid "any sender" msgstr "tout expéditeur" +msgid "Any size" +msgstr "Toutes les tailles" + msgid "Any status" msgstr "Tout statut" @@ -3462,6 +3483,10 @@ msgstr "En attente de votre revue" msgid "Awaiting review from you or your team" msgstr "En attente de votre revue ou de celle de votre équipe" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Actif" + msgid "Away" msgstr "Absent" @@ -3589,9 +3614,6 @@ msgstr "Facturation" msgid "Billing details" msgstr "Informations de facturation" -msgid "Billing period" -msgstr "Période de facturation" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "La facturation a refusé de démarrer un espace de travail cloud : le forfait de l'organisation n'inclut pas les espaces cloud, ou elle a atteint sa limite d'utilisation cloud. Les espaces cloud nécessitent le forfait Team ou Ultra. Passez à un forfait supérieur ou augmentez la limite dans Paramètres > Facturation, ou exécutez l'automatisation sur un appareil." @@ -3672,6 +3694,9 @@ msgstr "Empruntée à la façon dont on note les voitures autonomes, appliquée msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Tiroir inférieur, adapté au balayage sur les appareils tactiles." +msgid "Bought credits" +msgstr "Crédits achetés" + msgid "Bought GB-hours left: {prepaid}" msgstr "Go-heures achetées restantes : {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "En autorisant, vous permettez à cette application d'accéder à vos don msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "En cliquant sur continuer, vous acceptez nos <0>Conditions d'utilisation et notre <1>Politique de confidentialité." +msgid "By day" +msgstr "Par jour" + +msgid "By person" +msgstr "Par personne" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "En vous connectant, vous acceptez nos\n" @@ -4831,9 +4862,6 @@ msgstr "L’utilisation du cloud n’est pas activée pour cette organisation." msgid "Cloud workspace" msgstr "Espace de travail cloud" -msgid "Cloud workspace usage for the whole organization." -msgstr "Utilisation des espaces de travail cloud pour toute l'organisation." - msgid "Cloud workspace: asleep" msgstr "Espace de travail cloud : en veille" @@ -4859,6 +4887,9 @@ msgstr "Les espaces de travail cloud ne sont pas activés pour {account}. Ils so msgid "Cloud workspaces are not included in your plan." msgstr "Les espaces de travail cloud ne sont pas inclus dans votre forfait." +msgid "Cloud workspaces cannot start." +msgstr "Les espaces de travail cloud ne peuvent pas démarrer." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Les espaces de travail cloud commitent, poussent et ouvrent des pull requests en votre nom" @@ -5815,9 +5846,6 @@ msgstr "Impossible de lister le répertoire" msgid "Could not load agents from {0}" msgstr "Impossible de charger les agents depuis {0}" -msgid "Could not load cloud usage." -msgstr "Impossible de charger l'utilisation du cloud." - msgid "Could not load environments" msgstr "Impossible de charger les environnements" @@ -5998,6 +6026,9 @@ msgstr "Impossible de démarrer la session" msgid "Could not start the chat" msgstr "Impossible de démarrer la discussion" +msgid "Could not start." +msgstr "Démarrage impossible." + msgid "Could not steer" msgstr "Impossible de réorienter" @@ -7776,6 +7807,9 @@ msgstr "Chaque surface a sa propre typographie. Les changements apparaissent imm msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Chaque espace de travail a sa propre machine cloud et continue de tourner quand votre portable est fermé. Suivez-le depuis le bureau, l'iPhone ou l'iPad." +msgid "Earlier period" +msgstr "Période précédente" + msgid "Early 2024" msgstr "Début 2024" @@ -8301,6 +8335,9 @@ msgstr "Très élevé" msgid "Extra small" msgstr "Très petit" +msgid "Extra usage" +msgstr "Utilisation supplémentaire" + msgid "Extra usage limit reached" msgstr "Limite d'utilisation supplémentaire atteinte" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Échec" -msgid "Failed {failedAt}" -msgstr "Échec le {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Exécutions échouées <0>· 7 j" @@ -8532,6 +8566,9 @@ msgstr "Échec du chargement de l'image" msgid "Failed to load repositories. Please try again." msgstr "Échec du chargement des dépôts. Veuillez réessayer." +msgid "Failed to load usage" +msgstr "Impossible de charger l'utilisation" + msgid "Failed to log out. Please try again." msgstr "Échec de la déconnexion. Veuillez réessayer." @@ -9019,6 +9056,9 @@ msgstr "terminé · a travaillé 7 s" msgid "Finishing the move…" msgstr "Finalisation du déplacement…" +msgid "First page" +msgstr "Première page" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Première fois ? Activez la connexion par code d'appareil dans les <0>paramètres de ChatGPT." @@ -9284,6 +9324,13 @@ msgstr "Ingénieur fondateur" msgid "Free" msgstr "Free" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Gratuit" + +msgid "Free credits" +msgstr "Crédits gratuits" + msgid "Free for everyone" msgstr "Gratuit pour tout le monde" @@ -10110,6 +10157,10 @@ msgstr "Identité" msgid "Idle" msgstr "Inactif" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Inactif" + msgid "Idle · branch pushed" msgstr "Inactif · branche poussée" @@ -10303,6 +10354,9 @@ msgstr "En révision" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "Dans l'application de bureau {appName}, ouvrez Paramètres → Accès distant et activez « Autoriser l'accès distant à cet appareil via le relais »." +msgid "in the last 30 days" +msgstr "au cours des 30 derniers jours" + msgid "In the merge queue" msgstr "Dans la file de fusion" @@ -10312,6 +10366,9 @@ msgstr "Dans la file de fusion. GitHub la fusionne quand son tour vient." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "Dans l'application de bureau Paradev, ouvrez <0>Paramètres → Apparence → Thème." +msgid "in this period" +msgstr "sur cette période" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "En moins d’un an, plus de 145 000 développeurs dans 180 pays ont utilisé {productName} et créé plus de 1,85 million d’espaces de travail d’agents." @@ -10342,6 +10399,9 @@ msgstr "Inclus dans Enterprise" msgid "Included with Team and Ultra." msgstr "Inclus dans Team et Ultra." +msgid "Included with the plan" +msgstr "Inclus dans l'offre" + msgid "Includes the Paradev-specific box variant" msgstr "Inclut la variante box spécifique à Paradev" @@ -10963,6 +11023,9 @@ msgstr "3 derniers mois" msgid "last 30 days" msgstr "30 derniers jours" +msgid "Last 30 days" +msgstr "30 derniers jours" + msgid "Last 4 weeks" msgstr "4 dernières semaines" @@ -11037,6 +11100,9 @@ msgstr "Latence" msgid "Later messages are removed." msgstr "Les messages suivants seront supprimés." +msgid "Later period" +msgstr "Période suivante" + msgid "Latest" msgstr "Dernière" @@ -11444,6 +11510,9 @@ msgstr "Chargement..." msgid "Loading more…" msgstr "Chargement…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Chargement de la page {loadingPage} sur {targetPage}..." + msgid "Loading project…" msgstr "Chargement du projet…" @@ -12570,6 +12639,9 @@ msgstr "Image suivante" msgid "Next match" msgstr "Résultat suivant" +msgid "Next page" +msgstr "Page suivante" + msgid "Next Right Sidebar Tab" msgstr "Onglet suivant de la barre latérale droite" @@ -13292,6 +13364,9 @@ msgstr "Aucun espace de travail sur cet hôte pour l'instant" msgid "No workspaces yet" msgstr "Aucun espace de travail pour le moment" +msgid "No workspaces." +msgstr "Aucun espace de travail." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Non. {companyName} ne fait jamais transiter les appels aux modèles par un proxy. Les agents utilisent vos propres abonnements et clés." @@ -13340,6 +13415,9 @@ msgstr "Indisponible sur ce serveur" msgid "Not bound · configure in Settings → Links" msgstr "Non associé · à configurer dans Paramètres → Liens" +msgid "Not broken down yet" +msgstr "Pas encore détaillé" + msgid "Not configured" msgstr "Non configuré" @@ -13352,6 +13430,9 @@ msgstr "Non connecté" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Non connecté · les espaces de travail cloud poussent en tant que GitHub App de votre organisation" +msgid "Not counted by billing yet" +msgstr "Pas encore comptabilisé par la facturation" + msgid "Not demoed here" msgstr "Non démontré ici" @@ -13523,6 +13604,12 @@ msgstr "Objets" msgid "of {0}" msgstr "sur {0}" +msgid "of {cap} included" +msgstr "sur {cap} inclus" + +msgid "of {cap} limit" +msgstr "sur une limite de {cap}" + msgid "of {total}" msgstr "sur {total}" @@ -13804,9 +13891,6 @@ msgstr "Vous seul pouvez utiliser cette connexion. Vos coéquipiers connectent l msgid "Only you. Teammates forward their own." msgstr "Vous seul. Chaque coéquipier redirige les siens." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Uniquement vos propres espaces de travail. Les totaux de l'organisation sont réservés aux propriétaires et aux administrateurs." - msgid "open" msgstr "ouvrir" @@ -14398,6 +14482,10 @@ msgstr "Originaux" msgid "Other" msgstr "Autres" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Autre" + msgid "Other apps" msgstr "Autres applications" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Page" +msgid "Page {page} of {pages}" +msgstr "Page {page} sur {pages}" + msgid "Page actions" msgstr "Actions de la page" @@ -14567,6 +14658,10 @@ msgstr "pagination" msgid "Pagination" msgstr "Pagination" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Payant" + msgid "Paid plans" msgstr "Offres payantes" @@ -15340,6 +15435,9 @@ msgstr "Image précédente" msgid "Previous match" msgstr "Résultat précédent" +msgid "Previous page" +msgstr "Page précédente" + msgid "Previous prompts" msgstr "Prompts précédents" @@ -15576,6 +15674,10 @@ msgstr "Propriétés" msgid "Provide either id or slug" msgstr "Fournissez soit un id, soit un slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Provisionnement" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Le provisionnement a échoué et le bac à sable a été démantelé. Rien ne tourne, et cet espace de travail ne peut pas être ouvert. Créez-en un nouveau pour réessayer." @@ -16338,6 +16440,9 @@ msgstr "supprimer l'agent" msgid "remove the PR link" msgstr "retirer le lien de la PR" +msgid "Remove this filter" +msgstr "Retirer ce filtre" + msgid "Remove trigger" msgstr "Supprimer le déclencheur" @@ -17075,6 +17180,9 @@ msgstr "Actions de la ligne" msgid "Rows changed" msgstr "Lignes modifiées" +msgid "Rows per page" +msgstr "Lignes par page" + msgid "Rule" msgstr "Règle" @@ -17215,9 +17323,9 @@ msgstr "en cours" msgid "Running" msgstr "En cours" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" -msgstr "En cours d'exécution" +msgstr "En cours" msgid "Running \"{name}\" now" msgstr "Exécution de « {name} » en cours" @@ -17667,6 +17775,9 @@ msgstr "Recherche des utilisations de Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Les sièges retirés en cours de période restent actifs jusqu'au {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Les sièges, les crédits et la limite d'utilisation supplémentaire ne sont pas encore chargés. Ils s'affichent à la prochaine actualisation des données de facturation." + msgid "Secondary" msgstr "Secondaire" @@ -19154,10 +19265,6 @@ msgstr "démarrage" msgid "Starting" msgstr "Démarrage" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Démarrage" - msgid "Starting {agentLabel}" msgstr "Démarrage de {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "arrêté" msgid "Stopped" msgstr "Arrêté" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Arrêté" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "{0} ({1} Go) arrêté pour libérer de la mémoire" -msgid "Stopped by a person" -msgstr "Arrêté par une personne" - msgid "Stopped by the usage limit" msgstr "Arrêté par la limite d'utilisation" msgid "Stopped moving {name}" msgstr "Déplacement de {name} arrêté" -msgid "Stopped when idle" -msgstr "Arrêté pour inactivité" - msgid "Stopping the agent in {what}" msgstr "Arrêt de l’agent dans {what}" @@ -20003,6 +20108,9 @@ msgstr "Le meilleur agent changera.<0/>Pas votre façon de travailler." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "La machine a redémarré avec {actual} vCPU au lieu de {wanted}. Redémarrez-la pour réessayer." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Le détail par offre n'est conservé que pour la période en cours." + msgid "The button now stands out. I checked it in your pane." msgstr "Le bouton ressort maintenant. Je l'ai vérifié dans votre volet." @@ -20075,6 +20183,9 @@ msgstr "L'environnement à partir duquel cette automatisation démarre des espac msgid "The extension and its local data are deleted from this browser." msgstr "L’extension et ses données locales sont supprimées de ce navigateur." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "La limite d'utilisation supplémentaire est un pourcentage de l'offre, son montant n'est donc pas affiché." + msgid "The factory" msgstr "L'usine" @@ -20151,9 +20262,6 @@ msgstr "L'humain lit chaque ligne avant la fusion." msgid "The image upload expired — attach it again" msgstr "Le téléversement de l'image a expiré — joignez-la à nouveau" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Les GB-heures incluses et en dépassement ne sont conservées que pour la période en cours." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "La fiche de poste change. Les ingénieurs cessent d'être des dactylos avec du goût pour devenir des répartiteurs avec du goût : découper le travail, l'acheminer vers des flottes, arbitrer les conflits entre agents qui ont touché le même module." @@ -20662,15 +20770,15 @@ msgstr "Cela ne change que le nom affiché, pas la branche." msgid "this organization" msgstr "cette organisation" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Cette organisation n'a pas de période de facturation : cette page affiche donc les 30 derniers jours." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Cette organisation n’a aucune période de facturation. Choisissez plutôt une plage de temps." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Cette organisation utilise le forfait Free. {appName} Mobile est disponible pour les organisations avec le forfait Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Cette page ne peut pas savoir quand la limite d'utilisation est atteinte." + msgid "This page could not be loaded" msgstr "Cette page n'a pas pu être chargée" @@ -20876,6 +20984,9 @@ msgstr "Cet espace de travail" msgid "This workspace has no project to branch from" msgstr "Cet espace de travail n'a aucun projet depuis lequel dupliquer" +msgid "This workspace has no usage in this period." +msgstr "Cet espace de travail n'a aucune utilisation sur cette période." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Cet espace de travail a peut-être été supprimé, ou vous n'y avez plus accès." @@ -21458,6 +21569,10 @@ msgstr "inconnu" msgid "Unknown" msgstr "Inconnue" +msgctxt "boot end" +msgid "Unknown" +msgstr "Inconnu" + msgctxt "person" msgid "Unknown" msgstr "Inconnu" @@ -21782,21 +21897,21 @@ msgstr "Identifiant compatible avec les URL, unique au sein de votre organisatio msgid "Usage" msgstr "Utilisation" -msgid "Usage by day" -msgstr "Utilisation par jour" - -msgid "Usage by person" -msgstr "Utilisation par personne" - msgid "Usage is out of date" msgstr "Les données d’utilisation ne sont plus à jour" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "L'utilisation apparaît le jour UTC de sa facturation, qui peut être un peu après l'exécution de l'espace de travail." +msgid "usage limit" +msgstr "limite d'utilisation" + +msgid "Usage limit" +msgstr "Limite d'utilisation" msgid "Usage limit reached" msgstr "Limite d'utilisation atteinte" +msgid "Usage limit reached." +msgstr "Limite d'utilisation atteinte." + msgid "Usage sections" msgstr "Sections d'utilisation" @@ -23119,6 +23234,9 @@ msgstr "Votre organisation a atteint sa limite d'environnements." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Vos propres comptes. Les intégrations de votre organisation permettent à Paradev d'accéder à ses outils ; connecter les vôtres fait apparaître à votre nom le travail que Paradev fait pour vous." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Votre propre utilisation uniquement. Les totaux de l'organisation, son quota et l'utilisation par personne sont réservés aux propriétaires et aux administrateurs." + msgid "Your Paradev download is starting." msgstr "Votre téléchargement de Paradev démarre." @@ -23134,9 +23252,6 @@ msgstr "Votre forfait n'inclut pas d'environnements cloud." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Votre forfait n'inclut pas d'environnements cloud. Passez à un forfait supérieur dans Paramètres, Facturation pour en créer un." -msgid "Your plan includes no cloud GB-hours." -msgstr "Votre forfait n'inclut aucune GB-heure cloud." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Votre forfait passe à {planName} le {startDate}. Rien n'est facturé aujourd'hui." diff --git a/packages/i18n/locales/id/messages.po b/packages/i18n/locales/id/messages.po index 4e2dd85bf6e..8f484388cc6 100644 --- a/packages/i18n/locales/id/messages.po +++ b/packages/i18n/locales/id/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {mengambil # halaman} other {mengambil # halaman}}" msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Impor # worktree} other {Impor # worktree}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, other {di # workspace dalam 30 hari terakhir}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, other {di # workspace pada periode ini}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, other {Merge # pull request?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-jam" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# baris tersembunyi} other {# baris tersembunyi}}" @@ -1347,6 +1350,12 @@ msgstr "Sisa {remaining} token" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Perubahan pada # file dibatalkan.} other {Perubahan pada # file dibatalkan.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, other {{first}–{last} dari # baris}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, other {Termasuk dengan # kursi}}" + msgid "{seconds}s" msgstr "{seconds} dtk" @@ -1364,17 +1373,17 @@ msgstr "{shown} dari {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount} ditampilkan · {0} · {1} token" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# dilewati} other {# dilewati}}" msgid "{starCount} stars and counting" msgstr "{starCount} star dan terus bertambah" -msgid "{start} to {end}" -msgstr "{start} sampai {end}" - -msgid "{start} to {end} (current)" -msgstr "{start} sampai {end} (saat ini)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {# otomatisasi dimulai} other {# otomatisasi dimulai}}" @@ -1433,9 +1442,15 @@ msgstr "{used} dari {limit} lingkungan" msgid "{used} of {size} tokens" msgstr "{used} dari {size} token" +msgid "{used} of {total}" +msgstr "{used} dari {total}" + msgid "{used} used" msgstr "{used} terpakai" +msgid "{used} used by you" +msgstr "{used} digunakan oleh Anda" + msgid "{user} and {others} joined and left." msgstr "{user} dan {others} bergabung lalu keluar." @@ -1463,9 +1478,6 @@ msgstr "{user} bergabung kembali." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} Menunggu" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Pendanaan awal $11,5 juta yang dipimpin Union Square Ventures" +msgid "0 rows" +msgstr "0 baris" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Nama apa pun" msgid "Any page" msgstr "Halaman mana pun" +msgid "Any person" +msgstr "Siapa saja" + msgid "Any project" msgstr "Proyek mana pun" @@ -2903,6 +2921,9 @@ msgstr "Semua reviewer" msgid "any sender" msgstr "pengirim mana pun" +msgid "Any size" +msgstr "Ukuran apa saja" + msgid "Any status" msgstr "Status apa pun" @@ -3462,6 +3483,10 @@ msgstr "Menunggu review dari Anda" msgid "Awaiting review from you or your team" msgstr "Menunggu review dari Anda atau tim Anda" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Aktif" + msgid "Away" msgstr "Tidak di tempat" @@ -3589,9 +3614,6 @@ msgstr "Penagihan" msgid "Billing details" msgstr "Detail penagihan" -msgid "Billing period" -msgstr "Periode penagihan" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Penagihan menolak memulai workspace cloud: paket organisasi tidak mencakup workspace cloud, atau organisasi mencapai batas pemakaian cloud. Workspace cloud memerlukan paket Team atau Ultra. Upgrade atau naikkan batas di Pengaturan > Penagihan, atau jalankan otomatisasi di perangkat." @@ -3672,6 +3694,9 @@ msgstr "Dipinjam dari cara mobil swakemudi dinilai, diterapkan pada cara perangk msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Laci bawah, ramah geser di perangkat sentuh." +msgid "Bought credits" +msgstr "Kredit yang dibeli" + msgid "Bought GB-hours left: {prepaid}" msgstr "Sisa GB-jam yang dibeli: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Dengan memberi otorisasi, Anda mengizinkan aplikasi ini mengakses data A msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Dengan mengklik lanjutkan, Anda menyetujui <0>Ketentuan Layanan dan <1>Kebijakan Privasi kami." +msgid "By day" +msgstr "Per hari" + +msgid "By person" +msgstr "Per orang" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Dengan masuk, Anda menyetujui\n" @@ -4831,9 +4862,6 @@ msgstr "Penggunaan cloud tidak diaktifkan untuk organisasi ini." msgid "Cloud workspace" msgstr "Workspace cloud" -msgid "Cloud workspace usage for the whole organization." -msgstr "Penggunaan workspace cloud untuk seluruh organisasi." - msgid "Cloud workspace: asleep" msgstr "Workspace cloud: tertidur" @@ -4859,6 +4887,9 @@ msgstr "Workspace cloud tidak diaktifkan untuk {account}. Workspace cloud tersed msgid "Cloud workspaces are not included in your plan." msgstr "Ruang kerja cloud tidak termasuk dalam paket Anda." +msgid "Cloud workspaces cannot start." +msgstr "Workspace cloud tidak dapat dimulai." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Workspace cloud melakukan commit, push, dan membuka pull request atas nama Anda" @@ -5815,9 +5846,6 @@ msgstr "Tidak bisa menampilkan isi direktori" msgid "Could not load agents from {0}" msgstr "Tidak bisa memuat agen dari {0}" -msgid "Could not load cloud usage." -msgstr "Tidak dapat memuat penggunaan cloud." - msgid "Could not load environments" msgstr "Tidak dapat memuat environment" @@ -5998,6 +6026,9 @@ msgstr "Tidak bisa memulai sesi" msgid "Could not start the chat" msgstr "Tidak dapat memulai obrolan" +msgid "Could not start." +msgstr "Tidak dapat dimulai." + msgid "Could not steer" msgstr "Tidak dapat mengarahkan" @@ -7776,6 +7807,9 @@ msgstr "Tiap permukaan punya tipografinya sendiri. Perubahan langsung terlihat d msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Setiap workspace mendapat mesin cloud sendiri dan tetap bekerja saat laptop Anda tertutup. Pantau dari desktop, iPhone, atau iPad." +msgid "Earlier period" +msgstr "Periode sebelumnya" + msgid "Early 2024" msgstr "Awal 2024" @@ -8301,6 +8335,9 @@ msgstr "Sangat tinggi" msgid "Extra small" msgstr "Ekstra kecil" +msgid "Extra usage" +msgstr "Penggunaan tambahan" + msgid "Extra usage limit reached" msgstr "Batas penggunaan tambahan tercapai" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Gagal" -msgid "Failed {failedAt}" -msgstr "Gagal pada {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Eksekusi gagal <0>· 7h" @@ -8532,6 +8566,9 @@ msgstr "Gagal memuat gambar" msgid "Failed to load repositories. Please try again." msgstr "Gagal memuat repositori. Silakan coba lagi." +msgid "Failed to load usage" +msgstr "Gagal memuat penggunaan" + msgid "Failed to log out. Please try again." msgstr "Gagal keluar. Silakan coba lagi." @@ -9019,6 +9056,9 @@ msgstr "selesai · bekerja 7 dtk" msgid "Finishing the move…" msgstr "Menyelesaikan pemindahan…" +msgid "First page" +msgstr "Halaman pertama" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Pertama kali? Aktifkan masuk dengan kode perangkat di <0>pengaturan ChatGPT." @@ -9284,6 +9324,13 @@ msgstr "Engineer Pendiri" msgid "Free" msgstr "Gratis" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Gratis" + +msgid "Free credits" +msgstr "Kredit gratis" + msgid "Free for everyone" msgstr "Gratis untuk semua orang" @@ -10110,6 +10157,10 @@ msgstr "Identitas" msgid "Idle" msgstr "Idle" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Menganggur" + msgid "Idle · branch pushed" msgstr "Idle · branch sudah di-push" @@ -10303,6 +10354,9 @@ msgstr "Dalam review" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "Di aplikasi desktop {appName}, buka Pengaturan → Akses Jarak Jauh dan aktifkan “Izinkan akses jarak jauh ke perangkat ini melalui relay”." +msgid "in the last 30 days" +msgstr "dalam 30 hari terakhir" + msgid "In the merge queue" msgstr "Di antrean merge" @@ -10312,6 +10366,9 @@ msgstr "Di antrean merge. GitHub me-merge-nya saat gilirannya tiba." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "Di aplikasi desktop Paradev, buka <0>Pengaturan → Tampilan → Tema." +msgid "in this period" +msgstr "pada periode ini" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "Dalam waktu kurang dari setahun, lebih dari 145.000 developer di 180 negara telah menjalankan {productName} dan membuat lebih dari 1,85 juta workspace agen." @@ -10342,6 +10399,9 @@ msgstr "Termasuk di Enterprise" msgid "Included with Team and Ultra." msgstr "Termasuk dalam Team dan Ultra." +msgid "Included with the plan" +msgstr "Termasuk dalam paket" + msgid "Includes the Paradev-specific box variant" msgstr "Termasuk varian box khusus Paradev" @@ -10963,6 +11023,9 @@ msgstr "3 bulan terakhir" msgid "last 30 days" msgstr "30 hari terakhir" +msgid "Last 30 days" +msgstr "30 hari terakhir" + msgid "Last 4 weeks" msgstr "4 minggu terakhir" @@ -11037,6 +11100,9 @@ msgstr "Latensi" msgid "Later messages are removed." msgstr "Pesan berikutnya akan dihapus." +msgid "Later period" +msgstr "Periode berikutnya" + msgid "Latest" msgstr "Terbaru" @@ -11444,6 +11510,9 @@ msgstr "Memuat lagi..." msgid "Loading more…" msgstr "Memuat lagi…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Memuat halaman {loadingPage} dari {targetPage}..." + msgid "Loading project…" msgstr "Memuat proyek…" @@ -12570,6 +12639,9 @@ msgstr "Gambar berikutnya" msgid "Next match" msgstr "Kecocokan berikutnya" +msgid "Next page" +msgstr "Halaman berikutnya" + msgid "Next Right Sidebar Tab" msgstr "Tab Sidebar Kanan Berikutnya" @@ -13292,6 +13364,9 @@ msgstr "Belum ada workspace di host ini" msgid "No workspaces yet" msgstr "Belum ada workspace" +msgid "No workspaces." +msgstr "Tidak ada workspace." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Tidak. {companyName} tidak pernah menjadi proxy untuk panggilan model. Agen menggunakan langganan dan kunci Anda sendiri." @@ -13340,6 +13415,9 @@ msgstr "Tidak tersedia di server ini" msgid "Not bound · configure in Settings → Links" msgstr "Tidak terikat · atur di Pengaturan → Tautan" +msgid "Not broken down yet" +msgstr "Belum dirinci" + msgid "Not configured" msgstr "Belum dikonfigurasi" @@ -13352,6 +13430,9 @@ msgstr "Tidak Terhubung" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Belum terhubung · workspace cloud melakukan push sebagai GitHub App organisasi Anda" +msgid "Not counted by billing yet" +msgstr "Belum dihitung oleh penagihan" + msgid "Not demoed here" msgstr "Tidak didemokan di sini" @@ -13523,6 +13604,12 @@ msgstr "Objek" msgid "of {0}" msgstr "dari {0}" +msgid "of {cap} included" +msgstr "dari {cap} yang termasuk" + +msgid "of {cap} limit" +msgstr "dari batas {cap}" + msgid "of {total}" msgstr "dari {total}" @@ -13804,9 +13891,6 @@ msgstr "Hanya Anda yang dapat menggunakan koneksi ini. Rekan tim menghubungkan a msgid "Only you. Teammates forward their own." msgstr "Hanya Anda. Rekan tim meneruskan port mereka sendiri." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Hanya workspace Anda sendiri. Total organisasi untuk pemilik dan admin." - msgid "open" msgstr "buka" @@ -14398,6 +14482,10 @@ msgstr "Orisinal" msgid "Other" msgstr "Lainnya" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Lainnya" + msgid "Other apps" msgstr "Aplikasi lain" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Halaman" +msgid "Page {page} of {pages}" +msgstr "Halaman {page} dari {pages}" + msgid "Page actions" msgstr "Tindakan halaman" @@ -14567,6 +14658,10 @@ msgstr "paginasi" msgid "Pagination" msgstr "Paginasi" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Berbayar" + msgid "Paid plans" msgstr "Paket berbayar" @@ -15340,6 +15435,9 @@ msgstr "Gambar sebelumnya" msgid "Previous match" msgstr "Kecocokan sebelumnya" +msgid "Previous page" +msgstr "Halaman sebelumnya" + msgid "Previous prompts" msgstr "Prompt sebelumnya" @@ -15576,6 +15674,10 @@ msgstr "Properti" msgid "Provide either id or slug" msgstr "Berikan id atau slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Sedang disiapkan" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Provisioning gagal dan sandbox-nya dibongkar. Tidak ada yang berjalan, dan workspace ini tidak bisa dibuka. Buat yang baru untuk mencoba lagi." @@ -16338,6 +16440,9 @@ msgstr "menghapus agen" msgid "remove the PR link" msgstr "menghapus tautan PR" +msgid "Remove this filter" +msgstr "Hapus filter ini" + msgid "Remove trigger" msgstr "Hapus pemicu" @@ -17075,6 +17180,9 @@ msgstr "Aksi baris" msgid "Rows changed" msgstr "Baris berubah" +msgid "Rows per page" +msgstr "Baris per halaman" + msgid "Rule" msgstr "Aturan" @@ -17215,7 +17323,7 @@ msgstr "berjalan" msgid "Running" msgstr "Berjalan" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Berjalan" @@ -17667,6 +17775,9 @@ msgstr "Mencari penggunaan Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Kursi yang dihapus di tengah siklus tetap aktif hingga {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Kursi, kredit, dan batas penggunaan tambahan belum dimuat. Semuanya muncul saat data penagihan diperbarui berikutnya." + msgid "Secondary" msgstr "Secondary" @@ -19154,10 +19265,6 @@ msgstr "memulai" msgid "Starting" msgstr "Memulai" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Memulai" - msgid "Starting {agentLabel}" msgstr "Memulai {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "berhenti" msgid "Stopped" msgstr "Dihentikan" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Dihentikan" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "{0} ({1} GB) dihentikan untuk mengosongkan memori" -msgid "Stopped by a person" -msgstr "Dihentikan oleh seseorang" - msgid "Stopped by the usage limit" msgstr "Dihentikan oleh batas penggunaan" msgid "Stopped moving {name}" msgstr "Pemindahan {name} dihentikan" -msgid "Stopped when idle" -msgstr "Dihentikan saat tidak aktif" - msgid "Stopping the agent in {what}" msgstr "Menghentikan agen di {what}" @@ -20003,6 +20108,9 @@ msgstr "Agen terbaik akan berganti.<0/>Alur kerja Anda tidak perlu." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "Mesin aktif kembali dengan {actual} vCPU, bukan {wanted}. Mulai ulang untuk mencoba lagi." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Rincian per paket hanya disimpan untuk periode saat ini." + msgid "The button now stands out. I checked it in your pane." msgstr "Tombolnya kini menonjol. Saya sudah memeriksanya di panel Anda." @@ -20075,6 +20183,9 @@ msgstr "Environment yang digunakan otomatisasi ini untuk memulai workspace cloud msgid "The extension and its local data are deleted from this browser." msgstr "Ekstensi dan data lokalnya dihapus dari browser ini." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "Batas penggunaan tambahan adalah persentase dari paket, jadi jumlahnya tidak ditampilkan." + msgid "The factory" msgstr "Pabriknya" @@ -20151,9 +20262,6 @@ msgstr "Manusia membaca tiap baris sebelum di-merge." msgid "The image upload expired — attach it again" msgstr "Unggahan gambar kedaluwarsa — lampirkan lagi" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "GB-jam yang termasuk dan kelebihannya hanya disimpan untuk periode saat ini." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "Deskripsi pekerjaannya bergeser. Engineer berhenti menjadi juru ketik berselera dan menjadi pengatur lalu lintas berselera: memecah pekerjaan, mengarahkannya ke armada agen, menengahi konflik antara agen yang sama-sama menyentuh modul yang sama." @@ -20662,15 +20770,15 @@ msgstr "Ini hanya mengubah nama tampilan, bukan branch-nya." msgid "this organization" msgstr "organisasi ini" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Organisasi ini tidak memiliki periode penagihan, jadi halaman ini menampilkan 30 hari terakhir." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Organisasi ini tidak memiliki periode penagihan. Pilih rentang waktu sebagai gantinya." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Organisasi ini memakai paket Gratis. {appName} Mobile tersedia untuk organisasi dengan paket Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Halaman ini tidak dapat mengetahui kapan batas penggunaan tercapai." + msgid "This page could not be loaded" msgstr "Halaman ini tidak bisa dimuat" @@ -20876,6 +20984,9 @@ msgstr "Workspace ini" msgid "This workspace has no project to branch from" msgstr "Ruang kerja ini tidak memiliki proyek untuk dicabangkan" +msgid "This workspace has no usage in this period." +msgstr "Workspace ini tidak memiliki penggunaan pada periode ini." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Workspace ini mungkin sudah dihapus, atau Anda sudah tidak punya akses ke sana." @@ -21458,6 +21569,10 @@ msgstr "tidak diketahui" msgid "Unknown" msgstr "Tidak diketahui" +msgctxt "boot end" +msgid "Unknown" +msgstr "Tidak diketahui" + msgctxt "person" msgid "Unknown" msgstr "Tidak diketahui" @@ -21782,21 +21897,21 @@ msgstr "Pengenal ramah URL, unik di dalam organisasi Anda." msgid "Usage" msgstr "Penggunaan" -msgid "Usage by day" -msgstr "Penggunaan per hari" - -msgid "Usage by person" -msgstr "Penggunaan per orang" - msgid "Usage is out of date" msgstr "Data penggunaan sudah tidak mutakhir" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Penggunaan ditampilkan pada hari UTC saat ditagih, yang bisa sedikit setelah workspace berjalan." +msgid "usage limit" +msgstr "batas penggunaan" + +msgid "Usage limit" +msgstr "Batas penggunaan" msgid "Usage limit reached" msgstr "Batas penggunaan tercapai" +msgid "Usage limit reached." +msgstr "Batas penggunaan tercapai." + msgid "Usage sections" msgstr "Bagian penggunaan" @@ -23119,6 +23234,9 @@ msgstr "Organisasi Anda telah mencapai batas lingkungan." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Akun milik Anda sendiri. Integrasi organisasi memungkinkan Paradev menjangkau alat-alatnya; menghubungkan akun Anda membuat pekerjaan yang dilakukan Paradev untuk Anda tampil atas nama Anda." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Hanya penggunaan Anda sendiri. Total organisasi, jatahnya, dan penggunaan per orang hanya untuk pemilik dan admin." + msgid "Your Paradev download is starting." msgstr "Unduhan Paradev Anda sedang dimulai." @@ -23134,9 +23252,6 @@ msgstr "Paket Anda tidak mencakup lingkungan cloud." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Paket Anda tidak mencakup lingkungan cloud. Tingkatkan paket di Pengaturan, Penagihan untuk membuatnya." -msgid "Your plan includes no cloud GB-hours." -msgstr "Paket Anda tidak menyertakan GB-jam cloud." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Paket Anda pindah ke {planName} pada {startDate}. Tidak ada tagihan hari ini." diff --git a/packages/i18n/locales/it/messages.po b/packages/i18n/locales/it/messages.po index 8eabb24dbba..10c31804de2 100644 --- a/packages/i18n/locales/it/messages.po +++ b/packages/i18n/locales/it/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {recuperata # pagina} other {recuperate # pagine}}" msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Importa # worktree} other {Importa # worktree}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {in # workspace negli ultimi 30 giorni} other {in # workspace negli ultimi 30 giorni}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {in # workspace in questo periodo} other {in # workspace in questo periodo}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {Unire # pull request?} other {Unire # pull request?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-ore" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# riga nascosta} other {# righe nascoste}}" @@ -1347,6 +1350,12 @@ msgstr "{remaining} token rimanenti" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Annullate le modifiche a # file.} other {Annullate le modifiche a # file.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} di # riga} other {{first}–{last} di # righe}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Incluso con # posto} other {Incluso con # posti}}" + msgid "{seconds}s" msgstr "{seconds} s" @@ -1364,17 +1373,17 @@ msgstr "{shown} di {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount} mostrati · {0} · {1} token" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# saltato} other {# saltati}}" msgid "{starCount} stars and counting" msgstr "{starCount} star e continuano a crescere" -msgid "{start} to {end}" -msgstr "Dal {start} al {end}" - -msgid "{start} to {end} (current)" -msgstr "Dal {start} al {end} (attuale)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {# automazione avviata} other {# automazioni avviate}}" @@ -1433,9 +1442,15 @@ msgstr "{used} di {limit} ambienti" msgid "{used} of {size} tokens" msgstr "{used} di {size} token" +msgid "{used} of {total}" +msgstr "{used} di {total}" + msgid "{used} used" msgstr "{used} utilizzato" +msgid "{used} used by you" +msgstr "{used} usati da te" + msgid "{user} and {others} joined and left." msgstr "{user} e {others} hanno raggiunto e lasciato il canale." @@ -1463,9 +1478,6 @@ msgstr "{user} ha raggiunto di nuovo il canale." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} in attesa" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Round seed da 11,5 M$ guidato da Union Square Ventures" +msgid "0 rows" +msgstr "0 righe" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Qualsiasi nome" msgid "Any page" msgstr "Qualsiasi pagina" +msgid "Any person" +msgstr "Qualsiasi persona" + msgid "Any project" msgstr "Qualsiasi progetto" @@ -2903,6 +2921,9 @@ msgstr "Qualsiasi revisore" msgid "any sender" msgstr "qualsiasi mittente" +msgid "Any size" +msgstr "Qualsiasi dimensione" + msgid "Any status" msgstr "Qualsiasi stato" @@ -3462,6 +3483,10 @@ msgstr "In attesa della tua revisione" msgid "Awaiting review from you or your team" msgstr "In attesa della revisione tua o del tuo team" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Attivo" + msgid "Away" msgstr "Assente" @@ -3589,9 +3614,6 @@ msgstr "Fatturazione" msgid "Billing details" msgstr "Dettagli di fatturazione" -msgid "Billing period" -msgstr "Periodo di fatturazione" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "La fatturazione ha rifiutato di avviare un workspace cloud: il piano dell'organizzazione non include i workspace cloud, oppure ha raggiunto il limite di utilizzo cloud. I workspace cloud richiedono il piano Team o Ultra. Passa a un piano superiore o aumenta il limite in Impostazioni > Fatturazione, oppure esegui l'automazione su un dispositivo." @@ -3672,6 +3694,9 @@ msgstr "Presa in prestito da come si valutano le auto a guida autonoma, applicat msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Cassetto inferiore, comodo da scorrere sui dispositivi touch." +msgid "Bought credits" +msgstr "Crediti acquistati" + msgid "Bought GB-hours left: {prepaid}" msgstr "GB-ore acquistate rimanenti: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Autorizzando, consenti a questa applicazione di accedere ai tuoi dati se msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Cliccando su continua, accetti i nostri <0>Termini di servizio e la nostra <1>Informativa sulla privacy." +msgid "By day" +msgstr "Per giorno" + +msgid "By person" +msgstr "Per persona" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Accedendo, accetti i nostri\n" @@ -4831,9 +4862,6 @@ msgstr "L’utilizzo del cloud non è attivo per questa organizzazione." msgid "Cloud workspace" msgstr "Workspace cloud" -msgid "Cloud workspace usage for the whole organization." -msgstr "Utilizzo dei workspace cloud per l'intera organizzazione." - msgid "Cloud workspace: asleep" msgstr "Workspace cloud: in sospensione" @@ -4859,6 +4887,9 @@ msgstr "I workspace cloud non sono attivi per {account}. Sono inclusi nei piani msgid "Cloud workspaces are not included in your plan." msgstr "Gli spazi di lavoro cloud non sono inclusi nel tuo piano." +msgid "Cloud workspaces cannot start." +msgstr "I workspace cloud non possono avviarsi." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "I workspace cloud fanno commit, push e aprono pull request a tuo nome" @@ -5815,9 +5846,6 @@ msgstr "Impossibile elencare la directory" msgid "Could not load agents from {0}" msgstr "Impossibile caricare gli agenti da {0}" -msgid "Could not load cloud usage." -msgstr "Impossibile caricare l'utilizzo del cloud." - msgid "Could not load environments" msgstr "Impossibile caricare gli ambienti" @@ -5998,6 +6026,9 @@ msgstr "Impossibile avviare la sessione" msgid "Could not start the chat" msgstr "Impossibile avviare la chat" +msgid "Could not start." +msgstr "Impossibile avviare." + msgid "Could not steer" msgstr "Impossibile interrompere e inviare" @@ -7776,6 +7807,9 @@ msgstr "Ogni superficie ha la sua tipografia. Le modifiche compaiono subito nell msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Ogni spazio di lavoro ha la sua macchina cloud e continua a lavorare anche a portatile chiuso. Controllalo da desktop, iPhone o iPad." +msgid "Earlier period" +msgstr "Periodo precedente" + msgid "Early 2024" msgstr "Inizio 2024" @@ -8301,6 +8335,9 @@ msgstr "Molto alto" msgid "Extra small" msgstr "Molto piccolo" +msgid "Extra usage" +msgstr "Utilizzo extra" + msgid "Extra usage limit reached" msgstr "Limite di utilizzo extra raggiunto" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Non riuscito" -msgid "Failed {failedAt}" -msgstr "Non riuscito il {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Esecuzioni fallite <0>· 7g" @@ -8532,6 +8566,9 @@ msgstr "Caricamento dell'immagine non riuscito" msgid "Failed to load repositories. Please try again." msgstr "Caricamento dei repository non riuscito. Riprova." +msgid "Failed to load usage" +msgstr "Impossibile caricare l'utilizzo" + msgid "Failed to log out. Please try again." msgstr "Uscita non riuscita. Riprova." @@ -9019,6 +9056,9 @@ msgstr "terminato · ha lavorato per 7s" msgid "Finishing the move…" msgstr "Completamento dello spostamento…" +msgid "First page" +msgstr "Prima pagina" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Prima volta? Attiva l'accesso con codice dispositivo nelle <0>impostazioni di ChatGPT." @@ -9284,6 +9324,13 @@ msgstr "Ingegnere fondatore" msgid "Free" msgstr "Free" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Gratuito" + +msgid "Free credits" +msgstr "Crediti gratuiti" + msgid "Free for everyone" msgstr "Gratis per tutti" @@ -10110,6 +10157,10 @@ msgstr "Identità" msgid "Idle" msgstr "Inattivo" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Inattivo" + msgid "Idle · branch pushed" msgstr "Inattivo · branch pushato" @@ -10303,6 +10354,9 @@ msgstr "In revisione" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "Nell'app desktop di {appName}, apri Impostazioni → Accesso remoto e attiva “Consenti l'accesso remoto a questo dispositivo tramite relay”." +msgid "in the last 30 days" +msgstr "negli ultimi 30 giorni" + msgid "In the merge queue" msgstr "Nella coda di unione" @@ -10312,6 +10366,9 @@ msgstr "Nella coda di unione. GitHub la unisce quando arriva il suo turno." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "Nell'app desktop di Paradev, apri <0>Impostazioni → Aspetto → Tema." +msgid "in this period" +msgstr "in questo periodo" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "In meno di un anno, oltre 145.000 sviluppatori in 180 paesi hanno usato {productName} e creato più di 1,85 milioni di workspace di agenti." @@ -10342,6 +10399,9 @@ msgstr "Incluso in Enterprise" msgid "Included with Team and Ultra." msgstr "Incluso in Team e Ultra." +msgid "Included with the plan" +msgstr "Incluso nel piano" + msgid "Includes the Paradev-specific box variant" msgstr "Include la variante box specifica di Paradev" @@ -10963,6 +11023,9 @@ msgstr "Ultimi 3 mesi" msgid "last 30 days" msgstr "ultimi 30 giorni" +msgid "Last 30 days" +msgstr "Ultimi 30 giorni" + msgid "Last 4 weeks" msgstr "Ultime 4 settimane" @@ -11037,6 +11100,9 @@ msgstr "Latenza" msgid "Later messages are removed." msgstr "I messaggi successivi verranno rimossi." +msgid "Later period" +msgstr "Periodo successivo" + msgid "Latest" msgstr "Ultima" @@ -11444,6 +11510,9 @@ msgstr "Caricamento di altri..." msgid "Loading more…" msgstr "Caricamento di altri…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Caricamento della pagina {loadingPage} di {targetPage}..." + msgid "Loading project…" msgstr "Caricamento del progetto…" @@ -12570,6 +12639,9 @@ msgstr "Immagine successiva" msgid "Next match" msgstr "Corrispondenza successiva" +msgid "Next page" +msgstr "Pagina successiva" + msgid "Next Right Sidebar Tab" msgstr "Scheda successiva della barra laterale destra" @@ -13292,6 +13364,9 @@ msgstr "Ancora nessun workspace su questo host" msgid "No workspaces yet" msgstr "Ancora nessun workspace" +msgid "No workspaces." +msgstr "Nessun workspace." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "No. {companyName} non fa mai da proxy alle chiamate ai modelli. Gli agenti usano i tuoi abbonamenti e le tue chiavi." @@ -13340,6 +13415,9 @@ msgstr "Non disponibile su questo server" msgid "Not bound · configure in Settings → Links" msgstr "Non assegnato · configura in Impostazioni → Link" +msgid "Not broken down yet" +msgstr "Non ancora suddiviso" + msgid "Not configured" msgstr "Non configurato" @@ -13352,6 +13430,9 @@ msgstr "Non collegato" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Non collegato · i workspace cloud fanno push come la GitHub App della tua organizzazione" +msgid "Not counted by billing yet" +msgstr "Non ancora conteggiato dalla fatturazione" + msgid "Not demoed here" msgstr "Non mostrato qui" @@ -13523,6 +13604,12 @@ msgstr "Oggetti" msgid "of {0}" msgstr "su {0}" +msgid "of {cap} included" +msgstr "di {cap} inclusi" + +msgid "of {cap} limit" +msgstr "di un limite di {cap}" + msgid "of {total}" msgstr "su {total}" @@ -13804,9 +13891,6 @@ msgstr "Solo tu puoi usare questa connessione. I colleghi collegano i propri acc msgid "Only you. Teammates forward their own." msgstr "Solo tu. Ogni collega inoltra le proprie." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Solo i tuoi workspace. I totali dell'organizzazione sono per proprietari e amministratori." - msgid "open" msgstr "apri" @@ -14398,6 +14482,10 @@ msgstr "Originali" msgid "Other" msgstr "Altri" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Altro" + msgid "Other apps" msgstr "Altre app" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Pagina" +msgid "Page {page} of {pages}" +msgstr "Pagina {page} di {pages}" + msgid "Page actions" msgstr "Azioni della pagina" @@ -14567,6 +14658,10 @@ msgstr "impaginazione" msgid "Pagination" msgstr "Pagination" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "A pagamento" + msgid "Paid plans" msgstr "Piani a pagamento" @@ -15340,6 +15435,9 @@ msgstr "Immagine precedente" msgid "Previous match" msgstr "Corrispondenza precedente" +msgid "Previous page" +msgstr "Pagina precedente" + msgid "Previous prompts" msgstr "Prompt precedenti" @@ -15576,6 +15674,10 @@ msgstr "Proprietà" msgid "Provide either id or slug" msgstr "Fornisci un id oppure uno slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "In preparazione" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Il provisioning non è riuscito e la sandbox è stata smontata. Non è in esecuzione nulla e questo workspace non può essere aperto. Creane uno nuovo per riprovare." @@ -16338,6 +16440,9 @@ msgstr "rimuovere l'agente" msgid "remove the PR link" msgstr "rimuovere il link alla PR" +msgid "Remove this filter" +msgstr "Rimuovi questo filtro" + msgid "Remove trigger" msgstr "Rimuovi trigger" @@ -17075,6 +17180,9 @@ msgstr "Azioni della riga" msgid "Rows changed" msgstr "Righe modificate" +msgid "Rows per page" +msgstr "Righe per pagina" + msgid "Rule" msgstr "Regola" @@ -17215,7 +17323,7 @@ msgstr "in esecuzione" msgid "Running" msgstr "In esecuzione" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "In esecuzione" @@ -17667,6 +17775,9 @@ msgstr "Ricerca degli usi di Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Le postazioni rimosse a metà ciclo restano attive fino al {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Posti, crediti e limite di utilizzo extra non sono ancora caricati. Compaiono al prossimo aggiornamento dei dati di fatturazione." + msgid "Secondary" msgstr "Secondario" @@ -19154,10 +19265,6 @@ msgstr "in avvio" msgid "Starting" msgstr "Avvio" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Avvio in corso" - msgid "Starting {agentLabel}" msgstr "Avvio di {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "arrestato" msgid "Stopped" msgstr "Interrotto" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Arrestato" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "{0} ({1} GB) fermato per liberare memoria" -msgid "Stopped by a person" -msgstr "Fermato da una persona" - msgid "Stopped by the usage limit" msgstr "Fermato dal limite di utilizzo" msgid "Stopped moving {name}" msgstr "Spostamento di {name} interrotto" -msgid "Stopped when idle" -msgstr "Fermato per inattività" - msgid "Stopping the agent in {what}" msgstr "Arresto dell’agente in {what}" @@ -20003,6 +20108,9 @@ msgstr "Il miglior agente cambierà.<0/>Il tuo flusso di lavoro no." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "La macchina è ripartita con {actual} vCPU invece di {wanted}. Riavviala per riprovare." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Il dettaglio per piano è conservato solo per il periodo corrente." + msgid "The button now stands out. I checked it in your pane." msgstr "Ora il pulsante risalta. L'ho verificato nel tuo riquadro." @@ -20075,6 +20183,9 @@ msgstr "L'ambiente da cui questa automazione avvia i workspace cloud è stato ar msgid "The extension and its local data are deleted from this browser." msgstr "L’estensione e i suoi dati locali vengono eliminati da questo browser." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "Il limite di utilizzo extra è una percentuale del piano, quindi il suo importo non è mostrato." + msgid "The factory" msgstr "La fabbrica" @@ -20151,9 +20262,6 @@ msgstr "L'umano legge ogni riga prima del merge." msgid "The image upload expired — attach it again" msgstr "Il caricamento dell'immagine è scaduto — allegala di nuovo" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Le GB-ore incluse e quelle in eccedenza sono conservate solo per il periodo attuale." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "La descrizione del lavoro cambia. Gli ingegneri smettono di essere dattilografi con gusto e diventano dispatcher con gusto: scompongono il lavoro, lo instradano alle flotte, arbitrano i conflitti tra agenti che hanno toccato lo stesso modulo." @@ -20662,15 +20770,15 @@ msgstr "Questo cambia solo il nome visualizzato, non il branch." msgid "this organization" msgstr "questa organizzazione" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Questa organizzazione non ha periodi di fatturazione, quindi questa pagina mostra gli ultimi 30 giorni." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Questa organizzazione non ha periodi di fatturazione. Scegli invece un intervallo di tempo." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Questa organizzazione è sul piano Free. {appName} Mobile è disponibile per le organizzazioni con piano Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Questa pagina non può sapere quando viene raggiunto il limite di utilizzo." + msgid "This page could not be loaded" msgstr "Impossibile caricare questa pagina" @@ -20876,6 +20984,9 @@ msgstr "Questo workspace" msgid "This workspace has no project to branch from" msgstr "Questo workspace non ha un progetto da cui diramare" +msgid "This workspace has no usage in this period." +msgstr "Questo workspace non ha utilizzo in questo periodo." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Questo workspace potrebbe essere stato rimosso oppure non hai più accesso." @@ -21458,6 +21569,10 @@ msgstr "sconosciuto" msgid "Unknown" msgstr "Sconosciuto" +msgctxt "boot end" +msgid "Unknown" +msgstr "Sconosciuto" + msgctxt "person" msgid "Unknown" msgstr "Sconosciuto" @@ -21782,21 +21897,21 @@ msgstr "Identificatore adatto agli URL, univoco all'interno della tua organizzaz msgid "Usage" msgstr "Utilizzo" -msgid "Usage by day" -msgstr "Utilizzo per giorno" - -msgid "Usage by person" -msgstr "Utilizzo per persona" - msgid "Usage is out of date" msgstr "I dati di utilizzo non sono aggiornati" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "L'utilizzo è mostrato nel giorno UTC in cui è stato fatturato, che può essere poco dopo l'esecuzione del workspace." +msgid "usage limit" +msgstr "limite di utilizzo" + +msgid "Usage limit" +msgstr "Limite di utilizzo" msgid "Usage limit reached" msgstr "Limite di utilizzo raggiunto" +msgid "Usage limit reached." +msgstr "Limite di utilizzo raggiunto." + msgid "Usage sections" msgstr "Sezioni di utilizzo" @@ -23119,6 +23234,9 @@ msgstr "La tua organizzazione ha raggiunto il limite di ambienti." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "I tuoi account. Le integrazioni della tua organizzazione permettono a Paradev di raggiungere i suoi strumenti; collegare i tuoi fa apparire a tuo nome il lavoro che Paradev svolge per te." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Solo il tuo utilizzo. I totali dell'organizzazione, la sua quota e l'utilizzo per persona sono per proprietari e amministratori." + msgid "Your Paradev download is starting." msgstr "Il download di Paradev sta per iniziare." @@ -23134,9 +23252,6 @@ msgstr "Il tuo piano non include ambienti cloud." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Il tuo piano non include ambienti cloud. Esegui l'upgrade in Impostazioni, Fatturazione per crearne uno." -msgid "Your plan includes no cloud GB-hours." -msgstr "Il tuo piano non include GB-ore cloud." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Il tuo piano passa a {planName} il {startDate}. Oggi non viene addebitato nulla." diff --git a/packages/i18n/locales/ja/messages.po b/packages/i18n/locales/ja/messages.po index 4247e8f3954..86367c424d5 100644 --- a/packages/i18n/locales/ja/messages.po +++ b/packages/i18n/locales/ja/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {#件のページを取得} other {#件のページ msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {#件のワークツリーをインポート} other {#件のワークツリーをインポート}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, other {過去 30 日間に # 件のワークスペースで}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, other {この期間に # 件のワークスペースで}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, other {# 件のプルリクエストをマージしますか?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB 時間" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {非表示の#行} other {非表示の#行}}" @@ -1347,6 +1350,12 @@ msgstr "残り {remaining} トークン" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {#件のファイルの変更を取り消しました。} other {#件のファイルの変更を取り消しました。}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, other {# 行中 {first}–{last}}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, other {# シート分に含まれる}}" + msgid "{seconds}s" msgstr "{seconds}秒" @@ -1364,17 +1373,17 @@ msgstr "{total}件中{shown}件" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount}件表示 · {0} · {1}トークン" +msgid "{size}, {memory} GB" +msgstr "{size}、{memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {#件スキップ} other {#件スキップ}}" msgid "{starCount} stars and counting" msgstr "スター{starCount}件、まだ増えています" -msgid "{start} to {end}" -msgstr "{start}〜{end}" - -msgid "{start} to {end} (current)" -msgstr "{start}〜{end}(現在)" +msgid "{start} – {end}" +msgstr "{start}~{end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {#件のオートメーションを開始しました} other {#件のオートメーションを開始しました}}" @@ -1433,9 +1442,15 @@ msgstr "{limit} 件中 {used} 件の環境" msgid "{used} of {size} tokens" msgstr "{size} トークン中 {used}" +msgid "{used} of {total}" +msgstr "{used} / {total}" + msgid "{used} used" msgstr "{used} 使用済み" +msgid "{used} used by you" +msgstr "あなたの使用量: {used}" + msgid "{user} and {others} joined and left." msgstr "{user} と {others} が参加して退出しました。" @@ -1463,9 +1478,6 @@ msgstr "{user} が再参加しました。" msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU、{memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting}件待機中" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Union Square Ventures がリードしたシードラウンドで 1,150 万ドル" +msgid "0 rows" +msgstr "0 行" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "すべての名前" msgid "Any page" msgstr "すべてのページ" +msgid "Any person" +msgstr "すべての人" + msgid "Any project" msgstr "すべてのプロジェクト" @@ -2903,6 +2921,9 @@ msgstr "すべてのレビュアー" msgid "any sender" msgstr "すべての送信者" +msgid "Any size" +msgstr "すべてのサイズ" + msgid "Any status" msgstr "すべてのステータス" @@ -3462,6 +3483,10 @@ msgstr "自分のレビュー待ち" msgid "Awaiting review from you or your team" msgstr "自分またはチームのレビュー待ち" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "稼働中" + msgid "Away" msgstr "離席中" @@ -3589,9 +3614,6 @@ msgstr "請求" msgid "Billing details" msgstr "請求先情報" -msgid "Billing period" -msgstr "請求期間" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "課金によりクラウドワークスペースの起動が拒否されました。組織のプランにクラウドワークスペースが含まれていないか、クラウド利用上限に達しています。クラウドワークスペースには Team または Ultra プランが必要です。設定 > 請求でアップグレードするか上限を上げてください。またはデバイスで自動化を実行してください。" @@ -3672,6 +3694,9 @@ msgstr "自動運転車の等級付けを借りて、ソフトウェアの作ら msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "下部ドロワー。タッチデバイスではスワイプで操作できます。" +msgid "Bought credits" +msgstr "購入したクレジット" + msgid "Bought GB-hours left: {prepaid}" msgstr "購入済み GB 時間の残り: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "許可すると、このアプリケーションはその利用規約と msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "続行をクリックすると、<0>利用規約と<1>プライバシーポリシーに同意したことになります。" +msgid "By day" +msgstr "日別" + +msgid "By person" +msgstr "人別" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "サインインすると、以下に同意したことになります\n" @@ -4831,9 +4862,6 @@ msgstr "この組織ではクラウド使用量が有効になっていません msgid "Cloud workspace" msgstr "クラウドワークスペース" -msgid "Cloud workspace usage for the whole organization." -msgstr "組織全体のクラウドワークスペースの使用量。" - msgid "Cloud workspace: asleep" msgstr "クラウドワークスペース:スリープ中" @@ -4859,6 +4887,9 @@ msgstr "{account} ではクラウドワークスペースが有効になって msgid "Cloud workspaces are not included in your plan." msgstr "クラウドワークスペースはご利用のプランに含まれていません。" +msgid "Cloud workspaces cannot start." +msgstr "クラウドワークスペースを起動できません。" + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "クラウドワークスペースがあなたとしてコミット、プッシュし、プルリクエストを作成します" @@ -5815,9 +5846,6 @@ msgstr "ディレクトリを一覧表示できませんでした" msgid "Could not load agents from {0}" msgstr "{0}からエージェントを読み込めませんでした" -msgid "Could not load cloud usage." -msgstr "クラウド使用量を読み込めませんでした。" - msgid "Could not load environments" msgstr "環境を読み込めませんでした" @@ -5998,6 +6026,9 @@ msgstr "セッションを開始できませんでした" msgid "Could not start the chat" msgstr "チャットを開始できませんでした" +msgid "Could not start." +msgstr "起動できませんでした。" + msgid "Could not steer" msgstr "軌道修正できませんでした" @@ -7776,6 +7807,9 @@ msgstr "サーフェスごとに独自のタイポグラフィがあります。 msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "ワークスペースごとに専用のクラウドマシンが割り当てられ、ノートパソコンを閉じても動き続けます。デスクトップ、iPhone、iPad から様子を確認できます。" +msgid "Earlier period" +msgstr "前の期間" + msgid "Early 2024" msgstr "2024年前半" @@ -8301,6 +8335,9 @@ msgstr "最高" msgid "Extra small" msgstr "極小" +msgid "Extra usage" +msgstr "追加使用量" + msgid "Extra usage limit reached" msgstr "追加使用量の上限に達しました" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "失敗" -msgid "Failed {failedAt}" -msgstr "{failedAt} に失敗" - msgid "Failed runs <0>· 7d" msgstr "失敗した実行 <0>· 7日" @@ -8532,6 +8566,9 @@ msgstr "画像の読み込みに失敗しました" msgid "Failed to load repositories. Please try again." msgstr "リポジトリを読み込めませんでした。もう一度お試しください。" +msgid "Failed to load usage" +msgstr "使用量を読み込めませんでした" + msgid "Failed to log out. Please try again." msgstr "ログアウトに失敗しました。もう一度お試しください。" @@ -9019,6 +9056,9 @@ msgstr "完了 · 7秒稼働" msgid "Finishing the move…" msgstr "移動を完了しています…" +msgid "First page" +msgstr "最初のページ" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "初めてですか?<0>ChatGPTの設定でデバイスコードによるサインインを有効にしてください。" @@ -9284,6 +9324,13 @@ msgstr "創業エンジニア" msgid "Free" msgstr "Free" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "無料" + +msgid "Free credits" +msgstr "無料クレジット" + msgid "Free for everyone" msgstr "誰でも無料" @@ -10110,6 +10157,10 @@ msgstr "識別情報" msgid "Idle" msgstr "アイドル" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "アイドル" + msgid "Idle · branch pushed" msgstr "アイドル · ブランチをプッシュ済み" @@ -10303,6 +10354,9 @@ msgstr "レビュー中" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "{appName}デスクトップアプリで設定 → リモートアクセスを開き、「リレー経由でこのデバイスへのリモートアクセスを許可」をオンにしてください。" +msgid "in the last 30 days" +msgstr "過去 30 日間" + msgid "In the merge queue" msgstr "マージキュー内" @@ -10312,6 +10366,9 @@ msgstr "マージキュー内です。順番が来ると GitHub がマージし msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "Paradevデスクトップアプリで<0>設定 → 外観 → テーマを開きます。" +msgid "in this period" +msgstr "この期間" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "公開から 1 年足らずで、180 か国の 14 万 5,000 人以上の開発者が {productName} を使い、185 万以上のエージェントワークスペースが作成されました。" @@ -10342,6 +10399,9 @@ msgstr "Enterpriseに含まれます" msgid "Included with Team and Ultra." msgstr "Team と Ultra に含まれています。" +msgid "Included with the plan" +msgstr "プランに含まれる分" + msgid "Includes the Paradev-specific box variant" msgstr "Paradev独自のboxバリアントを含みます" @@ -10963,6 +11023,9 @@ msgstr "直近3か月" msgid "last 30 days" msgstr "直近30日" +msgid "Last 30 days" +msgstr "過去 30 日間" + msgid "Last 4 weeks" msgstr "直近4週間" @@ -11037,6 +11100,9 @@ msgstr "レイテンシ" msgid "Later messages are removed." msgstr "以降のメッセージは削除されます。" +msgid "Later period" +msgstr "次の期間" + msgid "Latest" msgstr "最新" @@ -11444,6 +11510,9 @@ msgstr "さらに読み込み中..." msgid "Loading more…" msgstr "さらに読み込み中…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "{targetPage} ページ中 {loadingPage} ページ目を読み込んでいます..." + msgid "Loading project…" msgstr "プロジェクトを読み込み中…" @@ -12570,6 +12639,9 @@ msgstr "次の画像" msgid "Next match" msgstr "次の一致" +msgid "Next page" +msgstr "次のページ" + msgid "Next Right Sidebar Tab" msgstr "右サイドバーの次のタブ" @@ -13292,6 +13364,9 @@ msgstr "このホストにはまだワークスペースがありません" msgid "No workspaces yet" msgstr "ワークスペースはまだありません" +msgid "No workspaces." +msgstr "ワークスペースはありません。" + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "いいえ。{companyName}がモデル呼び出しをプロキシすることはありません。エージェントはご自身のサブスクリプションとキーを使います。" @@ -13340,6 +13415,9 @@ msgstr "このサーバーでは利用できません" msgid "Not bound · configure in Settings → Links" msgstr "未割り当て · 設定 → リンクで設定" +msgid "Not broken down yet" +msgstr "まだ内訳がありません" + msgid "Not configured" msgstr "未設定" @@ -13352,6 +13430,9 @@ msgstr "未接続" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "未接続 · クラウドワークスペースは組織の GitHub App としてプッシュします" +msgid "Not counted by billing yet" +msgstr "まだ請求に反映されていない分" + msgid "Not demoed here" msgstr "ここではデモしていません" @@ -13523,6 +13604,12 @@ msgstr "物" msgid "of {0}" msgstr "{0}人中" +msgid "of {cap} included" +msgstr "({cap} 含む)" + +msgid "of {cap} limit" +msgstr "(上限 {cap})" + msgid "of {total}" msgstr "{total}人中" @@ -13804,9 +13891,6 @@ msgstr "この接続を使えるのはあなただけです。チームメンバ msgid "Only you. Teammates forward their own." msgstr "あなただけです。チームメイトはそれぞれ自分で転送します。" -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "自分のワークスペースのみ。組織全体の合計はオーナーと管理者が確認できます。" - msgid "open" msgstr "開く" @@ -14398,6 +14482,10 @@ msgstr "独自コンポーネント" msgid "Other" msgstr "その他" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "その他" + msgid "Other apps" msgstr "他のアプリ" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "ページ" +msgid "Page {page} of {pages}" +msgstr "{page} / {pages} ページ" + msgid "Page actions" msgstr "ページの操作" @@ -14567,6 +14658,10 @@ msgstr "ページネーション" msgid "Pagination" msgstr "Pagination" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "有料" + msgid "Paid plans" msgstr "有料プラン" @@ -15340,6 +15435,9 @@ msgstr "前の画像" msgid "Previous match" msgstr "前の一致" +msgid "Previous page" +msgstr "前のページ" + msgid "Previous prompts" msgstr "以前のプロンプト" @@ -15576,6 +15674,10 @@ msgstr "プロパティ" msgid "Provide either id or slug" msgstr "idまたはslugのいずれかを指定してください" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "準備中" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "プロビジョニングに失敗し、サンドボックスは破棄されました。何も実行されておらず、このワークスペースは開けません。新しく作成してやり直してください。" @@ -16338,6 +16440,9 @@ msgstr "エージェントを削除する" msgid "remove the PR link" msgstr "PRリンクを削除する" +msgid "Remove this filter" +msgstr "このフィルターを解除" + msgid "Remove trigger" msgstr "トリガーを削除" @@ -17075,6 +17180,9 @@ msgstr "行の操作" msgid "Rows changed" msgstr "行の変更" +msgid "Rows per page" +msgstr "1 ページの行数" + msgid "Rule" msgstr "ルール" @@ -17215,7 +17323,7 @@ msgstr "実行中" msgid "Running" msgstr "実行中" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "実行中" @@ -17667,6 +17775,9 @@ msgstr "Kbdの使用箇所を検索中" msgid "Seats removed mid-cycle stay active until {0}." msgstr "期間の途中で削除した席は {0} まで有効です。" +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "シート、クレジット、追加使用量の上限はまだ読み込まれていません。次に請求データが更新されると表示されます。" + msgid "Secondary" msgstr "Secondary" @@ -19154,10 +19265,6 @@ msgstr "起動中" msgid "Starting" msgstr "起動中" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "起動中" - msgid "Starting {agentLabel}" msgstr "{agentLabel}を起動中" @@ -19306,23 +19413,21 @@ msgstr "停止" msgid "Stopped" msgstr "停止しました" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "停止" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "メモリを確保するため {0} ({1} GB) を停止しました" -msgid "Stopped by a person" -msgstr "ユーザーが停止" - msgid "Stopped by the usage limit" msgstr "使用量の上限により停止" msgid "Stopped moving {name}" msgstr "{name} の移動を停止しました" -msgid "Stopped when idle" -msgstr "アイドル時に停止" - msgid "Stopping the agent in {what}" msgstr "{what} のエージェントを停止中" @@ -20003,6 +20108,9 @@ msgstr "最良のエージェントは変わります。<0/>ワークフロー msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "マシンは {wanted} vCPU ではなく {actual} vCPU で起動しました。もう一度再起動してください。" +msgid "The breakdown by plan is kept for the current period only." +msgstr "プラン別の内訳は現在の期間のみ保持されます。" + msgid "The button now stands out. I checked it in your pane." msgstr "ボタンが目立つようになりました。ペインで確認済みです。" @@ -20075,6 +20183,9 @@ msgstr "このオートメーションがクラウドワークスペースを起 msgid "The extension and its local data are deleted from this browser." msgstr "拡張機能とそのローカルデータがこのブラウザから削除されます。" +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "追加使用量の上限はプランに対する割合で決まるため、金額は表示されません。" + msgid "The factory" msgstr "工場" @@ -20151,9 +20262,6 @@ msgstr "人間がマージ前に全行を読む。" msgid "The image upload expired — attach it again" msgstr "画像のアップロードの有効期限が切れました — もう一度添付してください" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "含まれる GB 時間と超過分の GB 時間は、現在の期間のみ保持されます。" - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "職務の中身が変わります。エンジニアは審美眼のあるタイピストであることをやめ、審美眼のあるディスパッチャーになります。作業を分解し、フリートに割り振り、同じモジュールに触れたエージェント同士の衝突を裁く役です。" @@ -20662,15 +20770,15 @@ msgstr "変更されるのは表示名だけで、ブランチは変わりませ msgid "this organization" msgstr "この組織" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "この組織には請求期間がないため、このページには過去 30 日間が表示されます。" - msgid "This organization has no billing periods. Choose a time range instead." msgstr "この組織には請求期間がありません。代わりに期間を選んでください。" msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "この組織はFreeプランです。{appName} MobileはProプランの組織でご利用いただけます。" +msgid "This page cannot tell when the usage limit is reached." +msgstr "このページでは使用量の上限に達したかどうかを判断できません。" + msgid "This page could not be loaded" msgstr "このページを読み込めませんでした" @@ -20876,6 +20984,9 @@ msgstr "このワークスペース" msgid "This workspace has no project to branch from" msgstr "このワークスペースには分岐元のプロジェクトがありません" +msgid "This workspace has no usage in this period." +msgstr "このワークスペースはこの期間に使用されていません。" + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "このワークスペースは削除されたか、アクセス権がなくなった可能性があります。" @@ -21458,6 +21569,10 @@ msgstr "不明" msgid "Unknown" msgstr "不明" +msgctxt "boot end" +msgid "Unknown" +msgstr "不明" + msgctxt "person" msgid "Unknown" msgstr "不明" @@ -21782,21 +21897,21 @@ msgstr "組織内で一意のURLフレンドリーな識別子。" msgid "Usage" msgstr "使用量" -msgid "Usage by day" -msgstr "日別の使用量" - -msgid "Usage by person" -msgstr "ユーザー別の使用量" - msgid "Usage is out of date" msgstr "使用状況が古くなっています" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "使用量は請求された日 (UTC) に表示されます。ワークスペースが実行された時刻より少し後になることがあります。" +msgid "usage limit" +msgstr "使用量の上限" + +msgid "Usage limit" +msgstr "使用量の上限" msgid "Usage limit reached" msgstr "使用量の上限に達しました" +msgid "Usage limit reached." +msgstr "使用量の上限に達しました。" + msgid "Usage sections" msgstr "使用量セクション" @@ -23119,6 +23234,9 @@ msgstr "組織が環境の上限に達しました。" msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "あなた自身のアカウントです。組織の連携は Paradev がそのツールにアクセスするためのもので、あなたのアカウントを接続すると、Paradev があなたのために行った作業があなたの名前で表示されます。" +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "あなた自身の使用量のみです。組織の合計、割り当て、人別の使用量はオーナーと管理者のみが表示できます。" + msgid "Your Paradev download is starting." msgstr "Paradevのダウンロードを開始しています。" @@ -23134,9 +23252,6 @@ msgstr "ご利用のプランにはクラウド環境が含まれていません msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "ご利用のプランにはクラウド環境が含まれていません。作成するには、設定の請求からアップグレードしてください。" -msgid "Your plan includes no cloud GB-hours." -msgstr "ご利用のプランにはクラウド GB 時間が含まれていません。" - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "{startDate} にプランが {planName} に変わります。本日の請求はありません。" diff --git a/packages/i18n/locales/ko/messages.po b/packages/i18n/locales/ko/messages.po index 4b632de50b8..3addaf5595f 100644 --- a/packages/i18n/locales/ko/messages.po +++ b/packages/i18n/locales/ko/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {페이지 #개 가져옴} other {페이지 #개 가 msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {worktree #개 가져오기} other {worktree #개 가져오기}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, other {최근 30일 동안 워크스페이스 #개에서}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, other {이번 기간 동안 워크스페이스 #개에서}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, other {풀 리퀘스트 #개를 머지할까요?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB 시간" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {숨겨진 #줄} other {숨겨진 #줄}}" @@ -1347,6 +1350,12 @@ msgstr "{remaining} 토큰 남음" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {파일 #개의 변경을 취소했습니다.} other {파일 #개의 변경을 취소했습니다.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, other {#개 행 중 {first}–{last}}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, other {좌석 #개에 포함}}" + msgid "{seconds}s" msgstr "{seconds}초" @@ -1364,17 +1373,17 @@ msgstr "{total}개 중 {shown}개" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount}개 표시 · {0} · 토큰 {1}개" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {#개 건너뜀} other {#개 건너뜀}}" msgid "{starCount} stars and counting" msgstr "스타 {starCount}개, 계속 늘어나는 중" -msgid "{start} to {end}" -msgstr "{start}~{end}" - -msgid "{start} to {end} (current)" -msgstr "{start}~{end}(현재)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {자동화 #개를 시작했습니다} other {자동화 #개를 시작했습니다}}" @@ -1433,9 +1442,15 @@ msgstr "환경 {limit}개 중 {used}개" msgid "{used} of {size} tokens" msgstr "{size} 토큰 중 {used}" +msgid "{used} of {total}" +msgstr "{used} / {total}" + msgid "{used} used" msgstr "{used} 사용됨" +msgid "{used} used by you" +msgstr "내가 사용한 금액 {used}" + msgid "{user} and {others} joined and left." msgstr "{user}님과 {others} 모두 참여했다가 나갔습니다." @@ -1463,9 +1478,6 @@ msgstr "{user}님이 다시 참여했습니다." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory}GB" - msgid "{waiting} Waiting" msgstr "{waiting}명 대기 중" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Union Square Ventures가 주도한 1,150만 달러 시드 투자" +msgid "0 rows" +msgstr "0개 행" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "모든 이름" msgid "Any page" msgstr "모든 페이지" +msgid "Any person" +msgstr "모든 사람" + msgid "Any project" msgstr "모든 프로젝트" @@ -2903,6 +2921,9 @@ msgstr "모든 리뷰어" msgid "any sender" msgstr "모든 발신자" +msgid "Any size" +msgstr "모든 크기" + msgid "Any status" msgstr "모든 상태" @@ -3462,6 +3483,10 @@ msgstr "내 리뷰 대기 중" msgid "Awaiting review from you or your team" msgstr "나 또는 팀의 리뷰 대기 중" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "실행 중" + msgid "Away" msgstr "자리 비움" @@ -3589,9 +3614,6 @@ msgstr "결제" msgid "Billing details" msgstr "결제 정보" -msgid "Billing period" -msgstr "결제 기간" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "결제에서 클라우드 워크스페이스 시작을 거부했습니다. 조직의 플랜에 클라우드 워크스페이스가 포함되어 있지 않거나 클라우드 사용 한도에 도달했습니다. 클라우드 워크스페이스에는 Team 또는 Ultra 플랜이 필요합니다. 설정 > 결제에서 업그레이드하거나 한도를 높이거나, 기기에서 자동화를 실행하세요." @@ -3672,6 +3694,9 @@ msgstr "자율 주행차를 등급으로 나누는 방식을 빌려 소프트웨 msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "하단 드로어로, 터치 기기에서 스와이프하기 좋습니다." +msgid "Bought credits" +msgstr "구매한 크레딧" + msgid "Bought GB-hours left: {prepaid}" msgstr "구매한 GB 시간 잔여: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "승인하면 이 애플리케이션이 자체 서비스 약관과 개인 msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "계속을 클릭하면 <0>서비스 약관과 <1>개인정보처리방침에 동의하는 것입니다." +msgid "By day" +msgstr "일별" + +msgid "By person" +msgstr "사람별" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "로그인하면 다음에 동의하게 됩니다\n" @@ -4831,9 +4862,6 @@ msgstr "이 조직에는 클라우드 사용량이 켜져 있지 않습니다." msgid "Cloud workspace" msgstr "클라우드 워크스페이스" -msgid "Cloud workspace usage for the whole organization." -msgstr "조직 전체의 클라우드 워크스페이스 사용량입니다." - msgid "Cloud workspace: asleep" msgstr "클라우드 워크스페이스: 절전 중" @@ -4859,6 +4887,9 @@ msgstr "{account}에는 클라우드 워크스페이스가 활성화되어 있 msgid "Cloud workspaces are not included in your plan." msgstr "클라우드 워크스페이스는 현재 플랜에 포함되어 있지 않습니다." +msgid "Cloud workspaces cannot start." +msgstr "클라우드 워크스페이스를 시작할 수 없습니다." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "클라우드 워크스페이스가 사용자 본인으로 커밋, 푸시하고 풀 리퀘스트를 엽니다" @@ -5815,9 +5846,6 @@ msgstr "디렉터리를 나열할 수 없습니다" msgid "Could not load agents from {0}" msgstr "{0}에서 에이전트를 불러오지 못했습니다" -msgid "Could not load cloud usage." -msgstr "클라우드 사용량을 불러올 수 없습니다." - msgid "Could not load environments" msgstr "환경을 불러오지 못했습니다" @@ -5998,6 +6026,9 @@ msgstr "세션을 시작할 수 없습니다" msgid "Could not start the chat" msgstr "채팅을 시작할 수 없습니다" +msgid "Could not start." +msgstr "시작할 수 없습니다." + msgid "Could not steer" msgstr "방향을 바꿀 수 없습니다" @@ -7776,6 +7807,9 @@ msgstr "각 화면마다 타이포그래피를 따로 설정합니다. 변경 msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "워크스페이스마다 전용 클라우드 머신이 있어 노트북을 덮어도 계속 작업합니다. 데스크톱, iPhone, iPad에서 확인하세요." +msgid "Earlier period" +msgstr "이전 기간" + msgid "Early 2024" msgstr "2024년 초" @@ -8301,6 +8335,9 @@ msgstr "매우 높음" msgid "Extra small" msgstr "아주 작음" +msgid "Extra usage" +msgstr "추가 사용량" + msgid "Extra usage limit reached" msgstr "추가 사용량 한도에 도달했습니다" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "실패" -msgid "Failed {failedAt}" -msgstr "{failedAt}에 실패" - msgid "Failed runs <0>· 7d" msgstr "실패한 실행 <0>· 7일" @@ -8532,6 +8566,9 @@ msgstr "이미지를 불러오지 못했습니다" msgid "Failed to load repositories. Please try again." msgstr "리포지토리를 불러오지 못했습니다. 다시 시도해 주세요." +msgid "Failed to load usage" +msgstr "사용량을 불러오지 못했습니다" + msgid "Failed to log out. Please try again." msgstr "로그아웃하지 못했습니다. 다시 시도해 주세요." @@ -9019,6 +9056,9 @@ msgstr "완료 · 7초 작업" msgid "Finishing the move…" msgstr "이동을 마무리하는 중…" +msgid "First page" +msgstr "첫 페이지" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "처음이신가요? <0>ChatGPT 설정에서 기기 코드 로그인을 켜세요." @@ -9284,6 +9324,13 @@ msgstr "창립 엔지니어" msgid "Free" msgstr "무료" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "무료" + +msgid "Free credits" +msgstr "무료 크레딧" + msgid "Free for everyone" msgstr "누구나 무료" @@ -10110,6 +10157,10 @@ msgstr "신원" msgid "Idle" msgstr "대기 중" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "유휴" + msgid "Idle · branch pushed" msgstr "유휴 · 브랜치 푸시됨" @@ -10303,6 +10354,9 @@ msgstr "리뷰 중" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "{appName} 데스크톱 앱에서 설정 → 원격 액세스을 열고 “릴레이를 통해 이 기기에 원격 액세스 허용”을 켜세요." +msgid "in the last 30 days" +msgstr "최근 30일 동안" + msgid "In the merge queue" msgstr "머지 대기열에 있음" @@ -10312,6 +10366,9 @@ msgstr "머지 대기열에 있습니다. 차례가 되면 GitHub가 머지합 msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "Paradev 데스크톱 앱에서 <0>설정 → 모양 → 테마를 여세요." +msgid "in this period" +msgstr "이번 기간" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "1년이 채 되지 않아 180개국의 145,000명 이상의 개발자가 {productName}에서 185만 개 이상의 에이전트 워크스페이스를 만들었습니다." @@ -10342,6 +10399,9 @@ msgstr "엔터프라이즈에 포함" msgid "Included with Team and Ultra." msgstr "Team 및 Ultra에 포함되어 있습니다." +msgid "Included with the plan" +msgstr "요금제에 포함" + msgid "Includes the Paradev-specific box variant" msgstr "Paradev 전용 box 변형 포함" @@ -10963,6 +11023,9 @@ msgstr "최근 3개월" msgid "last 30 days" msgstr "최근 30일" +msgid "Last 30 days" +msgstr "최근 30일" + msgid "Last 4 weeks" msgstr "최근 4주" @@ -11037,6 +11100,9 @@ msgstr "지연 시간" msgid "Later messages are removed." msgstr "이후 메시지가 삭제됩니다." +msgid "Later period" +msgstr "다음 기간" + msgid "Latest" msgstr "최신" @@ -11444,6 +11510,9 @@ msgstr "더 불러오는 중..." msgid "Loading more…" msgstr "더 불러오는 중…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "{targetPage}페이지 중 {loadingPage}페이지를 불러오는 중..." + msgid "Loading project…" msgstr "프로젝트 불러오는 중…" @@ -12570,6 +12639,9 @@ msgstr "다음 이미지" msgid "Next match" msgstr "다음 일치 항목" +msgid "Next page" +msgstr "다음 페이지" + msgid "Next Right Sidebar Tab" msgstr "오른쪽 사이드바 다음 탭" @@ -13292,6 +13364,9 @@ msgstr "아직 이 호스트에 워크스페이스가 없습니다" msgid "No workspaces yet" msgstr "아직 워크스페이스가 없습니다" +msgid "No workspaces." +msgstr "워크스페이스가 없습니다." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "아니요. {companyName}는 모델 호출을 프록시하지 않습니다. 에이전트는 내 구독과 키를 사용합니다." @@ -13340,6 +13415,9 @@ msgstr "이 서버에서는 사용할 수 없습니다" msgid "Not bound · configure in Settings → Links" msgstr "지정되지 않음 · 설정 → 링크에서 구성하세요" +msgid "Not broken down yet" +msgstr "아직 세부 내역 없음" + msgid "Not configured" msgstr "구성되지 않음" @@ -13352,6 +13430,9 @@ msgstr "연결 안 됨" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "연결되지 않음 · 클라우드 워크스페이스가 조직의 GitHub App으로 푸시합니다" +msgid "Not counted by billing yet" +msgstr "아직 청구에 반영되지 않음" + msgid "Not demoed here" msgstr "여기서는 시연하지 않음" @@ -13523,6 +13604,12 @@ msgstr "사물" msgid "of {0}" msgstr "{0} 중" +msgid "of {cap} included" +msgstr "({cap} 포함)" + +msgid "of {cap} limit" +msgstr "(한도 {cap})" + msgid "of {total}" msgstr "{total}명 중" @@ -13804,9 +13891,6 @@ msgstr "이 연결은 나만 사용할 수 있습니다. 팀원은 각자의 {na msgid "Only you. Teammates forward their own." msgstr "나만 사용합니다. 팀원은 각자 전달합니다." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "내 워크스페이스만 표시됩니다. 조직 합계는 소유자와 관리자용입니다." - msgid "open" msgstr "열기" @@ -14398,6 +14482,10 @@ msgstr "오리지널" msgid "Other" msgstr "기타" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "기타" + msgid "Other apps" msgstr "다른 앱" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "페이지" +msgid "Page {page} of {pages}" +msgstr "{page} / {pages} 페이지" + msgid "Page actions" msgstr "페이지 작업" @@ -14567,6 +14658,10 @@ msgstr "페이지 매김" msgid "Pagination" msgstr "페이지네이션" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "유료" + msgid "Paid plans" msgstr "유료 요금제" @@ -15340,6 +15435,9 @@ msgstr "이전 이미지" msgid "Previous match" msgstr "이전 일치 항목" +msgid "Previous page" +msgstr "이전 페이지" + msgid "Previous prompts" msgstr "이전 프롬프트" @@ -15576,6 +15674,10 @@ msgstr "속성" msgid "Provide either id or slug" msgstr "id 또는 슬러그 중 하나를 제공하세요" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "준비 중" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "프로비저닝에 실패해 샌드박스가 정리되었습니다. 실행 중인 것은 없으며 이 워크스페이스는 열 수 없습니다. 다시 시도하려면 새로 만드세요." @@ -16338,6 +16440,9 @@ msgstr "에이전트를 제거할" msgid "remove the PR link" msgstr "PR 링크를 제거할" +msgid "Remove this filter" +msgstr "이 필터 제거" + msgid "Remove trigger" msgstr "트리거 제거" @@ -17075,6 +17180,9 @@ msgstr "행 작업" msgid "Rows changed" msgstr "행 변경됨" +msgid "Rows per page" +msgstr "페이지당 행 수" + msgid "Rule" msgstr "규칙" @@ -17215,7 +17323,7 @@ msgstr "실행 중" msgid "Running" msgstr "실행 중" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "실행 중" @@ -17667,6 +17775,9 @@ msgstr "Kbd 사용처를 검색하는 중" msgid "Seats removed mid-cycle stay active until {0}." msgstr "주기 중간에 제거한 좌석은 {0}까지 활성 상태로 유지됩니다." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "좌석, 크레딧, 추가 사용량 한도가 아직 로드되지 않았습니다. 다음에 결제 데이터가 새로 고쳐지면 표시됩니다." + msgid "Secondary" msgstr "보조" @@ -19154,10 +19265,6 @@ msgstr "시작 중" msgid "Starting" msgstr "시작 중" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "시작 중" - msgid "Starting {agentLabel}" msgstr "{agentLabel} 시작 중" @@ -19306,23 +19413,21 @@ msgstr "중지됨" msgid "Stopped" msgstr "중지됨" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "중지됨" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "메모리를 확보하려고 {0}({1} GB)을(를) 중지했습니다" -msgid "Stopped by a person" -msgstr "사용자가 중지함" - msgid "Stopped by the usage limit" msgstr "사용량 한도로 중단됨" msgid "Stopped moving {name}" msgstr "{name} 옮기기를 중지했습니다" -msgid "Stopped when idle" -msgstr "유휴 상태로 중지됨" - msgid "Stopping the agent in {what}" msgstr "{what}의 에이전트 중지 중" @@ -20003,6 +20108,9 @@ msgstr "최고의 에이전트는 바뀝니다.<0/>워크플로는 그럴 필요 msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "머신이 {wanted} vCPU가 아닌 {actual} vCPU로 시작되었습니다. 다시 시작해 보세요." +msgid "The breakdown by plan is kept for the current period only." +msgstr "요금제별 내역은 현재 기간에만 보관됩니다." + msgid "The button now stands out. I checked it in your pane." msgstr "버튼이 이제 눈에 띕니다. 패널에서 확인했습니다." @@ -20075,6 +20183,9 @@ msgstr "이 자동화가 클라우드 워크스페이스를 시작하는 환경 msgid "The extension and its local data are deleted from this browser." msgstr "확장 프로그램과 로컬 데이터가 이 브라우저에서 삭제됩니다." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "추가 사용량 한도는 요금제에 대한 비율이므로 금액이 표시되지 않습니다." + msgid "The factory" msgstr "공장" @@ -20151,9 +20262,6 @@ msgstr "사람이 머지 전에 모든 줄을 읽습니다." msgid "The image upload expired — attach it again" msgstr "이미지 업로드가 만료되었습니다 — 다시 첨부하세요" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "포함된 GB 시간과 초과 GB 시간은 현재 기간에만 보관됩니다." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "직무의 성격이 바뀝니다. 엔지니어는 안목 있는 타자수가 아니라 안목 있는 배차원이 됩니다. 일을 쪼개고, 플릿에 배분하고, 같은 모듈을 건드린 에이전트들 사이의 충돌을 중재합니다." @@ -20662,15 +20770,15 @@ msgstr "표시 이름만 변경되며 브랜치는 바뀌지 않습니다." msgid "this organization" msgstr "이 조직" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "이 조직에는 결제 기간이 없으므로 이 페이지에는 최근 30일이 표시됩니다." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "이 조직에는 청구 기간이 없습니다. 대신 시간 범위를 선택하세요." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "이 조직은 Free 플랜을 사용 중입니다. {appName} Mobile은 Pro 플랜 조직에서 사용할 수 있습니다." +msgid "This page cannot tell when the usage limit is reached." +msgstr "이 페이지에서는 사용량 한도에 도달했는지 알 수 없습니다." + msgid "This page could not be loaded" msgstr "이 페이지를 불러올 수 없습니다" @@ -20876,6 +20984,9 @@ msgstr "이 워크스페이스" msgid "This workspace has no project to branch from" msgstr "이 워크스페이스에는 분기할 프로젝트가 없습니다" +msgid "This workspace has no usage in this period." +msgstr "이 워크스페이스는 이번 기간에 사용량이 없습니다." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "이 워크스페이스가 제거되었거나 더 이상 접근 권한이 없을 수 있습니다." @@ -21458,6 +21569,10 @@ msgstr "알 수 없음" msgid "Unknown" msgstr "알 수 없음" +msgctxt "boot end" +msgid "Unknown" +msgstr "알 수 없음" + msgctxt "person" msgid "Unknown" msgstr "알 수 없음" @@ -21782,21 +21897,21 @@ msgstr "URL에 쓰기 좋은 식별자로, 조직 안에서 고유해야 합니 msgid "Usage" msgstr "사용량" -msgid "Usage by day" -msgstr "일별 사용량" - -msgid "Usage by person" -msgstr "사용자별 사용량" - msgid "Usage is out of date" msgstr "사용량 정보가 오래되었습니다" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "사용량은 청구된 UTC 날짜에 표시되며, 워크스페이스가 실행된 시점보다 조금 늦을 수 있습니다." +msgid "usage limit" +msgstr "사용량 한도" + +msgid "Usage limit" +msgstr "사용량 한도" msgid "Usage limit reached" msgstr "사용량 한도에 도달했습니다" +msgid "Usage limit reached." +msgstr "사용량 한도에 도달했습니다." + msgid "Usage sections" msgstr "사용량 섹션" @@ -23119,6 +23234,9 @@ msgstr "조직이 환경 한도에 도달했습니다." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "본인의 계정입니다. 조직의 통합은 Paradev가 해당 도구에 접근하게 하며, 본인 계정을 연결하면 Paradev가 대신 한 작업이 본인 이름으로 표시됩니다." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "내 사용량만 표시됩니다. 조직의 합계, 할당량, 사람별 사용량은 소유자와 관리자만 볼 수 있습니다." + msgid "Your Paradev download is starting." msgstr "Paradev 다운로드가 시작됩니다." @@ -23134,9 +23252,6 @@ msgstr "현재 플랜에는 클라우드 환경이 포함되어 있지 않습니 msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "현재 플랜에는 클라우드 환경이 포함되어 있지 않습니다. 환경을 만들려면 설정, 결제에서 업그레이드하세요." -msgid "Your plan includes no cloud GB-hours." -msgstr "플랜에 클라우드 GB 시간이 포함되어 있지 않습니다." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "{startDate}에 플랜이 {planName}(으)로 바뀝니다. 오늘은 결제되지 않습니다." diff --git a/packages/i18n/locales/nl/messages.po b/packages/i18n/locales/nl/messages.po index 1864ea3d1de..df528e36c48 100644 --- a/packages/i18n/locales/nl/messages.po +++ b/packages/i18n/locales/nl/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {# pagina opgehaald} other {# pagina's opgehaald}}" msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {# worktree importeren} other {# worktrees importeren}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {in # werkruimte in de afgelopen 30 dagen} other {in # werkruimtes in de afgelopen 30 dagen}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {in # werkruimte in deze periode} other {in # werkruimtes in deze periode}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {# pull request mergen?} other {# pull requests mergen?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-uren" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# verborgen regel} other {# verborgen regels}}" @@ -1347,6 +1350,12 @@ msgstr "Nog {remaining} tokens over" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Wijzigingen in # bestand ongedaan gemaakt.} other {Wijzigingen in # bestanden ongedaan gemaakt.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} van # rij} other {{first}–{last} van # rijen}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Inbegrepen bij # plek} other {Inbegrepen bij # plekken}}" + msgid "{seconds}s" msgstr "{seconds} s" @@ -1364,17 +1373,17 @@ msgstr "{shown} van {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount} getoond · {0} · {1} tokens" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# overgeslagen} other {# overgeslagen}}" msgid "{starCount} stars and counting" msgstr "{starCount} sterren en het worden er meer" -msgid "{start} to {end}" -msgstr "{start} tot {end}" - -msgid "{start} to {end} (current)" -msgstr "{start} tot {end} (huidig)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {# automatisering gestart} other {# automatiseringen gestart}}" @@ -1433,9 +1442,15 @@ msgstr "{used} van {limit} omgevingen" msgid "{used} of {size} tokens" msgstr "{used} van {size} tokens" +msgid "{used} of {total}" +msgstr "{used} van {total}" + msgid "{used} used" msgstr "{used} gebruikt" +msgid "{used} used by you" +msgstr "{used} door jou gebruikt" + msgid "{user} and {others} joined and left." msgstr "{user} en {others} zijn erbij gekomen en weer vertrokken." @@ -1463,9 +1478,6 @@ msgstr "{user} is opnieuw erbij gekomen." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} wachten" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Seedronde van $ 11,5 mln onder leiding van Union Square Ventures" +msgid "0 rows" +msgstr "0 rijen" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Elke naam" msgid "Any page" msgstr "Elke pagina" +msgid "Any person" +msgstr "Iedere persoon" + msgid "Any project" msgstr "Elk project" @@ -2903,6 +2921,9 @@ msgstr "Alle reviewers" msgid "any sender" msgstr "elke afzender" +msgid "Any size" +msgstr "Elke grootte" + msgid "Any status" msgstr "Elke status" @@ -3462,6 +3483,10 @@ msgstr "Wacht op review van jou" msgid "Awaiting review from you or your team" msgstr "Wacht op review van jou of je team" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Actief" + msgid "Away" msgstr "Afwezig" @@ -3589,9 +3614,6 @@ msgstr "Facturering" msgid "Billing details" msgstr "Factuurgegevens" -msgid "Billing period" -msgstr "Factureringsperiode" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Facturering weigerde een cloudwerkruimte te starten: het abonnement van de organisatie bevat geen cloudwerkruimtes, of de limiet voor cloudgebruik is bereikt. Cloudwerkruimtes vereisen het Team- of Ultra-abonnement. Upgrade of verhoog de limiet in Instellingen > Facturering, of voer de automatisering uit op een apparaat." @@ -3672,6 +3694,9 @@ msgstr "Geleend van hoe zelfrijdende auto's worden beoordeeld, toegepast op hoe msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Lade onderaan, swipevriendelijk op touchapparaten." +msgid "Bought credits" +msgstr "Gekocht tegoed" + msgid "Bought GB-hours left: {prepaid}" msgstr "Gekochte GB-uren over: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Door te autoriseren geef je deze applicatie toegang tot je gegevens volg msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Door op doorgaan te klikken ga je akkoord met onze <0>servicevoorwaarden en het <1>privacybeleid." +msgid "By day" +msgstr "Per dag" + +msgid "By person" +msgstr "Per persoon" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Door in te loggen ga je akkoord met onze\n" @@ -4831,9 +4862,6 @@ msgstr "Cloudgebruik is niet ingeschakeld voor deze organisatie." msgid "Cloud workspace" msgstr "Cloudwerkruimte" -msgid "Cloud workspace usage for the whole organization." -msgstr "Gebruik van cloudwerkruimten voor de hele organisatie." - msgid "Cloud workspace: asleep" msgstr "Cloudwerkruimte: in slaapstand" @@ -4859,6 +4887,9 @@ msgstr "Cloudwerkruimtes zijn niet ingeschakeld voor {account}. Ze horen bij de msgid "Cloud workspaces are not included in your plan." msgstr "Cloudwerkruimtes zijn niet inbegrepen in je plan." +msgid "Cloud workspaces cannot start." +msgstr "Cloudwerkruimtes kunnen niet starten." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Cloudwerkruimtes committen, pushen en openen pull requests als jou" @@ -5815,9 +5846,6 @@ msgstr "Kan map niet uitlezen" msgid "Could not load agents from {0}" msgstr "Kan agents van {0} niet laden" -msgid "Could not load cloud usage." -msgstr "Cloudgebruik kon niet worden geladen." - msgid "Could not load environments" msgstr "Kan omgevingen niet laden" @@ -5998,6 +6026,9 @@ msgstr "Kan sessie niet starten" msgid "Could not start the chat" msgstr "Kan de chat niet starten" +msgid "Could not start." +msgstr "Kon niet starten." + msgid "Could not steer" msgstr "Kan niet bijsturen" @@ -7776,6 +7807,9 @@ msgstr "Elk oppervlak heeft zijn eigen typografie. Wijzigingen zie je meteen in msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Elke werkruimte krijgt een eigen cloudmachine en werkt door als je laptop dicht is. Kijk mee op desktop, iPhone of iPad." +msgid "Earlier period" +msgstr "Vorige periode" + msgid "Early 2024" msgstr "Begin 2024" @@ -8301,6 +8335,9 @@ msgstr "Zeer hoog" msgid "Extra small" msgstr "Extra klein" +msgid "Extra usage" +msgstr "Extra gebruik" + msgid "Extra usage limit reached" msgstr "Limiet voor extra gebruik bereikt" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Mislukt" -msgid "Failed {failedAt}" -msgstr "Mislukt op {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Mislukte uitvoeringen <0>· 7d" @@ -8532,6 +8566,9 @@ msgstr "Laden van afbeelding mislukt" msgid "Failed to load repositories. Please try again." msgstr "Laden van repository's mislukt. Probeer het opnieuw." +msgid "Failed to load usage" +msgstr "Gebruik kon niet worden geladen" + msgid "Failed to log out. Please try again." msgstr "Uitloggen mislukt. Probeer het opnieuw." @@ -9019,6 +9056,9 @@ msgstr "klaar · 7s gewerkt" msgid "Finishing the move…" msgstr "Verplaatsing afronden…" +msgid "First page" +msgstr "Eerste pagina" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Eerste keer? Zet inloggen met apparaatcode aan in de <0>ChatGPT-instellingen." @@ -9284,6 +9324,13 @@ msgstr "Oprichtend engineer" msgid "Free" msgstr "Free" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Gratis" + +msgid "Free credits" +msgstr "Gratis tegoed" + msgid "Free for everyone" msgstr "Gratis voor iedereen" @@ -10110,6 +10157,10 @@ msgstr "Identiteit" msgid "Idle" msgstr "Inactief" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Inactief" + msgid "Idle · branch pushed" msgstr "Inactief · branch gepusht" @@ -10303,6 +10354,9 @@ msgstr "In review" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "Open in de {appName}-desktopapp Instellingen → Externe toegang en zet “Externe toegang tot dit apparaat via de relay toestaan” aan." +msgid "in the last 30 days" +msgstr "in de afgelopen 30 dagen" + msgid "In the merge queue" msgstr "In de mergewachtrij" @@ -10312,6 +10366,9 @@ msgstr "In de mergewachtrij. GitHub merget hem als hij aan de beurt is." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "Open in de Paradev-desktopapp <0>Instellingen → Uiterlijk → Thema." +msgid "in this period" +msgstr "in deze periode" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "In minder dan een jaar hebben meer dan 145.000 ontwikkelaars in 180 landen {productName} gebruikt en meer dan 1,85 miljoen agent-werkruimtes aangemaakt." @@ -10342,6 +10399,9 @@ msgstr "Inbegrepen bij Enterprise" msgid "Included with Team and Ultra." msgstr "Inbegrepen bij Team en Ultra." +msgid "Included with the plan" +msgstr "Inbegrepen in het abonnement" + msgid "Includes the Paradev-specific box variant" msgstr "Inclusief de Paradev-specifieke box-variant" @@ -10963,6 +11023,9 @@ msgstr "Laatste 3 maanden" msgid "last 30 days" msgstr "laatste 30 dagen" +msgid "Last 30 days" +msgstr "Afgelopen 30 dagen" + msgid "Last 4 weeks" msgstr "Laatste 4 weken" @@ -11037,6 +11100,9 @@ msgstr "Latentie" msgid "Later messages are removed." msgstr "Latere berichten worden verwijderd." +msgid "Later period" +msgstr "Volgende periode" + msgid "Latest" msgstr "Nieuwste" @@ -11444,6 +11510,9 @@ msgstr "Meer laden..." msgid "Loading more…" msgstr "Meer laden…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Pagina {loadingPage} van {targetPage} laden..." + msgid "Loading project…" msgstr "Project laden…" @@ -12570,6 +12639,9 @@ msgstr "Volgende afbeelding" msgid "Next match" msgstr "Volgende overeenkomst" +msgid "Next page" +msgstr "Volgende pagina" + msgid "Next Right Sidebar Tab" msgstr "Volgend tabblad in de rechterzijbalk" @@ -13292,6 +13364,9 @@ msgstr "Nog geen werkruimtes op deze host" msgid "No workspaces yet" msgstr "Nog geen werkruimtes" +msgid "No workspaces." +msgstr "Geen werkruimtes." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Nee. {companyName} stuurt modelaanroepen nooit via een proxy. Agents gebruiken je eigen abonnementen en sleutels." @@ -13340,6 +13415,9 @@ msgstr "Niet beschikbaar op deze server" msgid "Not bound · configure in Settings → Links" msgstr "Niet gekoppeld · in te stellen bij Instellingen → Links" +msgid "Not broken down yet" +msgstr "Nog niet uitgesplitst" + msgid "Not configured" msgstr "Niet geconfigureerd" @@ -13352,6 +13430,9 @@ msgstr "Niet verbonden" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Niet gekoppeld · cloudwerkruimtes pushen als de GitHub App van je organisatie" +msgid "Not counted by billing yet" +msgstr "Nog niet meegeteld door facturering" + msgid "Not demoed here" msgstr "Hier niet gedemonstreerd" @@ -13523,6 +13604,12 @@ msgstr "Objecten" msgid "of {0}" msgstr "van {0}" +msgid "of {cap} included" +msgstr "van {cap} inbegrepen" + +msgid "of {cap} limit" +msgstr "van een limiet van {cap}" + msgid "of {total}" msgstr "van {total}" @@ -13804,9 +13891,6 @@ msgstr "Alleen jij kunt deze verbinding gebruiken. Teamgenoten koppelen hun eige msgid "Only you. Teammates forward their own." msgstr "Alleen jij. Teamgenoten sturen hun eigen poorten door." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Alleen je eigen werkruimten. De totalen van de organisatie zijn voor eigenaren en beheerders." - msgid "open" msgstr "openen" @@ -14398,6 +14482,10 @@ msgstr "Originelen" msgid "Other" msgstr "Overig" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Overig" + msgid "Other apps" msgstr "Andere apps" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Pagina" +msgid "Page {page} of {pages}" +msgstr "Pagina {page} van {pages}" + msgid "Page actions" msgstr "Pagina-acties" @@ -14567,6 +14658,10 @@ msgstr "paginering" msgid "Pagination" msgstr "Paginering" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Betaald" + msgid "Paid plans" msgstr "Betaalde abonnementen" @@ -15340,6 +15435,9 @@ msgstr "Vorige afbeelding" msgid "Previous match" msgstr "Vorige overeenkomst" +msgid "Previous page" +msgstr "Vorige pagina" + msgid "Previous prompts" msgstr "Eerdere prompts" @@ -15576,6 +15674,10 @@ msgstr "Eigenschappen" msgid "Provide either id or slug" msgstr "Geef een id of een slug op" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Wordt ingericht" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Het provisioneren is mislukt en de sandbox is afgebroken. Er draait niets en deze werkruimte kan niet worden geopend. Maak een nieuwe aan om het opnieuw te proberen." @@ -16338,6 +16440,9 @@ msgstr "de agent verwijderen" msgid "remove the PR link" msgstr "de PR-koppeling verwijderen" +msgid "Remove this filter" +msgstr "Dit filter verwijderen" + msgid "Remove trigger" msgstr "Trigger verwijderen" @@ -17075,6 +17180,9 @@ msgstr "Rij-acties" msgid "Rows changed" msgstr "Rijen gewijzigd" +msgid "Rows per page" +msgstr "Rijen per pagina" + msgid "Rule" msgstr "Regel" @@ -17215,7 +17323,7 @@ msgstr "loopt" msgid "Running" msgstr "Bezig" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Actief" @@ -17667,6 +17775,9 @@ msgstr "Zoeken naar Kbd-gebruik" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Plekken die halverwege de periode zijn verwijderd, blijven actief tot {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Plekken, tegoed en de limiet voor extra gebruik zijn nog niet geladen. Ze verschijnen wanneer de factureringsgegevens de volgende keer worden vernieuwd." + msgid "Secondary" msgstr "Secundair" @@ -19154,10 +19265,6 @@ msgstr "starten" msgid "Starting" msgstr "Starten" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Wordt gestart" - msgid "Starting {agentLabel}" msgstr "{agentLabel} starten" @@ -19306,23 +19413,21 @@ msgstr "gestopt" msgid "Stopped" msgstr "Gestopt" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Gestopt" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "{0} ({1} GB) gestopt om geheugen vrij te maken" -msgid "Stopped by a person" -msgstr "Gestopt door een persoon" - msgid "Stopped by the usage limit" msgstr "Gestopt door de gebruikslimiet" msgid "Stopped moving {name}" msgstr "Verplaatsen van {name} gestopt" -msgid "Stopped when idle" -msgstr "Gestopt bij inactiviteit" - msgid "Stopping the agent in {what}" msgstr "Agent in {what} wordt gestopt" @@ -20003,6 +20108,9 @@ msgstr "De beste agent verandert.<0/>Jouw workflow niet." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "De machine kwam terug met {actual} vCPU in plaats van {wanted}. Start hem opnieuw om het nog eens te proberen." +msgid "The breakdown by plan is kept for the current period only." +msgstr "De uitsplitsing per abonnement wordt alleen voor de huidige periode bewaard." + msgid "The button now stands out. I checked it in your pane." msgstr "De knop valt nu op. Ik heb het gecontroleerd in je paneel." @@ -20075,6 +20183,9 @@ msgstr "De omgeving waaruit deze automatisering cloudwerkruimtes start, is gearc msgid "The extension and its local data are deleted from this browser." msgstr "De extensie en de lokale gegevens ervan worden uit deze browser verwijderd." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "De limiet voor extra gebruik is een percentage van het abonnement, daarom wordt het bedrag niet getoond." + msgid "The factory" msgstr "De fabriek" @@ -20151,9 +20262,6 @@ msgstr "De mens leest elke regel voordat het merget." msgid "The image upload expired — attach it again" msgstr "De upload van de afbeelding is verlopen — voeg deze opnieuw toe" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Inbegrepen GB-uren en GB-uren boven het abonnement worden alleen voor de huidige periode bewaard." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "De functieomschrijving verschuift. Engineers zijn geen typisten met smaak meer, maar dispatchers met smaak: werk opdelen, het naar vloten routeren, en conflicten beslechten tussen agents die dezelfde module aanraakten." @@ -20662,15 +20770,15 @@ msgstr "Dit verandert alleen de weergavenaam, niet de branch." msgid "this organization" msgstr "deze organisatie" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Deze organisatie heeft geen factureringsperioden, dus deze pagina toont de afgelopen 30 dagen." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Deze organisatie heeft geen factuurperiodes. Kies in plaats daarvan een tijdsbereik." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Deze organisatie zit op het Free-plan. {appName} Mobile is beschikbaar voor organisaties met Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Deze pagina kan niet zien wanneer de gebruikslimiet is bereikt." + msgid "This page could not be loaded" msgstr "Deze pagina kon niet worden geladen" @@ -20876,6 +20984,9 @@ msgstr "Deze werkruimte" msgid "This workspace has no project to branch from" msgstr "Deze workspace heeft geen project om vanaf af te splitsen" +msgid "This workspace has no usage in this period." +msgstr "Deze werkruimte heeft in deze periode geen gebruik." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Deze werkruimte is mogelijk verwijderd, of je hebt er geen toegang meer toe." @@ -21458,6 +21569,10 @@ msgstr "onbekend" msgid "Unknown" msgstr "Onbekend" +msgctxt "boot end" +msgid "Unknown" +msgstr "Onbekend" + msgctxt "person" msgid "Unknown" msgstr "Onbekend" @@ -21782,21 +21897,21 @@ msgstr "URL-vriendelijke identifier, uniek binnen je organisatie." msgid "Usage" msgstr "Gebruik" -msgid "Usage by day" -msgstr "Gebruik per dag" - -msgid "Usage by person" -msgstr "Gebruik per persoon" - msgid "Usage is out of date" msgstr "De gebruiksgegevens zijn verouderd" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Gebruik wordt getoond op de UTC-dag waarop het is gefactureerd, wat iets later kan zijn dan toen de werkruimte draaide." +msgid "usage limit" +msgstr "gebruikslimiet" + +msgid "Usage limit" +msgstr "Gebruikslimiet" msgid "Usage limit reached" msgstr "Gebruikslimiet bereikt" +msgid "Usage limit reached." +msgstr "Gebruikslimiet bereikt." + msgid "Usage sections" msgstr "Onderdelen van gebruik" @@ -23119,6 +23234,9 @@ msgstr "Je organisatie heeft de limiet voor omgevingen bereikt." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Je eigen accounts. De integraties van je organisatie geven Paradev toegang tot haar tools; als je die van jou koppelt, verschijnt het werk dat Paradev voor je doet onder jouw naam." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Alleen je eigen gebruik. De totalen van de organisatie, haar tegoed en het gebruik per persoon zijn voor eigenaren en beheerders." + msgid "Your Paradev download is starting." msgstr "Je Paradev-download start." @@ -23134,9 +23252,6 @@ msgstr "Je abonnement bevat geen cloudomgevingen." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Je abonnement bevat geen cloudomgevingen. Upgrade in Instellingen, Facturering om er een te maken." -msgid "Your plan includes no cloud GB-hours." -msgstr "Je abonnement bevat geen cloud-GB-uren." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Je abonnement gaat op {startDate} over naar {planName}. Vandaag wordt niets afgeschreven." diff --git a/packages/i18n/locales/pl/messages.po b/packages/i18n/locales/pl/messages.po index 62fc60656e3..c24de5f131c 100644 --- a/packages/i18n/locales/pl/messages.po +++ b/packages/i18n/locales/pl/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {pobrano # stronę} few {pobrano # strony} many {pob msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Importuj # worktree} few {Importuj # worktree} many {Importuj # worktree} other {Importuj # worktree}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {w # obszarze roboczym w ostatnich 30 dniach} few {w # obszarach roboczych w ostatnich 30 dniach} many {w # obszarach roboczych w ostatnich 30 dniach} other {w # obszaru roboczego w ostatnich 30 dniach}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {w # obszarze roboczym w tym okresie} few {w # obszarach roboczych w tym okresie} many {w # obszarach roboczych w tym okresie} other {w # obszaru roboczego w tym okresie}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {Scalić # pull request?} few {Scalić # pull requesty?} many {Scalić # pull requestów?} other {Scalić # pull requesta?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-godzin" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# ukryty wiersz} few {# ukryte wiersze} many {# ukrytych wierszy} other {# ukrytego wiersza}}" @@ -1347,6 +1350,12 @@ msgstr "Pozostałe tokeny: {remaining}" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Cofnięto zmiany w # pliku.} few {Cofnięto zmiany w # plikach.} many {Cofnięto zmiany w # plikach.} other {Cofnięto zmiany w # pliku.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} z # wiersza} few {{first}–{last} z # wierszy} many {{first}–{last} z # wierszy} other {{first}–{last} z # wiersza}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {W cenie # miejsca} few {W cenie # miejsc} many {W cenie # miejsc} other {W cenie # miejsca}}" + msgid "{seconds}s" msgstr "{seconds} s" @@ -1364,17 +1373,17 @@ msgstr "{shown} z {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "pokazano: {shownCount} · {0} · {1} tokenów" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# pominięty} few {# pominięte} many {# pominiętych} other {# pominiętego}}" msgid "{starCount} stars and counting" msgstr "{starCount} gwiazdek i rośnie" -msgid "{start} to {end}" -msgstr "Od {start} do {end}" - -msgid "{start} to {end} (current)" -msgstr "Od {start} do {end} (bieżący)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {Uruchomiono # automatyzację} few {Uruchomiono # automatyzacje} many {Uruchomiono # automatyzacji} other {Uruchomiono # automatyzacji}}" @@ -1433,9 +1442,15 @@ msgstr "{used} z {limit} środowisk" msgid "{used} of {size} tokens" msgstr "{used} z {size} tokenów" +msgid "{used} of {total}" +msgstr "{used} z {total}" + msgid "{used} used" msgstr "Wykorzystano {used}" +msgid "{used} used by you" +msgstr "Twoje zużycie: {used}" + msgid "{user} and {others} joined and left." msgstr "{user} i {others} dołączyli i wyszli." @@ -1463,9 +1478,6 @@ msgstr "{user} ponownie dołączył(a)." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} oczekuje" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Runda seed o wartości 11,5 mln USD prowadzona przez Union Square Ventures" +msgid "0 rows" +msgstr "0 wierszy" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Dowolna nazwa" msgid "Any page" msgstr "Dowolna strona" +msgid "Any person" +msgstr "Każda osoba" + msgid "Any project" msgstr "Dowolny projekt" @@ -2903,6 +2921,9 @@ msgstr "Dowolny recenzent" msgid "any sender" msgstr "dowolny nadawca" +msgid "Any size" +msgstr "Każdy rozmiar" + msgid "Any status" msgstr "Dowolny status" @@ -3462,6 +3483,10 @@ msgstr "Oczekuje na Twój przegląd" msgid "Awaiting review from you or your team" msgstr "Oczekuje na przegląd Twój lub Twojego zespołu" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Aktywny" + msgid "Away" msgstr "Zaraz wracam" @@ -3589,9 +3614,6 @@ msgstr "Rozliczenia" msgid "Billing details" msgstr "Dane rozliczeniowe" -msgid "Billing period" -msgstr "Okres rozliczeniowy" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Rozliczenia odmówiły uruchomienia chmurowej przestrzeni roboczej: plan organizacji nie obejmuje chmurowych przestrzeni roboczych albo osiągnięto limit użycia chmury. Chmurowe przestrzenie robocze wymagają planu Team lub Ultra. Zmień plan lub podnieś limit w Ustawienia > Rozliczenia albo uruchom automatyzację na urządzeniu." @@ -3672,6 +3694,9 @@ msgstr "Zapożyczone z tego, jak ocenia się samochody autonomiczne, i zastosowa msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Dolna szuflada, przyjazna gestom na urządzeniach dotykowych." +msgid "Bought credits" +msgstr "Kupione kredyty" + msgid "Bought GB-hours left: {prepaid}" msgstr "Pozostałe kupione GB-godziny: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Autoryzując, zezwalasz tej aplikacji na dostęp do Twoich danych zgodni msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Klikając „kontynuuj”, akceptujesz <0>Warunki korzystania z usługi i <1>Politykę prywatności." +msgid "By day" +msgstr "Według dni" + +msgid "By person" +msgstr "Według osób" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Logując się, akceptujesz nasze\n" @@ -4831,9 +4862,6 @@ msgstr "Użycie chmury nie jest włączone dla tej organizacji." msgid "Cloud workspace" msgstr "Obszar roboczy w chmurze" -msgid "Cloud workspace usage for the whole organization." -msgstr "Użycie chmurowych obszarów roboczych w całej organizacji." - msgid "Cloud workspace: asleep" msgstr "Obszar roboczy w chmurze: uśpiony" @@ -4859,6 +4887,9 @@ msgstr "Chmurowe przestrzenie robocze nie są włączone dla {account}. Są dost msgid "Cloud workspaces are not included in your plan." msgstr "Obszary robocze w chmurze nie są objęte Twoim planem." +msgid "Cloud workspaces cannot start." +msgstr "Obszary robocze w chmurze nie mogą się uruchomić." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Obszary robocze w chmurze commitują, pushują i otwierają pull requesty w Twoim imieniu" @@ -5815,9 +5846,6 @@ msgstr "Nie udało się wylistować katalogu" msgid "Could not load agents from {0}" msgstr "Nie udało się wczytać agentów z {0}" -msgid "Could not load cloud usage." -msgstr "Nie udało się wczytać użycia chmury." - msgid "Could not load environments" msgstr "Nie udało się wczytać środowisk" @@ -5998,6 +6026,9 @@ msgstr "Nie udało się uruchomić sesji" msgid "Could not start the chat" msgstr "Nie udało się rozpocząć czatu" +msgid "Could not start." +msgstr "Nie udało się uruchomić." + msgid "Could not steer" msgstr "Nie udało się pokierować agentem" @@ -7776,6 +7807,9 @@ msgstr "Każda powierzchnia ma własną typografię. Zmiany widać od razu w pod msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Każdy obszar roboczy dostaje własną maszynę w chmurze i działa dalej, gdy laptop jest zamknięty. Sprawdzaj postępy na komputerze, iPhonie lub iPadzie." +msgid "Earlier period" +msgstr "Poprzedni okres" + msgid "Early 2024" msgstr "Początek 2024" @@ -8301,6 +8335,9 @@ msgstr "Bardzo wysoki" msgid "Extra small" msgstr "Bardzo mały" +msgid "Extra usage" +msgstr "Dodatkowe zużycie" + msgid "Extra usage limit reached" msgstr "Osiągnięto limit dodatkowego użycia" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Niepowodzenie" -msgid "Failed {failedAt}" -msgstr "Niepowodzenie: {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Nieudane uruchomienia <0>· 7 dni" @@ -8532,6 +8566,9 @@ msgstr "Nie udało się wczytać obrazu" msgid "Failed to load repositories. Please try again." msgstr "Nie udało się wczytać repozytoriów. Spróbuj ponownie." +msgid "Failed to load usage" +msgstr "Nie udało się wczytać użycia" + msgid "Failed to log out. Please try again." msgstr "Nie udało się wylogować. Spróbuj ponownie." @@ -9019,6 +9056,9 @@ msgstr "zakończono · pracował 7 s" msgid "Finishing the move…" msgstr "Kończenie przenoszenia…" +msgid "First page" +msgstr "Pierwsza strona" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Pierwszy raz? Włącz logowanie kodem urządzenia w <0>ustawieniach ChatGPT." @@ -9284,6 +9324,13 @@ msgstr "Inżynier założyciel" msgid "Free" msgstr "Darmowy" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Darmowe" + +msgid "Free credits" +msgstr "Darmowe kredyty" + msgid "Free for everyone" msgstr "Za darmo dla wszystkich" @@ -10110,6 +10157,10 @@ msgstr "Tożsamość" msgid "Idle" msgstr "Bezczynny" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Bezczynny" + msgid "Idle · branch pushed" msgstr "Bezczynny · gałąź wypchnięta" @@ -10303,6 +10354,9 @@ msgstr "W recenzji" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "W aplikacji {appName} na komputerze otwórz Ustawienia → Dostęp zdalny i włącz „Zezwól na zdalny dostęp do tego urządzenia przez przekaźnik”." +msgid "in the last 30 days" +msgstr "w ostatnich 30 dniach" + msgid "In the merge queue" msgstr "W kolejce scalania" @@ -10312,6 +10366,9 @@ msgstr "W kolejce scalania. GitHub scali go, gdy nadejdzie jego kolej." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "W aplikacji Paradev otwórz <0>Ustawienia → Wygląd → Motyw." +msgid "in this period" +msgstr "w tym okresie" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "W niecały rok ponad 145 000 programistów ze 180 krajów uruchomiło {productName} i utworzyło ponad 1,85 mln obszarów roboczych agentów." @@ -10342,6 +10399,9 @@ msgstr "W pakiecie Enterprise" msgid "Included with Team and Ultra." msgstr "W planach Team i Ultra." +msgid "Included with the plan" +msgstr "W cenie planu" + msgid "Includes the Paradev-specific box variant" msgstr "Zawiera wariant box specyficzny dla Paradev" @@ -10963,6 +11023,9 @@ msgstr "Ostatnie 3 miesiące" msgid "last 30 days" msgstr "ostatnie 30 dni" +msgid "Last 30 days" +msgstr "Ostatnie 30 dni" + msgid "Last 4 weeks" msgstr "Ostatnie 4 tygodnie" @@ -11037,6 +11100,9 @@ msgstr "Opóźnienie" msgid "Later messages are removed." msgstr "Późniejsze wiadomości zostaną usunięte." +msgid "Later period" +msgstr "Następny okres" + msgid "Latest" msgstr "Najnowsza" @@ -11444,6 +11510,9 @@ msgstr "Wczytywanie kolejnych..." msgid "Loading more…" msgstr "Wczytywanie kolejnych…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Wczytywanie strony {loadingPage} z {targetPage}..." + msgid "Loading project…" msgstr "Wczytywanie projektu…" @@ -12570,6 +12639,9 @@ msgstr "Następny obraz" msgid "Next match" msgstr "Następne dopasowanie" +msgid "Next page" +msgstr "Następna strona" + msgid "Next Right Sidebar Tab" msgstr "Następna karta prawego paska bocznego" @@ -13292,6 +13364,9 @@ msgstr "Brak obszarów roboczych na tym hoście" msgid "No workspaces yet" msgstr "Brak obszarów roboczych" +msgid "No workspaces." +msgstr "Brak obszarów roboczych." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Nie. {companyName} nigdy nie pośredniczy w wywołaniach modeli jako proxy. Agenci korzystają z twoich subskrypcji i kluczy." @@ -13340,6 +13415,9 @@ msgstr "Niedostępne na tym serwerze" msgid "Not bound · configure in Settings → Links" msgstr "Nieprzypisane · skonfiguruj w Ustawienia → Linki" +msgid "Not broken down yet" +msgstr "Jeszcze nie rozbite" + msgid "Not configured" msgstr "Nieskonfigurowane" @@ -13352,6 +13430,9 @@ msgstr "Niepołączone" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Niepołączone · obszary robocze w chmurze pushują jako GitHub App twojej organizacji" +msgid "Not counted by billing yet" +msgstr "Jeszcze nie uwzględnione w rozliczeniu" + msgid "Not demoed here" msgstr "Nie pokazano tutaj" @@ -13523,6 +13604,12 @@ msgstr "Obiekty" msgid "of {0}" msgstr "z {0}" +msgid "of {cap} included" +msgstr "z {cap} w planie" + +msgid "of {cap} limit" +msgstr "z limitu {cap}" + msgid "of {total}" msgstr "z {total}" @@ -13804,9 +13891,6 @@ msgstr "Tylko ty możesz używać tego połączenia. Członkowie zespołu łącz msgid "Only you. Teammates forward their own." msgstr "Tylko ty. Członkowie zespołu przekierowują własne." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Tylko Twoje obszary robocze. Sumy organizacji widzą właściciele i administratorzy." - msgid "open" msgstr "otwórz" @@ -14398,6 +14482,10 @@ msgstr "Oryginały" msgid "Other" msgstr "Inne" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Inne" + msgid "Other apps" msgstr "Inne aplikacje" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Strona" +msgid "Page {page} of {pages}" +msgstr "Strona {page} z {pages}" + msgid "Page actions" msgstr "Akcje strony" @@ -14567,6 +14658,10 @@ msgstr "paginacja" msgid "Pagination" msgstr "Paginacja" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Płatne" + msgid "Paid plans" msgstr "Płatne plany" @@ -15340,6 +15435,9 @@ msgstr "Poprzedni obraz" msgid "Previous match" msgstr "Poprzednie dopasowanie" +msgid "Previous page" +msgstr "Poprzednia strona" + msgid "Previous prompts" msgstr "Poprzednie prompty" @@ -15576,6 +15674,10 @@ msgstr "Właściwości" msgid "Provide either id or slug" msgstr "Podaj id albo slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Przygotowywanie" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Provisioning nie powiódł się, a piaskownica została zlikwidowana. Nic nie działa i tego obszaru roboczego nie można otworzyć. Utwórz nowy, aby spróbować ponownie." @@ -16338,6 +16440,9 @@ msgstr "usunąć agenta" msgid "remove the PR link" msgstr "usunąć powiązania z PR" +msgid "Remove this filter" +msgstr "Usuń ten filtr" + msgid "Remove trigger" msgstr "Usuń wyzwalacz" @@ -17075,6 +17180,9 @@ msgstr "Akcje wiersza" msgid "Rows changed" msgstr "Zmieniono wiersze" +msgid "Rows per page" +msgstr "Wierszy na stronę" + msgid "Rule" msgstr "Reguła" @@ -17215,7 +17323,7 @@ msgstr "działa" msgid "Running" msgstr "W toku" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Działa" @@ -17667,6 +17775,9 @@ msgstr "Szukanie użyć Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Stanowiska usunięte w trakcie okresu pozostają aktywne do {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Miejsca, kredyty i limit dodatkowego zużycia nie są jeszcze wczytane. Pojawią się po następnym odświeżeniu danych rozliczeniowych." + msgid "Secondary" msgstr "Secondary" @@ -19154,10 +19265,6 @@ msgstr "uruchamia się" msgid "Starting" msgstr "Uruchamianie" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Uruchamianie" - msgid "Starting {agentLabel}" msgstr "Uruchamianie {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "zatrzymana" msgid "Stopped" msgstr "Zatrzymano" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Zatrzymany" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "Zatrzymano {0} ({1} GB), aby zwolnić pamięć" -msgid "Stopped by a person" -msgstr "Zatrzymany przez osobę" - msgid "Stopped by the usage limit" msgstr "Zatrzymano przez limit użycia" msgid "Stopped moving {name}" msgstr "Zatrzymano przenoszenie {name}" -msgid "Stopped when idle" -msgstr "Zatrzymany z powodu bezczynności" - msgid "Stopping the agent in {what}" msgstr "Zatrzymywanie agenta w {what}" @@ -20003,6 +20108,9 @@ msgstr "Najlepszy agent się zmieni.<0/>Twój workflow nie musi." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "Maszyna uruchomiła się z {actual} vCPU zamiast {wanted}. Uruchom ją ponownie, aby spróbować jeszcze raz." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Podział według planu jest przechowywany tylko dla bieżącego okresu." + msgid "The button now stands out. I checked it in your pane." msgstr "Przycisk teraz się wyróżnia. Sprawdziłem to w Twoim panelu." @@ -20075,6 +20183,9 @@ msgstr "Środowisko, z którego ta automatyzacja uruchamia obszary robocze w chm msgid "The extension and its local data are deleted from this browser." msgstr "Rozszerzenie i jego dane lokalne zostaną usunięte z tej przeglądarki." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "Limit dodatkowego zużycia jest procentem planu, więc jego kwota nie jest pokazana." + msgid "The factory" msgstr "Fabryka" @@ -20151,9 +20262,6 @@ msgstr "Człowiek czyta każdą linię przed scaleniem." msgid "The image upload expired — attach it again" msgstr "Przesyłanie obrazu wygasło — załącz go ponownie" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Wliczone GB-godziny i GB-godziny ponad plan są przechowywane tylko dla bieżącego okresu." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "Zakres obowiązków się przesuwa. Inżynierowie przestają być maszynistkami z gustem, a stają się dyspozytorami z gustem: dzielą pracę, kierują ją do flot, rozstrzygają konflikty między agentami, którzy dotknęli tego samego modułu." @@ -20662,15 +20770,15 @@ msgstr "Zmienia to tylko nazwę wyświetlaną, nie gałąź." msgid "this organization" msgstr "tej organizacji" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Ta organizacja nie ma okresów rozliczeniowych, więc ta strona pokazuje ostatnie 30 dni." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Ta organizacja nie ma okresów rozliczeniowych. Wybierz zamiast tego zakres czasu." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Ta organizacja korzysta z planu darmowego. {appName} Mobile jest dostępny dla organizacji w planie Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Ta strona nie może ustalić, kiedy osiągnięto limit użycia." + msgid "This page could not be loaded" msgstr "Nie udało się wczytać tej strony" @@ -20876,6 +20984,9 @@ msgstr "Ten obszar roboczy" msgid "This workspace has no project to branch from" msgstr "Ten obszar roboczy nie ma projektu, z którego można się rozgałęzić" +msgid "This workspace has no usage in this period." +msgstr "Ten obszar roboczy nie był używany w tym okresie." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Ten obszar roboczy mógł zostać usunięty albo nie masz już do niego dostępu." @@ -21458,6 +21569,10 @@ msgstr "nieznana" msgid "Unknown" msgstr "Nieznana" +msgctxt "boot end" +msgid "Unknown" +msgstr "Nieznany" + msgctxt "person" msgid "Unknown" msgstr "Nieznany" @@ -21782,21 +21897,21 @@ msgstr "Identyfikator przyjazny adresom URL, unikalny w organizacji." msgid "Usage" msgstr "Zużycie" -msgid "Usage by day" -msgstr "Użycie według dni" - -msgid "Usage by person" -msgstr "Użycie według osób" - msgid "Usage is out of date" msgstr "Dane o wykorzystaniu są nieaktualne" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Użycie jest pokazywane w dniu (UTC), w którym zostało naliczone, co może być nieco później niż działanie obszaru roboczego." +msgid "usage limit" +msgstr "limit użycia" + +msgid "Usage limit" +msgstr "Limit użycia" msgid "Usage limit reached" msgstr "Osiągnięto limit użycia" +msgid "Usage limit reached." +msgstr "Osiągnięto limit użycia." + msgid "Usage sections" msgstr "Sekcje zużycia" @@ -23119,6 +23234,9 @@ msgstr "Twoja organizacja osiągnęła limit środowisk." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Twoje własne konta. Integracje twojej organizacji dają Paradevowi dostęp do jej narzędzi; po połączeniu twoich kont praca, którą Paradev wykonuje dla ciebie, pojawia się pod twoim nazwiskiem." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Tylko Twoje własne zużycie. Sumy organizacji, jej przydział i zużycie według osób są dla właścicieli i administratorów." + msgid "Your Paradev download is starting." msgstr "Pobieranie Paradev właśnie się rozpoczyna." @@ -23134,9 +23252,6 @@ msgstr "Twój plan nie obejmuje środowisk w chmurze." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Twój plan nie obejmuje środowisk w chmurze. Przejdź na wyższy plan w Ustawienia, Rozliczenia, aby je utworzyć." -msgid "Your plan includes no cloud GB-hours." -msgstr "Twój plan nie obejmuje chmurowych GB-godzin." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Twój plan zmieni się na {planName} dnia {startDate}. Dziś nic nie zostanie pobrane." diff --git a/packages/i18n/locales/pt-BR/messages.po b/packages/i18n/locales/pt-BR/messages.po index 7685f837965..b6a203c0e08 100644 --- a/packages/i18n/locales/pt-BR/messages.po +++ b/packages/i18n/locales/pt-BR/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {buscou # página} other {buscou # páginas}}" msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Importar # worktree} other {Importar # worktrees}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {em # área de trabalho nos últimos 30 dias} other {em # áreas de trabalho nos últimos 30 dias}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {em # área de trabalho neste período} other {em # áreas de trabalho neste período}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {Fazer merge de # pull request?} other {Fazer merge de # pull requests?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-horas" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# linha oculta} other {# linhas ocultas}}" @@ -1347,6 +1350,12 @@ msgstr "Restam {remaining} tokens" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {As alterações em # arquivo foram desfeitas.} other {As alterações em # arquivos foram desfeitas.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} de # linha} other {{first}–{last} de # linhas}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Incluído com # assento} other {Incluído com # assentos}}" + msgid "{seconds}s" msgstr "{seconds} s" @@ -1364,17 +1373,17 @@ msgstr "{shown} de {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount} exibidas · {0} · {1} tokens" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# ignorado} other {# ignorados}}" msgid "{starCount} stars and counting" msgstr "{starCount} estrelas e subindo" -msgid "{start} to {end}" -msgstr "De {start} a {end}" - -msgid "{start} to {end} (current)" -msgstr "De {start} a {end} (atual)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {# automação iniciada} other {# automações iniciadas}}" @@ -1433,9 +1442,15 @@ msgstr "{used} de {limit} ambientes" msgid "{used} of {size} tokens" msgstr "{used} de {size} tokens" +msgid "{used} of {total}" +msgstr "{used} de {total}" + msgid "{used} used" msgstr "{used} usado" +msgid "{used} used by you" +msgstr "{used} usados por você" + msgid "{user} and {others} joined and left." msgstr "{user} e {others} entraram e saíram." @@ -1463,9 +1478,6 @@ msgstr "{user} voltou a entrar." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} aguardando" @@ -1646,6 +1658,9 @@ msgstr "US$ 0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Rodada seed de US$ 11,5 milhões liderada pela Union Square Ventures" +msgid "0 rows" +msgstr "0 linhas" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Qualquer nome" msgid "Any page" msgstr "Qualquer página" +msgid "Any person" +msgstr "Qualquer pessoa" + msgid "Any project" msgstr "Qualquer projeto" @@ -2903,6 +2921,9 @@ msgstr "Qualquer revisor" msgid "any sender" msgstr "qualquer remetente" +msgid "Any size" +msgstr "Qualquer tamanho" + msgid "Any status" msgstr "Qualquer status" @@ -3462,6 +3483,10 @@ msgstr "Aguardando sua revisão" msgid "Awaiting review from you or your team" msgstr "Aguardando revisão sua ou da sua equipe" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Ativa" + msgid "Away" msgstr "Ausente" @@ -3589,9 +3614,6 @@ msgstr "Faturamento" msgid "Billing details" msgstr "Dados de faturamento" -msgid "Billing period" -msgstr "Período de faturamento" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "A cobrança recusou iniciar um workspace na nuvem: o plano da organização não inclui workspaces na nuvem, ou ela atingiu o limite de uso da nuvem. Workspaces na nuvem precisam do plano Team ou Ultra. Faça upgrade ou aumente o limite em Configurações > Cobrança, ou execute a automação em um dispositivo." @@ -3672,6 +3694,9 @@ msgstr "Emprestada da forma como se classificam os carros autônomos, aplicada a msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Gaveta inferior, com suporte a gestos em dispositivos de toque." +msgid "Bought credits" +msgstr "Créditos comprados" + msgid "Bought GB-hours left: {prepaid}" msgstr "GB-horas compradas restantes: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Ao autorizar, você permite que este aplicativo acesse seus dados confor msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Ao clicar em continuar, você concorda com nossos <0>Termos de Serviço e nossa <1>Política de Privacidade." +msgid "By day" +msgstr "Por dia" + +msgid "By person" +msgstr "Por pessoa" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Ao entrar, você concorda com nossos\n" @@ -4831,9 +4862,6 @@ msgstr "O uso da nuvem não está ativado para esta organização." msgid "Cloud workspace" msgstr "Área de trabalho na nuvem" -msgid "Cloud workspace usage for the whole organization." -msgstr "Uso das áreas de trabalho na nuvem de toda a organização." - msgid "Cloud workspace: asleep" msgstr "Área de trabalho na nuvem: em repouso" @@ -4859,6 +4887,9 @@ msgstr "Workspaces na nuvem não estão ativados para {account}. Eles vêm com o msgid "Cloud workspaces are not included in your plan." msgstr "Os espaços de trabalho na nuvem não estão incluídos no seu plano." +msgid "Cloud workspaces cannot start." +msgstr "As áreas de trabalho na nuvem não podem iniciar." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Áreas de trabalho na nuvem fazem commit, push e abrem pull requests como você" @@ -5815,9 +5846,6 @@ msgstr "Não foi possível listar o diretório" msgid "Could not load agents from {0}" msgstr "Não foi possível carregar os agentes de {0}" -msgid "Could not load cloud usage." -msgstr "Não foi possível carregar o uso da nuvem." - msgid "Could not load environments" msgstr "Não foi possível carregar os ambientes" @@ -5998,6 +6026,9 @@ msgstr "Não foi possível iniciar a sessão" msgid "Could not start the chat" msgstr "Não foi possível iniciar o chat" +msgid "Could not start." +msgstr "Não foi possível iniciar." + msgid "Could not steer" msgstr "Não foi possível redirecionar" @@ -7776,6 +7807,9 @@ msgstr "Cada superfície tem a própria tipografia. As mudanças aparecem na hor msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Cada área de trabalho tem sua própria máquina na nuvem e continua trabalhando com o notebook fechado. Acompanhe pelo desktop, iPhone ou iPad." +msgid "Earlier period" +msgstr "Período anterior" + msgid "Early 2024" msgstr "Início de 2024" @@ -8301,6 +8335,9 @@ msgstr "Muito alto" msgid "Extra small" msgstr "Extra pequeno" +msgid "Extra usage" +msgstr "Uso extra" + msgid "Extra usage limit reached" msgstr "Limite de uso extra atingido" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Falhou" -msgid "Failed {failedAt}" -msgstr "Falhou em {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Execuções com falha <0>· 7d" @@ -8532,6 +8566,9 @@ msgstr "Falha ao carregar a imagem" msgid "Failed to load repositories. Please try again." msgstr "Falha ao carregar os repositórios. Tente novamente." +msgid "Failed to load usage" +msgstr "Falha ao carregar o uso" + msgid "Failed to log out. Please try again." msgstr "Falha ao sair. Tente novamente." @@ -9019,6 +9056,9 @@ msgstr "terminou · trabalhou por 7s" msgid "Finishing the move…" msgstr "Concluindo a movimentação…" +msgid "First page" +msgstr "Primeira página" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Primeira vez? Ative o login por código de dispositivo nas <0>configurações do ChatGPT." @@ -9284,6 +9324,13 @@ msgstr "Engenheiro fundador" msgid "Free" msgstr "Grátis" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Gratuito" + +msgid "Free credits" +msgstr "Créditos gratuitos" + msgid "Free for everyone" msgstr "Grátis para todo mundo" @@ -10110,6 +10157,10 @@ msgstr "Identidade" msgid "Idle" msgstr "Ocioso" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Ociosa" + msgid "Idle · branch pushed" msgstr "Ocioso · push da branch feito" @@ -10303,6 +10354,9 @@ msgstr "Em revisão" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "No app de desktop do {appName}, abra Configurações → Acesso remoto e ative “Permitir acesso remoto a este dispositivo via relay”." +msgid "in the last 30 days" +msgstr "nos últimos 30 dias" + msgid "In the merge queue" msgstr "Na fila de merge" @@ -10312,6 +10366,9 @@ msgstr "Na fila de merge. O GitHub faz o merge quando chegar a vez dele." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "No app de desktop do Paradev, abra <0>Configurações → Aparência → Tema." +msgid "in this period" +msgstr "neste período" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "Em menos de um ano, mais de 145.000 desenvolvedores em 180 países usaram o {productName} e criaram mais de 1,85 milhão de áreas de trabalho de agentes." @@ -10342,6 +10399,9 @@ msgstr "Incluído no Enterprise" msgid "Included with Team and Ultra." msgstr "Incluído no Team e no Ultra." +msgid "Included with the plan" +msgstr "Incluído no plano" + msgid "Includes the Paradev-specific box variant" msgstr "Inclui a variante box específica do Paradev" @@ -10963,6 +11023,9 @@ msgstr "Últimos 3 meses" msgid "last 30 days" msgstr "últimos 30 dias" +msgid "Last 30 days" +msgstr "Últimos 30 dias" + msgid "Last 4 weeks" msgstr "Últimas 4 semanas" @@ -11037,6 +11100,9 @@ msgstr "Latência" msgid "Later messages are removed." msgstr "As mensagens posteriores serão removidas." +msgid "Later period" +msgstr "Próximo período" + msgid "Latest" msgstr "Mais recente" @@ -11444,6 +11510,9 @@ msgstr "Carregando mais..." msgid "Loading more…" msgstr "Carregando mais…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Carregando a página {loadingPage} de {targetPage}..." + msgid "Loading project…" msgstr "Carregando o projeto…" @@ -12570,6 +12639,9 @@ msgstr "Próxima imagem" msgid "Next match" msgstr "Próxima ocorrência" +msgid "Next page" +msgstr "Próxima página" + msgid "Next Right Sidebar Tab" msgstr "Próxima aba da barra lateral direita" @@ -13292,6 +13364,9 @@ msgstr "Nenhuma área de trabalho neste host ainda" msgid "No workspaces yet" msgstr "Nenhuma área de trabalho ainda" +msgid "No workspaces." +msgstr "Nenhuma área de trabalho." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Não. O {companyName} nunca atua como proxy nas chamadas aos modelos. Os agentes usam suas próprias assinaturas e chaves." @@ -13340,6 +13415,9 @@ msgstr "Indisponível neste servidor" msgid "Not bound · configure in Settings → Links" msgstr "Sem atalho · configure em Configurações → Links" +msgid "Not broken down yet" +msgstr "Ainda não detalhado" + msgid "Not configured" msgstr "Não configurada" @@ -13352,6 +13430,9 @@ msgstr "Não conectado" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Não conectado · as áreas de trabalho na nuvem fazem push como a GitHub App da sua organização" +msgid "Not counted by billing yet" +msgstr "Ainda não contabilizado pelo faturamento" + msgid "Not demoed here" msgstr "Não demonstrado aqui" @@ -13523,6 +13604,12 @@ msgstr "Objetos" msgid "of {0}" msgstr "de {0}" +msgid "of {cap} included" +msgstr "de {cap} incluídos" + +msgid "of {cap} limit" +msgstr "de um limite de {cap}" + msgid "of {total}" msgstr "de {total}" @@ -13804,9 +13891,6 @@ msgstr "Só você pode usar esta conexão. Seus colegas conectam as próprias co msgid "Only you. Teammates forward their own." msgstr "Só você. Cada colega encaminha as próprias." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Apenas suas próprias áreas de trabalho. Os totais da organização são para proprietários e administradores." - msgid "open" msgstr "abrir" @@ -14398,6 +14482,10 @@ msgstr "Originais" msgid "Other" msgstr "Outros" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Outros" + msgid "Other apps" msgstr "Outros apps" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Página" +msgid "Page {page} of {pages}" +msgstr "Página {page} de {pages}" + msgid "Page actions" msgstr "Ações da página" @@ -14567,6 +14658,10 @@ msgstr "paginação" msgid "Pagination" msgstr "Paginação" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Pago" + msgid "Paid plans" msgstr "Planos pagos" @@ -15340,6 +15435,9 @@ msgstr "Imagem anterior" msgid "Previous match" msgstr "Ocorrência anterior" +msgid "Previous page" +msgstr "Página anterior" + msgid "Previous prompts" msgstr "Prompts anteriores" @@ -15576,6 +15674,10 @@ msgstr "Propriedades" msgid "Provide either id or slug" msgstr "Forneça id ou slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Provisionando" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "O provisionamento falhou e o sandbox foi desmontado. Nada está rodando e esta área de trabalho não pode ser aberta. Crie outra para tentar de novo." @@ -16338,6 +16440,9 @@ msgstr "remover o agente" msgid "remove the PR link" msgstr "remover o vínculo do PR" +msgid "Remove this filter" +msgstr "Remover este filtro" + msgid "Remove trigger" msgstr "Remover gatilho" @@ -17075,6 +17180,9 @@ msgstr "Ações da linha" msgid "Rows changed" msgstr "Linhas alteradas" +msgid "Rows per page" +msgstr "Linhas por página" + msgid "Rule" msgstr "Regra" @@ -17215,7 +17323,7 @@ msgstr "em execução" msgid "Running" msgstr "Em execução" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Em execução" @@ -17667,6 +17775,9 @@ msgstr "Procurando usos de Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Assentos removidos no meio do ciclo continuam ativos até {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Assentos, créditos e o limite de uso extra ainda não foram carregados. Eles aparecem na próxima atualização dos dados de faturamento." + msgid "Secondary" msgstr "Secundário" @@ -19154,10 +19265,6 @@ msgstr "iniciando" msgid "Starting" msgstr "Iniciando" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Iniciando" - msgid "Starting {agentLabel}" msgstr "Iniciando {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "parado" msgid "Stopped" msgstr "Parado" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Parada" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "{0} ({1} GB) parado para liberar memória" -msgid "Stopped by a person" -msgstr "Parado por uma pessoa" - msgid "Stopped by the usage limit" msgstr "Interrompido pelo limite de uso" msgid "Stopped moving {name}" msgstr "Movimentação de {name} interrompida" -msgid "Stopped when idle" -msgstr "Parado por inatividade" - msgid "Stopping the agent in {what}" msgstr "Parando o agente em {what}" @@ -20003,6 +20108,9 @@ msgstr "O melhor agente vai mudar.<0/>Seu fluxo de trabalho, não." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "A máquina voltou com {actual} vCPU em vez de {wanted}. Reinicie para tentar novamente." +msgid "The breakdown by plan is kept for the current period only." +msgstr "O detalhamento por plano é mantido apenas para o período atual." + msgid "The button now stands out. I checked it in your pane." msgstr "O botão agora se destaca. Conferi no seu painel." @@ -20075,6 +20183,9 @@ msgstr "O ambiente a partir do qual esta automação inicia áreas de trabalho n msgid "The extension and its local data are deleted from this browser." msgstr "A extensão e os dados locais dela são excluídos deste navegador." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "O limite de uso extra é uma porcentagem do plano, então o valor não é mostrado." + msgid "The factory" msgstr "A fábrica" @@ -20151,9 +20262,6 @@ msgstr "A pessoa lê cada linha antes do merge." msgid "The image upload expired — attach it again" msgstr "O envio da imagem expirou — anexe-a novamente" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "As GB-horas incluídas e as excedentes são mantidas apenas para o período atual." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "A descrição do cargo muda. Quem desenvolve deixa de ser digitador com bom gosto e vira despachante com bom gosto: decompõe o trabalho, direciona para as frotas e arbitra conflitos entre agentes que mexeram no mesmo módulo." @@ -20662,15 +20770,15 @@ msgstr "Isso muda só o nome exibido, não a branch." msgid "this organization" msgstr "esta organização" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Esta organização não tem períodos de faturamento, então esta página mostra os últimos 30 dias." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Esta organização não tem períodos de cobrança. Escolha um intervalo de tempo." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Esta organização está no plano gratuito. O {appName} Mobile está disponível para organizações no Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Esta página não consegue saber quando o limite de uso é atingido." + msgid "This page could not be loaded" msgstr "Não foi possível carregar esta página" @@ -20876,6 +20984,9 @@ msgstr "Esta área de trabalho" msgid "This workspace has no project to branch from" msgstr "Este workspace não tem projeto do qual ramificar" +msgid "This workspace has no usage in this period." +msgstr "Esta área de trabalho não teve uso neste período." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Esta área de trabalho pode ter sido removida ou você não tem mais acesso a ela." @@ -21458,6 +21569,10 @@ msgstr "desconhecido" msgid "Unknown" msgstr "Desconhecida" +msgctxt "boot end" +msgid "Unknown" +msgstr "Desconhecido" + msgctxt "person" msgid "Unknown" msgstr "Desconhecido" @@ -21782,21 +21897,21 @@ msgstr "Identificador amigável para URL, único dentro da sua organização." msgid "Usage" msgstr "Uso" -msgid "Usage by day" -msgstr "Uso por dia" - -msgid "Usage by person" -msgstr "Uso por pessoa" - msgid "Usage is out of date" msgstr "Os dados de uso estão desatualizados" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "O uso aparece no dia UTC em que foi cobrado, que pode ser um pouco depois de a área de trabalho ser executada." +msgid "usage limit" +msgstr "limite de uso" + +msgid "Usage limit" +msgstr "Limite de uso" msgid "Usage limit reached" msgstr "Limite de uso atingido" +msgid "Usage limit reached." +msgstr "Limite de uso atingido." + msgid "Usage sections" msgstr "Seções de uso" @@ -23119,6 +23234,9 @@ msgstr "Sua organização atingiu o limite de ambientes." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Suas próprias contas. As integrações da sua organização permitem que o Paradev acesse as ferramentas dela; conectar as suas faz o trabalho que o Paradev faz por você aparecer em seu nome." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Apenas o seu próprio uso. Os totais da organização, sua cota e o uso por pessoa são para proprietários e administradores." + msgid "Your Paradev download is starting." msgstr "O download do Paradev está começando." @@ -23134,9 +23252,6 @@ msgstr "Seu plano não inclui ambientes na nuvem." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Seu plano não inclui ambientes na nuvem. Faça upgrade em Configurações, Cobrança para criar um." -msgid "Your plan includes no cloud GB-hours." -msgstr "Seu plano não inclui GB-horas na nuvem." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Seu plano muda para {planName} em {startDate}. Nada é cobrado hoje." diff --git a/packages/i18n/locales/ru/messages.po b/packages/i18n/locales/ru/messages.po index fda9295ce59..0a3c954f4ca 100644 --- a/packages/i18n/locales/ru/messages.po +++ b/packages/i18n/locales/ru/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {загружена # страница} few {заг msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Импортировать # worktree} few {Импортировать # worktree} many {Импортировать # worktree} other {Импортировать # worktree}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {в # рабочей области за последние 30 дней} few {в # рабочих областях за последние 30 дней} many {в # рабочих областях за последние 30 дней} other {в # рабочей области за последние 30 дней}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {в # рабочей области за этот период} few {в # рабочих областях за этот период} many {в # рабочих областях за этот период} other {в # рабочей области за этот период}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {Объединить # пул-реквест?} few {Объединить # пул-реквеста?} many {Объединить # пул-реквестов?} other {Объединить # пул-реквеста?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} ГБ-часов" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# скрытая строка} few {# скрытые строки} many {# скрытых строк} other {# скрытой строки}}" @@ -1347,6 +1350,12 @@ msgstr "Осталось токенов: {remaining}" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Изменения в # файле отменены.} few {Изменения в # файлах отменены.} many {Изменения в # файлах отменены.} other {Изменения в # файла отменены.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} из # строки} few {{first}–{last} из # строк} many {{first}–{last} из # строк} other {{first}–{last} из # строки}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Входит в # место} few {Входит в # места} many {Входит в # мест} other {Входит в # места}}" + msgid "{seconds}s" msgstr "{seconds} с" @@ -1364,17 +1373,17 @@ msgstr "{shown} из {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "Показано: {shownCount} · {0} · {1} токенов" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} ГБ" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# пропущено} few {# пропущено} many {# пропущено} other {# пропущено}}" msgid "{starCount} stars and counting" msgstr "{starCount} звёзд и продолжаем" -msgid "{start} to {end}" -msgstr "С {start} по {end}" - -msgid "{start} to {end} (current)" -msgstr "С {start} по {end} (текущий)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {Запущена # автоматизация} few {Запущено # автоматизации} many {Запущено # автоматизаций} other {Запущено # автоматизаций}}" @@ -1433,9 +1442,15 @@ msgstr "{used} из {limit} окружений" msgid "{used} of {size} tokens" msgstr "{used} из {size} токенов" +msgid "{used} of {total}" +msgstr "{used} из {total}" + msgid "{used} used" msgstr "Использовано {used}" +msgid "{used} used by you" +msgstr "Вы использовали {used}" + msgid "{user} and {others} joined and left." msgstr "{user} и {others} присоединились и вышли." @@ -1463,9 +1478,6 @@ msgstr "{user} снова присоединился(-ась)." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} ГБ" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} ГБ" - msgid "{waiting} Waiting" msgstr "Ожидают: {waiting}" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Посевной раунд на 11,5 млн $ под руководством Union Square Ventures" +msgid "0 rows" +msgstr "0 строк" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Любое название" msgid "Any page" msgstr "Любая страница" +msgid "Any person" +msgstr "Все люди" + msgid "Any project" msgstr "Любой проект" @@ -2903,6 +2921,9 @@ msgstr "Любой рецензент" msgid "any sender" msgstr "любой отправитель" +msgid "Any size" +msgstr "Любой размер" + msgid "Any status" msgstr "Любой статус" @@ -3462,6 +3483,10 @@ msgstr "Ожидает вашего ревью" msgid "Awaiting review from you or your team" msgstr "Ожидает ревью от вас или вашей команды" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Работает" + msgid "Away" msgstr "Отошёл" @@ -3589,9 +3614,6 @@ msgstr "Оплата" msgid "Billing details" msgstr "Платёжные данные" -msgid "Billing period" -msgstr "Расчётный период" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Биллинг отказался запустить облачное рабочее пространство: план организации не включает облачные рабочие пространства, или достигнут лимит использования облака. Облачным рабочим пространствам нужен план Team или Ultra. Повысьте план или увеличьте лимит в разделе Настройки > Оплата, либо запустите автоматизацию на устройстве." @@ -3672,6 +3694,9 @@ msgstr "Заимствовано из того, как оценивают бес msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Нижняя шторка, удобная для свайпов на сенсорных устройствах." +msgid "Bought credits" +msgstr "Купленные кредиты" + msgid "Bought GB-hours left: {prepaid}" msgstr "Осталось купленных ГБ-часов: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Авторизуя, вы разрешаете этому приложе msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Нажимая «Продолжить», вы соглашаетесь с <0>Условиями использования и <1>Политикой конфиденциальности." +msgid "By day" +msgstr "По дням" + +msgid "By person" +msgstr "По людям" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Выполняя вход, вы соглашаетесь с\n" @@ -4831,9 +4862,6 @@ msgstr "Использование облака не включено для э msgid "Cloud workspace" msgstr "Облачная рабочая область" -msgid "Cloud workspace usage for the whole organization." -msgstr "Использование облачных рабочих областей во всей организации." - msgid "Cloud workspace: asleep" msgstr "Облачная рабочая область: в спящем режиме" @@ -4859,6 +4887,9 @@ msgstr "Облачные рабочие пространства не включ msgid "Cloud workspaces are not included in your plan." msgstr "Облачные рабочие пространства не входят в ваш тариф." +msgid "Cloud workspaces cannot start." +msgstr "Облачные рабочие области не могут запуститься." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Облачные рабочие области делают коммиты, пуши и открывают pull request от вашего имени" @@ -5815,9 +5846,6 @@ msgstr "Не удалось прочитать содержимое папки" msgid "Could not load agents from {0}" msgstr "Не удалось загрузить агентов с {0}" -msgid "Could not load cloud usage." -msgstr "Не удалось загрузить использование облака." - msgid "Could not load environments" msgstr "Не удалось загрузить окружения" @@ -5998,6 +6026,9 @@ msgstr "Не удалось запустить сессию" msgid "Could not start the chat" msgstr "Не удалось начать чат" +msgid "Could not start." +msgstr "Не удалось запустить." + msgid "Could not steer" msgstr "Не удалось направить агента" @@ -7776,6 +7807,9 @@ msgstr "У каждой поверхности своя типографика. msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Каждая рабочая область получает свою облачную машину и продолжает работать, когда ноутбук закрыт. Следите за ней с компьютера, iPhone или iPad." +msgid "Earlier period" +msgstr "Предыдущий период" + msgid "Early 2024" msgstr "Начало 2024" @@ -8301,6 +8335,9 @@ msgstr "Очень высокий" msgid "Extra small" msgstr "Очень маленький" +msgid "Extra usage" +msgstr "Дополнительное использование" + msgid "Extra usage limit reached" msgstr "Достигнут лимит дополнительного использования" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Ошибка" -msgid "Failed {failedAt}" -msgstr "Ошибка: {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Неудачные запуски <0>· 7 дн." @@ -8532,6 +8566,9 @@ msgstr "Не удалось загрузить изображение" msgid "Failed to load repositories. Please try again." msgstr "Не удалось загрузить репозитории. Попробуйте ещё раз." +msgid "Failed to load usage" +msgstr "Не удалось загрузить использование" + msgid "Failed to log out. Please try again." msgstr "Не удалось выйти. Попробуйте ещё раз." @@ -9019,6 +9056,9 @@ msgstr "завершил · работал 7 с" msgid "Finishing the move…" msgstr "Завершение переноса…" +msgid "First page" +msgstr "Первая страница" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Впервые? Включите вход по коду устройства в <0>настройках ChatGPT." @@ -9284,6 +9324,13 @@ msgstr "Инженер-основатель" msgid "Free" msgstr "Бесплатно" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Бесплатно" + +msgid "Free credits" +msgstr "Бесплатные кредиты" + msgid "Free for everyone" msgstr "Бесплатно для всех" @@ -10110,6 +10157,10 @@ msgstr "Идентификация" msgid "Idle" msgstr "Простаивает" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Простой" + msgid "Idle · branch pushed" msgstr "Простаивает · ветка отправлена" @@ -10303,6 +10354,9 @@ msgstr "На ревью" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "В десктопном приложении {appName} откройте Настройки → Удалённый доступ и включите «Разрешить удалённый доступ к этому устройству через реле»." +msgid "in the last 30 days" +msgstr "за последние 30 дней" + msgid "In the merge queue" msgstr "В очереди объединения" @@ -10312,6 +10366,9 @@ msgstr "В очереди объединения. GitHub объединит ег msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "В приложении Paradev откройте <0>Настройки → Внешний вид → Тема." +msgid "in this period" +msgstr "за этот период" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "Меньше чем за год более 145 000 разработчиков из 180 стран запускали {productName} и создали более 1,85 млн рабочих областей агентов." @@ -10342,6 +10399,9 @@ msgstr "Входит в Enterprise" msgid "Included with Team and Ultra." msgstr "Входит в Team и Ultra." +msgid "Included with the plan" +msgstr "Входит в тариф" + msgid "Includes the Paradev-specific box variant" msgstr "Включает специфичный для Paradev вариант box" @@ -10963,6 +11023,9 @@ msgstr "Последние 3 месяца" msgid "last 30 days" msgstr "за последние 30 дней" +msgid "Last 30 days" +msgstr "Последние 30 дней" + msgid "Last 4 weeks" msgstr "Последние 4 недели" @@ -11037,6 +11100,9 @@ msgstr "Задержка" msgid "Later messages are removed." msgstr "Последующие сообщения будут удалены." +msgid "Later period" +msgstr "Следующий период" + msgid "Latest" msgstr "Последняя" @@ -11444,6 +11510,9 @@ msgstr "Загружаем ещё..." msgid "Loading more…" msgstr "Загружаем ещё…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Загрузка страницы {loadingPage} из {targetPage}..." + msgid "Loading project…" msgstr "Загрузка проекта…" @@ -12570,6 +12639,9 @@ msgstr "Следующее изображение" msgid "Next match" msgstr "Следующее совпадение" +msgid "Next page" +msgstr "Следующая страница" + msgid "Next Right Sidebar Tab" msgstr "Следующая вкладка правой боковой панели" @@ -13292,6 +13364,9 @@ msgstr "На этом хосте пока нет рабочих областей msgid "No workspaces yet" msgstr "Рабочих областей пока нет" +msgid "No workspaces." +msgstr "Нет рабочих областей." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Нет. {companyName} никогда не проксирует вызовы моделей. Агенты используют ваши подписки и ключи." @@ -13340,6 +13415,9 @@ msgstr "Недоступно на этом сервере" msgid "Not bound · configure in Settings → Links" msgstr "Не назначено · настройте в Настройки → Ссылки" +msgid "Not broken down yet" +msgstr "Ещё не разбито по статьям" + msgid "Not configured" msgstr "Не настроено" @@ -13352,6 +13430,9 @@ msgstr "Не подключено" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Не подключено · облачные рабочие области пушат как GitHub App вашей организации" +msgid "Not counted by billing yet" +msgstr "Ещё не учтено в счёте" + msgid "Not demoed here" msgstr "Здесь не показано" @@ -13523,6 +13604,12 @@ msgstr "Предметы" msgid "of {0}" msgstr "из {0}" +msgid "of {cap} included" +msgstr "из {cap} по тарифу" + +msgid "of {cap} limit" +msgstr "из лимита {cap}" + msgid "of {total}" msgstr "из {total}" @@ -13804,9 +13891,6 @@ msgstr "Только вы можете использовать это подк msgid "Only you. Teammates forward their own." msgstr "Только для вас. Коллеги перенаправляют свои сами." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Только ваши рабочие области. Итоги организации доступны владельцам и администраторам." - msgid "open" msgstr "открыть" @@ -14398,6 +14482,10 @@ msgstr "Оригиналы" msgid "Other" msgstr "Прочее" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Прочее" + msgid "Other apps" msgstr "Другие приложения" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Страница" +msgid "Page {page} of {pages}" +msgstr "Страница {page} из {pages}" + msgid "Page actions" msgstr "Действия со страницей" @@ -14567,6 +14658,10 @@ msgstr "постраничная навигация" msgid "Pagination" msgstr "Постраничная навигация" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Платно" + msgid "Paid plans" msgstr "Платные тарифы" @@ -15340,6 +15435,9 @@ msgstr "Предыдущее изображение" msgid "Previous match" msgstr "Предыдущее совпадение" +msgid "Previous page" +msgstr "Предыдущая страница" + msgid "Previous prompts" msgstr "Предыдущие промпты" @@ -15576,6 +15674,10 @@ msgstr "Свойства" msgid "Provide either id or slug" msgstr "Укажите id или slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Подготовка" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Создание не удалось, песочница снесена. Ничего не работает, и эту рабочую область нельзя открыть. Создайте новую, чтобы попробовать снова." @@ -16338,6 +16440,9 @@ msgstr "удалить агента" msgid "remove the PR link" msgstr "отвязать PR" +msgid "Remove this filter" +msgstr "Убрать этот фильтр" + msgid "Remove trigger" msgstr "Удалить триггер" @@ -17075,6 +17180,9 @@ msgstr "Действия со строкой" msgid "Rows changed" msgstr "Строки изменены" +msgid "Rows per page" +msgstr "Строк на странице" + msgid "Rule" msgstr "Правило" @@ -17215,7 +17323,7 @@ msgstr "работает" msgid "Running" msgstr "Выполняется" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Работает" @@ -17667,6 +17775,9 @@ msgstr "Ищем использования Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Места, удалённые в середине периода, остаются активными до {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Места, кредиты и лимит дополнительного использования ещё не загружены. Они появятся при следующем обновлении платёжных данных." + msgid "Secondary" msgstr "Вторичная" @@ -19154,10 +19265,6 @@ msgstr "запускается" msgid "Starting" msgstr "Запуск" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Запускается" - msgid "Starting {agentLabel}" msgstr "Запуск {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "остановлена" msgid "Stopped" msgstr "Остановлено" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Остановлена" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "Остановлен {0} ({1} ГБ), чтобы освободить память" -msgid "Stopped by a person" -msgstr "Остановлено человеком" - msgid "Stopped by the usage limit" msgstr "Остановлено лимитом использования" msgid "Stopped moving {name}" msgstr "Перенос {name} остановлен" -msgid "Stopped when idle" -msgstr "Остановлено при простое" - msgid "Stopping the agent in {what}" msgstr "Остановка агента в {what}" @@ -20003,6 +20108,9 @@ msgstr "Лучший агент будет меняться.<0/>Ваш проц msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "Машина запустилась с {actual} vCPU вместо {wanted}. Перезапустите её, чтобы попробовать снова." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Разбивка по тарифу хранится только для текущего периода." + msgid "The button now stands out. I checked it in your pane." msgstr "Теперь кнопка выделяется. Я проверил это в вашей панели." @@ -20075,6 +20183,9 @@ msgstr "Окружение, из которого эта автоматизац msgid "The extension and its local data are deleted from this browser." msgstr "Расширение и его локальные данные удаляются из этого браузера." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "Лимит дополнительного использования задан процентом от тарифа, поэтому его сумма не показана." + msgid "The factory" msgstr "Фабрика" @@ -20151,9 +20262,6 @@ msgstr "Человек читает каждую строку перед сли msgid "The image upload expired — attach it again" msgstr "Срок загрузки изображения истёк — прикрепите его снова" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Включённые ГБ-часы и ГБ-часы сверх тарифа хранятся только для текущего периода." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "Описание работы меняется. Инженеры перестают быть машинистками со вкусом и становятся диспетчерами со вкусом: декомпозируют работу, раздают её флотам, разрешают конфликты между агентами, которые оба тронули один модуль." @@ -20662,15 +20770,15 @@ msgstr "Это меняет только отображаемое имя, а н msgid "this organization" msgstr "эта организация" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "У этой организации нет расчётных периодов, поэтому на странице показаны последние 30 дней." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "У этой организации нет расчётных периодов. Выберите временной диапазон." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Эта организация на бесплатном тарифе. {appName} Mobile доступен организациям на тарифе Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Эта страница не может определить, когда достигнут лимит использования." + msgid "This page could not be loaded" msgstr "Не удалось загрузить эту страницу" @@ -20876,6 +20984,9 @@ msgstr "Эта рабочая область" msgid "This workspace has no project to branch from" msgstr "В этом рабочем пространстве нет проекта для ответвления" +msgid "This workspace has no usage in this period." +msgstr "У этой рабочей области нет использования за этот период." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Возможно, эта рабочая область удалена или у вас больше нет к ней доступа." @@ -21458,6 +21569,10 @@ msgstr "неизвестно" msgid "Unknown" msgstr "Неизвестно" +msgctxt "boot end" +msgid "Unknown" +msgstr "Неизвестно" + msgctxt "person" msgid "Unknown" msgstr "Неизвестно" @@ -21782,21 +21897,21 @@ msgstr "Идентификатор для URL, уникальный внутри msgid "Usage" msgstr "Использование" -msgid "Usage by day" -msgstr "Использование по дням" - -msgid "Usage by person" -msgstr "Использование по людям" - msgid "Usage is out of date" msgstr "Данные об использовании устарели" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Использование показано в день (UTC), когда оно было выставлено в счёт; это может быть немного позже работы рабочей области." +msgid "usage limit" +msgstr "лимит использования" + +msgid "Usage limit" +msgstr "Лимит использования" msgid "Usage limit reached" msgstr "Достигнут лимит использования" +msgid "Usage limit reached." +msgstr "Достигнут лимит использования." + msgid "Usage sections" msgstr "Разделы использования" @@ -23119,6 +23234,9 @@ msgstr "Ваша организация достигла лимита окруж msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Ваши собственные учётные записи. Интеграции вашей организации дают Paradev доступ к её инструментам; подключив свои, вы увидите работу, которую Paradev делает для вас, под своим именем." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Только ваше собственное использование. Итоги организации, её лимит и использование по людям доступны владельцам и администраторам." + msgid "Your Paradev download is starting." msgstr "Загрузка Paradev начинается." @@ -23134,9 +23252,6 @@ msgstr "Ваш тариф не включает облачные окружен msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Ваш тариф не включает облачные окружения. Чтобы создать окружение, перейдите на другой тариф в разделе Настройки, Оплата." -msgid "Your plan includes no cloud GB-hours." -msgstr "Ваш тариф не включает облачные ГБ-часы." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Ваш план перейдёт на {planName} {startDate}. Сегодня ничего не списывается." diff --git a/packages/i18n/locales/tr/messages.po b/packages/i18n/locales/tr/messages.po index 990944d37dd..901ad7e90dc 100644 --- a/packages/i18n/locales/tr/messages.po +++ b/packages/i18n/locales/tr/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {# sayfa alındı} other {# sayfa alındı}}" msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {# worktree'yi içe aktar} other {# worktree'yi içe aktar}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {son 30 günde # çalışma alanında} other {son 30 günde # çalışma alanında}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {bu dönemde # çalışma alanında} other {bu dönemde # çalışma alanında}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {# pull request birleştirilsin mi?} other {# pull request birleştirilsin mi?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-saat" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# gizli satır} other {# gizli satır}}" @@ -1347,6 +1350,12 @@ msgstr "{remaining} token kaldı" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {# dosyadaki değişiklikler geri alındı.} other {# dosyadaki değişiklikler geri alındı.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {# satırdan {first}–{last}} other {# satırdan {first}–{last}}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {# koltukla dahil} other {# koltukla dahil}}" + msgid "{seconds}s" msgstr "{seconds} sn" @@ -1364,17 +1373,17 @@ msgstr "{total} içinden {shown}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "{shownCount} gösteriliyor · {0} · {1} token" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# atlandı} other {# atlandı}}" msgid "{starCount} stars and counting" msgstr "{starCount} yıldız ve artıyor" -msgid "{start} to {end}" -msgstr "{start} - {end}" - -msgid "{start} to {end} (current)" -msgstr "{start} - {end} (geçerli)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {# otomasyon başlatıldı} other {# otomasyon başlatıldı}}" @@ -1433,9 +1442,15 @@ msgstr "{limit} ortamdan {used} tanesi" msgid "{used} of {size} tokens" msgstr "{used} / {size} token" +msgid "{used} of {total}" +msgstr "{used} / {total}" + msgid "{used} used" msgstr "{used} kullanıldı" +msgid "{used} used by you" +msgstr "Sizin kullanımınız: {used}" + msgid "{user} and {others} joined and left." msgstr "{user} ve {others} katıldı ve ayrıldı." @@ -1463,9 +1478,6 @@ msgstr "{user} yeniden katıldı." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} bekliyor" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Union Square Ventures liderliğinde 11,5 milyon $ tohum yatırım" +msgid "0 rows" +msgstr "0 satır" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Tüm adlar" msgid "Any page" msgstr "Tüm sayfalar" +msgid "Any person" +msgstr "Herhangi bir kişi" + msgid "Any project" msgstr "Tüm projeler" @@ -2903,6 +2921,9 @@ msgstr "Tüm inceleyenler" msgid "any sender" msgstr "tüm gönderenler" +msgid "Any size" +msgstr "Herhangi bir boyut" + msgid "Any status" msgstr "Tüm durumlar" @@ -3462,6 +3483,10 @@ msgstr "Sizden inceleme bekliyor" msgid "Awaiting review from you or your team" msgstr "Sizden veya takımınızdan inceleme bekliyor" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Çalışıyor" + msgid "Away" msgstr "Uzakta" @@ -3589,9 +3614,6 @@ msgstr "Faturalandırma" msgid "Billing details" msgstr "Faturalandırma bilgileri" -msgid "Billing period" -msgstr "Fatura dönemi" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Faturalandırma bir bulut çalışma alanını başlatmayı reddetti: kuruluşun planı bulut çalışma alanlarını içermiyor veya bulut kullanım sınırına ulaşıldı. Bulut çalışma alanları Team veya Ultra planı gerektirir. Ayarlar > Faturalandırma bölümünden yükseltin veya sınırı artırın ya da otomasyonu bir cihazda çalıştırın." @@ -3672,6 +3694,9 @@ msgstr "Otonom araçların notlandırılma biçiminden ödünç alındı, yazıl msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Alt çekmece, dokunmatik cihazlarda kaydırmaya uygun." +msgid "Bought credits" +msgstr "Satın alınan krediler" + msgid "Bought GB-hours left: {prepaid}" msgstr "Kalan satın alınmış GB-saat: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Yetkilendirerek, bu uygulamanın hizmet şartlarına ve gizlilik politik msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Devam'a tıklayarak <0>Hizmet Şartları ve <1>Gizlilik Politikası belgelerimizi kabul edersiniz." +msgid "By day" +msgstr "Güne göre" + +msgid "By person" +msgstr "Kişiye göre" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Oturum açarak şunları kabul edersiniz:\n" @@ -4831,9 +4862,6 @@ msgstr "Bu kuruluş için bulut kullanımı açık değil." msgid "Cloud workspace" msgstr "Bulut çalışma alanı" -msgid "Cloud workspace usage for the whole organization." -msgstr "Tüm kuruluşun bulut çalışma alanı kullanımı." - msgid "Cloud workspace: asleep" msgstr "Bulut çalışma alanı: uykuda" @@ -4859,6 +4887,9 @@ msgstr "Bulut çalışma alanları {account} için etkin değil. Team ve Ultra p msgid "Cloud workspaces are not included in your plan." msgstr "Bulut çalışma alanları planınıza dahil değil." +msgid "Cloud workspaces cannot start." +msgstr "Bulut çalışma alanları başlatılamıyor." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Bulut çalışma alanları sizin adınıza commit, push yapar ve pull request açar" @@ -5815,9 +5846,6 @@ msgstr "Dizin listelenemedi" msgid "Could not load agents from {0}" msgstr "{0} üzerinden ajanlar yüklenemedi" -msgid "Could not load cloud usage." -msgstr "Bulut kullanımı yüklenemedi." - msgid "Could not load environments" msgstr "Ortamlar yüklenemedi" @@ -5998,6 +6026,9 @@ msgstr "Oturum başlatılamadı" msgid "Could not start the chat" msgstr "Sohbet başlatılamadı" +msgid "Could not start." +msgstr "Başlatılamadı." + msgid "Could not steer" msgstr "Yönlendirilemedi" @@ -7776,6 +7807,9 @@ msgstr "Her yüzeyin kendi tipografisi vardır. Değişiklikler canlı önizleme msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Her çalışma alanı kendi bulut makinesini alır ve dizüstünüz kapalıyken de çalışmaya devam eder. Masaüstünden, iPhone'dan veya iPad'den kontrol edin." +msgid "Earlier period" +msgstr "Önceki dönem" + msgid "Early 2024" msgstr "2024 başı" @@ -8301,6 +8335,9 @@ msgstr "Çok yüksek" msgid "Extra small" msgstr "Çok küçük" +msgid "Extra usage" +msgstr "Ek kullanım" + msgid "Extra usage limit reached" msgstr "Ek kullanım sınırına ulaşıldı" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Başarısız" -msgid "Failed {failedAt}" -msgstr "{failedAt} tarihinde başarısız oldu" - msgid "Failed runs <0>· 7d" msgstr "Başarısız çalıştırmalar <0>· 7g" @@ -8532,6 +8566,9 @@ msgstr "Görsel yüklenemedi" msgid "Failed to load repositories. Please try again." msgstr "Depolar yüklenemedi. Lütfen yeniden deneyin." +msgid "Failed to load usage" +msgstr "Kullanım yüklenemedi" + msgid "Failed to log out. Please try again." msgstr "Oturum kapatılamadı. Lütfen yeniden deneyin." @@ -9019,6 +9056,9 @@ msgstr "bitti · 7 sn çalıştı" msgid "Finishing the move…" msgstr "Taşıma tamamlanıyor…" +msgid "First page" +msgstr "İlk sayfa" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "İlk kez mi? <0>ChatGPT ayarlarında cihaz koduyla oturum açmayı etkinleştirin." @@ -9284,6 +9324,13 @@ msgstr "Kurucu Mühendis" msgid "Free" msgstr "Ücretsiz" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Ücretsiz" + +msgid "Free credits" +msgstr "Ücretsiz krediler" + msgid "Free for everyone" msgstr "Herkes için ücretsiz" @@ -10110,6 +10157,10 @@ msgstr "Kimlik" msgid "Idle" msgstr "Boşta" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Boşta" + msgid "Idle · branch pushed" msgstr "Boşta · dal push edildi" @@ -10303,6 +10354,9 @@ msgstr "İncelemede" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "{appName} masaüstü uygulamasında Ayarlar → Uzaktan erişim bölümünü açın ve “Bu cihaza röle üzerinden uzaktan erişime izin ver” seçeneğini açın." +msgid "in the last 30 days" +msgstr "son 30 günde" + msgid "In the merge queue" msgstr "Birleştirme kuyruğunda" @@ -10312,6 +10366,9 @@ msgstr "Birleştirme kuyruğunda. Sırası geldiğinde GitHub onu birleştirir." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "Paradev masaüstü uygulamasında <0>Ayarlar → Görünüm → Tema bölümünü açın." +msgid "in this period" +msgstr "bu dönemde" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "Bir yıldan kısa sürede 180 ülkeden 145.000'den fazla geliştirici {productName}'i çalıştırdı ve 1,85 milyondan fazla ajan çalışma alanı oluşturdu." @@ -10342,6 +10399,9 @@ msgstr "Enterprise'a dahil" msgid "Included with Team and Ultra." msgstr "Team ve Ultra'ya dahildir." +msgid "Included with the plan" +msgstr "Plana dahil" + msgid "Includes the Paradev-specific box variant" msgstr "Paradev'e özgü kutu varyantını içerir" @@ -10963,6 +11023,9 @@ msgstr "Son 3 ay" msgid "last 30 days" msgstr "son 30 gün" +msgid "Last 30 days" +msgstr "Son 30 gün" + msgid "Last 4 weeks" msgstr "Son 4 hafta" @@ -11037,6 +11100,9 @@ msgstr "Gecikme" msgid "Later messages are removed." msgstr "Sonraki mesajlar kaldırılacak." +msgid "Later period" +msgstr "Sonraki dönem" + msgid "Latest" msgstr "En son" @@ -11444,6 +11510,9 @@ msgstr "Daha fazlası yükleniyor..." msgid "Loading more…" msgstr "Daha fazlası yükleniyor…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Sayfa {loadingPage}/{targetPage} yükleniyor..." + msgid "Loading project…" msgstr "Proje yükleniyor…" @@ -12570,6 +12639,9 @@ msgstr "Sonraki görsel" msgid "Next match" msgstr "Sonraki eşleşme" +msgid "Next page" +msgstr "Sonraki sayfa" + msgid "Next Right Sidebar Tab" msgstr "Sağ kenar çubuğunda sonraki sekme" @@ -13292,6 +13364,9 @@ msgstr "Bu host'ta henüz çalışma alanı yok" msgid "No workspaces yet" msgstr "Henüz çalışma alanı yok" +msgid "No workspaces." +msgstr "Çalışma alanı yok." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Hayır. {companyName}, model çağrıları için asla proxy görevi görmez. Ajanlar kendi aboneliklerinizi ve anahtarlarınızı kullanır." @@ -13340,6 +13415,9 @@ msgstr "Bu sunucuda kullanılamıyor" msgid "Not bound · configure in Settings → Links" msgstr "Atanmadı · Ayarlar → Bağlantılar bölümünden yapılandırın" +msgid "Not broken down yet" +msgstr "Henüz ayrıntılandırılmadı" + msgid "Not configured" msgstr "Yapılandırılmadı" @@ -13352,6 +13430,9 @@ msgstr "Bağlı değil" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Bağlı değil · bulut çalışma alanları organizasyonunun GitHub App'i olarak push yapar" +msgid "Not counted by billing yet" +msgstr "Henüz faturalandırmaya yansımadı" + msgid "Not demoed here" msgstr "Burada gösterilmiyor" @@ -13523,6 +13604,12 @@ msgstr "Nesneler" msgid "of {0}" msgstr "{0} içinde" +msgid "of {cap} included" +msgstr "/ {cap} dahil" + +msgid "of {cap} limit" +msgstr "/ {cap} sınır" + msgid "of {total}" msgstr "{total} içinde" @@ -13804,9 +13891,6 @@ msgstr "Bu bağlantıyı yalnızca siz kullanabilirsiniz. Ekip arkadaşlarınız msgid "Only you. Teammates forward their own." msgstr "Yalnızca siz. Ekip arkadaşları kendilerininkini yönlendirir." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Yalnızca kendi çalışma alanlarınız. Kuruluş toplamları sahipler ve yöneticiler içindir." - msgid "open" msgstr "aç" @@ -14398,6 +14482,10 @@ msgstr "Özgünler" msgid "Other" msgstr "Diğer" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Diğer" + msgid "Other apps" msgstr "Diğer uygulamalar" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Sayfa" +msgid "Page {page} of {pages}" +msgstr "Sayfa {page} / {pages}" + msgid "Page actions" msgstr "Sayfa işlemleri" @@ -14567,6 +14658,10 @@ msgstr "sayfalama" msgid "Pagination" msgstr "Sayfalama" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Ücretli" + msgid "Paid plans" msgstr "Ücretli planlar" @@ -15340,6 +15435,9 @@ msgstr "Önceki görsel" msgid "Previous match" msgstr "Önceki eşleşme" +msgid "Previous page" +msgstr "Önceki sayfa" + msgid "Previous prompts" msgstr "Önceki istemler" @@ -15576,6 +15674,10 @@ msgstr "Özellikler" msgid "Provide either id or slug" msgstr "id veya slug değerlerinden birini sağlayın" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Hazırlanıyor" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Sağlama başarısız oldu ve sandbox kaldırıldı. Hiçbir şey çalışmıyor ve bu çalışma alanı açılamaz. Yeniden denemek için yeni bir tane oluşturun." @@ -16338,6 +16440,9 @@ msgstr "ajanı kaldırma" msgid "remove the PR link" msgstr "PR bağlantısını kaldırma" +msgid "Remove this filter" +msgstr "Bu filtreyi kaldır" + msgid "Remove trigger" msgstr "Tetikleyiciyi kaldır" @@ -17075,6 +17180,9 @@ msgstr "Satır eylemleri" msgid "Rows changed" msgstr "Satırlar değişti" +msgid "Rows per page" +msgstr "Sayfa başına satır" + msgid "Rule" msgstr "Kural" @@ -17215,7 +17323,7 @@ msgstr "çalışıyor" msgid "Running" msgstr "Çalışıyor" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Çalışıyor" @@ -17667,6 +17775,9 @@ msgstr "Kbd kullanımları aranıyor" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Dönem ortasında kaldırılan koltuklar {0} tarihine kadar aktif kalır." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Koltuklar, krediler ve ek kullanım sınırı henüz yüklenmedi. Faturalandırma verileri bir sonraki yenilendiğinde görünürler." + msgid "Secondary" msgstr "İkincil" @@ -19154,10 +19265,6 @@ msgstr "başlatılıyor" msgid "Starting" msgstr "Başlatılıyor" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Başlatılıyor" - msgid "Starting {agentLabel}" msgstr "{agentLabel} başlatılıyor" @@ -19306,23 +19413,21 @@ msgstr "durduruldu" msgid "Stopped" msgstr "Durduruldu" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Durduruldu" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "Bellek boşaltmak için {0} ({1} GB) durduruldu" -msgid "Stopped by a person" -msgstr "Bir kişi tarafından durduruldu" - msgid "Stopped by the usage limit" msgstr "Kullanım sınırı nedeniyle durduruldu" msgid "Stopped moving {name}" msgstr "{name} taşınması durduruldu" -msgid "Stopped when idle" -msgstr "Boşta kaldığında durduruldu" - msgid "Stopping the agent in {what}" msgstr "{what} içindeki ajan durduruluyor" @@ -20003,6 +20108,9 @@ msgstr "En iyi ajan değişecek.<0/>İş akışınız değişmemeli." msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "Makine {wanted} yerine {actual} vCPU ile açıldı. Yeniden denemek için yeniden başlatın." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Plana göre döküm yalnızca geçerli dönem için tutulur." + msgid "The button now stands out. I checked it in your pane." msgstr "Düğme artık öne çıkıyor. Bölmenizde kontrol ettim." @@ -20075,6 +20183,9 @@ msgstr "Bu otomasyonun bulut çalışma alanlarını başlattığı ortam arşiv msgid "The extension and its local data are deleted from this browser." msgstr "Uzantı ve yerel verileri bu tarayıcıdan silinir." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "Ek kullanım sınırı planın bir yüzdesi olduğundan tutarı gösterilmez." + msgid "The factory" msgstr "Fabrika" @@ -20151,9 +20262,6 @@ msgstr "İnsan, birleştirilmeden önce her satırı okur." msgid "The image upload expired — attach it again" msgstr "Görsel yüklemesinin süresi doldu — yeniden ekleyin" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Dahil olan ve aşan GB-saatler yalnızca geçerli dönem için tutulur." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "İş tanımı değişir. Mühendisler zevk sahibi daktilocular olmayı bırakıp zevk sahibi dağıtıcılar olur: işi parçalara ayırır, filolara yönlendirir ve aynı modüle dokunan iki ajan arasındaki çakışmalara hakemlik eder." @@ -20662,15 +20770,15 @@ msgstr "Bu yalnızca görünen adı değiştirir, dalı değil." msgid "this organization" msgstr "bu kuruluş" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Bu kuruluşun fatura dönemi yok, bu nedenle bu sayfa son 30 günü gösteriyor." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Bu kuruluşun faturalama dönemi yok. Bunun yerine bir zaman aralığı seçin." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Bu kuruluş Ücretsiz planda. {appName} Mobile, Pro planındaki kuruluşlar için kullanılabilir." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Bu sayfa kullanım sınırına ne zaman ulaşıldığını bilemez." + msgid "This page could not be loaded" msgstr "Bu sayfa yüklenemedi" @@ -20876,6 +20984,9 @@ msgstr "Bu çalışma alanı" msgid "This workspace has no project to branch from" msgstr "Bu çalışma alanının çatallanacak bir projesi yok" +msgid "This workspace has no usage in this period." +msgstr "Bu çalışma alanının bu dönemde kullanımı yok." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Bu çalışma alanı kaldırılmış olabilir ya da artık erişiminiz olmayabilir." @@ -21458,6 +21569,10 @@ msgstr "bilinmiyor" msgid "Unknown" msgstr "Bilinmiyor" +msgctxt "boot end" +msgid "Unknown" +msgstr "Bilinmiyor" + msgctxt "person" msgid "Unknown" msgstr "Bilinmiyor" @@ -21782,21 +21897,21 @@ msgstr "Kuruluşunuz içinde benzersiz, URL dostu tanımlayıcı." msgid "Usage" msgstr "Kullanım" -msgid "Usage by day" -msgstr "Güne göre kullanım" - -msgid "Usage by person" -msgstr "Kişiye göre kullanım" - msgid "Usage is out of date" msgstr "Kullanım verileri güncel değil" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Kullanım, faturalandırıldığı UTC gününde gösterilir; bu, çalışma alanının çalıştığı zamandan biraz sonra olabilir." +msgid "usage limit" +msgstr "kullanım sınırı" + +msgid "Usage limit" +msgstr "Kullanım sınırı" msgid "Usage limit reached" msgstr "Kullanım sınırına ulaşıldı" +msgid "Usage limit reached." +msgstr "Kullanım sınırına ulaşıldı." + msgid "Usage sections" msgstr "Kullanım bölümleri" @@ -23119,6 +23234,9 @@ msgstr "Kuruluşunuz ortam sınırına ulaştı." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Kendi hesapların. Organizasyonunun entegrasyonları Paradev'in araçlarına erişmesini sağlar; kendi hesaplarını bağladığında Paradev'in senin için yaptığı işler senin adınla görünür." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Yalnızca kendi kullanımınız. Kuruluşun toplamları, kotası ve kişiye göre kullanım sahipler ve yöneticiler içindir." + msgid "Your Paradev download is starting." msgstr "Paradev indirmeniz başlıyor." @@ -23134,9 +23252,6 @@ msgstr "Planınız bulut ortamlarını içermiyor." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Planınız bulut ortamlarını içermiyor. Oluşturmak için Ayarlar, Faturalandırma bölümünden yükseltin." -msgid "Your plan includes no cloud GB-hours." -msgstr "Planınız bulut GB-saati içermiyor." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Planınız {startDate} tarihinde {planName} olarak değişir. Bugün ücret alınmaz." diff --git a/packages/i18n/locales/uk/messages.po b/packages/i18n/locales/uk/messages.po index 81afc46cb5a..90319161d56 100644 --- a/packages/i18n/locales/uk/messages.po +++ b/packages/i18n/locales/uk/messages.po @@ -910,6 +910,12 @@ msgstr "{count, plural, one {отримано # сторінку} few {отри msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Імпортувати # worktree} few {Імпортувати # worktree} many {Імпортувати # worktree} other {Імпортувати # worktree}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, one {у # робочому просторі за останні 30 днів} few {у # робочих просторах за останні 30 днів} many {у # робочих просторах за останні 30 днів} other {у # робочого простору за останні 30 днів}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, one {у # робочому просторі за цей період} few {у # робочих просторах за цей період} many {у # робочих просторах за цей період} other {у # робочого простору за цей період}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, one {Злити # пул-реквест?} few {Злити # пул-реквести?} many {Злити # пул-реквестів?} other {Злити # пул-реквесту?}}" @@ -1037,9 +1043,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} ГБ-годин" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# прихований рядок} few {# приховані рядки} many {# прихованих рядків} other {# прихованого рядка}}" @@ -1341,6 +1344,12 @@ msgstr "Залишилося токенів: {remaining}" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Скасовано зміни в # файлі.} few {Скасовано зміни в # файлах.} many {Скасовано зміни в # файлах.} other {Скасовано зміни в # файла.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, one {{first}–{last} з # рядка} few {{first}–{last} з # рядків} many {{first}–{last} з # рядків} other {{first}–{last} з # рядка}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, one {Входить у # місце} few {Входить у # місця} many {Входить у # місць} other {Входить у # місця}}" + msgid "{seconds}s" msgstr "{seconds} с" @@ -1358,17 +1367,17 @@ msgstr "{shown} з {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "Показано: {shownCount} · {0} · {1} токенів" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} ГБ" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# пропущено} few {# пропущено} many {# пропущено} other {# пропущено}}" msgid "{starCount} stars and counting" msgstr "{starCount} зірок, і це не межа" -msgid "{start} to {end}" -msgstr "З {start} по {end}" - -msgid "{start} to {end} (current)" -msgstr "З {start} по {end} (поточний)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {Запущено # автоматизацію} few {Запущено # автоматизації} many {Запущено # автоматизацій} other {Запущено # автоматизації}}" @@ -1427,9 +1436,15 @@ msgstr "{used} з {limit} середовищ" msgid "{used} of {size} tokens" msgstr "{used} з {size} токенів" +msgid "{used} of {total}" +msgstr "{used} з {total}" + msgid "{used} used" msgstr "Використано {used}" +msgid "{used} used by you" +msgstr "Ви використали {used}" + msgid "{user} and {others} joined and left." msgstr "{user} і {others} приєдналися й вийшли." @@ -1457,9 +1472,6 @@ msgstr "{user} знову приєднався(-лася)." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} ГБ" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} ГБ" - msgid "{waiting} Waiting" msgstr "Очікують: {waiting}" @@ -1640,6 +1652,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Seed-раунд на $11,5 млн на чолі з Union Square Ventures" +msgid "0 rows" +msgstr "0 рядків" + msgid "1" msgstr "1" @@ -2882,6 +2897,9 @@ msgstr "Будь-яка назва" msgid "Any page" msgstr "Будь-яка сторінка" +msgid "Any person" +msgstr "Усі люди" + msgid "Any project" msgstr "Будь-який проєкт" @@ -2897,6 +2915,9 @@ msgstr "Будь-який рецензент" msgid "any sender" msgstr "будь-який відправник" +msgid "Any size" +msgstr "Будь-який розмір" + msgid "Any status" msgstr "Будь-який статус" @@ -3456,6 +3477,10 @@ msgstr "Очікує вашого рев'ю" msgid "Awaiting review from you or your team" msgstr "Очікує рев'ю від вас або вашої команди" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Працює" + msgid "Away" msgstr "Відсутній" @@ -3583,9 +3608,6 @@ msgstr "Оплата" msgid "Billing details" msgstr "Платіжні дані" -msgid "Billing period" -msgstr "Розрахунковий період" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Система оплати не дозволила запустити хмарний робочий простір: тариф організації не передбачає хмарних робочих просторів або досягнуто ліміту хмарного використання. Для хмарних робочих просторів потрібен тариф Team або Ultra. Перейдіть на вищий тариф або підвищте ліміт у Налаштування > Оплата чи запустіть автоматизацію на пристрої." @@ -3666,6 +3688,9 @@ msgstr "Запозичено з того, як оцінюють безпілот msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Нижня висувна панель, зручна для свайпів на сенсорних пристроях." +msgid "Bought credits" +msgstr "Куплені кредити" + msgid "Bought GB-hours left: {prepaid}" msgstr "Залишок куплених ГБ-годин: {prepaid}" @@ -3890,6 +3915,12 @@ msgstr "Надаючи дозвіл, ви дозволяєте цьому зас msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Натискаючи «Продовжити», ви погоджуєтеся з нашими <0>Умовами використання та <1>Політикою конфіденційності." +msgid "By day" +msgstr "За днями" + +msgid "By person" +msgstr "За людьми" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Входячи, ви погоджуєтеся з нашими\n" @@ -4825,9 +4856,6 @@ msgstr "Використання хмари не ввімкнено для ці msgid "Cloud workspace" msgstr "Хмарний робочий простір" -msgid "Cloud workspace usage for the whole organization." -msgstr "Використання хмарних робочих просторів у всій організації." - msgid "Cloud workspace: asleep" msgstr "Хмарний робочий простір: у сплячому режимі" @@ -4853,6 +4881,9 @@ msgstr "Хмарні робочі простори не ввімкнено дл msgid "Cloud workspaces are not included in your plan." msgstr "Хмарні робочі простори не входять у ваш тариф." +msgid "Cloud workspaces cannot start." +msgstr "Хмарні робочі простори не можуть запуститися." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Хмарні робочі простори комітять, пушать і відкривають пул-реквести від вашого імені" @@ -5809,9 +5840,6 @@ msgstr "Не вдалося отримати вміст папки" msgid "Could not load agents from {0}" msgstr "Не вдалося завантажити агентів з {0}" -msgid "Could not load cloud usage." -msgstr "Не вдалося завантажити використання хмари." - msgid "Could not load environments" msgstr "Не вдалося завантажити середовища" @@ -5992,6 +6020,9 @@ msgstr "Не вдалося почати сеанс" msgid "Could not start the chat" msgstr "Не вдалося почати чат" +msgid "Could not start." +msgstr "Не вдалося запустити." + msgid "Could not steer" msgstr "Не вдалося скерувати агента" @@ -7770,6 +7801,9 @@ msgstr "Кожна поверхня має власну типографіку. msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Кожен робочий простір отримує власну хмарну машину і працює далі, коли ноутбук закрито. Стежте за ним з комп'ютера, iPhone або iPad." +msgid "Earlier period" +msgstr "Попередній період" + msgid "Early 2024" msgstr "Початок 2024" @@ -8295,6 +8329,9 @@ msgstr "Дуже високий" msgid "Extra small" msgstr "Дуже малий" +msgid "Extra usage" +msgstr "Додаткове використання" + msgid "Extra usage limit reached" msgstr "Досягнуто ліміту додаткового використання" @@ -8330,9 +8367,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Помилка" -msgid "Failed {failedAt}" -msgstr "Помилка: {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Невдалі запуски <0>· 7 дн." @@ -8526,6 +8560,9 @@ msgstr "Не вдалося завантажити зображення" msgid "Failed to load repositories. Please try again." msgstr "Не вдалося завантажити репозиторії. Спробуйте ще раз." +msgid "Failed to load usage" +msgstr "Не вдалося завантажити використання" + msgid "Failed to log out. Please try again." msgstr "Не вдалося вийти. Спробуйте ще раз." @@ -9013,6 +9050,9 @@ msgstr "завершив · працював 7 с" msgid "Finishing the move…" msgstr "Завершення переміщення…" +msgid "First page" +msgstr "Перша сторінка" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Уперше? Увімкніть вхід за кодом пристрою в <0>налаштуваннях ChatGPT." @@ -9278,6 +9318,13 @@ msgstr "Founding Engineer" msgid "Free" msgstr "Безкоштовно" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Безкоштовно" + +msgid "Free credits" +msgstr "Безкоштовні кредити" + msgid "Free for everyone" msgstr "Безкоштовно для всіх" @@ -10104,6 +10151,10 @@ msgstr "Ідентифікація" msgid "Idle" msgstr "Простоює" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Простій" + msgid "Idle · branch pushed" msgstr "Простоює · гілку запушено" @@ -10297,6 +10348,9 @@ msgstr "На рев'ю" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "У десктопному застосунку {appName} відкрийте «Налаштування → Віддалений доступ» і ввімкніть «Дозволити віддалений доступ до цього пристрою через релей»." +msgid "in the last 30 days" +msgstr "за останні 30 днів" + msgid "In the merge queue" msgstr "У черзі злиття" @@ -10306,6 +10360,9 @@ msgstr "У черзі злиття. GitHub зіллє його, коли нас msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "У десктопному застосунку Paradev відкрийте <0>Налаштування → Вигляд → Тема." +msgid "in this period" +msgstr "за цей період" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "Менш ніж за рік понад 145 000 розробників зі 180 країн запустили {productName} і створили понад 1,85 мільйона робочих просторів агентів." @@ -10336,6 +10393,9 @@ msgstr "Входить в Enterprise" msgid "Included with Team and Ultra." msgstr "Входить у Team та Ultra." +msgid "Included with the plan" +msgstr "Входить у тариф" + msgid "Includes the Paradev-specific box variant" msgstr "Містить варіант box для Paradev" @@ -10957,6 +11017,9 @@ msgstr "Останні 3 місяці" msgid "last 30 days" msgstr "останні 30 днів" +msgid "Last 30 days" +msgstr "Останні 30 днів" + msgid "Last 4 weeks" msgstr "Останні 4 тижні" @@ -11031,6 +11094,9 @@ msgstr "Затримка" msgid "Later messages are removed." msgstr "Пізніші повідомлення буде видалено." +msgid "Later period" +msgstr "Наступний період" + msgid "Latest" msgstr "Остання" @@ -11438,6 +11504,9 @@ msgstr "Завантажуємо ще..." msgid "Loading more…" msgstr "Завантажуємо ще…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Завантаження сторінки {loadingPage} з {targetPage}..." + msgid "Loading project…" msgstr "Завантаження проєкту…" @@ -12564,6 +12633,9 @@ msgstr "Наступне зображення" msgid "Next match" msgstr "Наступний збіг" +msgid "Next page" +msgstr "Наступна сторінка" + msgid "Next Right Sidebar Tab" msgstr "Наступна вкладка правої бічної панелі" @@ -13286,6 +13358,9 @@ msgstr "На цьому хості ще немає робочих простор msgid "No workspaces yet" msgstr "Робочих просторів ще немає" +msgid "No workspaces." +msgstr "Немає робочих просторів." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Ні. {companyName} ніколи не проксіює виклики моделей. Агенти використовують ваші власні підписки та ключі." @@ -13334,6 +13409,9 @@ msgstr "Недоступно на цьому сервері" msgid "Not bound · configure in Settings → Links" msgstr "Не прив'язано · налаштуйте в Налаштування → Посилання" +msgid "Not broken down yet" +msgstr "Ще не розбито за статтями" + msgid "Not configured" msgstr "Не налаштовано" @@ -13346,6 +13424,9 @@ msgstr "Не підключено" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Не підключено · хмарні робочі простори пушать від імені GitHub App вашої організації" +msgid "Not counted by billing yet" +msgstr "Ще не враховано в рахунку" + msgid "Not demoed here" msgstr "Тут не демонструється" @@ -13517,6 +13598,12 @@ msgstr "Об'єкти" msgid "of {0}" msgstr "з {0}" +msgid "of {cap} included" +msgstr "з {cap} за тарифом" + +msgid "of {cap} limit" +msgstr "з ліміту {cap}" + msgid "of {total}" msgstr "з {total}" @@ -13798,9 +13885,6 @@ msgstr "Лише ви можете використовувати це підк msgid "Only you. Teammates forward their own." msgstr "Лише ви. Колеги переадресовують власні." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Лише ваші робочі простори. Підсумки організації доступні власникам і адміністраторам." - msgid "open" msgstr "відкрити" @@ -14392,6 +14476,10 @@ msgstr "Оригінали" msgid "Other" msgstr "Інше" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Інше" + msgid "Other apps" msgstr "Інші застосунки" @@ -14504,6 +14592,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Сторінка" +msgid "Page {page} of {pages}" +msgstr "Сторінка {page} з {pages}" + msgid "Page actions" msgstr "Дії зі сторінкою" @@ -14561,6 +14652,10 @@ msgstr "пагінація" msgid "Pagination" msgstr "Пагінація" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Платно" + msgid "Paid plans" msgstr "Платні плани" @@ -15334,6 +15429,9 @@ msgstr "Попереднє зображення" msgid "Previous match" msgstr "Попередній збіг" +msgid "Previous page" +msgstr "Попередня сторінка" + msgid "Previous prompts" msgstr "Попередні промпти" @@ -15570,6 +15668,10 @@ msgstr "Властивості" msgid "Provide either id or slug" msgstr "Укажіть id або slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Підготовка" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Розгортання не вдалося, і пісочницю видалено. Нічого не запущено, і цей робочий простір не можна відкрити. Створіть новий, щоб спробувати знову." @@ -16332,6 +16434,9 @@ msgstr "видалити агента" msgid "remove the PR link" msgstr "прибрати посилання на PR" +msgid "Remove this filter" +msgstr "Прибрати цей фільтр" + msgid "Remove trigger" msgstr "Видалити тригер" @@ -17069,6 +17174,9 @@ msgstr "Дії з рядком" msgid "Rows changed" msgstr "Змінені рядки" +msgid "Rows per page" +msgstr "Рядків на сторінці" + msgid "Rule" msgstr "Правило" @@ -17209,7 +17317,7 @@ msgstr "працює" msgid "Running" msgstr "Виконується" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Працює" @@ -17661,6 +17769,9 @@ msgstr "Шукаємо використання Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Місця, прибрані посеред розрахункового періоду, залишаються активними до {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Місця, кредити й ліміт додаткового використання ще не завантажено. Вони з'являться після наступного оновлення платіжних даних." + msgid "Secondary" msgstr "Другорядний" @@ -19148,10 +19259,6 @@ msgstr "запускається" msgid "Starting" msgstr "Запуск" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Запускається" - msgid "Starting {agentLabel}" msgstr "Запускаємо {agentLabel}" @@ -19300,23 +19407,21 @@ msgstr "зупинено" msgid "Stopped" msgstr "Зупинено" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Зупинено" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "Зупинено {0} ({1} ГБ), щоб звільнити пам'ять" -msgid "Stopped by a person" -msgstr "Зупинено людиною" - msgid "Stopped by the usage limit" msgstr "Зупинено через ліміт використання" msgid "Stopped moving {name}" msgstr "Перенесення {name} зупинено" -msgid "Stopped when idle" -msgstr "Зупинено під час простою" - msgid "Stopping the agent in {what}" msgstr "Зупинка агента в {what}" @@ -19997,6 +20102,9 @@ msgstr "Найкращий агент зміниться.<0/>Ваш робочи msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "Машина запустилася з {actual} vCPU замість {wanted}. Перезапустіть її, щоб спробувати знову." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Розбивка за тарифом зберігається лише для поточного періоду." + msgid "The button now stands out. I checked it in your pane." msgstr "Тепер кнопка помітніша. Я перевірив її у вашій панелі." @@ -20069,6 +20177,9 @@ msgstr "Середовище, з якого ця автоматизація за msgid "The extension and its local data are deleted from this browser." msgstr "Розширення та його локальні дані буде видалено з цього браузера." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "Ліміт додаткового використання задано відсотком від тарифу, тому його сума не показується." + msgid "The factory" msgstr "Фабрика" @@ -20145,9 +20256,6 @@ msgstr "Людина читає кожен рядок перед злиттям. msgid "The image upload expired — attach it again" msgstr "Термін дії завантаженого зображення минув — прикріпіть його знову" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "Включені ГБ-години та ГБ-години понад тариф зберігаються лише для поточного періоду." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "Суть професії змінюється. Інженери перестають бути друкарями зі смаком і стають диспетчерами зі смаком: розбивають роботу на частини, розподіляють її між флотами агентів, розв'язують конфлікти між агентами, які змінили той самий модуль." @@ -20656,15 +20764,15 @@ msgstr "Це змінює лише відображувану назву, а н msgid "this organization" msgstr "ця організація" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Ця організація не має розрахункових періодів, тому на сторінці показано останні 30 днів." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Ця організація не має розрахункових періодів. Виберіть часовий діапазон." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Ця організація на тарифі Free. {appName} Mobile доступний для організацій на тарифі Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Ця сторінка не може визначити, коли досягнуто ліміту використання." + msgid "This page could not be loaded" msgstr "Не вдалося завантажити цю сторінку" @@ -20870,6 +20978,9 @@ msgstr "Цей робочий простір" msgid "This workspace has no project to branch from" msgstr "У цього робочого простору немає проєкту, від якого можна створити гілку" +msgid "This workspace has no usage in this period." +msgstr "Цей робочий простір не використовувався за цей період." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Можливо, цей робочий простір видалено або ви більше не маєте до нього доступу." @@ -21452,6 +21563,10 @@ msgstr "невідомо" msgid "Unknown" msgstr "Невідомо" +msgctxt "boot end" +msgid "Unknown" +msgstr "Невідомо" + msgctxt "person" msgid "Unknown" msgstr "Невідомий" @@ -21776,21 +21891,21 @@ msgstr "Ідентифікатор для URL, унікальний у межа msgid "Usage" msgstr "Використання" -msgid "Usage by day" -msgstr "Використання за днями" - -msgid "Usage by person" -msgstr "Використання за людьми" - msgid "Usage is out of date" msgstr "Дані про використання застаріли" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Використання показано в день (UTC), коли його виставлено в рахунок; це може бути трохи пізніше, ніж працював робочий простір." +msgid "usage limit" +msgstr "ліміт використання" + +msgid "Usage limit" +msgstr "Ліміт використання" msgid "Usage limit reached" msgstr "Досягнуто ліміту використання" +msgid "Usage limit reached." +msgstr "Досягнуто ліміту використання." + msgid "Usage sections" msgstr "Розділи використання" @@ -23113,6 +23228,9 @@ msgstr "Ваша організація досягла ліміту середо msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Ваші власні облікові записи. Інтеграції вашої організації дають Paradev доступ до її інструментів; якщо підключити власні, робота, яку Paradev виконує для вас, відображатиметься від вашого імені." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Лише ваше власне використання. Підсумки організації, її ліміт і використання за людьми доступні власникам і адміністраторам." + msgid "Your Paradev download is starting." msgstr "Завантаження Paradev починається." @@ -23128,9 +23246,6 @@ msgstr "Ваш тариф не передбачає хмарних середо msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Ваш тариф не передбачає хмарних середовищ. Покращте тариф у розділі «Налаштування», «Оплата», щоб створити середовище." -msgid "Your plan includes no cloud GB-hours." -msgstr "Ваш тариф не містить хмарних ГБ-годин." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Ваш тариф зміниться на {planName} {startDate}. Сьогодні нічого не списується." diff --git a/packages/i18n/locales/vi/messages.po b/packages/i18n/locales/vi/messages.po index bf6d11d1da1..b81f4ff79ef 100644 --- a/packages/i18n/locales/vi/messages.po +++ b/packages/i18n/locales/vi/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {đã tải # trang} other {đã tải # trang}}" msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {Nhập # worktree} other {Nhập # worktree}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, other {trong # workspace trong 30 ngày qua}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, other {trong # workspace trong kỳ này}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, other {Merge # pull request?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}: {statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB-giờ" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {# dòng ẩn} other {# dòng ẩn}}" @@ -1347,6 +1350,12 @@ msgstr "Còn {remaining} token" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {Đã hoàn tác thay đổi ở # tệp.} other {Đã hoàn tác thay đổi ở # tệp.}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, other {{first}–{last} trên # hàng}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, other {Gồm trong # chỗ}}" + msgid "{seconds}s" msgstr "{seconds} giây" @@ -1364,17 +1373,17 @@ msgstr "{shown} trong {total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "Hiện {shownCount} · {0} · {1} token" +msgid "{size}, {memory} GB" +msgstr "{size}, {memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {# bỏ qua} other {# bỏ qua}}" msgid "{starCount} stars and counting" msgstr "{starCount} star và còn tăng" -msgid "{start} to {end}" -msgstr "{start} đến {end}" - -msgid "{start} to {end} (current)" -msgstr "{start} đến {end} (hiện tại)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {Đã khởi chạy # tự động hóa} other {Đã khởi chạy # tự động hóa}}" @@ -1433,9 +1442,15 @@ msgstr "{used}/{limit} môi trường" msgid "{used} of {size} tokens" msgstr "{used} / {size} token" +msgid "{used} of {total}" +msgstr "{used} / {total}" + msgid "{used} used" msgstr "Đã dùng {used}" +msgid "{used} used by you" +msgstr "Bạn đã dùng {used}" + msgid "{user} and {others} joined and left." msgstr "{user} và {others} đã tham gia rồi rời đi." @@ -1463,9 +1478,6 @@ msgstr "{user} đã tham gia lại." msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} vCPU, {memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting} đang chờ" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "Vòng hạt giống 11,5 triệu USD do Union Square Ventures dẫn dắt" +msgid "0 rows" +msgstr "0 hàng" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "Tên bất kỳ" msgid "Any page" msgstr "Trang bất kỳ" +msgid "Any person" +msgstr "Bất kỳ ai" + msgid "Any project" msgstr "Dự án bất kỳ" @@ -2903,6 +2921,9 @@ msgstr "Tất cả người review" msgid "any sender" msgstr "người gửi bất kỳ" +msgid "Any size" +msgstr "Mọi kích thước" + msgid "Any status" msgstr "Trạng thái bất kỳ" @@ -3462,6 +3483,10 @@ msgstr "Đang chờ bạn review" msgid "Awaiting review from you or your team" msgstr "Đang chờ bạn hoặc nhóm bạn review" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "Đang chạy" + msgid "Away" msgstr "Vắng mặt" @@ -3589,9 +3614,6 @@ msgstr "Thanh toán" msgid "Billing details" msgstr "Thông tin thanh toán" -msgid "Billing period" -msgstr "Kỳ thanh toán" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "Thanh toán đã từ chối khởi động không gian làm việc trên đám mây: gói của tổ chức không bao gồm không gian làm việc trên đám mây, hoặc tổ chức đã đạt giới hạn sử dụng đám mây. Không gian làm việc trên đám mây cần gói Team hoặc Ultra. Nâng cấp hoặc tăng giới hạn trong Cài đặt > Thanh toán, hoặc chạy tự động hóa trên một thiết bị." @@ -3672,6 +3694,9 @@ msgstr "Mượn từ cách chấm mức tự lái của ô tô, áp vào cách p msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "Ngăn kéo dưới đáy, vuốt tiện trên thiết bị cảm ứng." +msgid "Bought credits" +msgstr "Tín dụng đã mua" + msgid "Bought GB-hours left: {prepaid}" msgstr "GB-giờ đã mua còn lại: {prepaid}" @@ -3896,6 +3921,12 @@ msgstr "Khi cấp quyền, bạn cho phép ứng dụng này truy cập dữ li msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "Khi nhấn tiếp tục, bạn đồng ý với <0>Điều khoản dịch vụ và <1>Chính sách quyền riêng tư của chúng tôi." +msgid "By day" +msgstr "Theo ngày" + +msgid "By person" +msgstr "Theo người" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "Khi đăng nhập, bạn đồng ý với\n" @@ -4831,9 +4862,6 @@ msgstr "Mức sử dụng đám mây chưa được bật cho tổ chức này." msgid "Cloud workspace" msgstr "Workspace cloud" -msgid "Cloud workspace usage for the whole organization." -msgstr "Mức sử dụng workspace đám mây của toàn tổ chức." - msgid "Cloud workspace: asleep" msgstr "Workspace cloud: đang ngủ" @@ -4859,6 +4887,9 @@ msgstr "Không gian làm việc trên đám mây chưa được bật cho {accou msgid "Cloud workspaces are not included in your plan." msgstr "Gói của bạn không bao gồm không gian làm việc đám mây." +msgid "Cloud workspaces cannot start." +msgstr "Không thể khởi động workspace trên đám mây." + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "Workspace đám mây commit, push và mở pull request với tư cách là bạn" @@ -5815,9 +5846,6 @@ msgstr "Không thể liệt kê thư mục" msgid "Could not load agents from {0}" msgstr "Không thể tải agent từ {0}" -msgid "Could not load cloud usage." -msgstr "Không thể tải mức sử dụng đám mây." - msgid "Could not load environments" msgstr "Không thể tải environment" @@ -5998,6 +6026,9 @@ msgstr "Không thể bắt đầu phiên" msgid "Could not start the chat" msgstr "Không thể bắt đầu cuộc trò chuyện" +msgid "Could not start." +msgstr "Không thể khởi động." + msgid "Could not steer" msgstr "Không thể dừng và gửi" @@ -7776,6 +7807,9 @@ msgstr "Mỗi bề mặt có kiểu chữ riêng. Thay đổi hiện ra ngay tro msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "Mỗi không gian làm việc có một máy đám mây riêng và vẫn làm việc khi laptop của bạn đã gập. Theo dõi từ máy tính, iPhone hoặc iPad." +msgid "Earlier period" +msgstr "Kỳ trước" + msgid "Early 2024" msgstr "Đầu 2024" @@ -8301,6 +8335,9 @@ msgstr "Rất cao" msgid "Extra small" msgstr "Rất nhỏ" +msgid "Extra usage" +msgstr "Mức dùng thêm" + msgid "Extra usage limit reached" msgstr "Đã đạt giới hạn sử dụng thêm" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "Thất bại" -msgid "Failed {failedAt}" -msgstr "Thất bại lúc {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "Lần chạy thất bại <0>· 7 ngày" @@ -8532,6 +8566,9 @@ msgstr "Không thể tải ảnh" msgid "Failed to load repositories. Please try again." msgstr "Không thể tải repository. Vui lòng thử lại." +msgid "Failed to load usage" +msgstr "Không tải được mức sử dụng" + msgid "Failed to log out. Please try again." msgstr "Không thể đăng xuất. Vui lòng thử lại." @@ -9019,6 +9056,9 @@ msgstr "đã xong · làm trong 7s" msgid "Finishing the move…" msgstr "Đang hoàn tất việc chuyển…" +msgid "First page" +msgstr "Trang đầu" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "Lần đầu? Bật đăng nhập bằng mã thiết bị trong <0>cài đặt ChatGPT." @@ -9284,6 +9324,13 @@ msgstr "Kỹ sư sáng lập" msgid "Free" msgstr "Free" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "Miễn phí" + +msgid "Free credits" +msgstr "Tín dụng miễn phí" + msgid "Free for everyone" msgstr "Miễn phí cho tất cả" @@ -10110,6 +10157,10 @@ msgstr "Định danh" msgid "Idle" msgstr "Rảnh" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "Nhàn rỗi" + msgid "Idle · branch pushed" msgstr "Rảnh · đã push nhánh" @@ -10303,6 +10354,9 @@ msgstr "Đang xem xét" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "Trong ứng dụng {appName} trên máy tính, mở Cài đặt → Truy cập từ xa và bật “Cho phép truy cập từ xa vào thiết bị này qua relay”." +msgid "in the last 30 days" +msgstr "trong 30 ngày qua" + msgid "In the merge queue" msgstr "Trong hàng đợi merge" @@ -10312,6 +10366,9 @@ msgstr "Trong hàng đợi merge. GitHub sẽ merge khi đến lượt." msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "Trong ứng dụng Paradev trên máy tính, mở <0>Cài đặt → Giao diện → Chủ đề." +msgid "in this period" +msgstr "trong kỳ này" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "Chưa đầy một năm, hơn 145.000 nhà phát triển tại 180 quốc gia đã chạy {productName} và tạo hơn 1,85 triệu workspace agent." @@ -10342,6 +10399,9 @@ msgstr "Có trong Enterprise" msgid "Included with Team and Ultra." msgstr "Có trong gói Team và Ultra." +msgid "Included with the plan" +msgstr "Đã gồm trong gói" + msgid "Includes the Paradev-specific box variant" msgstr "Bao gồm biến thể box riêng của Paradev" @@ -10963,6 +11023,9 @@ msgstr "3 tháng qua" msgid "last 30 days" msgstr "30 ngày qua" +msgid "Last 30 days" +msgstr "30 ngày qua" + msgid "Last 4 weeks" msgstr "4 tuần qua" @@ -11037,6 +11100,9 @@ msgstr "Độ trễ" msgid "Later messages are removed." msgstr "Các tin nhắn sau sẽ bị xóa." +msgid "Later period" +msgstr "Kỳ sau" + msgid "Latest" msgstr "Mới nhất" @@ -11444,6 +11510,9 @@ msgstr "Đang tải thêm..." msgid "Loading more…" msgstr "Đang tải thêm…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "Đang tải trang {loadingPage}/{targetPage}..." + msgid "Loading project…" msgstr "Đang tải dự án…" @@ -12570,6 +12639,9 @@ msgstr "Ảnh tiếp theo" msgid "Next match" msgstr "Kết quả kế tiếp" +msgid "Next page" +msgstr "Trang sau" + msgid "Next Right Sidebar Tab" msgstr "Tab kế tiếp của thanh bên phải" @@ -13292,6 +13364,9 @@ msgstr "Chưa có workspace nào trên host này" msgid "No workspaces yet" msgstr "Chưa có workspace nào" +msgid "No workspaces." +msgstr "Không có workspace." + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "Không. {companyName} không bao giờ làm proxy cho các lệnh gọi mô hình. Agent dùng gói đăng ký và khóa của chính bạn." @@ -13340,6 +13415,9 @@ msgstr "Không khả dụng trên máy chủ này" msgid "Not bound · configure in Settings → Links" msgstr "Chưa gán · cấu hình trong Cài đặt → Liên kết" +msgid "Not broken down yet" +msgstr "Chưa được chia nhỏ" + msgid "Not configured" msgstr "Chưa cấu hình" @@ -13352,6 +13430,9 @@ msgstr "Chưa kết nối" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "Chưa kết nối · workspace cloud push dưới danh nghĩa GitHub App của tổ chức bạn" +msgid "Not counted by billing yet" +msgstr "Chưa được tính vào thanh toán" + msgid "Not demoed here" msgstr "Không demo ở đây" @@ -13523,6 +13604,12 @@ msgstr "Đồ vật" msgid "of {0}" msgstr "trên {0}" +msgid "of {cap} included" +msgstr "trên {cap} được gồm" + +msgid "of {cap} limit" +msgstr "trên giới hạn {cap}" + msgid "of {total}" msgstr "trong {total}" @@ -13804,9 +13891,6 @@ msgstr "Chỉ bạn có thể dùng kết nối này. Đồng đội kết nối msgid "Only you. Teammates forward their own." msgstr "Chỉ bạn. Đồng đội tự chuyển tiếp cổng của họ." -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "Chỉ workspace của bạn. Tổng của tổ chức dành cho chủ sở hữu và quản trị viên." - msgid "open" msgstr "mở" @@ -14398,6 +14482,10 @@ msgstr "Riêng của Paradev" msgid "Other" msgstr "Khác" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "Khác" + msgid "Other apps" msgstr "Ứng dụng khác" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "Trang" +msgid "Page {page} of {pages}" +msgstr "Trang {page} / {pages}" + msgid "Page actions" msgstr "Thao tác với trang" @@ -14567,6 +14658,10 @@ msgstr "phân trang" msgid "Pagination" msgstr "Pagination" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "Trả phí" + msgid "Paid plans" msgstr "Gói trả phí" @@ -15340,6 +15435,9 @@ msgstr "Ảnh trước" msgid "Previous match" msgstr "Kết quả trước" +msgid "Previous page" +msgstr "Trang trước" + msgid "Previous prompts" msgstr "Prompt trước đó" @@ -15576,6 +15674,10 @@ msgstr "Thuộc tính" msgid "Provide either id or slug" msgstr "Hãy cung cấp id hoặc slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "Đang chuẩn bị" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "Việc cấp phát thất bại và sandbox đã bị dỡ bỏ. Không có gì đang chạy và không thể mở workspace này. Hãy tạo cái mới để thử lại." @@ -16338,6 +16440,9 @@ msgstr "gỡ agent" msgid "remove the PR link" msgstr "gỡ liên kết PR" +msgid "Remove this filter" +msgstr "Xóa bộ lọc này" + msgid "Remove trigger" msgstr "Xóa trình kích hoạt" @@ -17075,6 +17180,9 @@ msgstr "Hành động hàng" msgid "Rows changed" msgstr "Hàng thay đổi" +msgid "Rows per page" +msgstr "Số hàng mỗi trang" + msgid "Rule" msgstr "Quy tắc" @@ -17215,7 +17323,7 @@ msgstr "đang chạy" msgid "Running" msgstr "Đang chạy" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "Đang chạy" @@ -17667,6 +17775,9 @@ msgstr "Đang tìm các chỗ dùng Kbd" msgid "Seats removed mid-cycle stay active until {0}." msgstr "Chỗ ngồi bị gỡ giữa chu kỳ vẫn hoạt động đến {0}." +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "Số chỗ, tín dụng và giới hạn mức dùng thêm chưa được tải. Chúng sẽ hiện ra ở lần làm mới dữ liệu thanh toán tiếp theo." + msgid "Secondary" msgstr "Secondary" @@ -19154,10 +19265,6 @@ msgstr "đang khởi động" msgid "Starting" msgstr "Đang khởi động" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "Đang khởi động" - msgid "Starting {agentLabel}" msgstr "Đang khởi động {agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "đã dừng" msgid "Stopped" msgstr "Đã dừng" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "Đã dừng" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "Đã dừng {0} ({1} GB) để giải phóng bộ nhớ" -msgid "Stopped by a person" -msgstr "Do người dùng dừng" - msgid "Stopped by the usage limit" msgstr "Đã dừng do giới hạn sử dụng" msgid "Stopped moving {name}" msgstr "Đã dừng chuyển {name}" -msgid "Stopped when idle" -msgstr "Dừng khi không hoạt động" - msgid "Stopping the agent in {what}" msgstr "Đang dừng tác nhân trong {what}" @@ -20003,6 +20108,9 @@ msgstr "Agent tốt nhất sẽ thay đổi.<0/>Quy trình của bạn thì khô msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "Máy khởi động lại với {actual} vCPU thay vì {wanted}. Hãy khởi động lại để thử lần nữa." +msgid "The breakdown by plan is kept for the current period only." +msgstr "Phần chia theo gói chỉ được giữ cho kỳ hiện tại." + msgid "The button now stands out. I checked it in your pane." msgstr "Nút giờ đã nổi bật. Tôi đã kiểm tra trong ngăn của bạn." @@ -20075,6 +20183,9 @@ msgstr "Environment mà tự động hóa này dùng để khởi động worksp msgid "The extension and its local data are deleted from this browser." msgstr "Tiện ích mở rộng và dữ liệu cục bộ của nó sẽ bị xóa khỏi trình duyệt này." +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "Giới hạn mức dùng thêm là một tỷ lệ phần trăm của gói, nên số tiền không được hiển thị." + msgid "The factory" msgstr "Nhà máy" @@ -20151,9 +20262,6 @@ msgstr "Con người đọc từng dòng trước khi merge." msgid "The image upload expired — attach it again" msgstr "Lượt tải lên hình ảnh đã hết hạn — hãy đính kèm lại" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "GB-giờ được bao gồm và GB-giờ vượt mức chỉ được lưu cho kỳ hiện tại." - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "Mô tả công việc thay đổi. Kỹ sư thôi làm thợ gõ phím có gu và trở thành người điều phối có gu: chia nhỏ công việc, phân về các đội agent, phân xử xung đột giữa những agent cùng chạm vào một module." @@ -20662,15 +20770,15 @@ msgstr "Việc này chỉ đổi tên hiển thị, không đổi nhánh." msgid "this organization" msgstr "tổ chức này" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "Tổ chức này không có kỳ thanh toán, nên trang này hiển thị 30 ngày gần nhất." - msgid "This organization has no billing periods. Choose a time range instead." msgstr "Tổ chức này không có kỳ thanh toán nào. Hãy chọn một khoảng thời gian." msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "Tổ chức này đang dùng gói Free. {appName} Mobile chỉ dành cho tổ chức dùng gói Pro." +msgid "This page cannot tell when the usage limit is reached." +msgstr "Trang này không thể biết khi nào đạt giới hạn sử dụng." + msgid "This page could not be loaded" msgstr "Không thể tải trang này" @@ -20876,6 +20984,9 @@ msgstr "Workspace này" msgid "This workspace has no project to branch from" msgstr "Workspace này không có dự án để tạo nhánh" +msgid "This workspace has no usage in this period." +msgstr "Workspace này không có mức sử dụng trong kỳ này." + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "Workspace này có thể đã bị gỡ, hoặc bạn không còn quyền truy cập." @@ -21458,6 +21569,10 @@ msgstr "không rõ" msgid "Unknown" msgstr "Không rõ" +msgctxt "boot end" +msgid "Unknown" +msgstr "Không rõ" + msgctxt "person" msgid "Unknown" msgstr "Không rõ" @@ -21782,21 +21897,21 @@ msgstr "Định danh thân thiện với URL, duy nhất trong tổ chức của msgid "Usage" msgstr "Mức sử dụng" -msgid "Usage by day" -msgstr "Mức sử dụng theo ngày" - -msgid "Usage by person" -msgstr "Mức sử dụng theo người" - msgid "Usage is out of date" msgstr "Dữ liệu sử dụng đã cũ" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "Mức sử dụng được hiển thị vào ngày (UTC) được tính phí, có thể muộn hơn một chút so với lúc workspace chạy." +msgid "usage limit" +msgstr "giới hạn sử dụng" + +msgid "Usage limit" +msgstr "Giới hạn sử dụng" msgid "Usage limit reached" msgstr "Đã đạt giới hạn sử dụng" +msgid "Usage limit reached." +msgstr "Đã đạt giới hạn sử dụng." + msgid "Usage sections" msgstr "Các mục mức sử dụng" @@ -23119,6 +23234,9 @@ msgstr "Tổ chức của bạn đã đạt giới hạn môi trường." msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "Tài khoản của riêng bạn. Các tích hợp của tổ chức giúp Paradev truy cập công cụ của tổ chức; kết nối tài khoản của bạn giúp công việc Paradev làm cho bạn hiển thị dưới tên bạn." +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "Chỉ mức sử dụng của riêng bạn. Tổng của tổ chức, hạn mức và mức sử dụng theo người chỉ dành cho chủ sở hữu và quản trị viên." + msgid "Your Paradev download is starting." msgstr "Bản tải xuống Paradev của bạn đang bắt đầu." @@ -23134,9 +23252,6 @@ msgstr "Gói của bạn không bao gồm môi trường đám mây." msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "Gói của bạn không bao gồm môi trường đám mây. Nâng cấp trong Cài đặt, Thanh toán để tạo môi trường." -msgid "Your plan includes no cloud GB-hours." -msgstr "Gói của bạn không bao gồm GB-giờ đám mây." - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "Gói của bạn chuyển sang {planName} vào {startDate}. Hôm nay không bị tính phí." diff --git a/packages/i18n/locales/zh-CN/messages.po b/packages/i18n/locales/zh-CN/messages.po index 1e530ab7d0d..9948b890cf7 100644 --- a/packages/i18n/locales/zh-CN/messages.po +++ b/packages/i18n/locales/zh-CN/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {获取了 # 个页面} other {获取了 # 个页面 msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {导入#个worktree} other {导入#个worktree}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, other {过去 30 天内在 # 个工作区中}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, other {本期在 # 个工作区中}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, other {合并 # 个拉取请求?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}:{statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB 小时" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {#行已隐藏} other {#行已隐藏}}" @@ -1347,6 +1350,12 @@ msgstr "剩余 {remaining} 个 token" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {已撤销 # 个文件的更改。} other {已撤销 # 个文件的更改。}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, other {共 # 行,第 {first}–{last} 行}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, other {# 个席位包含}}" + msgid "{seconds}s" msgstr "{seconds} 秒" @@ -1364,17 +1373,17 @@ msgstr "{shown}/{total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "显示{shownCount}个 · {0} · {1}个token" +msgid "{size}, {memory} GB" +msgstr "{size},{memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {#项已跳过} other {#项已跳过}}" msgid "{starCount} stars and counting" msgstr "{starCount}个星标,还在增长" -msgid "{start} to {end}" -msgstr "{start} 至 {end}" - -msgid "{start} to {end} (current)" -msgstr "{start} 至 {end}(当前)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {已启动 # 个自动化} other {已启动 # 个自动化}}" @@ -1433,9 +1442,15 @@ msgstr "已用 {used}/{limit} 个环境" msgid "{used} of {size} tokens" msgstr "{used} / {size} 个 token" +msgid "{used} of {total}" +msgstr "{used} / {total}" + msgid "{used} used" msgstr "已使用 {used}" +msgid "{used} used by you" +msgstr "你已使用 {used}" + msgid "{user} and {others} joined and left." msgstr "{user} 和 {others} 加入后又离开了。" @@ -1463,9 +1478,6 @@ msgstr "{user} 已重新加入。" msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} 个 vCPU,{memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting}人等待" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "由 Union Square Ventures 领投的 1150 万美元种子轮" +msgid "0 rows" +msgstr "0 行" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "任意名称" msgid "Any page" msgstr "任意页面" +msgid "Any person" +msgstr "所有人员" + msgid "Any project" msgstr "任意项目" @@ -2903,6 +2921,9 @@ msgstr "任何审查者" msgid "any sender" msgstr "任意发件人" +msgid "Any size" +msgstr "所有规格" + msgid "Any status" msgstr "任意状态" @@ -3462,6 +3483,10 @@ msgstr "等待你的审查" msgid "Awaiting review from you or your team" msgstr "等待你或你团队的审查" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "运行中" + msgid "Away" msgstr "离开" @@ -3589,9 +3614,6 @@ msgstr "账单" msgid "Billing details" msgstr "账单信息" -msgid "Billing period" -msgstr "账单周期" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "计费系统拒绝启动云工作区:组织的方案不包含云工作区,或已达到云使用上限。云工作区需要 Team 或 Ultra 方案。请在设置 > 账单中升级或提高上限,或在设备上运行此自动化。" @@ -3672,6 +3694,9 @@ msgstr "借用自动驾驶汽车的分级方式,用来衡量软件的构建方 msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "底部抽屉,在触屏设备上便于滑动操作。" +msgid "Bought credits" +msgstr "已购买的额度" + msgid "Bought GB-hours left: {prepaid}" msgstr "已购 GB 小时剩余:{prepaid}" @@ -3896,6 +3921,12 @@ msgstr "授权即表示你允许该应用按照其服务条款和隐私政策访 msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "点击继续即表示你同意我们的<0>服务条款和<1>隐私政策。" +msgid "By day" +msgstr "按天" + +msgid "By person" +msgstr "按人员" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "登录即表示你同意我们的\n" @@ -4831,9 +4862,6 @@ msgstr "此组织未启用云端用量。" msgid "Cloud workspace" msgstr "云端工作区" -msgid "Cloud workspace usage for the whole organization." -msgstr "整个组织的云端工作区用量。" - msgid "Cloud workspace: asleep" msgstr "云端工作区,已休眠" @@ -4859,6 +4887,9 @@ msgstr "{account} 未开通云工作区。云工作区包含在 Team 和 Ultra msgid "Cloud workspaces are not included in your plan." msgstr "您的方案不包含云工作区。" +msgid "Cloud workspaces cannot start." +msgstr "云工作区无法启动。" + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "云工作区以你的身份提交、推送并创建拉取请求" @@ -5815,9 +5846,6 @@ msgstr "无法列出目录" msgid "Could not load agents from {0}" msgstr "无法从{0}加载智能体" -msgid "Could not load cloud usage." -msgstr "无法加载云端用量。" - msgid "Could not load environments" msgstr "无法加载环境" @@ -5998,6 +6026,9 @@ msgstr "无法启动会话" msgid "Could not start the chat" msgstr "无法开始聊天" +msgid "Could not start." +msgstr "无法启动。" + msgid "Could not steer" msgstr "无法引导" @@ -7776,6 +7807,9 @@ msgstr "每个界面都有各自的排版设置。更改会立即体现在实时 msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "每个工作区都有独立的云端机器,笔记本合上也能继续工作。可在桌面端、iPhone 或 iPad 上查看进度。" +msgid "Earlier period" +msgstr "上一个周期" + msgid "Early 2024" msgstr "2024年初" @@ -8301,6 +8335,9 @@ msgstr "极高" msgid "Extra small" msgstr "超小" +msgid "Extra usage" +msgstr "额外用量" + msgid "Extra usage limit reached" msgstr "已达到额外用量上限" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "失败" -msgid "Failed {failedAt}" -msgstr "失败于 {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "失败运行 <0>· 7天" @@ -8532,6 +8566,9 @@ msgstr "加载图片失败" msgid "Failed to load repositories. Please try again." msgstr "加载仓库失败。请重试。" +msgid "Failed to load usage" +msgstr "无法加载用量" + msgid "Failed to log out. Please try again." msgstr "退出登录失败。请重试。" @@ -9019,6 +9056,9 @@ msgstr "已完成 · 用时7秒" msgid "Finishing the move…" msgstr "正在完成移动…" +msgid "First page" +msgstr "第一页" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "首次使用?请在 <0>ChatGPT 设置中开启设备代码登录。" @@ -9284,6 +9324,13 @@ msgstr "创始工程师" msgid "Free" msgstr "免费版" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "免费" + +msgid "Free credits" +msgstr "免费额度" + msgid "Free for everyone" msgstr "对所有人免费" @@ -10110,6 +10157,10 @@ msgstr "身份" msgid "Idle" msgstr "空闲" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "空闲" + msgid "Idle · branch pushed" msgstr "空闲 · 分支已推送" @@ -10303,6 +10354,9 @@ msgstr "审查中" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "在{appName}桌面应用中打开“设置 → 远程访问”,开启“允许通过中继远程访问本设备”。" +msgid "in the last 30 days" +msgstr "过去 30 天内" + msgid "In the merge queue" msgstr "在合并队列中" @@ -10312,6 +10366,9 @@ msgstr "在合并队列中。轮到它时 GitHub 会合并它。" msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "在Paradev桌面应用中打开<0>设置 → 外观 → 主题。" +msgid "in this period" +msgstr "本期" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "不到一年时间,来自 180 个国家的超过 145,000 名开发者运行过 {productName},并创建了超过 185 万个智能体工作区。" @@ -10342,6 +10399,9 @@ msgstr "企业版包含" msgid "Included with Team and Ultra." msgstr "包含在 Team 和 Ultra 中。" +msgid "Included with the plan" +msgstr "套餐包含" + msgid "Includes the Paradev-specific box variant" msgstr "包含Paradev特有的box变体" @@ -10963,6 +11023,9 @@ msgstr "最近3个月" msgid "last 30 days" msgstr "最近30天" +msgid "Last 30 days" +msgstr "过去 30 天" + msgid "Last 4 weeks" msgstr "最近4周" @@ -11037,6 +11100,9 @@ msgstr "延迟" msgid "Later messages are removed." msgstr "之后的消息将被移除。" +msgid "Later period" +msgstr "下一个周期" + msgid "Latest" msgstr "最新" @@ -11444,6 +11510,9 @@ msgstr "正在加载更多..." msgid "Loading more…" msgstr "正在加载更多…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "正在加载第 {loadingPage} 页,共 {targetPage} 页..." + msgid "Loading project…" msgstr "正在加载项目…" @@ -12570,6 +12639,9 @@ msgstr "下一张图片" msgid "Next match" msgstr "下一个匹配" +msgid "Next page" +msgstr "下一页" + msgid "Next Right Sidebar Tab" msgstr "右侧边栏下一个标签页" @@ -13292,6 +13364,9 @@ msgstr "此主机上还没有工作区" msgid "No workspaces yet" msgstr "暂无工作区" +msgid "No workspaces." +msgstr "没有工作区。" + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "不会。{companyName} 从不代理模型调用。智能体使用你自己的订阅和密钥。" @@ -13340,6 +13415,9 @@ msgstr "此服务器不可用" msgid "Not bound · configure in Settings → Links" msgstr "未绑定 · 在设置→链接中配置" +msgid "Not broken down yet" +msgstr "尚未细分" + msgid "Not configured" msgstr "未配置" @@ -13352,6 +13430,9 @@ msgstr "未连接" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "未连接 · 云端工作区以组织的 GitHub App 身份推送" +msgid "Not counted by billing yet" +msgstr "尚未计入账单" + msgid "Not demoed here" msgstr "此处未做演示" @@ -13523,6 +13604,12 @@ msgstr "物品" msgid "of {0}" msgstr "共{0}人" +msgid "of {cap} included" +msgstr "(共包含 {cap})" + +msgid "of {cap} limit" +msgstr "(上限 {cap})" + msgid "of {total}" msgstr "共{total}名" @@ -13804,9 +13891,6 @@ msgstr "只有你可以使用此连接。队友会连接自己的 {name} 账号 msgid "Only you. Teammates forward their own." msgstr "仅你自己。队友各自转发。" -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "仅显示你自己的工作区。组织总计仅供所有者和管理员查看。" - msgid "open" msgstr "打开" @@ -14398,6 +14482,10 @@ msgstr "原创组件" msgid "Other" msgstr "其他" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "其他" + msgid "Other apps" msgstr "其他应用" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "页面" +msgid "Page {page} of {pages}" +msgstr "第 {page} / {pages} 页" + msgid "Page actions" msgstr "页面操作" @@ -14567,6 +14658,10 @@ msgstr "分页" msgid "Pagination" msgstr "分页" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "付费" + msgid "Paid plans" msgstr "付费套餐" @@ -15340,6 +15435,9 @@ msgstr "上一张图片" msgid "Previous match" msgstr "上一个匹配" +msgid "Previous page" +msgstr "上一页" + msgid "Previous prompts" msgstr "历史提示词" @@ -15576,6 +15674,10 @@ msgstr "属性" msgid "Provide either id or slug" msgstr "请提供id或slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "正在准备" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "预配失败,沙箱已被销毁。当前没有任何进程在运行,此工作区也无法打开。请新建一个再试。" @@ -16338,6 +16440,9 @@ msgstr "移除智能体" msgid "remove the PR link" msgstr "移除PR链接" +msgid "Remove this filter" +msgstr "移除此筛选" + msgid "Remove trigger" msgstr "移除触发器" @@ -17075,6 +17180,9 @@ msgstr "行操作" msgid "Rows changed" msgstr "行有变更" +msgid "Rows per page" +msgstr "每页行数" + msgid "Rule" msgstr "规则" @@ -17215,7 +17323,7 @@ msgstr "运行中" msgid "Running" msgstr "运行中" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "运行中" @@ -17667,6 +17775,9 @@ msgstr "正在搜索Kbd的使用处" msgid "Seats removed mid-cycle stay active until {0}." msgstr "周期中途移除的席位在 {0} 前仍然有效。" +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "席位、额度和额外用量上限尚未加载。下次账单数据刷新后会显示。" + msgid "Secondary" msgstr "次要" @@ -19154,10 +19265,6 @@ msgstr "启动中" msgid "Starting" msgstr "启动中" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "启动中" - msgid "Starting {agentLabel}" msgstr "正在启动{agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "已停止" msgid "Stopped" msgstr "已停止" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "已停止" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "已停止 {0}({1} GB)以释放内存" -msgid "Stopped by a person" -msgstr "由用户停止" - msgid "Stopped by the usage limit" msgstr "因使用上限而停止" msgid "Stopped moving {name}" msgstr "已停止移动 {name}" -msgid "Stopped when idle" -msgstr "空闲时停止" - msgid "Stopping the agent in {what}" msgstr "正在停止 {what} 中的代理" @@ -20003,6 +20108,9 @@ msgstr "最好的智能体会变。<0/>你的工作流不该变。" msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "机器以 {actual} vCPU 启动,而不是 {wanted} vCPU。请重启后重试。" +msgid "The breakdown by plan is kept for the current period only." +msgstr "按套餐的明细只保留当前周期。" + msgid "The button now stands out. I checked it in your pane." msgstr "按钮现在更醒目了。我已在你的窗格中确认过。" @@ -20075,6 +20183,9 @@ msgstr "该自动化用于启动云端工作区的环境已被归档或没有仓 msgid "The extension and its local data are deleted from this browser." msgstr "该扩展程序及其本地数据将从此浏览器中删除。" +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "额外用量上限是套餐的一个百分比,因此不显示金额。" + msgid "The factory" msgstr "工厂" @@ -20151,9 +20262,6 @@ msgstr "合并前人类会逐行阅读。" msgid "The image upload expired — attach it again" msgstr "图片上传已过期 — 请重新附加" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "包含的 GB 小时和超额 GB 小时仅保留当前周期的数据。" - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "岗位描述变了。工程师不再是有品味的打字员,而成了有品味的调度员:拆解工作、分派给智能体集群、在两个改了同一个模块的智能体之间做裁决。" @@ -20662,15 +20770,15 @@ msgstr "这只会更改显示名称,不会更改分支。" msgid "this organization" msgstr "此组织" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "此组织没有账单周期,因此本页显示最近 30 天。" - msgid "This organization has no billing periods. Choose a time range instead." msgstr "此组织没有结算周期。请改为选择一个时间范围。" msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "此组织使用的是免费版。{appName} Mobile面向使用专业版的组织开放。" +msgid "This page cannot tell when the usage limit is reached." +msgstr "此页面无法判断何时达到使用上限。" + msgid "This page could not be loaded" msgstr "无法加载这个页面" @@ -20876,6 +20984,9 @@ msgstr "此工作区" msgid "This workspace has no project to branch from" msgstr "此工作区没有可供分叉的项目" +msgid "This workspace has no usage in this period." +msgstr "此工作区在本期没有用量。" + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "此工作区可能已被移除,或者你不再拥有它的访问权限。" @@ -21458,6 +21569,10 @@ msgstr "未知" msgid "Unknown" msgstr "未知" +msgctxt "boot end" +msgid "Unknown" +msgstr "未知" + msgctxt "person" msgid "Unknown" msgstr "未知" @@ -21782,21 +21897,21 @@ msgstr "URL友好的标识符,在你的组织内唯一。" msgid "Usage" msgstr "用量" -msgid "Usage by day" -msgstr "按天用量" - -msgid "Usage by person" -msgstr "按人员用量" - msgid "Usage is out of date" msgstr "用量数据已过时" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "用量显示在计费当天(UTC),可能略晚于工作区实际运行的时间。" +msgid "usage limit" +msgstr "使用上限" + +msgid "Usage limit" +msgstr "使用上限" msgid "Usage limit reached" msgstr "已达到使用上限" +msgid "Usage limit reached." +msgstr "已达到使用上限。" + msgid "Usage sections" msgstr "用量分区" @@ -23119,6 +23234,9 @@ msgstr "您的组织已达到环境数量上限。" msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "你自己的账户。组织的集成让 Paradev 访问其工具;连接你自己的账户后,Paradev 为你完成的工作会以你的名义显示。" +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "仅显示你自己的用量。组织的总量、额度和按人员的用量仅对所有者和管理员可见。" + msgid "Your Paradev download is starting." msgstr "Paradev 下载即将开始。" @@ -23134,9 +23252,6 @@ msgstr "你的套餐不包含云端环境。" msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "你的套餐不包含云端环境。请在设置的账单中升级后再创建。" -msgid "Your plan includes no cloud GB-hours." -msgstr "你的套餐不包含云端 GB 小时。" - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "您的方案将于 {startDate} 切换到 {planName}。今天不扣费。" diff --git a/packages/i18n/locales/zh-TW/messages.po b/packages/i18n/locales/zh-TW/messages.po index bdf5d6f0e7f..ca5bedaf8c5 100644 --- a/packages/i18n/locales/zh-TW/messages.po +++ b/packages/i18n/locales/zh-TW/messages.po @@ -916,6 +916,12 @@ msgstr "{count, plural, one {擷取了 # 個頁面} other {擷取了 # 個頁面 msgid "{count, plural, one {Import # worktree} other {Import # worktrees}}" msgstr "{count, plural, one {匯入#個worktree} other {匯入#個worktree}}" +msgid "{count, plural, one {in # workspace in the last 30 days} other {in # workspaces in the last 30 days}}" +msgstr "{count, plural, other {過去 30 天內在 # 個工作區中}}" + +msgid "{count, plural, one {in # workspace this period} other {in # workspaces this period}}" +msgstr "{count, plural, other {本期在 # 個工作區中}}" + msgid "{count, plural, one {Merge # pull request?} other {Merge # pull requests?}}" msgstr "{count, plural, other {合併 # 個拉取請求?}}" @@ -1043,9 +1049,6 @@ msgstr "{gate} · {statusLabel}" msgid "{gate}: {statusLabel}" msgstr "{gate}:{statusLabel}" -msgid "{gbHours} GB-hours" -msgstr "{gbHours} GB 小時" - msgid "{hidden, plural, one {# hidden line} other {# hidden lines}}" msgstr "{hidden, plural, one {#行已隱藏} other {#行已隱藏}}" @@ -1347,6 +1350,12 @@ msgstr "剩餘 {remaining} 個 token" msgid "{restoredCount, plural, one {Undid the changes to # file.} other {Undid the changes to # files.}}" msgstr "{restoredCount, plural, one {已撤銷 # 個檔案的更改。} other {已撤銷 # 個檔案的更改。}}" +msgid "{rowCount, plural, one {{first}–{last} of # row} other {{first}–{last} of # rows}}" +msgstr "{rowCount, plural, other {共 # 列,第 {first}–{last} 列}}" + +msgid "{seats, plural, one {Included with # seat} other {Included with # seats}}" +msgstr "{seats, plural, other {# 個席位包含}}" + msgid "{seconds}s" msgstr "{seconds} 秒" @@ -1364,17 +1373,17 @@ msgstr "{shown}/{total}" msgid "{shownCount} shown · {0} · {1} tokens" msgstr "顯示{shownCount}個 · {0} · {1}個token" +msgid "{size}, {memory} GB" +msgstr "{size},{memory} GB" + msgid "{skipped, plural, one {# skipped} other {# skipped}}" msgstr "{skipped, plural, one {#項已跳過} other {#項已跳過}}" msgid "{starCount} stars and counting" msgstr "{starCount}個星標,還在成長" -msgid "{start} to {end}" -msgstr "{start} 至 {end}" - -msgid "{start} to {end} (current)" -msgstr "{start} 至 {end}(目前)" +msgid "{start} – {end}" +msgstr "{start} – {end}" msgid "{started, plural, one {Started # automation} other {Started # automations}}" msgstr "{started, plural, one {已啟動 # 個自動化} other {已啟動 # 個自動化}}" @@ -1433,9 +1442,15 @@ msgstr "已用 {used}/{limit} 個環境" msgid "{used} of {size} tokens" msgstr "{used} / {size} 個 token" +msgid "{used} of {total}" +msgstr "{used} / {total}" + msgid "{used} used" msgstr "已使用 {used}" +msgid "{used} used by you" +msgstr "你已使用 {used}" + msgid "{user} and {others} joined and left." msgstr "{user} 和 {others} 加入後又離開了。" @@ -1463,9 +1478,6 @@ msgstr "{user} 已重新加入。" msgid "{vcpuCount} vCPU · {memory} GB" msgstr "{vcpuCount} vCPU · {memory} GB" -msgid "{vcpus} vCPU, {memory} GB" -msgstr "{vcpus} 個 vCPU,{memory} GB" - msgid "{waiting} Waiting" msgstr "{waiting}人等待" @@ -1646,6 +1658,9 @@ msgstr "$0" msgid "$11.5M seed led by Union Square Ventures" msgstr "由 Union Square Ventures 領投的 1,150 萬美元種子輪" +msgid "0 rows" +msgstr "0 列" + msgid "1" msgstr "1" @@ -2888,6 +2903,9 @@ msgstr "任意名稱" msgid "Any page" msgstr "任意頁面" +msgid "Any person" +msgstr "所有人員" + msgid "Any project" msgstr "任意專案" @@ -2903,6 +2921,9 @@ msgstr "任何審查者" msgid "any sender" msgstr "任意發件人" +msgid "Any size" +msgstr "所有規格" + msgid "Any status" msgstr "任意狀態" @@ -3462,6 +3483,10 @@ msgstr "等待你的審查" msgid "Awaiting review from you or your team" msgstr "等待你或你團隊的審查" +msgctxt "cloud workspace status" +msgid "Awake" +msgstr "執行中" + msgid "Away" msgstr "離開" @@ -3589,9 +3614,6 @@ msgstr "帳單" msgid "Billing details" msgstr "帳單資訊" -msgid "Billing period" -msgstr "帳單週期" - msgid "Billing refused to start a cloud workspace: the organization's plan does not include cloud workspaces, or it reached its cloud usage limit. Cloud workspaces need the Team or Ultra plan. Upgrade or raise the limit in Settings > Billing, or run the automation on a device." msgstr "計費系統拒絕啟動雲端工作區:組織的方案不包含雲端工作區,或已達到雲端使用上限。雲端工作區需要 Team 或 Ultra 方案。請在設定 > 帳單中升級或提高上限,或在裝置上執行此自動化。" @@ -3672,6 +3694,9 @@ msgstr "借用自動駕駛汽車的分級方式,用來衡量軟體的構建方 msgid "Bottom drawer, swipe-friendly on touch devices." msgstr "底部抽屜,在觸控螢幕裝置上便於滑動操作。" +msgid "Bought credits" +msgstr "已購買的額度" + msgid "Bought GB-hours left: {prepaid}" msgstr "已購 GB 小時剩餘:{prepaid}" @@ -3896,6 +3921,12 @@ msgstr "授權即表示你允許該應用程式按照其服務條款和隱私政 msgid "By clicking continue, you agree to our <0>Terms of Service and <1>Privacy Policy." msgstr "點選繼續即表示你同意我們的<0>服務條款和<1>隱私政策。" +msgid "By day" +msgstr "按日" + +msgid "By person" +msgstr "按人員" + msgid "By signing in, you agree to our\n" "<0>Terms of Service and <1>Privacy Policy" msgstr "登入即表示你同意我們的\n" @@ -4831,9 +4862,6 @@ msgstr "此組織未啟用雲端用量。" msgid "Cloud workspace" msgstr "雲端工作區" -msgid "Cloud workspace usage for the whole organization." -msgstr "整個組織的雲端工作區用量。" - msgid "Cloud workspace: asleep" msgstr "雲端工作區,已休眠" @@ -4859,6 +4887,9 @@ msgstr "{account} 尚未啟用雲端工作區。雲端工作區包含在 Team msgid "Cloud workspaces are not included in your plan." msgstr "您的方案不包含雲端工作區。" +msgid "Cloud workspaces cannot start." +msgstr "雲端工作區無法啟動。" + msgid "Cloud workspaces commit, push and open pull requests as you" msgstr "雲端工作區會以你的身分提交、推送並建立提取要求" @@ -5815,9 +5846,6 @@ msgstr "無法列出目錄" msgid "Could not load agents from {0}" msgstr "無法從{0}載入代理程式" -msgid "Could not load cloud usage." -msgstr "無法載入雲端用量。" - msgid "Could not load environments" msgstr "無法載入環境" @@ -5998,6 +6026,9 @@ msgstr "無法啟動會話" msgid "Could not start the chat" msgstr "無法開始聊天" +msgid "Could not start." +msgstr "無法啟動。" + msgid "Could not steer" msgstr "無法引導" @@ -7776,6 +7807,9 @@ msgstr "每個介面都有各自的排版設定。更改會立即體現在即時 msgid "Each workspace gets its own cloud machine and keeps working when your laptop is closed. Check in from desktop, iPhone, or iPad." msgstr "每個工作區都有獨立的雲端機器,筆電闔上也能繼續工作。可在桌面版、iPhone 或 iPad 上查看進度。" +msgid "Earlier period" +msgstr "上一個週期" + msgid "Early 2024" msgstr "2024年初" @@ -8301,6 +8335,9 @@ msgstr "極高" msgid "Extra small" msgstr "超小" +msgid "Extra usage" +msgstr "額外用量" + msgid "Extra usage limit reached" msgstr "已達到額外用量上限" @@ -8336,9 +8373,6 @@ msgctxt "cloud workspace status" msgid "Failed" msgstr "失敗" -msgid "Failed {failedAt}" -msgstr "失敗於 {failedAt}" - msgid "Failed runs <0>· 7d" msgstr "失敗執行 <0>· 7天" @@ -8532,6 +8566,9 @@ msgstr "載入圖片失敗" msgid "Failed to load repositories. Please try again." msgstr "載入儲存庫失敗。請重試。" +msgid "Failed to load usage" +msgstr "無法載入用量" + msgid "Failed to log out. Please try again." msgstr "登出失敗。請重試。" @@ -9019,6 +9056,9 @@ msgstr "已完成 · 用時7秒" msgid "Finishing the move…" msgstr "正在完成移動…" +msgid "First page" +msgstr "第一頁" + msgid "First time? Turn on device code sign-in in <0>ChatGPT settings." msgstr "第一次使用?請在 <0>ChatGPT 設定中開啟裝置代碼登入。" @@ -9284,6 +9324,13 @@ msgstr "創始工程師" msgid "Free" msgstr "免費版" +msgctxt "cloud allowance group" +msgid "Free" +msgstr "免費" + +msgid "Free credits" +msgstr "免費額度" + msgid "Free for everyone" msgstr "對所有人免費" @@ -10110,6 +10157,10 @@ msgstr "身份" msgid "Idle" msgstr "空閒" +msgctxt "cloud workspace boot" +msgid "Idle" +msgstr "閒置" + msgid "Idle · branch pushed" msgstr "空閒 · 分支已推送" @@ -10303,6 +10354,9 @@ msgstr "審查中" msgid "In the {appName} desktop app, open Settings → Remote Access and turn on “Allow remote access to this device via relay”." msgstr "在{appName}桌面應用程式中開啟「設定 → 遠端存取」,開啟「允許遠端工作區通過中繼存取此裝置」。" +msgid "in the last 30 days" +msgstr "過去 30 天內" + msgid "In the merge queue" msgstr "在合併佇列中" @@ -10312,6 +10366,9 @@ msgstr "在合併佇列中。輪到它時 GitHub 會合併它。" msgid "In the Paradev desktop app, open <0>Settings → Appearance → Theme." msgstr "在Paradev桌面應用程式中開啟<0>設定 → 外觀 → 主題。" +msgid "in this period" +msgstr "本期" + msgid "In under a year, more than 145,000 developers across 180 countries have run {productName} and created over 1.85 million agent workspaces." msgstr "不到一年,來自 180 個國家、超過 145,000 名開發者執行過 {productName},並建立了超過 185 萬個 agent 工作區。" @@ -10342,6 +10399,9 @@ msgstr "企業版包含" msgid "Included with Team and Ultra." msgstr "包含在 Team 和 Ultra 中。" +msgid "Included with the plan" +msgstr "方案包含" + msgid "Includes the Paradev-specific box variant" msgstr "包含Paradev特有的box變體" @@ -10963,6 +11023,9 @@ msgstr "最近3個月" msgid "last 30 days" msgstr "最近 30 天" +msgid "Last 30 days" +msgstr "過去 30 天" + msgid "Last 4 weeks" msgstr "最近4週" @@ -11037,6 +11100,9 @@ msgstr "延遲" msgid "Later messages are removed." msgstr "之後的訊息將被移除。" +msgid "Later period" +msgstr "下一個週期" + msgid "Latest" msgstr "最新" @@ -11444,6 +11510,9 @@ msgstr "正在載入更多..." msgid "Loading more…" msgstr "正在載入更多…" +msgid "Loading page {loadingPage} of {targetPage}..." +msgstr "正在載入第 {loadingPage} 頁,共 {targetPage} 頁..." + msgid "Loading project…" msgstr "正在載入專案…" @@ -12570,6 +12639,9 @@ msgstr "下一張圖片" msgid "Next match" msgstr "下一個匹配" +msgid "Next page" +msgstr "下一頁" + msgid "Next Right Sidebar Tab" msgstr "右側邊欄下一個分頁" @@ -13292,6 +13364,9 @@ msgstr "此主機上還沒有工作區" msgid "No workspaces yet" msgstr "暫無工作區" +msgid "No workspaces." +msgstr "沒有工作區。" + msgid "No. {companyName} never proxies model calls. Agents use your own subscriptions and keys." msgstr "不會。{companyName} 從不代理模型呼叫。代理程式使用你自己的訂閱和金鑰。" @@ -13340,6 +13415,9 @@ msgstr "此伺服器無法使用" msgid "Not bound · configure in Settings → Links" msgstr "未繫結 · 在設定→連結中配置" +msgid "Not broken down yet" +msgstr "尚未細分" + msgid "Not configured" msgstr "未配置" @@ -13352,6 +13430,9 @@ msgstr "未連線" msgid "Not connected · cloud workspaces push as your organization's GitHub App" msgstr "未連結 · 雲端工作區以組織的 GitHub App 身分推送" +msgid "Not counted by billing yet" +msgstr "尚未計入帳單" + msgid "Not demoed here" msgstr "此處未做演示" @@ -13523,6 +13604,12 @@ msgstr "物品" msgid "of {0}" msgstr "/共 {0} 人" +msgid "of {cap} included" +msgstr "(共包含 {cap})" + +msgid "of {cap} limit" +msgstr "(上限 {cap})" + msgid "of {total}" msgstr "共{total}名" @@ -13804,9 +13891,6 @@ msgstr "只有你可以使用此連線。隊友會連結自己的 {name} 帳號 msgid "Only you. Teammates forward their own." msgstr "僅限你自己。隊友各自轉送。" -msgid "Only your own workspaces. Organization totals are for owners and admins." -msgstr "僅顯示你自己的工作區。組織總計僅供擁有者和管理員查看。" - msgid "open" msgstr "開啟" @@ -14398,6 +14482,10 @@ msgstr "原創元件" msgid "Other" msgstr "其他" +msgctxt "cloud allowance group" +msgid "Other" +msgstr "其他" + msgid "Other apps" msgstr "其他應用程式" @@ -14510,6 +14598,9 @@ msgstr "packages/ui/src/components/ui/kbd.tsx" msgid "Page" msgstr "頁面" +msgid "Page {page} of {pages}" +msgstr "第 {page} / {pages} 頁" + msgid "Page actions" msgstr "頁面操作" @@ -14567,6 +14658,10 @@ msgstr "分頁" msgid "Pagination" msgstr "分頁" +msgctxt "cloud allowance group" +msgid "Paid" +msgstr "付費" + msgid "Paid plans" msgstr "付費方案" @@ -15340,6 +15435,9 @@ msgstr "上一張圖片" msgid "Previous match" msgstr "上一個匹配" +msgid "Previous page" +msgstr "上一頁" + msgid "Previous prompts" msgstr "歷史提示詞" @@ -15576,6 +15674,10 @@ msgstr "屬性" msgid "Provide either id or slug" msgstr "請提供id或slug" +msgctxt "cloud workspace status" +msgid "Provisioning" +msgstr "正在準備" + msgid "Provisioning failed and the sandbox was torn down. Nothing is running, and this workspace can't be opened. Create a new one to try again." msgstr "預配失敗,沙箱已被銷燬。目前沒有任何處理程序在執行,此工作區也無法開啟。請新建一個再試。" @@ -16338,6 +16440,9 @@ msgstr "移除代理程式" msgid "remove the PR link" msgstr "移除PR連結" +msgid "Remove this filter" +msgstr "移除此篩選" + msgid "Remove trigger" msgstr "移除觸發條件" @@ -17075,6 +17180,9 @@ msgstr "行操作" msgid "Rows changed" msgstr "行有變更" +msgid "Rows per page" +msgstr "每頁列數" + msgid "Rule" msgstr "規則" @@ -17215,7 +17323,7 @@ msgstr "執行中" msgid "Running" msgstr "執行中" -msgctxt "cloud workspace status" +msgctxt "cloud workspace boot" msgid "Running" msgstr "執行中" @@ -17667,6 +17775,9 @@ msgstr "正在搜尋Kbd的使用處" msgid "Seats removed mid-cycle stay active until {0}." msgstr "週期中途移除的席位在 {0} 前仍然有效。" +msgid "Seats, credits and the extra-usage limit are not loaded yet. They show after billing data next refreshes." +msgstr "席位、額度和額外用量上限尚未載入。下次帳單資料更新後會顯示。" + msgid "Secondary" msgstr "次要" @@ -19154,10 +19265,6 @@ msgstr "啟動中" msgid "Starting" msgstr "啟動中" -msgctxt "cloud workspace status" -msgid "Starting" -msgstr "啟動中" - msgid "Starting {agentLabel}" msgstr "正在啟動{agentLabel}" @@ -19306,23 +19413,21 @@ msgstr "已停止" msgid "Stopped" msgstr "已停止" +msgctxt "cloud workspace boot" +msgid "Stopped" +msgstr "已停止" + #. placeholder {0}: pressure.reap.processName #. placeholder {1}: gb(pressure.reap.rssMb) msgid "Stopped {0} ({1} GB) to free memory" msgstr "已停止 {0}({1} GB)以釋放記憶體" -msgid "Stopped by a person" -msgstr "由使用者停止" - msgid "Stopped by the usage limit" msgstr "因使用上限而停止" msgid "Stopped moving {name}" msgstr "已停止移動 {name}" -msgid "Stopped when idle" -msgstr "閒置時停止" - msgid "Stopping the agent in {what}" msgstr "正在停止 {what} 中的代理程式" @@ -20003,6 +20108,9 @@ msgstr "最好的代理程式會變。<0/>你的工作流不該變。" msgid "The box came back at {actual} vCPU instead of {wanted}. Restart it to try again." msgstr "機器以 {actual} vCPU 啟動,而非 {wanted} vCPU。請重新啟動後再試一次。" +msgid "The breakdown by plan is kept for the current period only." +msgstr "依方案的明細只保留目前的週期。" + msgid "The button now stands out. I checked it in your pane." msgstr "按鈕現在更醒目了。我已在你的窗格中確認過。" @@ -20075,6 +20183,9 @@ msgstr "此自動化用來啟動雲端工作區的環境已被封存或沒有儲 msgid "The extension and its local data are deleted from this browser." msgstr "此擴充功能及其本機資料將從這個瀏覽器中刪除。" +msgid "The extra-usage limit is a percentage of the plan, so its amount is not shown." +msgstr "額外用量上限是方案的一個百分比,因此不顯示金額。" + msgid "The factory" msgstr "工廠" @@ -20151,9 +20262,6 @@ msgstr "合併前人類會逐行閱讀。" msgid "The image upload expired — attach it again" msgstr "圖片上傳已過期 — 請重新附加" -msgid "The included and overage GB-hours are kept for the current period only." -msgstr "包含的 GB 小時和超額 GB 小時僅保留目前週期的資料。" - msgid "The job description shifts. Engineers stop being typists with taste and become dispatchers with taste: decomposing work, routing it to fleets, arbitrating conflicts between agents that both touched the same module." msgstr "崗位描述變了。工程師不再是有品味的打字員,而成了有品味的排程員:拆解工作、分派給代理程式叢集、在兩個改了同一個模組的代理程式之間做裁決。" @@ -20662,15 +20770,15 @@ msgstr "這只會更改顯示名稱,不會更改分支。" msgid "this organization" msgstr "此組織" -msgid "This organization has no billing periods, so this page shows the last 30 days." -msgstr "此組織沒有帳單週期,因此本頁顯示最近 30 天。" - msgid "This organization has no billing periods. Choose a time range instead." msgstr "此組織沒有帳單週期。請改為選擇一個時間範圍。" msgid "This organization is on the Free plan. {appName} Mobile is available for organizations on Pro." msgstr "此組織使用的是免費版。{appName} Mobile面向使用專業版的組織開放。" +msgid "This page cannot tell when the usage limit is reached." +msgstr "此頁面無法判斷何時達到使用上限。" + msgid "This page could not be loaded" msgstr "無法載入這個頁面" @@ -20876,6 +20984,9 @@ msgstr "此工作區" msgid "This workspace has no project to branch from" msgstr "此工作區沒有可供分叉的專案" +msgid "This workspace has no usage in this period." +msgstr "此工作區在本期沒有用量。" + msgid "This workspace may have been removed, or you no longer have access to it." msgstr "此工作區可能已被移除,或者你不再擁有它的存取權限。" @@ -21458,6 +21569,10 @@ msgstr "未知" msgid "Unknown" msgstr "未知" +msgctxt "boot end" +msgid "Unknown" +msgstr "未知" + msgctxt "person" msgid "Unknown" msgstr "未知" @@ -21782,21 +21897,21 @@ msgstr "URL友好的識別符號,在你的組織內唯一。" msgid "Usage" msgstr "用量" -msgid "Usage by day" -msgstr "按天用量" - -msgid "Usage by person" -msgstr "按人員用量" - msgid "Usage is out of date" msgstr "用量資料已過期" -msgid "Usage is shown on the UTC day it was billed, which can be a little after the workspace ran." -msgstr "用量顯示在計費當天(UTC),可能略晚於工作區實際執行的時間。" +msgid "usage limit" +msgstr "使用上限" + +msgid "Usage limit" +msgstr "使用上限" msgid "Usage limit reached" msgstr "已達到使用上限" +msgid "Usage limit reached." +msgstr "已達到使用上限。" + msgid "Usage sections" msgstr "用量分區" @@ -23119,6 +23234,9 @@ msgstr "您的組織已達到環境數量上限。" msgid "Your own accounts. Your organization's integrations let Paradev reach its tools; connecting yours makes the work Paradev does for you show up as you." msgstr "你自己的帳戶。組織的整合讓 Paradev 存取其工具;連結你自己的帳戶後,Paradev 為你完成的工作會以你的名義顯示。" +msgid "Your own usage only. The organization's totals, its allowance and usage by person are for owners and admins." +msgstr "僅顯示你自己的用量。組織的總量、額度和依人員的用量僅限擁有者和管理員查看。" + msgid "Your Paradev download is starting." msgstr "您的 Paradev 下載即將開始。" @@ -23134,9 +23252,6 @@ msgstr "你的方案不包含雲端環境。" msgid "Your plan does not include cloud environments. Upgrade in Settings, Billing to create one." msgstr "你的方案不包含雲端環境。請在設定的帳單中升級後再建立。" -msgid "Your plan includes no cloud GB-hours." -msgstr "你的方案不包含雲端 GB 小時。" - msgid "Your plan switches to {planName} on {startDate}. Nothing is charged today." msgstr "您的方案將於 {startDate} 切換到 {planName}。今天不扣款。" diff --git a/packages/i18n/test/enforced-dirs.ts b/packages/i18n/test/enforced-dirs.ts index e2c477a875b..8e92ae80ecc 100644 --- a/packages/i18n/test/enforced-dirs.ts +++ b/packages/i18n/test/enforced-dirs.ts @@ -7,6 +7,8 @@ export const ENFORCED_DIRS: readonly string[] = [ "packages/i18n/src", "apps/web/src/app/account-pending-deletion", "apps/web/src/app/auth/switch-account", + "apps/web/src/app/(app)/(page)/settings/cloud-usage", + "packages/ui/src/components/CloudUsagePage", // automations is temporarily un-enforced: the trigger-fidelity work // rewrote most of its copy, and converting the new strings is deferred to // a dedicated i18n pass. Re-add once that lands. diff --git a/packages/shared/package.json b/packages/shared/package.json index 3adcae1096e..ca7374e2853 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -40,6 +40,10 @@ "types": "./src/account-labels.ts", "default": "./src/account-labels.ts" }, + "./machine-size-names": { + "types": "./src/machine-size-names.ts", + "default": "./src/machine-size-names.ts" + }, "./html-preview": { "types": "./src/html-preview.ts", "default": "./src/html-preview.ts" diff --git a/packages/shared/src/billing.ts b/packages/shared/src/billing.ts index 6ada4faa53f..795e76d40f0 100644 --- a/packages/shared/src/billing.ts +++ b/packages/shared/src/billing.ts @@ -383,6 +383,31 @@ export function gbHourPurchase(pack: GbHourPack, gbHours: number): GbHourPack { }; } +/** The allowance fields a billing value can fail to give; the router's output lists them. */ +export const ALLOWANCE_UNAVAILABLE_FIELDS = [ + "seats", + "bought", + "freeCredits", + "extraUsageLimit", + "limitReached", +] as const; + +/** Why a billing value cannot give a field; the router's output lists them. */ +export const ALLOWANCE_UNAVAILABLE_REASONS = [ + "not_read", + "percent_of_allowance", + "not_tracked", +] as const; + +export function gbMinutesUsd( + gbMinutes: number, + overagePerGbHour: number | null, +) { + return overagePerGbHour === null + ? null + : Math.round((gbMinutes / 60) * overagePerGbHour * 100) / 100; +} + export function gbHourPackPricePerGbHour(pack: GbHourPack): number { return (pack.price * 60) / pack.gbMinutes; } diff --git a/packages/shared/src/machine-size-names.ts b/packages/shared/src/machine-size-names.ts new file mode 100644 index 00000000000..b53fe61879c --- /dev/null +++ b/packages/shared/src/machine-size-names.ts @@ -0,0 +1,11 @@ +import type { MessageDescriptor } from "@lingui/core"; +import { msg } from "@lingui/core/macro"; +import type { MachineSize } from "./billing"; + +export const MACHINE_SIZE_NAMES: Record = { + small: msg({ message: "Small", context: "machine size" }), + medium: msg({ message: "Medium", context: "machine size" }), + large: msg({ message: "Large", context: "machine size" }), + xlarge: msg({ message: "X-Large", context: "machine size" }), + "2xlarge": msg({ message: "2X-Large", context: "machine size" }), +}; diff --git a/packages/trpc/src/router/cloud/cloud.ts b/packages/trpc/src/router/cloud/cloud.ts index 6ecd63afc1b..5d33a2e07c9 100644 --- a/packages/trpc/src/router/cloud/cloud.ts +++ b/packages/trpc/src/router/cloud/cloud.ts @@ -5,13 +5,13 @@ import { type OrganizationBilling, organizationBilling, } from "@superset/auth/billing"; +import { allowanceOf } from "@superset/auth/billing/cloud-usage"; import { db } from "@superset/db/client"; import { type CloudBillingAnchor, type CloudUsageScope, cloudBillingPeriod, cloudBillingPeriodIndex, - gbMinutesUsd, listCloudBoots, queryCloudUsage, queryCloudUsageByPeriod, @@ -30,7 +30,6 @@ import { requireActiveOrgRole } from "../utils/active-org"; import { bootKeysetSchema, type CloudListFilters, - type CloudPeriodUnavailable, type CloudRange, cloudBootsInputSchema, cloudBootsOutputSchema, @@ -69,71 +68,6 @@ function anchorOf(cloudUsage: CloudUsage | null): CloudBillingAnchor | null { : null; } -function creditLine(credit: CloudUsage["bought"], rate: number | null) { - if (!credit?.grantedGbMinutes) return null; - const used = credit.grantedGbMinutes - credit.remainingGbMinutes; - return { - usedGbHours: used / 60, - totalGbHours: credit.grantedGbMinutes / 60, - usedUsd: gbMinutesUsd(used, rate), - totalUsd: gbMinutesUsd(credit.grantedGbMinutes, rate), - }; -} - -function allowanceOf( - cloudUsage: CloudUsage, - resetsAt: Date, - rate: number | null, -) { - const included = cloudUsage.includedGbMinutes; - const limit = cloudUsage.overageLimit; - const unavailable: CloudPeriodUnavailable[] = - cloudUsage.bought === null - ? ( - [ - "seats", - "bought", - "freeCredits", - "extraUsageLimit", - "limitReached", - ] as const - ).map((field) => ({ field, reason: "not_read" })) - : []; - if (limit?.type === "usage_percentage") { - unavailable.push({ - field: "extraUsageLimit", - reason: "percent_of_allowance", - }); - } - if (cloudUsage.bought !== null && cloudUsage.limitReached === null) { - unavailable.push({ field: "limitReached", reason: "not_tracked" }); - } - return { - allowance: { - includedGbHours: included === null ? null : included / 60, - usedGbHours: cloudUsage.usedGbMinutes / 60, - overageGbHours: cloudUsage.overageGbMinutes / 60, - prepaidRemainingGbHours: cloudUsage.prepaidGbMinutes / 60, - resetsAt, - usedUsd: gbMinutesUsd(cloudUsage.usedGbMinutes, rate), - includedUsd: included === null ? null : gbMinutesUsd(included, rate), - overageUsd: gbMinutesUsd(cloudUsage.overageGbMinutes, rate), - seats: cloudUsage.seats, - bought: creditLine(cloudUsage.bought, rate), - freeCredits: creditLine(cloudUsage.freeCredits, rate), - extraUsageLimit: - limit?.type === "absolute" - ? { - gbHours: limit.gbMinutes / 60, - usd: gbMinutesUsd(limit.gbMinutes, rate), - } - : null, - limitReached: cloudUsage.limitReached, - }, - unavailable, - }; -} - function noAllowance(reason: "closed_period" | "owners_and_admins_only") { return { allowance: null, diff --git a/packages/trpc/src/router/cloud/schema.ts b/packages/trpc/src/router/cloud/schema.ts index cc5dc54e969..113c3e02716 100644 --- a/packages/trpc/src/router/cloud/schema.ts +++ b/packages/trpc/src/router/cloud/schema.ts @@ -13,7 +13,11 @@ import { cloudWorkspaceFailureReasonEnum, cloudWorkspaceStatusEnum, } from "@superset/db/enums"; -import { machineSizeSchema } from "@superset/shared/billing"; +import { + ALLOWANCE_UNAVAILABLE_FIELDS, + ALLOWANCE_UNAVAILABLE_REASONS, + machineSizeSchema, +} from "@superset/shared/billing"; import { z } from "zod"; const rangePresetSchema = z.enum(["24h", "7d", "30d", "90d"]); @@ -187,20 +191,11 @@ export const cloudBootsOutputSchema = z.object({ /** A value the page shows that billing does not hold for this period, and why. */ const periodUnavailableSchema = z.object({ - field: z.enum([ - "allowance", - "seats", - "bought", - "freeCredits", - "extraUsageLimit", - "limitReached", - ]), + field: z.enum(["allowance", ...ALLOWANCE_UNAVAILABLE_FIELDS]), reason: z.enum([ "closed_period", "owners_and_admins_only", - "not_read", - "percent_of_allowance", - "not_tracked", + ...ALLOWANCE_UNAVAILABLE_REASONS, ]), }); diff --git a/packages/ui/.storybook/preview.tsx b/packages/ui/.storybook/preview.tsx index c485c7cfd91..b86820b2a10 100644 --- a/packages/ui/.storybook/preview.tsx +++ b/packages/ui/.storybook/preview.tsx @@ -16,9 +16,19 @@ const preview: Preview = { dynamicTitle: true, }, }, + shell: { + description: "Settings shell whose content width a page story uses", + toolbar: { + title: "Shell", + icon: "browser", + items: ["web", "desktop"], + dynamicTitle: true, + }, + }, }, initialGlobals: { theme: "dark", + shell: "web", }, decorators: [ (Story, context) => { diff --git a/packages/ui/package.json b/packages/ui/package.json index 88736317533..ced9cf06869 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -108,6 +108,7 @@ "@lingui/babel-plugin-lingui-macro": "6.12.0", "@rolldown/plugin-babel": "0.3.0", "@storybook/react-vite": "10.6.2", + "@superset/auth": "workspace:*", "@superset/trpc": "workspace:*", "@superset/typescript": "workspace:*", "@tailwindcss/postcss": "4.2.2", diff --git a/packages/ui/src/components/CloudUsagePage/CloudUsagePage.stories.tsx b/packages/ui/src/components/CloudUsagePage/CloudUsagePage.stories.tsx new file mode 100644 index 00000000000..a0017025266 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/CloudUsagePage.stories.tsx @@ -0,0 +1,52 @@ +import type { Meta, StoryObj } from "@storybook/react-vite"; +import { CloudUsagePage } from "./CloudUsagePage"; +import { + noPeriodsArgs, + overviewArgs, + query, + STORY_TODAY, + StoryLink, + withSettingsShell, +} from "./fixtures"; +import type { CloudUsage } from "./types"; + +const meta = { + title: "Cloud usage/Overview", + component: CloudUsagePage, + decorators: [withSettingsShell], + args: { + Link: StoryLink, + isAdmin: true, + today: STORY_TODAY, + ...overviewArgs("northwind"), + }, +} satisfies Meta; + +export default meta; +type Story = StoryObj; + +/** Northwind Labs, as in the design: seats, a used-up free credit and extra usage under its cap. */ +export const Owner: Story = {}; +/** Birchwood Health, as in the design: on a trial, seats only, under its allowance. */ +export const Trial: Story = { args: overviewArgs("trial") }; +/** Acme Robotics, as in the design: a bought pack not drawn yet. */ +export const Prepaid: Story = { args: overviewArgs("prepaid") }; +export const LimitReached: Story = { args: overviewArgs("limitReached") }; +export const PercentCap: Story = { args: overviewArgs("percentCap") }; +export const NotRead: Story = { args: overviewArgs("notRead") }; +export const Unbilled: Story = { args: overviewArgs("unbilled") }; +export const PastPeriod: Story = { + args: overviewArgs("northwind", { back: 1 }), +}; +export const Empty: Story = { args: overviewArgs("northwind", { back: 5 }) }; +export const NoPeriods: Story = { args: noPeriodsArgs() }; +export const Loading: Story = { args: { byDay: query(undefined) } }; +export const LoadError: Story = { + args: { byDay: query(undefined, true) }, +}; +export const Member: Story = { + args: { isAdmin: false, ...overviewArgs("northwind", { member: true }) }, +}; +export const LongNames: Story = { + args: overviewArgs("northwind", { long: true }), +}; diff --git a/packages/ui/src/components/CloudUsagePage/CloudUsagePage.tsx b/packages/ui/src/components/CloudUsagePage/CloudUsagePage.tsx index b4d6bd5f984..29dc3f4b381 100644 --- a/packages/ui/src/components/CloudUsagePage/CloudUsagePage.tsx +++ b/packages/ui/src/components/CloudUsagePage/CloudUsagePage.tsx @@ -1,156 +1,170 @@ "use client"; import { Trans } from "@lingui/react/macro"; -import type { ReactNode } from "react"; import { AllowanceCard } from "./components/AllowanceCard"; -import { PeriodPicker } from "./components/PeriodPicker"; +import { MemberSummary } from "./components/MemberSummary"; +import { MoreLink } from "./components/MoreLink"; +import { Notice } from "./components/Notice"; +import { PageHeader } from "./components/PageHeader"; +import { PeriodStepper } from "./components/PeriodStepper"; import { QueryStatus } from "./components/QueryStatus"; +import { Section } from "./components/Section"; import { UsageByDay } from "./components/UsageByDay"; import { UsageByPerson } from "./components/UsageByPerson"; -import { UsageTotals } from "./components/UsageTotals"; -import { WorkspaceBootsSheet } from "./components/WorkspaceBootsSheet"; import { WorkspacesTable } from "./components/WorkspacesTable"; import type { - CloudBoots, - CloudPages, CloudPeriod, CloudPeriods, CloudQuery, CloudUsage, - WorkspaceRef, + CloudUsageLink, } from "./types"; import { hasUsage } from "./utils/hasUsage"; +import { periodParam } from "./utils/periodParam"; +import { priced, pricedQuery } from "./utils/priced"; interface CloudUsagePageProps { + Link: CloudUsageLink; isAdmin: boolean; - /** Beside the period picker, such as a link to billing. */ - actions?: ReactNode; periods: CloudQuery; period: CloudPeriod | undefined; - onPeriodChange: (periodId: string) => void; byDay: CloudQuery; byPerson: CloudQuery; - workspaces: CloudPages; - workspace: WorkspaceRef | null; - onWorkspaceChange: (workspace: WorkspaceRef | null) => void; - boots: CloudPages; + /** The top workspaces; the Workspaces page has the rest. */ + workspaces: CloudQuery; + /** The UTC day the page counts as today; the current day by default. */ + today?: string; } export function CloudUsagePage({ + Link, isAdmin, - actions, periods, period, - onPeriodChange, - byDay, - byPerson, - workspaces, - workspace, - onWorkspaceChange, - boots, + byDay: unpricedByDay, + byPerson: unpricedByPerson, + workspaces: unpricedWorkspaces, + today = new Date().toISOString().slice(0, 10), }: CloudUsagePageProps) { - const allowance = isAdmin ? period?.allowance : null; + const param = periodParam(periods.data?.items, period); + const byDay = pricedQuery(unpricedByDay); + const byPerson = pricedQuery(unpricedByPerson); + const workspaces = pricedQuery(unpricedWorkspaces); + const allowance = period?.allowance ? priced(period.allowance) : null; + const unpriced = Boolean(period?.allowance) && allowance === null; return ( -
-
-
-

- {isAdmin ? ( - Cloud usage - ) : ( - Your cloud usage - )} -

-

- {isAdmin ? ( - Cloud workspace usage for the whole organization. - ) : ( - - Only your own workspaces. Organization totals are for owners and - admins. - - )} -

-
- {(period || actions) && ( -
- {period && periods.data && ( - - )} - {actions} -
- )} -
- - {periods.data && !period && ( -

- - This organization has no billing periods, so this page shows the - last 30 days. - -

- )} - - {allowance && } - - {!periods.data || !byDay.data ? ( +
+ Cloud usage : Your cloud usage + } + actions={ + period && + periods.data && ( + + ) + } + /> + {!periods.data || !byDay.data || unpriced ? ( - periods.isError ? periods.refetch() : byDay.refetch() - } + isError={periods.isError || byDay.isError || unpriced} + onRetry={() => { + periods.refetch(); + byDay.refetch(); + }} /> - ) : !hasUsage(byDay.data.total) ? ( -

- {isAdmin ? ( - No cloud usage in this period. - ) : ( - You have no cloud usage in this period. - )} -

) : ( <> - - {isAdmin && period?.closed && ( -

- - The included and overage GB-hours are kept for the current - period only. - -

+ {period?.allowance?.limitReached && !period.closed && ( +
+ + Usage limit reached. + {" "} + Cloud workspaces cannot start. +
)} -
- Usage by day - ) : ( - Your usage by day - ) + {isAdmin ? ( + + Billing + } /> - {isAdmin && } -
- + ) : ( + + )} + {!hasUsage(byDay.data.total) ? ( + + {isAdmin ? ( + No cloud usage in this period. + ) : ( + You have no cloud usage in this period. + )} + + ) : ( + <> + By day + ) : ( + Your usage by day + ) + } + /> + {isAdmin && ( + + )} +
Workspaces + ) : ( + Your workspaces + ) + } + action={ + + View all + + } + > + {!workspaces.data ? ( + workspaces.refetch()} + /> + ) : ( + + )} +
+ + )} )} - onWorkspaceChange(null)} - />
); } diff --git a/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/AllowanceCard.stories.tsx b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/AllowanceCard.stories.tsx new file mode 100644 index 00000000000..cfcfa8af3d0 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/AllowanceCard.stories.tsx @@ -0,0 +1,37 @@ +import { Trans } from "@lingui/react/macro"; +import type { Meta, StoryObj } from "@storybook/react-vite"; +import { + cardArgs, + lastThirtyDaysCardArgs, + StoryLink, + withSettingsShell, +} from "../../fixtures"; +import { MoreLink } from "../MoreLink"; +import { AllowanceCard } from "./AllowanceCard"; + +const meta = { + title: "Cloud usage/Allowance card", + component: AllowanceCard, + decorators: [withSettingsShell], + args: { + ...cardArgs("northwind"), + billing: ( + + Billing + + ), + }, +} satisfies Meta; + +export default meta; +type Story = StoryObj; + +export const Northwind: Story = {}; +export const Trial: Story = { args: cardArgs("trial") }; +export const Prepaid: Story = { args: cardArgs("prepaid") }; +export const LimitReached: Story = { args: cardArgs("limitReached") }; +export const PercentCap: Story = { args: cardArgs("percentCap") }; +export const NotRead: Story = { args: cardArgs("notRead") }; +export const Unbilled: Story = { args: cardArgs("unbilled") }; +export const PastPeriod: Story = { args: cardArgs("northwind", 1) }; +export const LastThirtyDays: Story = { args: lastThirtyDaysCardArgs() }; diff --git a/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/AllowanceCard.tsx b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/AllowanceCard.tsx index 4c18a12f56f..3ae7694b46f 100644 --- a/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/AllowanceCard.tsx +++ b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/AllowanceCard.tsx @@ -1,57 +1,118 @@ "use client"; import { Trans } from "@lingui/react/macro"; -import { useFormat } from "@superset/i18n/react"; -import { Progress } from "../../../ui/progress"; +import type { ReactNode } from "react"; +import { useUsageFormat } from "../../hooks/useUsageFormat"; import type { CloudPeriod } from "../../types"; +import type { PricedAllowance, PricedMetrics } from "../../utils/priced"; +import { AllowanceLines } from "./components/AllowanceLines"; +import { allowanceLines } from "./utils/allowanceLines"; -type Allowance = NonNullable; +type Reason = CloudPeriod["unavailable"][number]["reason"]; -export function AllowanceCard({ allowance }: { allowance: Allowance }) { - const { formatDate, formatGbHours } = useFormat(); - const { includedGbHours, usedGbHours, overageGbHours } = allowance; - const used = formatGbHours(usedGbHours); - const included = includedGbHours ? formatGbHours(includedGbHours) : null; - const overage = formatGbHours(overageGbHours); - const prepaid = formatGbHours(allowance.prepaidRemainingGbHours); - const resetDate = formatDate(allowance.resetsAt); +interface AllowanceCardProps { + total: PricedMetrics; + /** Undefined when the organization has no billing periods and the range is the last 30 days. */ + period: CloudPeriod | undefined; + /** The period's allowance; null for a closed period. */ + allowance: PricedAllowance | null; + billing: ReactNode; +} + +/** What the card says, once per reason, about a value the router could not give. A member never sees the card. */ +const NOTES: Record, ReactNode> = { + closed_period: ( + The breakdown by plan is kept for the current period only. + ), + not_read: ( + + Seats, credits and the extra-usage limit are not loaded yet. They show + after billing data next refreshes. + + ), + percent_of_allowance: ( + + The extra-usage limit is a percentage of the plan, so its amount is not + shown. + + ), + not_tracked: ( + This page cannot tell when the usage limit is reached. + ), +}; + +export function AllowanceCard({ + total, + period, + allowance, + billing, +}: AllowanceCardProps) { + const { dollarsFor } = useUsageFormat(); + const summary = + allowance?.includedGbHours != null && allowance.includedUsd !== null + ? allowanceLines( + allowance, + { gbHours: allowance.includedGbHours, usd: allowance.includedUsd }, + { gbHours: total.gbHours, usd: total.usageUsd }, + period?.unavailable + .filter((item) => item.reason === "not_read") + .map((item) => item.field), + ) + : null; + const dollars = dollarsFor([ + total.usageUsd, + ...(summary + ? [ + summary.used.usd, + summary.cap.usd, + ...summary.lines.flatMap((line) => [ + line.used.usd, + ...(line.total ? [line.total.usd] : []), + ]), + ] + : []), + ]); + const used = dollars(summary ? summary.used.usd : total.usageUsd); + const cap = summary && dollars(summary.cap.usd); + const reasons = new Set(period?.unavailable.map((item) => item.reason)); + const notes = (Object.keys(NOTES) as (keyof typeof NOTES)[]).filter( + (reason) => reasons.has(reason), + ); return ( -
+
-
- {included === null ? ( - GB-hours used: {used} - ) : ( - - GB-hours used: {used} of {included} - - )} -
-
- Resets {resetDate} -
+

+ + {used} used + {" "} + + {summary?.headline === "limit" ? ( + of {cap} limit + ) : summary?.headline === "included" ? ( + of {cap} included + ) : period ? ( + in this period + ) : ( + in the last 30 days + )} + +

+ {billing}
- {includedGbHours !== null && includedGbHours > 0 && ( - )} - {includedGbHours === 0 && ( -

- Your plan includes no cloud GB-hours. + {notes.map((reason) => ( +

+ {NOTES[reason]}

- )} - {allowance.prepaidRemainingGbHours > 0 && ( -

- Bought GB-hours left: {prepaid} -

- )} - {overageGbHours > 0 && ( -

- GB-hours over the plan: {overage} -

- )} + ))}
); } diff --git a/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/components/AllowanceLines/AllowanceLines.tsx b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/components/AllowanceLines/AllowanceLines.tsx new file mode 100644 index 00000000000..b4afeab3aaf --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/components/AllowanceLines/AllowanceLines.tsx @@ -0,0 +1,141 @@ +"use client"; + +import { Plural, Trans } from "@lingui/react/macro"; +import type { ReactNode } from "react"; +import { cn } from "../../../../../../lib/utils"; +import type { AllowanceLine, Amount } from "../../utils/allowanceLines"; + +interface AllowanceLinesProps { + lines: AllowanceLine[]; + scale: Amount; + seats: number | null; + format: (usd: number) => string; +} + +/** The bar's order: the free and unplaced usage, which billing draws first, before the paid segments. */ +const BAR_ORDER: Record = { + included: 0, + freeCredits: 1, + notBrokenDown: 2, + bought: 3, + extra: 4, + beyond: 5, +}; + +/** Fixed palette hues for the paid and beyond segments, so each keeps one colour in both themes. */ +const SWATCH: Record = { + included: "bg-foreground/70", + freeCredits: "bg-foreground/35", + bought: "bg-teal-500", + extra: "bg-orange-500", + beyond: "bg-amber-400", + notBrokenDown: "bg-foreground/20", +}; + +export function AllowanceLines({ + lines, + scale, + seats, + format, +}: AllowanceLinesProps) { + const share = (amount: Amount) => { + return scale.usd > 0 ? (amount.usd / scale.usd) * 100 : 0; + }; + const label = (line: AllowanceLine): ReactNode => { + switch (line.kind) { + case "included": + return seats === null ? ( + Included with the plan + ) : ( + + ); + case "freeCredits": + return Free credits; + case "bought": + return Bought credits; + case "extra": + return Extra usage; + case "notBrokenDown": + return Not broken down yet; + case "beyond": + return Not counted by billing yet; + } + }; + const value = (line: AllowanceLine) => { + const used = format(line.used.usd); + if (!line.total) return used; + const total = format(line.total.usd); + return ( + + {used} of {total} + + ); + }; + const row = (line: AllowanceLine) => ( + + + + + {label(line)} + + + {value(line)} + + ); + const group = (heading: ReactNode, items: AllowanceLine[]) => + items.length > 0 && ( + <> + + + {heading} + + + {items.map(row)} + + ); + const isOther = (line: AllowanceLine) => + line.kind === "beyond" || line.kind === "notBrokenDown"; + const billed = lines.filter((line) => !isOther(line)); + + return ( + <> +
+ {[...lines] + .sort((a, b) => BAR_ORDER[a.kind] - BAR_ORDER[b.kind]) + .map((line) => ( + + ))} +
+ + + {group( + Free, + billed.filter((line) => !line.paid), + )} + {group( + Paid, + billed.filter((line) => line.paid), + )} + {group( + Other, + lines.filter(isOther), + )} + +
+ + ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/components/AllowanceLines/index.ts b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/components/AllowanceLines/index.ts new file mode 100644 index 00000000000..c0d87f24ba1 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/components/AllowanceLines/index.ts @@ -0,0 +1 @@ +export { AllowanceLines } from "./AllowanceLines"; diff --git a/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/utils/allowanceLines/allowanceLines.test.ts b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/utils/allowanceLines/allowanceLines.test.ts new file mode 100644 index 00000000000..61b6b418fec --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/utils/allowanceLines/allowanceLines.test.ts @@ -0,0 +1,220 @@ +import { describe, expect, it } from "bun:test"; +import { type BillingState, cardArgs } from "../../../../fixtures"; +import type { PricedAllowance } from "../../../../utils/priced"; +import { type Amount, allowanceLines } from "./allowanceLines"; + +type Lines = ReturnType; + +const RATE = 0.06; +const gbh = (gbHours: number): Amount => ({ gbHours, usd: gbHours * RATE }); +const kinds = (lines: Lines["lines"]) => lines.map((line) => line.kind); +const near = (a: number, b: number) => + expect(Math.abs(a - b)).toBeLessThan(0.01); + +/** The headline's usage, in GB-hours and in dollars at the stories' rate. */ +function expectHeadline({ used }: Lines, gbHours: number) { + near(used.gbHours, gbHours); + near(used.usd, gbHours * RATE); +} + +/** The card's lines for a story state, whose allowance comes from the billing reader and the router's mapping. */ +function linesOf(state: BillingState) { + const { allowance, total, period } = cardArgs(state); + if ( + !allowance || + allowance.includedGbHours === null || + allowance.includedUsd === null + ) { + throw new Error(`${state} has no included total`); + } + const unread = (period?.unavailable ?? []) + .filter((item) => item.reason === "not_read") + .map((item) => item.field); + return { + allowance, + ...allowanceLines( + allowance, + { gbHours: allowance.includedGbHours, usd: allowance.includedUsd }, + { gbHours: total.gbHours, usd: total.usageUsd }, + unread, + ), + }; +} + +/** Northwind's billing: 14 seats of 500 GB-hours, a 2,000 GB-hour free credit used up, then 6,200 GB-hours of extra usage. */ +const NORTHWIND: PricedAllowance = { + includedGbHours: 7000, + usedGbHours: 13200, + overageGbHours: 6200, + prepaidRemainingGbHours: 0, + resetsAt: new Date("2026-11-27T00:00:00Z"), + usedUsd: 13200 * RATE, + includedUsd: 7000 * RATE, + overageUsd: 6200 * RATE, + seats: 14, + bought: null, + freeCredits: { + usedGbHours: 2000, + totalGbHours: 2000, + usedUsd: 2000 * RATE, + totalUsd: 2000 * RATE, + }, + extraUsageLimit: gbh(27000), + limitReached: false, +}; +/** The same value cached before seats, credits and the cap were read. */ +const CACHED: PricedAllowance = { + ...NORTHWIND, + seats: null, + bought: null, + freeCredits: null, + extraUsageLimit: null, + limitReached: null, +}; +const ALL_UNREAD = [ + "seats", + "bought", + "freeCredits", + "extraUsageLimit", + "limitReached", +]; +const lines = ( + allowance: PricedAllowance, + periodGbHours: number, + unread: string[] = [], +) => allowanceLines(allowance, gbh(7000), gbh(periodGbHours), unread); + +describe("allowanceLines on story data", () => { + it("holds what billing counted in the included, credit and extra lines, in the design's order", () => { + const result = linesOf("northwind"); + expect(kinds(result.lines)).toEqual(["included", "freeCredits", "extra"]); + expect(result.hasCap).toBe(true); + near(result.cap.gbHours, 7000 + 2000 + 27000); + expectHeadline(result, 15200); + }); + + it("shows usage the events hold past billing's own total as Not counted by billing yet", () => { + const result = linesOf("unbilled"); + near( + result.lines.find((line) => line.kind === "beyond")?.used.gbHours ?? 0, + 600, + ); + expectHeadline(result, 15800); + }); + + it("never calls credit usage unbilled when the credits are not read", () => { + const result = linesOf("notRead"); + expect(kinds(result.lines)).not.toContain("beyond"); + near( + result.lines.find((line) => line.kind === "notBrokenDown")?.used + .gbHours ?? 0, + 2000, + ); + expectHeadline(result, 15200); + }); + + it("with extra usage off, the included total is the cap: no extra line and no open bar", () => { + const trial = linesOf("trial"); + expect(kinds(trial.lines)).toEqual(["included"]); + expect(trial.hasCap).toBe(false); + near(trial.cap.usd, 270); + expect(trial.scale).toEqual(trial.cap); + expectHeadline(trial, 3100); + }); + + it("with extra usage off, holds usage past the included amount in the included line when the stop overshoots", () => { + const result = linesOf("limitReached"); + expect(result.allowance.limitReached).toBe(true); + expect(kinds(result.lines)).toEqual(["included"]); + expect(result.lines[0]?.used.gbHours).toBeCloseTo(4650); + expect(result.lines[0]?.total?.gbHours).toBeCloseTo(4500); + expectHeadline(result, 4650); + }); + + it("leaves the bar open when the cap is not known and the limit is not reached", () => { + const result = linesOf("percentCap"); + expect(result.lines.at(-1)).toMatchObject({ kind: "extra", total: null }); + expect(result.hasCap).toBe(false); + expect(result.scale.usd).toBeGreaterThan(result.cap.usd); + expectHeadline(result, 15200); + }); +}); + +describe("allowanceLines on hand-built values", () => { + it("all lines read: billing's own total is the lines, and only events past it are unbilled", () => { + const counted = lines(NORTHWIND, 15200); + expect(kinds(counted.lines)).toEqual(["included", "freeCredits", "extra"]); + expectHeadline(counted, 15200); + const ahead = lines(NORTHWIND, 15500); + near(ahead.lines.at(-1)?.used.gbHours ?? 0, 300); + expect(ahead.lines.at(-1)?.kind).toBe("beyond"); + expectHeadline(ahead, 15500); + }); + + it("credits not read: what the lines cannot place is Not broken down yet, never unbilled", () => { + const result = lines( + { ...NORTHWIND, bought: null, freeCredits: null }, + 15500, + ["bought", "freeCredits"], + ); + expect(kinds(result.lines)).toEqual(["included", "extra", "notBrokenDown"]); + near(result.lines.at(-1)?.used.gbHours ?? 0, 2300); + expectHeadline(result, 15500); + }); + + it("everything not read: the same, and the bar stays open with no known cap", () => { + const result = lines(CACHED, 15200, ALL_UNREAD); + expect(kinds(result.lines)).not.toContain("beyond"); + expect(kinds(result.lines)).toContain("notBrokenDown"); + expect(result.scale.gbHours).toBeGreaterThan(result.used.gbHours); + expectHeadline(result, 15200); + }); + + it("with extra usage off, never calls usage billing counted past the included amount not broken down", () => { + const result = allowanceLines( + { + ...NORTHWIND, + usedGbHours: 7300, + usedUsd: 7300 * RATE, + overageGbHours: 0, + overageUsd: 0, + freeCredits: null, + extraUsageLimit: gbh(0), + limitReached: true, + }, + gbh(7000), + gbh(7600), + ); + expect(kinds(result.lines)).toEqual(["included", "beyond"]); + near(result.lines[0]?.used.gbHours ?? 0, 7300); + near(result.lines[1]?.used.gbHours ?? 0, 300); + expectHeadline(result, 7600); + }); + + it("events below what billing counted add no line, and the lines still add up", () => { + const result = lines(NORTHWIND, 14000); + expect(kinds(result.lines)).toEqual(["included", "freeCredits", "extra"]); + expectHeadline(result, 15200); + }); + + it("names the cap in the headline only when it is known", () => { + expect(linesOf("northwind").headline).toBe("limit"); + expect(linesOf("trial").headline).toBe("included"); + expect(linesOf("limitReached").headline).toBe("included"); + expect(linesOf("percentCap").headline).toBe("period"); + expect(linesOf("notRead").headline).toBe("period"); + expect(lines(CACHED, 15200, ALL_UNREAD).headline).toBe("period"); + const unknownCap = { + ...NORTHWIND, + usedGbHours: 6600, + usedUsd: 6600 * RATE, + overageGbHours: 0, + overageUsd: 0, + freeCredits: null, + extraUsageLimit: null, + limitReached: null, + }; + expect(lines(unknownCap, 6600).headline).toBe("included"); + expect(lines(unknownCap, 7600).headline).toBe("period"); + }); +}); diff --git a/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/utils/allowanceLines/allowanceLines.ts b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/utils/allowanceLines/allowanceLines.ts new file mode 100644 index 00000000000..ea28f411a22 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/utils/allowanceLines/allowanceLines.ts @@ -0,0 +1,180 @@ +import type { PricedAllowance } from "../../../../utils/priced"; + +export interface Amount { + gbHours: number; + usd: number; +} + +/** + * What each line holds. The lines always add up to the headline. + * - `included`: usage of the seats' monthly amount, of that amount. + * - `freeCredits`, `bought`: usage of a granted or bought credit, of the credit. + * - `extra`: usage past the included amount and the credits, of the extra-usage cap when there is one. + * - `beyond`: usage the period's events hold past billing's own total (its monthly usage plus each + * credit's usage), such as usage not sent yet. Only when every credit was read. + * - `notBrokenDown`: usage the other lines cannot place because a credit was not read. Billing + * may or may not have counted it, so it is never called unbilled. + * With extra usage off there is no extra line, and the included line holds all of billing's + * monthly usage, so a stop that overshoots shows as the included line past its total. + */ +export interface AllowanceLine { + kind: + | "included" + | "freeCredits" + | "bought" + | "extra" + | "beyond" + | "notBrokenDown"; + paid: boolean; + used: Amount; + /** Null for extra usage with no cap or an unknown one, and for `beyond` and `notBrokenDown`. */ + total: Amount | null; +} + +/** Part of the bar left open when no cap is known, so a full bar always means the cap. */ +const OPEN_END = 0.2; +/** Below this, a difference between usage events and billing is rounding, not usage. */ +const BEYOND_MIN_GB_HOURS = 0.5; + +const sum = (amounts: Amount[]): Amount => ({ + gbHours: amounts.reduce((total, amount) => total + amount.gbHours, 0), + usd: amounts.reduce((total, amount) => total + amount.usd, 0), +}); + +const minus = (a: Amount, b: Amount): Amount => ({ + gbHours: a.gbHours - b.gbHours, + usd: a.usd - b.usd, +}); + +/** + * The card's lines, in the design's order: what the plan includes and free credits, then + * bought credits, extra usage, and any usage the period's events hold beyond those lines. + * `used` is the sum of the lines, so the headline and the lines always agree. `cap` is + * the included total, plus the extra-usage limit when there is one. With extra usage off + * the included total is the cap, so the bar is not left open. + */ +export function allowanceLines( + allowance: PricedAllowance, + included: Amount, + periodUsed: Amount, + /** The fields the router marks `not_read`. */ + unread: readonly string[] = [], +) { + const credit = ( + kind: "freeCredits" | "bought", + line: PricedAllowance["bought"], + ): AllowanceLine[] => + line + ? [ + { + kind, + paid: kind === "bought", + used: { gbHours: line.usedGbHours, usd: line.usedUsd }, + total: { gbHours: line.totalGbHours, usd: line.totalUsd }, + }, + ] + : []; + const limit = allowance.extraUsageLimit; + const overage: Amount = { + gbHours: allowance.overageGbHours, + usd: allowance.overageUsd, + }; + // With extra usage off there is no extra line: all of billing's monthly usage is the included + // line's, past its total when workspaces ran on before they stopped at the limit. + const extraOff = limit !== null && limit.gbHours === 0; + const monthly: Amount = { + gbHours: allowance.usedGbHours, + usd: allowance.usedUsd, + }; + const billed: AllowanceLine[] = [ + { + kind: "included", + paid: false, + used: extraOff + ? monthly + : { + gbHours: Math.max(0, monthly.gbHours - overage.gbHours), + usd: Math.max(0, monthly.usd - overage.usd), + }, + total: included, + }, + ...credit("freeCredits", allowance.freeCredits), + ...credit("bought", allowance.bought), + ...(extraOff + ? [] + : limit && limit.gbHours > 0 + ? [{ kind: "extra", paid: true, used: overage, total: limit } as const] + : overage.gbHours > 0 + ? [{ kind: "extra", paid: true, used: overage, total: null } as const] + : []), + ]; + const creditsRead = !unread.some( + (field) => field === "bought" || field === "freeCredits", + ); + /** Billing's own total: its monthly usage, extra usage included, plus each credit's usage. */ + const own = sum([ + monthly, + ...billed + .filter((line) => line.kind === "freeCredits" || line.kind === "bought") + .map((line) => line.used), + ]); + const line = ( + kind: "beyond" | "notBrokenDown", + used: Amount, + ): AllowanceLine[] => + used.gbHours >= BEYOND_MIN_GB_HOURS + ? [{ kind, paid: false, used, total: null }] + : []; + const lines: AllowanceLine[] = [ + ...billed, + ...(creditsRead + ? line("beyond", minus(periodUsed, own)) + : line( + "notBrokenDown", + minus(periodUsed, sum(billed.map((item) => item.used))), + )), + ]; + + const totalsOf = (items: AllowanceLine[]) => + items.flatMap((item) => (item.total ? [item.total] : [])); + const hasCap = lines.some((item) => item.kind === "extra" && item.total); + const open = lines.filter((item) => !item.total); + const filled = sum( + lines.map((item) => + item.total && item.total.gbHours >= item.used.gbHours + ? item.total + : item.used, + ), + ); + const capKnown = limit !== null; + const leaveOpen = + !capKnown && open.length > 0 && allowance.limitReached !== true; + const used = sum(lines.map((line) => line.used)); + const cap = hasCap + ? sum(totalsOf(lines)) + : sum(totalsOf(lines.filter((item) => item.kind !== "extra"))); + /** + * What the headline measures usage against: the cap when it is known; the included total when + * extra usage is known off or usage stays within it; else nothing, as "of $X included" would + * read as more than the allowance. + */ + const headline: "limit" | "period" | "included" = hasCap + ? "limit" + : extraOff || used.gbHours <= cap.gbHours + ? "included" + : "period"; + return { + lines, + headline, + used, + cap, + hasCap, + /** The bar's full width. */ + scale: leaveOpen + ? { + gbHours: filled.gbHours / (1 - OPEN_END), + usd: filled.usd / (1 - OPEN_END), + } + : filled, + }; +} diff --git a/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/utils/allowanceLines/index.ts b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/utils/allowanceLines/index.ts new file mode 100644 index 00000000000..96aa8ccfee3 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/AllowanceCard/utils/allowanceLines/index.ts @@ -0,0 +1,5 @@ +export { + type AllowanceLine, + type Amount, + allowanceLines, +} from "./allowanceLines"; diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/CloudWorkspacePage.stories.tsx b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/CloudWorkspacePage.stories.tsx new file mode 100644 index 00000000000..388ee2902aa --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/CloudWorkspacePage.stories.tsx @@ -0,0 +1,54 @@ +import { Trans } from "@lingui/react/macro"; +import type { Meta, StoryObj } from "@storybook/react-vite"; +import { LuArrowUpRight } from "react-icons/lu"; +import { Button } from "../../../ui/button"; +import { + emptyUsage, + pagesQuery, + query, + StoryLink, + withSettingsShell, + workspaceArgs, +} from "../../fixtures"; +import type { CloudBoots, CloudUsage } from "../../types"; +import { CloudWorkspacePage } from "./CloudWorkspacePage"; + +const openWorkspace = () => ( + +); + +/** Stories render as on the web, with no "Open workspace", unless named for desktop. */ +const meta = { + title: "Cloud usage/Workspace", + component: CloudWorkspacePage, + decorators: [withSettingsShell], + args: { Link: StoryLink, ...workspaceArgs("asleep") }, +} satisfies Meta; + +export default meta; +type Story = StoryObj; + +export const Desktop: Story = { args: { openWorkspace } }; +export const Web: Story = {}; +export const Failed: Story = { args: workspaceArgs("failed") }; +export const Running: Story = { args: workspaceArgs("awake") }; +/** No usage in the period: the name comes from the workspace's usage over all time. */ +export const NoUsage: Story = { + args: { + workspace: query(emptyUsage), + boots: pagesQuery([]), + }, +}; +export const LongNamesDesktop: Story = { + args: { ...workspaceArgs("long"), openWorkspace }, +}; +export const Loading: Story = { + args: { + workspace: query(undefined), + allTime: query(undefined), + boots: pagesQuery(undefined), + }, +}; diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/CloudWorkspacePage.tsx b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/CloudWorkspacePage.tsx new file mode 100644 index 00000000000..82c5e8cd899 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/CloudWorkspacePage.tsx @@ -0,0 +1,179 @@ +"use client"; + +import { Trans, useLingui } from "@lingui/react/macro"; +import { useFormat } from "@superset/i18n/react"; +import { machineSpec } from "@superset/shared/billing"; +import { MACHINE_SIZE_NAMES } from "@superset/shared/machine-size-names"; +import type { ReactNode } from "react"; +import { FAILURE_REASONS } from "../../constants"; +import { useUsageFormat } from "../../hooks/useUsageFormat"; +import type { + CloudBoots, + CloudPages, + CloudPeriod, + CloudPeriods, + CloudQuery, + CloudUsage, + CloudUsageLink, +} from "../../types"; +import { periodParam } from "../../utils/periodParam"; +import { pricedPages, pricedQuery } from "../../utils/priced"; +import { workspaceOf } from "../../utils/workspaceOf"; +import { Notice } from "../Notice"; +import { PageHeader } from "../PageHeader"; +import { Person } from "../Person"; +import { QueryStatus } from "../QueryStatus"; +import { Section } from "../Section"; +import { StatusPill } from "../StatusPill"; +import { BootsTable } from "./components/BootsTable"; + +interface CloudWorkspacePageProps { + Link: CloudUsageLink; + periods: CloudQuery; + period: CloudPeriod | undefined; + /** The workspace's one usage row in the period. */ + workspace: CloudQuery; + /** The workspace's usage over all time, for its name when the period has no row. */ + allTime: CloudQuery; + boots: CloudPages; + /** Where the app can open the workspace. */ + openWorkspace?: (workspaceId: string) => ReactNode; +} + +export function CloudWorkspacePage({ + Link, + periods, + period, + workspace: unpriced, + allTime, + boots: unpricedBoots, + openWorkspace, +}: CloudWorkspacePageProps) { + const query = pricedQuery(unpriced); + const boots = pricedPages(unpricedBoots); + const { i18n } = useLingui(); + const { formatNumber } = useFormat(); + const { dollars, formatGbHours } = useUsageFormat(); + const param = periodParam(periods.data?.items, period); + const row = query.data?.items[0]; + const workspace = row ? workspaceOf(row) : null; + const crumbs = [ + { + label: Cloud usage, + to: { view: "overview", period: param } as const, + }, + { + label: Workspaces, + to: { view: "workspaces", period: param } as const, + }, + ]; + + if (!row || !workspace) { + const known = allTime.data?.items[0]; + const ref = known ? workspaceOf(known) : null; + return ( +
+ Workspace + ) : ( + + ) + } + badge={ref && } + /> + {periods.data && query.data ? ( + + This workspace has no usage in this period. + + ) : ( + + periods.isError ? periods.refetch() : query.refetch() + } + /> + )} +
+ ); + } + + const size = i18n._(MACHINE_SIZE_NAMES[workspace.size]); + const memory = formatNumber(machineSpec(workspace.size).memoryGb); + const tiles = [ + { + key: "usage", + label: Usage, + value: dollars(row.usageUsd), + }, + { + key: "gbHours", + label: GB-hours, + value: formatGbHours(row.gbHours), + }, + { + key: "hours", + label: Hours, + value: formatNumber(row.hours, { maximumFractionDigits: 0 }), + }, + { + key: "boots", + label: Boots, + value: formatNumber(row.boots), + }, + ]; + + return ( +
+
+ } + actions={openWorkspace?.(workspace.id)} + /> +
+ {workspace.owner && } + {workspace.owner && ·} + + + {size}, {memory} GB + + +
+
+ {workspace.failure && ( +
+ + Could not start. + {" "} + {i18n._(FAILURE_REASONS[workspace.failure.reason])} +
+ )} +
+ {tiles.map((tile) => ( +
+
+ {tile.label} +
+
+ {tile.value} +
+
+ ))} +
+
Boots}> + +
+
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/BootsTable.tsx b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/BootsTable.tsx new file mode 100644 index 00000000000..d2f1e8068ea --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/BootsTable.tsx @@ -0,0 +1,150 @@ +"use client"; + +import { Trans, useLingui } from "@lingui/react/macro"; +import { useFormat } from "@superset/i18n/react"; +import { MACHINE_SIZE_NAMES } from "@superset/shared/machine-size-names"; +import { cn } from "../../../../../../lib/utils"; +import { Button } from "../../../../../ui/button"; +import { + Table, + TableBody, + TableCell, + TableHead, + TableHeader, + TableRow, +} from "../../../../../ui/table"; +import { useUsageFormat } from "../../../../hooks/useUsageFormat"; +import type { CloudPages } from "../../../../types"; +import type { PricedBoots } from "../../../../utils/priced"; +import { Pill } from "../../../Pill"; +import { QueryStatus } from "../../../QueryStatus"; +import { END_PILLS } from "./constants"; +import { bootEnd } from "./utils/bootEnd"; + +interface BootsTableProps { + pages: CloudPages; +} + +const HEAD = + "h-9 text-xs font-medium tracking-wide text-muted-foreground uppercase"; +const MEDIUM = "hidden @xl:table-cell"; +const NARROW = "hidden @md:table-cell"; + +export function BootsTable({ pages }: BootsTableProps) { + const { i18n } = useLingui(); + const { formatDateTime, formatList, formatNumber } = useFormat(); + const { dollarsFor, formatGbHours } = useUsageFormat(); + const boots = pages.data?.pages.flatMap((page) => page.items) ?? []; + const dollars = dollarsFor(boots.map((boot) => boot.usageUsd)); + const unit = (value: number, name: "hour" | "minute" | "second") => + formatNumber(value, { style: "unit", unit: name, unitDisplay: "narrow" }); + const duration = (minutes: number) => { + const seconds = Math.round(minutes * 60); + if (seconds < 60) return unit(seconds, "second"); + const hours = Math.floor(seconds / 3600); + const rest = Math.floor((seconds % 3600) / 60); + return hours === 0 + ? unit(rest, "minute") + : formatList([unit(hours, "hour"), unit(rest, "minute")], { + type: "unit", + style: "narrow", + }); + }; + + if (!pages.data) { + return ( + pages.refetch()} /> + ); + } + return ( +
+ + + + + Started + + + Duration + + + Size + + + Ended + + + GB-hours + + + Usage + + + + + {boots.length === 0 && ( + + + No boots in this period. + + + )} + {boots.map((boot) => { + const end = bootEnd(boot); + const pill = end && END_PILLS[end]; + const length = end === "running" ? "—" : duration(boot.minutes); + return ( + + + {formatDateTime(boot.startedAt, { + month: "short", + day: "numeric", + hour: "2-digit", + minute: "2-digit", + })} +
+ {length} +
+
+ + {length} + + + {boot.size && i18n._(MACHINE_SIZE_NAMES[boot.size])} + + + {pill ? ( + {i18n._(pill.label)} + ) : ( + + Unknown + + )} + + + {formatGbHours(boot.gbHours)} + + + {dollars(boot.usageUsd)} + +
+ ); + })} +
+
+ {pages.hasNextPage && ( + + )} +
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/constants.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/constants.ts new file mode 100644 index 00000000000..95a0e551cdf --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/constants.ts @@ -0,0 +1,31 @@ +import type { MessageDescriptor } from "@lingui/core"; +import { msg } from "@lingui/core/macro"; +import type { PillTone } from "../../../../constants"; +import type { bootEnd } from "./utils/bootEnd"; + +export const END_PILLS: Record< + NonNullable>, + { label: MessageDescriptor; tone: PillTone } +> = { + running: { + label: msg({ message: "Running", context: "cloud workspace boot" }), + tone: "ok", + }, + idle: { + label: msg({ message: "Idle", context: "cloud workspace boot" }), + tone: "idle", + }, + user: { + label: msg({ message: "Stopped", context: "cloud workspace boot" }), + tone: "idle", + }, + usage_limit: { label: msg({ message: "Usage limit" }), tone: "warn" }, + archived: { + label: msg({ message: "Archived", context: "cloud workspace status" }), + tone: "idle", + }, + restarted: { label: msg({ message: "Restarted" }), tone: "idle" }, + failed: { label: msg({ message: "Could not start" }), tone: "bad" }, + released: { label: msg({ message: "Released before use" }), tone: "idle" }, + crashed: { label: msg({ message: "Crashed" }), tone: "bad" }, +}; diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/index.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/index.ts new file mode 100644 index 00000000000..dc78cafe765 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/index.ts @@ -0,0 +1 @@ +export { BootsTable } from "./BootsTable"; diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/utils/bootEnd/bootEnd.test.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/utils/bootEnd/bootEnd.test.ts similarity index 100% rename from packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/utils/bootEnd/bootEnd.test.ts rename to packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/utils/bootEnd/bootEnd.test.ts diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/utils/bootEnd/bootEnd.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/utils/bootEnd/bootEnd.ts similarity index 88% rename from packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/utils/bootEnd/bootEnd.ts rename to packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/utils/bootEnd/bootEnd.ts index c493ae7213a..2754a8d98c5 100644 --- a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/utils/bootEnd/bootEnd.ts +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/utils/bootEnd/bootEnd.ts @@ -1,4 +1,4 @@ -import type { CloudBoot } from "../../../../types"; +import type { CloudBoot } from "../../../../../../types"; type EndReason = NonNullable; diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/utils/bootEnd/index.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/utils/bootEnd/index.ts similarity index 100% rename from packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/utils/bootEnd/index.ts rename to packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/components/BootsTable/utils/bootEnd/index.ts diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/index.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/index.ts new file mode 100644 index 00000000000..52ffbeae3af --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacePage/index.ts @@ -0,0 +1 @@ +export { CloudWorkspacePage } from "./CloudWorkspacePage"; diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/CloudWorkspacesPage.stories.tsx b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/CloudWorkspacesPage.stories.tsx new file mode 100644 index 00000000000..69293eef6cb --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/CloudWorkspacesPage.stories.tsx @@ -0,0 +1,72 @@ +import type { Meta, StoryObj } from "@storybook/react-vite"; +import { + PEOPLE, + pagesQuery, + query, + rowsFixtures, + StoryLink, + withSettingsShell, + workspacePages, + workspacesByPerson, + workspacesPeriods, +} from "../../fixtures"; +import { CloudWorkspacesPage } from "./CloudWorkspacesPage"; + +const meta = { + title: "Cloud usage/Workspaces", + component: CloudWorkspacesPage, + decorators: [withSettingsShell], + args: { + Link: StoryLink, + navigate: () => undefined, + isAdmin: true, + periods: query(workspacesPeriods), + period: workspacesPeriods.items[0], + workspaces: pagesQuery(workspacePages()), + filters: {}, + byPerson: query(workspacesByPerson), + }, +} satisfies Meta; + +export default meta; +type Story = StoryObj; + +export const Owner: Story = {}; +export const Filtered: Story = { + args: { + filters: { status: "asleep", sort: "name" }, + workspaces: pagesQuery(workspacePages(rowsFixtures.asleepByName)), + }, +}; +export const Person: Story = { + args: { + filters: { user: PEOPLE[0]?.id }, + workspaces: pagesQuery(workspacePages(rowsFixtures.priya)), + }, +}; +export const Search: Story = { + args: { + filters: { q: "sync" }, + workspaces: pagesQuery(workspacePages(rowsFixtures.sync)), + }, +}; +export const Page2: Story = { args: { filters: { page: 2 } } }; +export const NoMatch: Story = { + args: { + filters: { q: "nothing" }, + workspaces: pagesQuery(workspacePages([])), + }, +}; +export const Member: Story = { + args: { + isAdmin: false, + workspaces: pagesQuery(workspacePages(rowsFixtures.member)), + }, +}; +export const LongNames: Story = { + args: { workspaces: pagesQuery(workspacePages(rowsFixtures.long)) }, +}; +export const Loading: Story = { args: { workspaces: pagesQuery(undefined) } }; +export const LoadError: Story = { + args: { workspaces: pagesQuery(undefined, true) }, +}; diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/CloudWorkspacesPage.tsx b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/CloudWorkspacesPage.tsx new file mode 100644 index 00000000000..be4e2ff03f4 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/CloudWorkspacesPage.tsx @@ -0,0 +1,174 @@ +"use client"; + +import { Trans } from "@lingui/react/macro"; +import { useEffect } from "react"; +import { usePeriodLabel } from "../../hooks/usePeriodLabel"; +import type { + CloudPages, + CloudPeriod, + CloudPeriods, + CloudQuery, + CloudUsage, + CloudUsageLink, + WorkspacesFilters, + WorkspacesTarget, +} from "../../types"; +import { periodParam } from "../../utils/periodParam"; +import { pricedPages } from "../../utils/priced"; +import { workspaceOf } from "../../utils/workspaceOf"; +import { ROWS_PER_PAGE } from "../../utils/workspacesFilters"; +import { Notice } from "../Notice"; +import { PageHeader } from "../PageHeader"; +import { QueryStatus } from "../QueryStatus"; +import { WorkspacesTable } from "../WorkspacesTable"; +import { FilterChips } from "./components/FilterChips"; +import { Pager } from "./components/Pager"; +import { WorkspacesToolbar } from "./components/WorkspacesToolbar"; + +const DEFAULT_ROWS = ROWS_PER_PAGE[0]; + +interface CloudWorkspacesPageProps { + Link: CloudUsageLink; + navigate: (to: WorkspacesTarget) => void; + isAdmin: boolean; + periods: CloudQuery; + period: CloudPeriod | undefined; + workspaces: CloudPages; + filters: WorkspacesFilters; + /** The people to filter by; owners and admins only. */ + byPerson: CloudQuery; +} + +export function CloudWorkspacesPage({ + Link, + navigate, + isAdmin, + periods, + period, + workspaces: unpriced, + filters, + byPerson, +}: CloudWorkspacesPageProps) { + const workspaces = pricedPages(unpriced); + const periodLabel = usePeriodLabel(); + const param = periodParam(periods.data?.items, period); + /** Any change but the page itself goes back to the first page. */ + const to = (next: WorkspacesFilters): WorkspacesTarget => ({ + view: "workspaces", + period: param, + ...next, + page: undefined, + }); + const pages = workspaces.data?.pages ?? []; + const { hasNextPage, isFetchingNextPage, fetchNextPage } = workspaces; + const rows = filters.rows ?? DEFAULT_ROWS; + const rowCount = pages[0]?.rowCount; + const pageCount = + rowCount === undefined + ? undefined + : Math.max(1, Math.ceil(rowCount / rows)); + // Pages are cursor pages: a page from the URL is reached by loading the pages before it, up to the last page there is. + const wanted = Math.min((filters.page ?? 1) - 1, (pageCount ?? 1) - 1); + const walking = !workspaces.isError && wanted >= pages.length && hasNextPage; + const loadingPage = pages.length + 1; + const targetPage = wanted + 1; + useEffect(() => { + if (walking && !isFetchingNextPage) fetchNextPage(); + }, [walking, isFetchingNextPage, fetchNextPage]); + const index = Math.max(0, Math.min(wanted, pages.length - 1)); + const people = isAdmin + ? (byPerson.data?.items.flatMap((item) => + item.ref && !("status" in item.ref) ? [item.ref] : [], + ) ?? []) + : null; + const personName = + people?.find((person) => person.id === filters.user)?.name ?? + pages + .flatMap((page) => page.items) + .map((row) => workspaceOf(row)?.owner) + .find((owner) => owner?.id === filters.user)?.name; + + return ( +
+ Cloud usage, + to: { view: "overview", period: param }, + }, + ]} + current={Workspaces} + title={ + isAdmin ? Workspaces : Your workspaces + } + actions={ + + {period ? periodLabel(period) : Last 30 days} + + } + /> + navigate(to(next))} + /> + + {walking ? ( + + + Loading page {loadingPage} of {targetPage}... + + + ) : !periods.data || !workspaces.data ? ( + + periods.isError ? periods.refetch() : workspaces.refetch() + } + /> + ) : ( + <> + + to({ ...filters, sort: sort === "gbHours" ? undefined : sort }), + }} + /> + page.items.length)} + index={index} + rowCount={pages[0]?.rowCount ?? 0} + hasNextPage={hasNextPage} + isFetchingNextPage={isFetchingNextPage} + onPage={(next) => + navigate({ + ...to(filters), + page: next === 0 ? undefined : next + 1, + }) + } + rows={rows} + onRows={(rows) => + navigate( + to({ + ...filters, + rows: rows === DEFAULT_ROWS ? undefined : rows, + }), + ) + } + /> + + )} +
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterChips/FilterChips.tsx b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterChips/FilterChips.tsx new file mode 100644 index 00000000000..cea71b0c75b --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterChips/FilterChips.tsx @@ -0,0 +1,94 @@ +"use client"; + +import { Trans, useLingui } from "@lingui/react/macro"; +import { MACHINE_SIZE_NAMES } from "@superset/shared/machine-size-names"; +import type { ReactNode } from "react"; +import { LuX } from "react-icons/lu"; +import { STATUS_PILLS } from "../../../../constants"; +import type { + CloudUsageLink, + CloudUsageTarget, + WorkspacesFilters, +} from "../../../../types"; + +interface FilterChipsProps { + Link: CloudUsageLink; + filters: WorkspacesFilters; + personName: string | undefined; + /** The Workspaces page with these filters. */ + to: (filters: WorkspacesFilters) => CloudUsageTarget; +} + +export function FilterChips({ + Link, + filters, + personName, + to, +}: FilterChipsProps) { + const { i18n, t } = useLingui(); + const chips: { + key: keyof WorkspacesFilters; + label: ReactNode; + /** Undefined when the person's name is not known. */ + value: string | undefined; + }[] = [ + ...(filters.user + ? [ + { + key: "user" as const, + label: Person, + value: personName, + }, + ] + : []), + ...(filters.size + ? [ + { + key: "size" as const, + label: Size, + value: i18n._(MACHINE_SIZE_NAMES[filters.size]), + }, + ] + : []), + ...(filters.status + ? [ + { + key: "status" as const, + label: Status, + value: i18n._(STATUS_PILLS[filters.status].label), + }, + ] + : []), + ...(filters.q + ? [{ key: "q" as const, label: Search, value: filters.q }] + : []), + ]; + if (chips.length === 0) return null; + + return ( +
+ {chips.map((chip) => ( + + {chip.label} + {chip.value} + + + + + ))} + + Clear all + +
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterChips/index.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterChips/index.ts new file mode 100644 index 00000000000..e54ad698aab --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterChips/index.ts @@ -0,0 +1 @@ +export { FilterChips } from "./FilterChips"; diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterSelect/FilterSelect.tsx b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterSelect/FilterSelect.tsx new file mode 100644 index 00000000000..1b05351e7dd --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterSelect/FilterSelect.tsx @@ -0,0 +1,45 @@ +"use client"; + +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "../../../../../ui/select"; + +const ANY = "any"; + +interface FilterSelectProps { + /** "Any person", "Any size", …: the label for no filter. */ + any: string; + value: T | undefined; + options: { value: T; label: string }[]; + onChange: (value: T | undefined) => void; +} + +export function FilterSelect({ + any, + value, + options, + onChange, +}: FilterSelectProps) { + return ( + + ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterSelect/index.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterSelect/index.ts new file mode 100644 index 00000000000..f4d9302bf9f --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/FilterSelect/index.ts @@ -0,0 +1 @@ +export { FilterSelect } from "./FilterSelect"; diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/Pager/Pager.tsx b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/Pager/Pager.tsx new file mode 100644 index 00000000000..512134151b3 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/Pager/Pager.tsx @@ -0,0 +1,127 @@ +"use client"; + +import { Plural, Trans, useLingui } from "@lingui/react/macro"; +import { useFormat } from "@superset/i18n/react"; +import { LuChevronLeft, LuChevronRight, LuChevronsLeft } from "react-icons/lu"; +import { Button } from "../../../../../ui/button"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "../../../../../ui/select"; +import type { WorkspacesRows } from "../../../../types"; +import { ROWS_PER_PAGE } from "../../../../utils/workspacesFilters"; + +interface PagerProps { + /** Rows on each loaded page, in order. */ + pageSizes: number[]; + index: number; + rowCount: number; + hasNextPage: boolean; + isFetchingNextPage: boolean; + onPage: (index: number) => void; + rows: WorkspacesRows; + onRows: (rows: WorkspacesRows) => void; +} + +/** Pages are cursor pages, so the pager steps one page at a time and cannot jump to the last. */ +export function Pager({ + pageSizes, + index, + rowCount, + hasNextPage, + isFetchingNextPage, + onPage, + rows, + onRows, +}: PagerProps) { + "use no memo"; + const { t } = useLingui(); + const { formatNumber } = useFormat(); + const before = pageSizes.slice(0, index).reduce((sum, size) => sum + size, 0); + const first = formatNumber(rowCount === 0 ? 0 : before + 1); + const last = formatNumber(before + (pageSizes[index] ?? 0)); + const page = formatNumber(index + 1); + const pages = formatNumber(Math.max(1, Math.ceil(rowCount / rows))); + const canGoOn = index + 1 < pageSizes.length || hasNextPage; + + return ( +
+ + {rowCount === 0 ? ( + 0 rows + ) : ( + + )} + +
+ + Rows per page + + + + + Page {page} of {pages} + + +
+ + + +
+
+
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/Pager/index.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/Pager/index.ts new file mode 100644 index 00000000000..35b0d5cca0d --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/Pager/index.ts @@ -0,0 +1 @@ +export { Pager } from "./Pager"; diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/WorkspacesToolbar/WorkspacesToolbar.tsx b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/WorkspacesToolbar/WorkspacesToolbar.tsx new file mode 100644 index 00000000000..0b63f297b7b --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/WorkspacesToolbar/WorkspacesToolbar.tsx @@ -0,0 +1,97 @@ +"use client"; + +import { useLingui } from "@lingui/react/macro"; +import { MACHINE_SIZES } from "@superset/shared/billing"; +import { MACHINE_SIZE_NAMES } from "@superset/shared/machine-size-names"; +import { useEffect, useState } from "react"; +import { LuSearch, LuX } from "react-icons/lu"; +import { Input } from "../../../../../ui/input"; +import { STATUS_PILLS } from "../../../../constants"; +import type { PersonRef, WorkspacesFilters } from "../../../../types"; +import { FILTER_STATUSES } from "../../../../utils/workspacesFilters"; +import { FilterSelect } from "../FilterSelect"; + +const SEARCH_DELAY_MS = 300; + +interface WorkspacesToolbarProps { + filters: WorkspacesFilters; + /** Null for a member, who has only the search box, as in the design. */ + people: PersonRef[] | null; + onChange: (filters: WorkspacesFilters) => void; +} + +export function WorkspacesToolbar({ + filters, + people, + onChange, +}: WorkspacesToolbarProps) { + const { i18n, t } = useLingui(); + const [text, setText] = useState(filters.q ?? ""); + + useEffect(() => setText(filters.q ?? ""), [filters.q]); + useEffect(() => { + const q = text.trim() || undefined; + if (q === filters.q) return; + const timer = setTimeout( + () => onChange({ ...filters, q }), + SEARCH_DELAY_MS, + ); + return () => clearTimeout(timer); + }, [text, filters, onChange]); + + return ( +
+
+ + setText(event.target.value)} + placeholder={t({ message: "Search" })} + aria-label={t({ message: "Search workspaces" })} + className="h-8 px-8" + /> + {text && ( + + )} +
+ {people && ( + <> + ({ + value: person.id, + label: person.name, + }))} + onChange={(user) => onChange({ ...filters, user })} + /> + ({ + value: size, + label: i18n._(MACHINE_SIZE_NAMES[size]), + }))} + onChange={(size) => onChange({ ...filters, size })} + /> + ({ + value: status, + label: i18n._(STATUS_PILLS[status].label), + }))} + onChange={(status) => onChange({ ...filters, status })} + /> + + )} +
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/WorkspacesToolbar/index.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/WorkspacesToolbar/index.ts new file mode 100644 index 00000000000..078e2587257 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/components/WorkspacesToolbar/index.ts @@ -0,0 +1 @@ +export { WorkspacesToolbar } from "./WorkspacesToolbar"; diff --git a/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/index.ts b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/index.ts new file mode 100644 index 00000000000..98df910971e --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/CloudWorkspacesPage/index.ts @@ -0,0 +1 @@ +export { CloudWorkspacesPage } from "./CloudWorkspacesPage"; diff --git a/packages/ui/src/components/CloudUsagePage/components/MemberSummary/MemberSummary.tsx b/packages/ui/src/components/CloudUsagePage/components/MemberSummary/MemberSummary.tsx new file mode 100644 index 00000000000..4713041c2d8 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/MemberSummary/MemberSummary.tsx @@ -0,0 +1,48 @@ +"use client"; + +import { Plural, Trans } from "@lingui/react/macro"; +import { useUsageFormat } from "../../hooks/useUsageFormat"; +import type { PricedMetrics } from "../../utils/priced"; + +export function MemberSummary({ + total, + isPeriod, +}: { + total: PricedMetrics; + isPeriod: boolean; +}) { + const { dollars } = useUsageFormat(); + const used = dollars(total.usageUsd); + const count = total.workspaces; + + return ( +
+

+ + {used} used by you + {" "} + + {isPeriod ? ( + + ) : ( + + )} + +

+

+ + Your own usage only. The organization's totals, its allowance and + usage by person are for owners and admins. + +

+
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/MemberSummary/index.ts b/packages/ui/src/components/CloudUsagePage/components/MemberSummary/index.ts new file mode 100644 index 00000000000..f07ccef44b3 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/MemberSummary/index.ts @@ -0,0 +1 @@ +export { MemberSummary } from "./MemberSummary"; diff --git a/packages/ui/src/components/CloudUsagePage/components/MoreLink/MoreLink.tsx b/packages/ui/src/components/CloudUsagePage/components/MoreLink/MoreLink.tsx new file mode 100644 index 00000000000..917bd59456f --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/MoreLink/MoreLink.tsx @@ -0,0 +1,19 @@ +import type { ReactNode } from "react"; +import type { CloudUsageLink, CloudUsageTarget } from "../../types"; + +interface MoreLinkProps { + Link: CloudUsageLink; + to: CloudUsageTarget; + children: ReactNode; +} + +export function MoreLink({ Link, to, children }: MoreLinkProps) { + return ( + + {children} → + + ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/MoreLink/index.ts b/packages/ui/src/components/CloudUsagePage/components/MoreLink/index.ts new file mode 100644 index 00000000000..9142f9208c2 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/MoreLink/index.ts @@ -0,0 +1 @@ +export { MoreLink } from "./MoreLink"; diff --git a/packages/ui/src/components/CloudUsagePage/components/Notice/Notice.tsx b/packages/ui/src/components/CloudUsagePage/components/Notice/Notice.tsx new file mode 100644 index 00000000000..24a8b33de02 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Notice/Notice.tsx @@ -0,0 +1,10 @@ +import type { ReactNode } from "react"; + +/** The page's empty, loading and error states, in the same surface as its summary cards. */ +export function Notice({ children }: { children: ReactNode }) { + return ( +
+ {children} +
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/Notice/index.ts b/packages/ui/src/components/CloudUsagePage/components/Notice/index.ts new file mode 100644 index 00000000000..65384e3fc69 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Notice/index.ts @@ -0,0 +1 @@ +export { Notice } from "./Notice"; diff --git a/packages/ui/src/components/CloudUsagePage/components/PageHeader/PageHeader.tsx b/packages/ui/src/components/CloudUsagePage/components/PageHeader/PageHeader.tsx new file mode 100644 index 00000000000..b692e4281d7 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/PageHeader/PageHeader.tsx @@ -0,0 +1,69 @@ +import { Fragment, type ReactNode } from "react"; +import { + Breadcrumb, + BreadcrumbItem, + BreadcrumbList, + BreadcrumbPage, + BreadcrumbSeparator, +} from "../../../ui/breadcrumb"; +import type { CloudUsageLink, CloudUsageTarget } from "../../types"; + +interface PageHeaderProps { + Link: CloudUsageLink; + /** The pages above this one; the title is the last crumb. */ + crumbs?: { label: ReactNode; to: CloudUsageTarget }[]; + title: ReactNode; + /** The last crumb, when it is not the title. */ + current?: ReactNode; + /** Beside the title, such as a status pill. */ + badge?: ReactNode; + actions?: ReactNode; +} + +export function PageHeader({ + Link, + crumbs, + title, + current = title, + badge, + actions, +}: PageHeaderProps) { + return ( +
+ {crumbs && ( + + + {crumbs.map((crumb) => ( + + + + {crumb.label} + + + + + ))} + + + {current} + + + + + )} +
+

{title}

+ {badge} + {actions && ( +
{actions}
+ )} +
+
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/PageHeader/index.ts b/packages/ui/src/components/CloudUsagePage/components/PageHeader/index.ts new file mode 100644 index 00000000000..275351a53a9 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/PageHeader/index.ts @@ -0,0 +1 @@ +export { PageHeader } from "./PageHeader"; diff --git a/packages/ui/src/components/CloudUsagePage/components/PeriodPicker/PeriodPicker.tsx b/packages/ui/src/components/CloudUsagePage/components/PeriodPicker/PeriodPicker.tsx deleted file mode 100644 index b8765c1e2a9..00000000000 --- a/packages/ui/src/components/CloudUsagePage/components/PeriodPicker/PeriodPicker.tsx +++ /dev/null @@ -1,56 +0,0 @@ -"use client"; - -import { useLingui } from "@lingui/react/macro"; -import { useFormat } from "@superset/i18n/react"; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "../../../ui/select"; -import type { CloudPeriod as Period } from "../../types"; - -interface PeriodPickerProps { - periods: Period[]; - value: string; - onChange: (periodId: string) => void; -} - -export function PeriodPicker({ periods, value, onChange }: PeriodPickerProps) { - const { t } = useLingui(); - const { formatDate } = useFormat(); - const label = (period: Period, year: boolean) => { - const format = (date: Date) => - formatDate(date, { - month: "short", - day: "numeric", - year: year ? "numeric" : undefined, - timeZone: "UTC", - }); - const start = format(period.start); - const end = format(new Date(period.end.getTime() - 1)); - return period.closed - ? t({ message: `${start} to ${end}` }) - : t({ message: `${start} to ${end} (current)` }); - }; - const selected = periods.find((period) => period.id === value); - - return ( - - ); -} diff --git a/packages/ui/src/components/CloudUsagePage/components/PeriodPicker/index.ts b/packages/ui/src/components/CloudUsagePage/components/PeriodPicker/index.ts deleted file mode 100644 index f0f6ca52d2e..00000000000 --- a/packages/ui/src/components/CloudUsagePage/components/PeriodPicker/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { PeriodPicker } from "./PeriodPicker"; diff --git a/packages/ui/src/components/CloudUsagePage/components/PeriodStepper/PeriodStepper.tsx b/packages/ui/src/components/CloudUsagePage/components/PeriodStepper/PeriodStepper.tsx new file mode 100644 index 00000000000..93b69b93cb0 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/PeriodStepper/PeriodStepper.tsx @@ -0,0 +1,54 @@ +"use client"; + +import { useLingui } from "@lingui/react/macro"; +import type { ReactNode } from "react"; +import { LuChevronLeft, LuChevronRight } from "react-icons/lu"; +import { Button } from "../../../ui/button"; +import { usePeriodLabel } from "../../hooks/usePeriodLabel"; +import type { CloudPeriod, CloudUsageLink } from "../../types"; + +interface PeriodStepperProps { + Link: CloudUsageLink; + /** Newest first. */ + periods: CloudPeriod[]; + period: CloudPeriod; +} + +export function PeriodStepper({ Link, periods, period }: PeriodStepperProps) { + const { t } = useLingui(); + const label = usePeriodLabel(); + const index = periods.indexOf(period); + const step = (offset: number, name: string, icon: ReactNode) => { + const target = periods[index + offset]; + if (!target) { + return ( + + ); + } + return ( + + ); + }; + + return ( +
+ {step(1, t({ message: "Earlier period" }), )} + + {label(period)} + + {step(-1, t({ message: "Later period" }), )} +
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/PeriodStepper/index.ts b/packages/ui/src/components/CloudUsagePage/components/PeriodStepper/index.ts new file mode 100644 index 00000000000..94640fcc46a --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/PeriodStepper/index.ts @@ -0,0 +1 @@ +export { PeriodStepper } from "./PeriodStepper"; diff --git a/packages/ui/src/components/CloudUsagePage/components/Person/Person.tsx b/packages/ui/src/components/CloudUsagePage/components/Person/Person.tsx new file mode 100644 index 00000000000..5a7cc412e62 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Person/Person.tsx @@ -0,0 +1,41 @@ +import { cn } from "../../../../lib/utils"; +import { Avatar, AvatarFallback } from "../../../ui/avatar"; +import { initials } from "./utils/initials"; + +/** Fixed palette hues, not theme tokens, so a person keeps one colour in both themes. */ +const HUES = [ + "bg-orange-600", + "bg-teal-600", + "bg-sky-700", + "bg-violet-600", + "bg-rose-600", +]; + +export function Person({ + name, + className, +}: { + name: string; + className?: string; +}) { + const hue = + HUES[[...name].reduce((sum, c) => sum + c.charCodeAt(0), 0) % HUES.length]; + return ( + + + + {initials(name)} + + + {name} + + ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/Person/index.ts b/packages/ui/src/components/CloudUsagePage/components/Person/index.ts new file mode 100644 index 00000000000..9185a09d2bb --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Person/index.ts @@ -0,0 +1 @@ +export { Person } from "./Person"; diff --git a/packages/ui/src/components/CloudUsagePage/components/Person/utils/initials/index.ts b/packages/ui/src/components/CloudUsagePage/components/Person/utils/initials/index.ts new file mode 100644 index 00000000000..8d10252f24f --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Person/utils/initials/index.ts @@ -0,0 +1 @@ +export { initials } from "./initials"; diff --git a/packages/ui/src/components/CloudUsagePage/components/Person/utils/initials/initials.test.ts b/packages/ui/src/components/CloudUsagePage/components/Person/utils/initials/initials.test.ts new file mode 100644 index 00000000000..d97c5e7087f --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Person/utils/initials/initials.test.ts @@ -0,0 +1,8 @@ +import { expect, test } from "bun:test"; +import { initials } from "./initials"; + +test("takes the first and last word, and one letter for one word", () => { + expect(initials("Maya van Dijk")).toBe("MD"); + expect(initials(" ines ")).toBe("I"); + expect(initials("")).toBe(""); +}); diff --git a/packages/ui/src/components/CloudUsagePage/components/Person/utils/initials/initials.ts b/packages/ui/src/components/CloudUsagePage/components/Person/utils/initials/initials.ts new file mode 100644 index 00000000000..11b3d5c0921 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Person/utils/initials/initials.ts @@ -0,0 +1,7 @@ +/** Up to two letters, from the first and last words: "Maya van Dijk" -> "MD". */ +export function initials(name: string): string { + const words = name.trim().split(/\s+/).filter(Boolean); + const first = words[0]?.[0] ?? ""; + const last = words.length > 1 ? (words.at(-1)?.[0] ?? "") : ""; + return (first + last).toLocaleUpperCase(); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/Pill/Pill.tsx b/packages/ui/src/components/CloudUsagePage/components/Pill/Pill.tsx new file mode 100644 index 00000000000..6bee853cce1 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Pill/Pill.tsx @@ -0,0 +1,30 @@ +import type { ReactNode } from "react"; +import { cn } from "../../../../lib/utils"; +import type { PillTone } from "../../constants"; + +const TONES: Record = { + ok: "bg-success/10 text-success", + warn: "bg-warning/10 text-warning", + bad: "bg-destructive/10 text-destructive", + idle: "bg-muted text-muted-foreground", +}; + +export function Pill({ + tone, + children, +}: { + tone: PillTone; + children: ReactNode; +}) { + return ( + + + {children} + + ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/Pill/index.ts b/packages/ui/src/components/CloudUsagePage/components/Pill/index.ts new file mode 100644 index 00000000000..e70cf60f3cd --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Pill/index.ts @@ -0,0 +1 @@ +export { Pill } from "./Pill"; diff --git a/packages/ui/src/components/CloudUsagePage/components/QueryStatus/QueryStatus.tsx b/packages/ui/src/components/CloudUsagePage/components/QueryStatus/QueryStatus.tsx index 01c1f431b40..4f59ca6d4c1 100644 --- a/packages/ui/src/components/CloudUsagePage/components/QueryStatus/QueryStatus.tsx +++ b/packages/ui/src/components/CloudUsagePage/components/QueryStatus/QueryStatus.tsx @@ -2,6 +2,7 @@ import { Trans } from "@lingui/react/macro"; import { Button } from "../../../ui/button"; +import { Notice } from "../Notice"; interface QueryStatusProps { isError: boolean; @@ -11,17 +12,19 @@ interface QueryStatusProps { export function QueryStatus({ isError, onRetry }: QueryStatusProps) { if (!isError) { return ( -

+ Loading... -

+ ); } return ( -
- Could not load cloud usage. - -
+ + + Failed to load usage + + + ); } diff --git a/packages/ui/src/components/CloudUsagePage/components/Section/Section.tsx b/packages/ui/src/components/CloudUsagePage/components/Section/Section.tsx new file mode 100644 index 00000000000..c17307616a5 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Section/Section.tsx @@ -0,0 +1,20 @@ +import type { ReactNode } from "react"; + +interface SectionProps { + title: ReactNode; + /** At the right of the title, such as "View all". */ + action?: ReactNode; + children: ReactNode; +} + +export function Section({ title, action, children }: SectionProps) { + return ( +
+
+

{title}

+ {action} +
+ {children} +
+ ); +} diff --git a/packages/ui/src/components/CloudUsagePage/components/Section/index.ts b/packages/ui/src/components/CloudUsagePage/components/Section/index.ts new file mode 100644 index 00000000000..8d4b3810207 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/Section/index.ts @@ -0,0 +1 @@ +export { Section } from "./Section"; diff --git a/packages/ui/src/components/CloudUsagePage/components/SizeLabel/SizeLabel.tsx b/packages/ui/src/components/CloudUsagePage/components/SizeLabel/SizeLabel.tsx deleted file mode 100644 index 094294df3b3..00000000000 --- a/packages/ui/src/components/CloudUsagePage/components/SizeLabel/SizeLabel.tsx +++ /dev/null @@ -1,16 +0,0 @@ -"use client"; - -import { Trans } from "@lingui/react/macro"; -import { useFormat } from "@superset/i18n/react"; -import { type MachineSize, machineSpec } from "@superset/shared/billing"; - -export function SizeLabel({ size }: { size: MachineSize }) { - const { formatNumber } = useFormat(); - const { vcpus, memoryGb } = machineSpec(size); - const memory = formatNumber(memoryGb); - return ( - - {vcpus} vCPU, {memory} GB - - ); -} diff --git a/packages/ui/src/components/CloudUsagePage/components/SizeLabel/index.ts b/packages/ui/src/components/CloudUsagePage/components/SizeLabel/index.ts deleted file mode 100644 index e761c5555eb..00000000000 --- a/packages/ui/src/components/CloudUsagePage/components/SizeLabel/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { SizeLabel } from "./SizeLabel"; diff --git a/packages/ui/src/components/CloudUsagePage/components/StatusPill/StatusPill.tsx b/packages/ui/src/components/CloudUsagePage/components/StatusPill/StatusPill.tsx new file mode 100644 index 00000000000..13b1016f03a --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/StatusPill/StatusPill.tsx @@ -0,0 +1,12 @@ +"use client"; + +import { useLingui } from "@lingui/react/macro"; +import { STATUS_PILLS } from "../../constants"; +import type { WorkspaceRef } from "../../types"; +import { Pill } from "../Pill"; + +export function StatusPill({ status }: { status: WorkspaceRef["status"] }) { + const { i18n } = useLingui(); + const { label, tone } = STATUS_PILLS[status]; + return {i18n._(label)}; +} diff --git a/packages/ui/src/components/CloudUsagePage/components/StatusPill/index.ts b/packages/ui/src/components/CloudUsagePage/components/StatusPill/index.ts new file mode 100644 index 00000000000..0b44984c3c9 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/StatusPill/index.ts @@ -0,0 +1 @@ +export { StatusPill } from "./StatusPill"; diff --git a/packages/ui/src/components/CloudUsagePage/components/UsageByDay/UsageByDay.tsx b/packages/ui/src/components/CloudUsagePage/components/UsageByDay/UsageByDay.tsx index c3a42f743a5..2e0945e86e4 100644 --- a/packages/ui/src/components/CloudUsagePage/components/UsageByDay/UsageByDay.tsx +++ b/packages/ui/src/components/CloudUsagePage/components/UsageByDay/UsageByDay.tsx @@ -1,41 +1,52 @@ "use client"; -import { Trans, useLingui } from "@lingui/react/macro"; +import { useLingui } from "@lingui/react/macro"; import { useFormat } from "@superset/i18n/react"; import type { ReactNode } from "react"; import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts"; -import { cn } from "../../../../lib/utils"; import { type ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent, } from "../../../ui/chart"; -import type { CloudUsage as Usage } from "../../types"; +import { useUsageFormat } from "../../hooks/useUsageFormat"; +import type { PricedUsage } from "../../utils/priced"; +import { Section } from "../Section"; import { utcDays } from "./utils/utcDays"; +const TICK_STEP_DAYS = 5; +/** No tick on the last bars, where its label would run past the chart's edge. */ +const LAST_TICK_GAP_DAYS = 2; + interface UsageByDayProps { - items: Usage["items"]; - window: Usage["range"]; + usage: PricedUsage; title: ReactNode; - className?: string; + /** The UTC day the chart counts as today; days after it have no value. */ + today: string; } -export function UsageByDay({ - items, - window, - title, - className, -}: UsageByDayProps) { +export function UsageByDay({ usage, title, today }: UsageByDayProps) { const { t } = useLingui(); - const { formatDate, formatNumber } = useFormat(); - const gbHoursByDay = new Map(items.map((item) => [item.key, item.gbHours])); - const data = utcDays(window).map((day) => ({ - day, - gbHours: gbHoursByDay.get(day) ?? 0, - })); + const { formatCurrency, formatDate } = useFormat(); + const { dollars } = useUsageFormat(); + const byDay = new Map(usage.items.map((item) => [item.key, item])); + const data = utcDays(usage.range).map((day) => { + const item = byDay.get(day); + const value = item?.usageUsd ?? 0; + return { day, value: day > today ? null : value }; + }); + const ticks = data + .filter( + (_, i) => + i % TICK_STEP_DAYS === 0 && i < data.length - LAST_TICK_GAP_DAYS, + ) + .map((item) => item.day); const config = { - gbHours: { label: t({ message: "GB-hours" }), color: "var(--chart-1)" }, + value: { + label: t({ message: "Usage" }), + color: "var(--muted-foreground)", + }, } satisfies ChartConfig; const formatDay = (day: string) => formatDate(new Date(`${day}T00:00:00Z`), { @@ -45,42 +56,47 @@ export function UsageByDay({ }); return ( -
-

{title}

- +
+ formatNumber(value)} + tickFormatter={(value: number) => + formatCurrency(value, "USD", { + minimumFractionDigits: 0, + maximumFractionDigits: 0, + }) + } /> - formatDay(payload[0]?.payload.day) - } - /> + content={(props) => + props.payload?.[0]?.value == null ? null : ( + + formatDay(payload[0]?.payload.day) + } + formatter={(value) => dollars(Number(value))} + /> + ) } /> - + -

- - Usage is shown on the UTC day it was billed, which can be a little - after the workspace ran. - -

-
+
); } diff --git a/packages/ui/src/components/CloudUsagePage/components/UsageByPerson/UsageByPerson.tsx b/packages/ui/src/components/CloudUsagePage/components/UsageByPerson/UsageByPerson.tsx index 500dad8fd3e..38514f8f6e5 100644 --- a/packages/ui/src/components/CloudUsagePage/components/UsageByPerson/UsageByPerson.tsx +++ b/packages/ui/src/components/CloudUsagePage/components/UsageByPerson/UsageByPerson.tsx @@ -1,26 +1,27 @@ "use client"; import { Trans } from "@lingui/react/macro"; -import { useFormat } from "@superset/i18n/react"; -import type { CloudQuery, CloudUsage } from "../../types"; +import { useUsageFormat } from "../../hooks/useUsageFormat"; +import type { CloudQuery, CloudUsageLink } from "../../types"; +import type { PricedUsage } from "../../utils/priced"; +import { Person } from "../Person"; import { QueryStatus } from "../QueryStatus"; +import { Section } from "../Section"; -export function UsageByPerson({ - byPerson, -}: { - byPerson: CloudQuery; -}) { - const { formatGbHours } = useFormat(); - const max = Math.max( - ...(byPerson.data?.items.map((item) => item.gbHours) ?? []), - 0, - ); +interface UsageByPersonProps { + Link: CloudUsageLink; + byPerson: CloudQuery; + period: string | undefined; +} + +export function UsageByPerson({ Link, byPerson, period }: UsageByPersonProps) { + const { dollarsFor } = useUsageFormat(); + const items = byPerson.data?.items ?? []; + const dollars = dollarsFor(items.map((item) => item.usageUsd)); + const max = Math.max(...items.map((item) => item.gbHours), 0); return ( -
-

- Usage by person -

+
By person}> {!byPerson.data ? ( ) : (
    - {byPerson.data.items.map((item) => { - const gbHours = formatGbHours(item.gbHours); - return ( -
  • -
    - - {item.ref?.name ?? No person recorded} + {items.map((item) => { + const name = item.ref?.name; + const top = ( + + {name ? ( + + ) : ( + + No person recorded - - {gbHours} GB-hours - -
    -
    + )} + + {dollars(item.usageUsd)} + + + ); + return ( +
  • + {item.key ? ( + + {top} + + ) : ( + top + )} +
    0 ? (item.gbHours / max) * 100 : 0}%`, }} @@ -53,6 +70,6 @@ export function UsageByPerson({ })}
)} -
+
); } diff --git a/packages/ui/src/components/CloudUsagePage/components/UsageTotals/UsageTotals.tsx b/packages/ui/src/components/CloudUsagePage/components/UsageTotals/UsageTotals.tsx deleted file mode 100644 index 145a7846095..00000000000 --- a/packages/ui/src/components/CloudUsagePage/components/UsageTotals/UsageTotals.tsx +++ /dev/null @@ -1,62 +0,0 @@ -"use client"; - -import { Trans } from "@lingui/react/macro"; -import { useFormat } from "@superset/i18n/react"; -import { cn } from "../../../../lib/utils"; -import type { CloudUsage } from "../../types"; - -type Metrics = CloudUsage["total"]; - -interface UsageTotalsProps { - total: Metrics; - /** Off beside the allowance card, so one "used" figure is shown. */ - showGbHours: boolean; -} - -export function UsageTotals({ total, showGbHours }: UsageTotalsProps) { - const { formatNumber, formatGbHours } = useFormat(); - const tiles = [ - ...(showGbHours - ? [ - { - key: "gbHours", - label: GB-hours, - value: formatGbHours(total.gbHours), - }, - ] - : []), - { - key: "hours", - label: Hours, - value: formatNumber(total.hours, { maximumFractionDigits: 1 }), - }, - { - key: "workspaces", - label: Workspaces, - value: formatNumber(total.workspaces), - }, - { - key: "boots", - label: Boots, - value: formatNumber(total.boots), - }, - ]; - - return ( -
- {tiles.map((tile) => ( -
-
{tile.label}
-
- {tile.value} -
-
- ))} -
- ); -} diff --git a/packages/ui/src/components/CloudUsagePage/components/UsageTotals/index.ts b/packages/ui/src/components/CloudUsagePage/components/UsageTotals/index.ts deleted file mode 100644 index 77dab763503..00000000000 --- a/packages/ui/src/components/CloudUsagePage/components/UsageTotals/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { UsageTotals } from "./UsageTotals"; diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/WorkspaceBootsSheet.tsx b/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/WorkspaceBootsSheet.tsx deleted file mode 100644 index fa0a68808e1..00000000000 --- a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/WorkspaceBootsSheet.tsx +++ /dev/null @@ -1,159 +0,0 @@ -"use client"; - -import { Trans, useLingui } from "@lingui/react/macro"; -import { useFormat } from "@superset/i18n/react"; -import { Button } from "../../../ui/button"; -import { - Sheet, - SheetContent, - SheetDescription, - SheetHeader, - SheetTitle, -} from "../../../ui/sheet"; -import { - Table, - TableBody, - TableCell, - TableHead, - TableHeader, - TableRow, -} from "../../../ui/table"; -import { FAILURE_REASONS, STATUS_LABELS } from "../../constants"; -import type { CloudBoots, CloudPages, WorkspaceRef } from "../../types"; -import { QueryStatus } from "../QueryStatus"; -import { SizeLabel } from "../SizeLabel"; -import { END_REASONS } from "./constants"; -import { bootEnd } from "./utils/bootEnd"; - -interface WorkspaceBootsSheetProps { - workspace: WorkspaceRef | null; - pages: CloudPages; - onClose: () => void; -} - -export function WorkspaceBootsSheet({ - workspace, - pages, - onClose, -}: WorkspaceBootsSheetProps) { - const { i18n } = useLingui(); - const { formatDateTime, formatNumber, formatGbHours } = useFormat(); - const boots = pages.data?.pages.flatMap((page) => page.items) ?? []; - const failedAt = workspace?.failure && formatDateTime(workspace.failure.at); - const formatMinutes = (minutes: number) => - minutes < 60 - ? formatNumber(minutes, { - style: "unit", - unit: "minute", - maximumFractionDigits: 0, - }) - : formatNumber(minutes / 60, { - style: "unit", - unit: "hour", - maximumFractionDigits: 1, - }); - - return ( - !open && onClose()}> - - {workspace && ( - <> - - - {workspace.name} - - - {i18n._(STATUS_LABELS[workspace.status])} - {" · "} - - {workspace.owner && ` · ${workspace.owner.name}`} - - -
- {workspace.failure && ( -
-
- Failed {failedAt} -
-
- {i18n._(FAILURE_REASONS[workspace.failure.reason])} -
-
- )} -

- Boots -

- {!pages.data ? ( - pages.refetch()} - /> - ) : boots.length === 0 ? ( -

- No boots in this period. -

- ) : ( -
- - - - - Started - - - Duration - - - Ended - - - GB-hours - - - - - {boots.map((boot) => { - const end = bootEnd(boot); - const ended = end && i18n._(END_REASONS[end]); - const duration = formatMinutes(boot.minutes); - return ( - - - {formatDateTime(boot.startedAt)} -
- {ended ? `${duration} · ${ended}` : duration} -
-
- - {duration} - - - {ended} - - - {formatGbHours(boot.gbHours)} - -
- ); - })} -
-
-
- )} - {pages.hasNextPage && ( - - )} -
- - )} -
-
- ); -} diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/constants.ts b/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/constants.ts deleted file mode 100644 index 8a788fe1828..00000000000 --- a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/constants.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { MessageDescriptor } from "@lingui/core"; -import { msg } from "@lingui/core/macro"; -import type { bootEnd } from "./utils/bootEnd"; - -export const END_REASONS: Record< - NonNullable>, - MessageDescriptor -> = { - running: msg({ message: "Running" }), - idle: msg({ message: "Stopped when idle" }), - user: msg({ message: "Stopped by a person" }), - usage_limit: msg({ message: "Usage limit reached" }), - archived: msg({ message: "Archived", context: "cloud workspace status" }), - restarted: msg({ message: "Restarted" }), - failed: msg({ message: "Could not start" }), - released: msg({ message: "Released before use" }), - crashed: msg({ message: "Crashed" }), -}; diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/index.ts b/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/index.ts deleted file mode 100644 index 5916175bb80..00000000000 --- a/packages/ui/src/components/CloudUsagePage/components/WorkspaceBootsSheet/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { WorkspaceBootsSheet } from "./WorkspaceBootsSheet"; diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/WorkspacesTable.tsx b/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/WorkspacesTable.tsx index a2a451b5399..c0ea6779784 100644 --- a/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/WorkspacesTable.tsx +++ b/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/WorkspacesTable.tsx @@ -2,8 +2,9 @@ import { Trans, useLingui } from "@lingui/react/macro"; import { useFormat } from "@superset/i18n/react"; +import { MACHINE_SIZE_NAMES } from "@superset/shared/machine-size-names"; +import type { ReactNode } from "react"; import { cn } from "../../../../lib/utils"; -import { Button } from "../../../ui/button"; import { Table, TableBody, @@ -12,137 +13,165 @@ import { TableHeader, TableRow, } from "../../../ui/table"; -import { FAILURE_REASONS, STATUS_LABELS } from "../../constants"; -import type { CloudPages, CloudUsage, WorkspaceRef } from "../../types"; -import { QueryStatus } from "../QueryStatus"; -import { SizeLabel } from "../SizeLabel"; +import { useUsageFormat } from "../../hooks/useUsageFormat"; +import type { + CloudUsageLink, + CloudUsageTarget, + WorkspacesSort, +} from "../../types"; +import type { PricedRow } from "../../utils/priced"; +import { workspaceOf } from "../../utils/workspaceOf"; +import { Person } from "../Person"; +import { StatusPill } from "../StatusPill"; +import { nameParts } from "./utils/nameParts"; interface WorkspacesTableProps { - pages: CloudPages; + Link: CloudUsageLink; + rows: PricedRow[]; isAdmin: boolean; - onSelect: (workspace: WorkspaceRef) => void; + period: string | undefined; + /** Makes the headers sort links, on the Workspaces page. */ + sort?: { by: WorkspacesSort; to: (sort: WorkspacesSort) => CloudUsageTarget }; } +const HEAD = + "h-9 text-xs font-medium tracking-wide text-muted-foreground uppercase"; +/** Folding, by the page's content width: owner and hours go first, then size, then GB-hours. */ +const WIDE = "hidden @2xl:table-cell"; +const MEDIUM = "hidden @xl:table-cell"; +const NARROW = "hidden @md:table-cell"; + export function WorkspacesTable({ - pages, + Link, + rows, isAdmin, - onSelect, + period, + sort, }: WorkspacesTableProps) { const { i18n } = useLingui(); - const { formatNumber, formatGbHours } = useFormat(); - const rows = pages.data?.pages.flatMap((page) => page.items) ?? []; + const { formatNumber } = useFormat(); + const { dollarsFor, formatGbHours } = useUsageFormat(); + const dollars = dollarsFor(rows.map((row) => row.usageUsd)); + const head = (by: WorkspacesSort, label: ReactNode, marked = true) => + sort ? ( + + {label} + {marked && sort.by === by && ↓} + + ) : ( + label + ); return ( -
-

- {isAdmin ? Workspaces : Your workspaces} -

- {!pages.data ? ( - pages.refetch()} /> - ) : ( -
- - - - - Workspace - - {isAdmin && ( - - Owner - +
+ + + + {head("name", Workspace)} + + {isAdmin && ( + + Owner + + )} + + {head("status", Status)} + + + Size + + + {head("hours", Hours)} + + + {head("gbHours", GB-hours, false)} + + + {head("gbHours", Usage)} + + + + + {rows.length === 0 && ( + + + No workspaces. + + + )} + {rows.map((row) => { + const workspace = workspaceOf(row); + const owner = workspace?.owner?.name; + const size = workspace && i18n._(MACHINE_SIZE_NAMES[workspace.size]); + const name = workspace && nameParts(workspace.name); + return ( + + + {workspace ? ( + + + {name?.head} + {name?.tail} + + + ) : ( + + Deleted workspace + )} - - Status - - - Size - - - Hours - - - GB-hours - - - - - {rows.map((row) => { - const workspace = - row.ref && "status" in row.ref ? row.ref : null; - return ( - - - {workspace ? ( - - ) : ( - - Deleted workspace +
+ {isAdmin && owner && ( + + {owner} + + )} + {size && ( + {size} + )} +
+
+ {isAdmin && ( + + {owner && } + + )} + + {workspace && ( + + + {workspace.status === "asleep" && + workspace.lastBoot?.endReason === "usage_limit" && ( + + usage limit )} - {isAdmin && workspace?.owner && ( -
- {workspace.owner.name} -
- )} -
- {isAdmin && ( - - {workspace?.owner?.name} - - )} - - {workspace && ( -
- {i18n._(STATUS_LABELS[workspace.status])} -
- )} - {workspace?.failure && ( -
- {i18n._(FAILURE_REASONS[workspace.failure.reason])} -
- )} -
- - {workspace && } - - - {formatNumber(row.hours, { maximumFractionDigits: 1 })} - - - {formatGbHours(row.gbHours)} - -
- ); - })} -
-
-
- )} - {pages.hasNextPage && ( - - )} -
+
+ )} + + {size} + + {formatNumber(row.hours, { maximumFractionDigits: 0 })} + + + {formatGbHours(row.gbHours)} + + + {dollars(row.usageUsd)} + + + ); + })} + + ); } diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/utils/nameParts/index.ts b/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/utils/nameParts/index.ts new file mode 100644 index 00000000000..a617899f218 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/utils/nameParts/index.ts @@ -0,0 +1 @@ +export { nameParts } from "./nameParts"; diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/utils/nameParts/nameParts.test.ts b/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/utils/nameParts/nameParts.test.ts new file mode 100644 index 00000000000..bdf4f92556d --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/utils/nameParts/nameParts.test.ts @@ -0,0 +1,21 @@ +import { describe, expect, it } from "bun:test"; +import { nameParts } from "./nameParts"; + +describe("nameParts", () => { + it("keeps the last dash-separated part, where names in a series differ", () => { + expect( + nameParts("refactor-onboarding-checklist-and-invite-flow-part-3"), + ).toEqual({ + head: "refactor-onboarding-checklist-and-invite-flow", + tail: "-part-3", + }); + }); + + it("keeps the last characters when no dash is near the end", () => { + expect(nameParts("averyveryverylongworkspacename").tail).toBe("cename"); + }); + + it("leaves a short name whole", () => { + expect(nameParts("fix-flaky")).toEqual({ head: "fix-flaky", tail: "" }); + }); +}); diff --git a/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/utils/nameParts/nameParts.ts b/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/utils/nameParts/nameParts.ts new file mode 100644 index 00000000000..d2dd177efd6 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/components/WorkspacesTable/utils/nameParts/nameParts.ts @@ -0,0 +1,11 @@ +/** The most of a name's end kept visible when the rest is cut. */ +const TAIL_MAX = 16; +const TAIL_MIN = 6; + +/** A name split so its start can be cut and its end, where names in a series differ, stays. */ +export function nameParts(name: string): { head: string; tail: string } { + if (name.length <= TAIL_MAX) return { head: name, tail: "" }; + const dash = name.lastIndexOf("-", name.length - TAIL_MIN); + const at = dash >= name.length - TAIL_MAX ? dash : name.length - TAIL_MIN; + return { head: name.slice(0, at), tail: name.slice(at) }; +} diff --git a/packages/ui/src/components/CloudUsagePage/constants.ts b/packages/ui/src/components/CloudUsagePage/constants.ts index a8cc5685b54..cb05a19232e 100644 --- a/packages/ui/src/components/CloudUsagePage/constants.ts +++ b/packages/ui/src/components/CloudUsagePage/constants.ts @@ -2,19 +2,41 @@ import type { MessageDescriptor } from "@lingui/core"; import { msg } from "@lingui/core/macro"; import type { WorkspaceRef } from "./types"; -export const STATUS_LABELS: Record = - { - provisioning: msg({ - message: "Starting", - context: "cloud workspace status", - }), - ready: msg({ message: "Ready", context: "cloud workspace status" }), - failed: msg({ message: "Failed", context: "cloud workspace status" }), - deleted: msg({ message: "Deleted", context: "cloud workspace status" }), - awake: msg({ message: "Running", context: "cloud workspace status" }), - asleep: msg({ message: "Asleep", context: "cloud workspace status" }), - archived: msg({ message: "Archived", context: "cloud workspace status" }), - }; +export type PillTone = "ok" | "warn" | "bad" | "idle"; + +export const STATUS_PILLS: Record< + WorkspaceRef["status"], + { label: MessageDescriptor; tone: PillTone } +> = { + provisioning: { + label: msg({ message: "Provisioning", context: "cloud workspace status" }), + tone: "warn", + }, + ready: { + label: msg({ message: "Ready", context: "cloud workspace status" }), + tone: "ok", + }, + failed: { + label: msg({ message: "Failed", context: "cloud workspace status" }), + tone: "bad", + }, + deleted: { + label: msg({ message: "Deleted", context: "cloud workspace status" }), + tone: "idle", + }, + awake: { + label: msg({ message: "Awake", context: "cloud workspace status" }), + tone: "ok", + }, + asleep: { + label: msg({ message: "Asleep", context: "cloud workspace status" }), + tone: "idle", + }, + archived: { + label: msg({ message: "Archived", context: "cloud workspace status" }), + tone: "idle", + }, +}; export const FAILURE_REASONS: Record< NonNullable["reason"], diff --git a/packages/ui/src/components/CloudUsagePage/fixtures/components/SettingsShell/SettingsShell.tsx b/packages/ui/src/components/CloudUsagePage/fixtures/components/SettingsShell/SettingsShell.tsx new file mode 100644 index 00000000000..22358bebe0b --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/fixtures/components/SettingsShell/SettingsShell.tsx @@ -0,0 +1,42 @@ +import type { Decorator } from "@storybook/react-vite"; +import type { ReactNode } from "react"; + +type Shell = "web" | "desktop"; + +/** The content box each app's Settings gives these pages (sidebar, padding, max width), so a story folds at the app's content width. */ +export function SettingsShell({ + shell, + children, +}: { + shell: Shell; + children: ReactNode; +}) { + if (shell === "desktop") { + return ( +
+
+
+
+
{children}
+
+
+ ); + } + return ( +
+
+
+
{children}
+
+
+ ); +} + +/** Story decorator: the shell named by the `shell` toolbar global (web by default). */ +export const withSettingsShell: Decorator = (Story, context) => ( + + + +); diff --git a/packages/ui/src/components/CloudUsagePage/fixtures/components/SettingsShell/index.ts b/packages/ui/src/components/CloudUsagePage/fixtures/components/SettingsShell/index.ts new file mode 100644 index 00000000000..f33d01250ea --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/fixtures/components/SettingsShell/index.ts @@ -0,0 +1 @@ +export { withSettingsShell } from "./SettingsShell"; diff --git a/packages/ui/src/components/CloudUsagePage/fixtures/components/StoryLink/StoryLink.tsx b/packages/ui/src/components/CloudUsagePage/fixtures/components/StoryLink/StoryLink.tsx new file mode 100644 index 00000000000..87da0d0fc05 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/fixtures/components/StoryLink/StoryLink.tsx @@ -0,0 +1,6 @@ +import type { CloudUsageLink } from "../../../types"; + +/** A link to a hash only, so a story stays on its state. */ +export const StoryLink: CloudUsageLink = ({ to: _, ...props }) => ( + +); diff --git a/packages/ui/src/components/CloudUsagePage/fixtures/components/StoryLink/index.ts b/packages/ui/src/components/CloudUsagePage/fixtures/components/StoryLink/index.ts new file mode 100644 index 00000000000..3dd6e9cd9c0 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/fixtures/components/StoryLink/index.ts @@ -0,0 +1 @@ +export { StoryLink } from "./StoryLink"; diff --git a/packages/ui/src/components/CloudUsagePage/fixtures/fixtures.test.ts b/packages/ui/src/components/CloudUsagePage/fixtures/fixtures.test.ts new file mode 100644 index 00000000000..f94e42982de --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/fixtures/fixtures.test.ts @@ -0,0 +1,57 @@ +import { describe, expect, it } from "bun:test"; +import type { WorkspaceRef } from "../types"; +import { + type BillingState, + overviewArgs, + workspaceArgs, + workspacePages, +} from "./fixtures"; + +const STATES: BillingState[] = [ + "northwind", + "trial", + "prepaid", + "limitReached", + "percentCap", + "notRead", + "unbilled", +]; +const refOf = (row: { ref: unknown }) => row.ref as WorkspaceRef; + +describe("story fixtures hold only states the router can return", () => { + it("stops workspaces at the usage limit only in the state that reached it", () => { + for (const state of STATES) { + const rows = overviewArgs(state).workspaces.data?.items ?? []; + const atLimit = rows.filter( + (row) => refOf(row).lastBoot?.endReason === "usage_limit", + ); + if (state === "limitReached") { + expect(atLimit.length).toBeGreaterThan(0); + expect(rows.some((row) => refOf(row).status === "awake")).toBe(false); + } else { + expect(atLimit).toEqual([]); + } + } + }); + + it("bills nothing for a boot that could not start", () => { + const boots = workspaceArgs("failed").boots.data?.pages[0]?.items ?? []; + const failed = boots.filter((boot) => boot.endReason === "failed"); + expect(failed.length).toBe(1); + expect(failed[0]).toMatchObject({ gbHours: 0, usageUsd: 0 }); + expect(failed[0]?.minutes).toBeLessThan(1); + }); + + it("gives every stopped boot an end reason", () => { + const boots = workspaceArgs("asleep").boots.data?.pages[0]?.items ?? []; + expect( + boots.every((boot) => boot.stoppedAt === null || boot.endReason !== null), + ).toBe(true); + }); + + it("orders rows by usage when it orders them by GB-hours, as one rate prices every row", () => { + const rows = workspacePages().flatMap((page) => page.items); + const usage = rows.map((row) => row.usageUsd); + expect(usage).toEqual([...usage].sort((a, b) => b - a)); + }); +}); diff --git a/packages/ui/src/components/CloudUsagePage/fixtures/fixtures.ts b/packages/ui/src/components/CloudUsagePage/fixtures/fixtures.ts new file mode 100644 index 00000000000..ef2ee63ae39 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/fixtures/fixtures.ts @@ -0,0 +1,713 @@ +import { + allowanceOf, + type CloudUsage as BillingValue, + cloudUsageFromBalances, +} from "@superset/auth/billing/cloud-usage"; +import { type MachineSize, machineSpec } from "@superset/shared/billing"; +import type { + CloudBoot, + CloudPages, + CloudPeriod, + CloudPeriods, + CloudQuery, + CloudUsage, + CloudUsageRow, + PersonRef, + WorkspaceRef, +} from "../types"; +import { type Priced, priced } from "../utils/priced"; + +/** + * Story data in the router's output shapes, for states the router can return. Each allowance + * goes through the billing reader and the router's own mapping, from an Autumn balance built + * here. Seeded and on a fixed clock, so every build draws the same pages. + */ + +const RATE = 0.06; +const MINUTES = 60; +const DAY_MS = 24 * 60 * 60 * 1000; +/** The stories' clock, so captures do not change from day to day. */ +export const STORY_NOW = new Date("2026-11-18T14:00:00Z"); +export const STORY_TODAY = "2026-11-18"; +const PERIOD_END = new Date("2026-11-27T00:00:00Z"); +/** The share of the open period's usage each earlier period had, newest first. */ +const PERIOD_SHARE = [1, 0.86, 0.71, 0.58, 0.44, 0]; + +type Row = Priced; +type Usage = Priced; +type Boot = Priced; +type Range = CloudUsage["range"]; + +function seeded(start: number) { + let state = start; + return () => { + state = (state * 16807) % 2147483647; + return (state - 1) / 2147483646; + }; +} +const random = seeded(7); +const pick = (items: readonly T[]): T => + items[Math.floor(random() * items.length)] as T; + +export const PEOPLE: PersonRef[] = [ + "Priya Natarajan", + "Ines Duarte", + "Sam Reyes", + "Theo Okafor", + "Maya Chen", +].map((name, i) => ({ + id: `00000000-0000-4000-8000-00000000000${i + 1}`, + name, + email: `${name.split(" ")[0]?.toLowerCase()}@example.com`, +})); +const [PRIYA, INES, SAM, THEO, MAYA] = PEOPLE as [ + PersonRef, + PersonRef, + PersonRef, + PersonRef, + PersonRef, +]; + +const WORDS = [ + "rate", + "push", + "drift", + "oauth", + "ranking", + "sweep", + "search", + "deeplinks", + "cli", + "fix", + "pipeline", + "api", + "warmup", + "tokens", + "mobile", + "image", + "checkout", + "retry", + "scopes", + "sync", + "rewrite", + "copy", + "terraform", + "i18n", + "webhooks", + "flaky", + "onboarding", + "index", + "audit", + "limits", + "export", + "notif", +]; +const SIZES: MachineSize[] = [ + "small", + "medium", + "medium", + "large", + "large", + "xlarge", +]; +const STATUSES: WorkspaceRef["status"][] = [ + "asleep", + "asleep", + "awake", + "asleep", + "awake", + "archived", +]; +/** A boot's usual length before it sleeps. */ +const BOOT_HOURS = 3; +/** One page of the boots table. */ +const MAX_BOOTS = 25; +const STOP_REASONS = ["idle", "user", "restarted", "idle"] as const; + +const day = (date: Date) => date.toISOString().slice(0, 10); +const round2 = (value: number) => Math.round(value * 100) / 100; +const workspaceRef = (row: Row) => + row.ref && "status" in row.ref ? row.ref : null; + +interface Seed { + ref: WorkspaceRef; + weight: number; + number: number; +} + +function workspaceSeeds(count: number, names?: string[]): Seed[] { + return Array.from({ length: count }, (_, i) => { + const status = i === 1 || i === count - 2 ? "failed" : pick(STATUSES); + const ref: WorkspaceRef = { + id: `ws-${i + 1}`, + name: names?.[i] ?? `${pick(WORDS)}-${pick(WORDS)}-${pick(WORDS)}`, + status, + size: pick(SIZES), + owner: i === 0 ? SAM : pick([PRIYA, PRIYA, INES, SAM, THEO, MAYA]), + failure: + status === "failed" + ? { reason: "snapshot_expired", at: new Date("2026-11-14T23:47:00Z") } + : null, + lastBoot: null, + }; + return { + ref, + weight: 0.3 + random(), + number: i, + }; + }); +} + +/** How long a boot that could not start ran, as in the design. */ +const FAILED_BOOT_MINUTES = 0.8; + +/** + * A workspace's boots in a range: `gbHours` over boots of about `BOOT_HOURS` each, of mixed + * lengths, newest first. The newest is open when the workspace is awake, a failed start that + * billed nothing when it failed, and stopped at the usage limit when the organization reached it. + */ +function bootsOf( + seed: Seed, + gbHours: number, + range: Range, + atLimit: boolean, +): Boot[] { + const { ref } = seed; + const { memoryGb, vcpus } = machineSpec(ref.size); + const failed = ref.status === "failed"; + const count = Math.min( + MAX_BOOTS, + Math.max(1, Math.round(gbHours / memoryGb / BOOT_HOURS)), + ); + const lengths = seeded(seed.number + 1); + const weights = Array.from({ length: count }, (_, i) => + failed && i === 0 ? 0 : 0.25 + 1.75 * lengths(), + ); + const weightSum = weights.reduce((sum, weight) => sum + weight, 0) || 1; + const end = Math.min(range.to.getTime(), STORY_NOW.getTime()); + const span = end - range.from.getTime(); + return weights.map((weight, i) => { + const bootGbHours = (gbHours * weight) / weightSum; + const minutes = + failed && i === 0 + ? FAILED_BOOT_MINUTES + : (bootGbHours * MINUTES) / memoryGb; + const open = i === 0 && ref.status === "awake" && !atLimit; + const startedAt = new Date( + end - ((i + 0.5) / count) * span - (open ? 0 : minutes * MINUTES * 1000), + ); + const endReason: CloudBoot["endReason"] = open + ? null + : i === 0 && failed + ? "failed" + : i === 0 && atLimit && ref.status === "awake" + ? "usage_limit" + : (STOP_REASONS[i % STOP_REASONS.length] ?? "idle"); + return { + id: `${ref.id}-b${i + 1}`, + sessionId: null, + workspace: { id: ref.id, name: ref.name }, + user: ref.owner, + startedAt, + stoppedAt: open + ? null + : new Date(startedAt.getTime() + minutes * MINUTES * 1000), + minutes, + size: ref.size, + memoryGb, + vcpus, + endReason, + gbHours: bootGbHours, + usageUsd: round2(bootGbHours * RATE), + }; + }); +} + +/** A group's metrics, priced from its GB-hours at one rate as the router prices a row. */ +function metricsOf(boots: Boot[]) { + const gbHours = boots.reduce((sum, boot) => sum + boot.gbHours, 0); + return { + workspaces: new Set(boots.map((boot) => boot.workspace?.id)).size, + boots: boots.length, + failedBoots: boots.filter((boot) => boot.endReason === "failed").length, + hours: boots.reduce((sum, boot) => sum + boot.minutes / MINUTES, 0), + gbHours, + usageUsd: round2(gbHours * RATE), + }; +} + +interface Fleet { + rows: Row[]; + boots: Boot[]; +} + +/** The fleet's usage rows and boots for a range, holding `gbHours` in all. `atLimit`: the organization reached its usage limit, so no workspace is awake. */ +function fleet( + seeds: Seed[], + gbHours: number, + range: Range, + atLimit = false, +): Fleet { + if (gbHours <= 0) return { rows: [], boots: [] }; + const weights = seeds.reduce((sum, seed) => sum + seed.weight, 0); + const boots: Boot[] = []; + const rows = seeds.map((seed) => { + const own = bootsOf( + seed, + (gbHours * seed.weight) / weights, + range, + atLimit, + ); + boots.push(...own); + const latest = own[0]; + const ref: WorkspaceRef = { + ...seed.ref, + status: + atLimit && seed.ref.status === "awake" ? "asleep" : seed.ref.status, + lastBoot: latest + ? { endReason: latest.endReason, stoppedAt: latest.stoppedAt } + : null, + }; + return { key: ref.id, label: ref.name, ref, ...metricsOf(own) }; + }); + return { rows: rows.sort((a, b) => b.gbHours - a.gbHours), boots }; +} + +const total = (rows: Row[]) => { + const sum = (value: (row: Row) => number) => + rows.reduce((all, row) => all + value(row), 0); + return { + workspaces: rows.filter((row) => row.gbHours > 0).length, + boots: sum((row) => row.boots), + failedBoots: sum((row) => row.failedBoots), + hours: sum((row) => row.hours), + gbHours: sum((row) => row.gbHours), + usageUsd: round2(sum((row) => row.gbHours) * RATE), + }; +}; + +function usage( + items: Row[], + rows: Row[], + range: Range, + rowCount = items.length, +): Usage { + return { range, items, total: total(rows), rowCount, nextCursor: null }; +} + +/** Removes dollars, as the router does with no rate. */ +export const withoutRate = (page: Usage): CloudUsage => ({ + ...page, + items: page.items.map((item) => ({ ...item, usageUsd: null })), + total: { ...page.total, usageUsd: null }, +}); + +/** One row per day of the range up to today, as the router groups by day. */ +function byDay({ rows, boots }: Fleet, range: Range): Usage { + const days = new Map(); + for (let t = range.from.getTime(); t < range.to.getTime(); t += DAY_MS) { + if (t <= STORY_NOW.getTime()) days.set(day(new Date(t)), []); + } + for (const boot of boots) days.get(day(boot.startedAt))?.push(boot); + const items = [...days].map(([key, list]) => ({ + key, + label: key, + ref: null, + ...metricsOf(list), + })); + return usage(items, rows, range); +} + +function byPerson({ rows }: Fleet, range: Range): Usage { + const items = PEOPLE.map((person) => ({ + key: person.id, + label: person.name, + ref: person, + ...total(rows.filter((row) => workspaceRef(row)?.owner?.id === person.id)), + })) + .filter((item) => item.gbHours > 0) + .sort((a, b) => b.gbHours - a.gbHours); + return usage(items, rows, range); +} + +const TOP_WORKSPACES = 8; + +// The organizations of the design's Customer tab: their seats, seat grant and usage. +const NORTHWIND = { seats: 14, perSeatGbHours: 500, usedGbHours: 15200 }; +const NORTHWIND_SEEDS = workspaceSeeds(43); +const LONG_SEEDS = workspaceSeeds(12, [ + "migrate-the-whole-billing-pipeline-to-the-new-event-store-without-downtime", + "fix-flaky", + ...Array.from( + { length: 10 }, + (_, i) => `refactor-onboarding-checklist-and-invite-flow-part-${i + 1}`, + ), +]).map((seed) => + seed.ref.owner?.id === PRIYA.id + ? { + ...seed, + ref: { + ...seed.ref, + owner: { ...PRIYA, name: "Priya Natarajan-Venkataraman Subramanian" }, + }, + } + : seed, +); + +const periodRange = (back: number): Range => ({ + from: new Date(Date.UTC(2026, 9 - back, 27)), + to: new Date(Date.UTC(2026, 10 - back, 27)), +}); +const CURRENT = periodRange(0); +const TODAY_START = Date.parse(`${day(STORY_NOW)}T00:00:00Z`); +/** The range with no billing periods: the last 30 UTC days, today included. */ +const LAST_30_DAYS: Range = { + from: new Date(TODAY_START - 29 * DAY_MS), + to: new Date(TODAY_START + DAY_MS), +}; + +type Extra = "off" | { capGbHours: number } | { percent: number }; + +interface Billing { + seats: number; + perSeatGbHours: number; + usedGbHours: number; + freeCreditGbHours?: number; + boughtGbHours?: number; + extra: Extra; + /** A value cached before seats, credits and the cap were read. */ + cached?: boolean; +} + +type Balance = Parameters[0][string]; +type Controls = NonNullable[1]>; +const FEATURE = "box_gb_minutes"; + +/** Autumn's balance for a billing state: usage draws the seats' pool, then free credit, then bought credit, then extra usage. */ +function autumnBalance(billing: Billing) { + const pool = billing.seats * billing.perSeatGbHours; + const free = billing.freeCreditGbHours ?? 0; + const bought = billing.boughtGbHours ?? 0; + let left = billing.usedGbHours; + const draw = (amount: number) => { + const drawn = Math.min(left, amount); + left -= drawn; + return drawn; + }; + const inPool = draw(pool); + const freeUsed = draw(free); + const boughtUsed = draw(bought); + const row = ( + id: string, + included: number, + prepaid: number, + used: number, + oneOff: boolean, + ) => ({ + id, + planId: null, + includedGrant: included * MINUTES, + prepaidGrant: prepaid * MINUTES, + remaining: (included + prepaid - used) * MINUTES, + usage: used * MINUTES, + unlimited: false, + reset: oneOff + ? { interval: "one_off", resetsAt: null } + : { interval: "month", resetsAt: PERIOD_END.getTime() }, + price: + oneOff && prepaid > 0 + ? { + amount: RATE, + billingUnits: MINUTES, + billingMethod: "prepaid", + maxPurchase: null, + } + : null, + expiresAt: null, + }); + const granted = pool + free + bought; + const balance = { + featureId: FEATURE, + granted: granted * MINUTES, + usage: billing.usedGbHours * MINUTES, + remaining: (granted - billing.usedGbHours) * MINUTES, + unlimited: false, + overageAllowed: billing.extra !== "off", + maxPurchase: null, + nextResetAt: PERIOD_END.getTime(), + breakdown: [ + row("monthly", pool, 0, inPool + left, false), + ...(free > 0 ? [row("credit", free, 0, freeUsed, true)] : []), + ...(bought > 0 ? [row("pack", 0, bought, boughtUsed, true)] : []), + ], + } as Balance; + const { extra } = billing; + const controls = ( + extra === "off" + ? { overageAllowed: [{ featureId: FEATURE, enabled: false }] } + : { + spendLimits: [ + "capGbHours" in extra + ? { + featureId: FEATURE, + enabled: true, + overageLimit: extra.capGbHours * MINUTES, + } + : { + featureId: FEATURE, + enabled: true, + limitType: "usage_percentage", + overageLimit: extra.percent, + }, + ], + } + ) as Controls; + return { balance, controls }; +} + +/** The open period's allowance and unavailable reasons, as the router returns them for `billing`. */ +function billingPeriod(billing: Billing) { + const { balance, controls } = autumnBalance(billing); + const value = cloudUsageFromBalances( + { [FEATURE]: balance }, + controls, + null, + RATE, + billing.seats, + ) as BillingValue; + return allowanceOf( + billing.cached + ? { + ...value, + bought: null, + freeCredits: null, + seats: null, + overageLimit: null, + limitReached: null, + } + : value, + PERIOD_END, + RATE, + ); +} + +const NORTHWIND_BILLING: Billing = { + ...NORTHWIND, + freeCreditGbHours: 2000, + extra: { capGbHours: 27000 }, +}; + +/** Each billing state; the period's usage events equal what billing counted unless `eventsGbHours` says otherwise. */ +const STATES = { + /** Northwind Labs: seats, a used-up free credit, then extra usage under an absolute cap. */ + northwind: { billing: NORTHWIND_BILLING }, + /** Birchwood Health, on a trial: seats only, extra usage off, under its allowance. */ + trial: { + billing: { seats: 9, perSeatGbHours: 500, usedGbHours: 3100, extra: "off" }, + }, + /** Acme Robotics: a bought pack not drawn yet, and extra usage under an absolute cap. */ + prepaid: { + billing: { + seats: 38, + perSeatGbHours: 1000, + usedGbHours: 21400, + boughtGbHours: 5000, + extra: { capGbHours: 129000 }, + }, + }, + /** Seats only with extra usage off, the allowance used up, and usage past it before the workspaces stopped. */ + limitReached: { + billing: { seats: 9, perSeatGbHours: 500, usedGbHours: 4650, extra: "off" }, + }, + /** Northwind's own cap in the design, 300% of its allowance: the router cannot give its amount. */ + percentCap: { + billing: { ...NORTHWIND_BILLING, extra: { percent: 300 } }, + }, + /** Northwind, from a billing value cached before seats, credits and the cap were read. */ + notRead: { billing: { ...NORTHWIND_BILLING, cached: true } }, + /** Northwind, with usage events billing has not counted yet. */ + unbilled: { billing: NORTHWIND_BILLING, eventsGbHours: 15800 }, +} satisfies Record; + +export type BillingState = keyof typeof STATES; + +const eventsOf = (state: BillingState) => { + const entry: { billing: Billing; eventsGbHours?: number } = STATES[state]; + return entry.eventsGbHours ?? entry.billing.usedGbHours; +}; + +/** A state's fleet `back` periods ago; only the open period of the limit-reached state is at its limit. */ +const fleetIn = (state: BillingState, back: number, seeds = NORTHWIND_SEEDS) => + fleet( + seeds, + eventsOf(state) * (PERIOD_SHARE[back] ?? 0), + periodRange(back), + state === "limitReached" && back === 0, + ); + +/** The router's period list for a state, newest first; the earlier periods are closed. A member gets no allowance and their own metrics. */ +function periodList(state: BillingState, member = false): CloudPeriods { + const current = billingPeriod(STATES[state].billing); + const items: CloudPeriod[] = PERIOD_SHARE.map((_, back) => { + const range = periodRange(back); + const rows = fleetIn(state, back).rows; + return { + id: day(range.from), + start: range.from, + end: range.to, + closed: back > 0, + allowance: back === 0 && !member ? current.allowance : null, + unavailable: member + ? [{ field: "allowance", reason: "owners_and_admins_only" }] + : back === 0 + ? current.unavailable + : [{ field: "allowance", reason: "closed_period" }], + metrics: total(member ? rows.filter(isMember) : rows), + }; + }); + return { items, nextCursor: null }; +} + +const noop = () => undefined; + +export const query = ( + data: T | undefined, + isError = false, +): CloudQuery => ({ data, isError, refetch: noop }); + +export const pagesQuery = ( + pages: T[] | undefined, + isError = false, +): CloudPages => ({ + data: pages && { pages }, + isError, + refetch: noop, + hasNextPage: false, + isFetchingNextPage: false, + fetchNextPage: async () => undefined, +}); + +const isMember = (row: Row) => workspaceRef(row)?.owner?.id === SAM.id; + +function overviewQueries({ rows, boots }: Fleet, range: Range) { + const fleetOf = { rows, boots }; + return { + byDay: query(byDay(fleetOf, range)), + byPerson: query(byPerson(fleetOf, range)), + workspaces: query( + usage(rows.slice(0, TOP_WORKSPACES), rows, range, rows.length), + ), + }; +} + +/** The overview's arguments in a billing state: `back` periods ago, as a member, or with long names. */ +export function overviewArgs( + state: BillingState, + { + back = 0, + member = false, + long = false, + }: { back?: number; member?: boolean; long?: boolean } = {}, +) { + const list = periodList(state, member); + const all = fleetIn(state, back, long ? LONG_SEEDS : NORTHWIND_SEEDS); + const shown = member + ? { + rows: all.rows.filter(isMember), + boots: all.boots.filter((boot) => boot.user?.id === SAM.id), + } + : all; + return { + periods: query(list), + period: list.items[back], + ...overviewQueries(shown, periodRange(back)), + }; +} + +/** An organization with no billing periods: the last 30 days, priced at the list rate. */ +export function noPeriodsArgs() { + return { + periods: query({ items: [], nextCursor: null }), + period: undefined, + ...overviewQueries( + fleet(NORTHWIND_SEEDS, 3100, LAST_30_DAYS), + LAST_30_DAYS, + ), + }; +} + +/** The allowance card's arguments in a billing state. */ +export function cardArgs(state: BillingState, back = 0) { + const args = overviewArgs(state, { back }); + return { + total: (args.byDay.data as Usage).total, + period: args.period, + allowance: priced(args.period?.allowance ?? null), + }; +} + +export function lastThirtyDaysCardArgs() { + const args = noPeriodsArgs(); + return { + total: (args.byDay.data as Usage).total, + period: undefined, + allowance: null, + }; +} + +const NOW = fleetIn("northwind", 0); +const LONG_NOW = fleetIn("northwind", 0, LONG_SEEDS); +export const workspacesPeriods = periodList("northwind"); + +/** The Workspaces page's cursor pages, `perPage` at a time. */ +export function workspacePages(rows: Row[] = NOW.rows, perPage = 15): Usage[] { + const pages: Usage[] = []; + for (let start = 0; start === 0 || start < rows.length; start += perPage) { + pages.push({ + ...usage(rows.slice(start, start + perPage), rows, CURRENT, rows.length), + nextCursor: + start + perPage < rows.length ? `cursor-${start + perPage}` : null, + }); + } + return pages; +} + +const hasStatus = (status: WorkspaceRef["status"]) => (row: Row) => + workspaceRef(row)?.status === status; + +export const rowsFixtures = { + all: NOW.rows, + member: NOW.rows.filter(isMember), + long: LONG_NOW.rows, + asleepByName: NOW.rows + .filter(hasStatus("asleep")) + .sort((a, b) => (a.label ?? "").localeCompare(b.label ?? "")), + priya: NOW.rows.filter((row) => workspaceRef(row)?.owner?.id === PRIYA.id), + sync: NOW.rows.filter((row) => row.label?.includes("sync")), +}; + +export const workspacesByPerson = byPerson(NOW, CURRENT); + +/** One workspace's page arguments: its row and boots in the open period. */ +export function workspaceArgs(which: WorkspaceRef["status"] | "long") { + const source = which === "long" ? LONG_NOW : NOW; + const row = source.rows.find( + which === "long" ? (item) => item.key === "ws-1" : hasStatus(which), + ) as Row; + const one = query(usage([row], [row], CURRENT)); + return { + periods: query(workspacesPeriods), + period: workspacesPeriods.items[0], + workspace: one, + allTime: one, + boots: pagesQuery([ + { + range: CURRENT, + items: source.boots.filter((boot) => boot.workspace?.id === row.key), + nextCursor: null, + }, + ]), + }; +} + +export const emptyUsage = usage([], [], CURRENT); diff --git a/packages/ui/src/components/CloudUsagePage/fixtures/index.ts b/packages/ui/src/components/CloudUsagePage/fixtures/index.ts new file mode 100644 index 00000000000..9d252cac61d --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/fixtures/index.ts @@ -0,0 +1,3 @@ +export { withSettingsShell } from "./components/SettingsShell"; +export { StoryLink } from "./components/StoryLink"; +export * from "./fixtures"; diff --git a/packages/ui/src/components/CloudUsagePage/hooks/usePeriodLabel/index.ts b/packages/ui/src/components/CloudUsagePage/hooks/usePeriodLabel/index.ts new file mode 100644 index 00000000000..d05ec0f1286 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/hooks/usePeriodLabel/index.ts @@ -0,0 +1 @@ +export { usePeriodLabel } from "./usePeriodLabel"; diff --git a/packages/ui/src/components/CloudUsagePage/hooks/usePeriodLabel/usePeriodLabel.ts b/packages/ui/src/components/CloudUsagePage/hooks/usePeriodLabel/usePeriodLabel.ts new file mode 100644 index 00000000000..2cedd3f1cb6 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/hooks/usePeriodLabel/usePeriodLabel.ts @@ -0,0 +1,17 @@ +"use client"; + +import { useLingui } from "@lingui/react/macro"; +import { useFormat } from "@superset/i18n/react"; + +/** "Oct 15 – Nov 14": a period ends the instant the next starts, so its last day is one millisecond earlier. */ +export function usePeriodLabel() { + const { t } = useLingui(); + const { formatDate } = useFormat(); + return (period: { start: Date; end: Date }) => { + const format = (date: Date) => + formatDate(date, { month: "short", day: "numeric", timeZone: "UTC" }); + const start = format(period.start); + const end = format(new Date(period.end.getTime() - 1)); + return t({ message: `${start} – ${end}` }); + }; +} diff --git a/packages/ui/src/components/CloudUsagePage/hooks/useUsageFormat/index.ts b/packages/ui/src/components/CloudUsagePage/hooks/useUsageFormat/index.ts new file mode 100644 index 00000000000..508158349a7 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/hooks/useUsageFormat/index.ts @@ -0,0 +1 @@ +export { useUsageFormat } from "./useUsageFormat"; diff --git a/packages/ui/src/components/CloudUsagePage/hooks/useUsageFormat/useUsageFormat.ts b/packages/ui/src/components/CloudUsagePage/hooks/useUsageFormat/useUsageFormat.ts new file mode 100644 index 00000000000..913be627dd4 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/hooks/useUsageFormat/useUsageFormat.ts @@ -0,0 +1,26 @@ +"use client"; + +import { useFormat } from "@superset/i18n/react"; + +export function useUsageFormat() { + const { formatCurrency, formatNumber } = useFormat(); + const withDigits = (digits: number) => (usd: number) => + formatCurrency(usd, "USD", { + minimumFractionDigits: digits, + maximumFractionDigits: digits, + }); + /** Cents only when every figure shown together is under $100, so one card or column has one precision. */ + const dollarsFor = (figures: number[]) => + withDigits( + figures.some((usd) => usd >= 100) || figures.every((usd) => usd === 0) + ? 0 + : 2, + ); + const dollars = (usd: number) => dollarsFor([usd])(usd); + /** Whole GB-hours everywhere, as in the design; a small amount still reads as used. */ + const formatGbHours = (value: number) => + value > 0 && value < 1 + ? `<${formatNumber(1)}` + : formatNumber(value, { maximumFractionDigits: 0 }); + return { dollars, dollarsFor, formatGbHours }; +} diff --git a/packages/ui/src/components/CloudUsagePage/index.ts b/packages/ui/src/components/CloudUsagePage/index.ts index d3fc02c794d..8df350ea568 100644 --- a/packages/ui/src/components/CloudUsagePage/index.ts +++ b/packages/ui/src/components/CloudUsagePage/index.ts @@ -1,6 +1,14 @@ export { CloudUsagePage } from "./CloudUsagePage"; +export { CloudWorkspacePage } from "./components/CloudWorkspacePage"; +export { CloudWorkspacesPage } from "./components/CloudWorkspacesPage"; export { QueryStatus } from "./components/QueryStatus"; -export type { WorkspaceRef } from "./types"; +export type { + CloudUsageLink, + CloudUsageTarget, + WorkspacesFilters, + WorkspacesTarget, +} from "./types"; export { cloudUsageQueries, PERIODS_INPUT } from "./utils/cloudUsageQueries"; export { selectedPeriod } from "./utils/selectedPeriod"; export { usageRange } from "./utils/usageRange"; +export { workspacesFilters } from "./utils/workspacesFilters"; diff --git a/packages/ui/src/components/CloudUsagePage/types.ts b/packages/ui/src/components/CloudUsagePage/types.ts index 7fd433c058a..9b13061e045 100644 --- a/packages/ui/src/components/CloudUsagePage/types.ts +++ b/packages/ui/src/components/CloudUsagePage/types.ts @@ -1,17 +1,21 @@ import type { RouterOutputs } from "@superset/trpc"; +import type { ComponentType, ReactNode } from "react"; type Cloud = RouterOutputs["cloud"]; export type CloudPeriods = Cloud["periods"]["list"]; export type CloudPeriod = CloudPeriods["items"][number]; export type CloudUsage = Cloud["usage"]["query"]; +export type CloudUsageRow = CloudUsage["items"][number]; +export type CloudMetrics = CloudUsage["total"]; export type CloudBoots = Cloud["boots"]["list"]; export type CloudBoot = CloudBoots["items"][number]; export type WorkspaceRef = Extract< - CloudUsage["items"][number]["ref"], + NonNullable, { status: unknown } >; +export type PersonRef = NonNullable; /** The part of a React Query result this page reads, so each app passes its own tRPC binding's result. */ export interface CloudQuery { @@ -23,5 +27,39 @@ export interface CloudQuery { export interface CloudPages extends CloudQuery<{ pages: TPage[] }> { hasNextPage: boolean; isFetchingNextPage: boolean; - fetchNextPage: () => unknown; + fetchNextPage: () => Promise; } + +export type WorkspacesSort = "gbHours" | "hours" | "name" | "status"; +export type WorkspacesRows = 15 | 50; + +/** The Workspaces page's filters and sort, kept in the URL. Absent means any, and GB-hours for the sort. */ +export interface WorkspacesFilters { + user?: string; + size?: WorkspaceRef["size"]; + status?: WorkspaceRef["status"]; + q?: string; + sort?: WorkspacesSort; + rows?: WorkspacesRows; + /** 1-based; absent for the first page. */ + page?: number; +} + +/** A place in the cloud usage pages; each app maps it to its own router. `period` is a period id, absent for the newest. */ +export type CloudUsageTarget = + | { view: "overview"; period?: string } + | ({ view: "workspaces"; period?: string } & WorkspacesFilters) + | { view: "workspace"; workspaceId: string; period?: string } + | { view: "billing" }; + +export type WorkspacesTarget = Extract< + CloudUsageTarget, + { view: "workspaces" } +>; + +export type CloudUsageLink = ComponentType<{ + to: CloudUsageTarget; + className?: string; + "aria-label"?: string; + children: ReactNode; +}>; diff --git a/packages/ui/src/components/CloudUsagePage/utils/cloudUsageQueries/cloudUsageQueries.test.ts b/packages/ui/src/components/CloudUsagePage/utils/cloudUsageQueries/cloudUsageQueries.test.ts index e9a74ab1767..7d41e35aa54 100644 --- a/packages/ui/src/components/CloudUsagePage/utils/cloudUsageQueries/cloudUsageQueries.test.ts +++ b/packages/ui/src/components/CloudUsagePage/utils/cloudUsageQueries/cloudUsageQueries.test.ts @@ -1,30 +1,71 @@ import { describe, expect, it } from "bun:test"; import { cloudUsageQueries } from "./cloudUsageQueries"; +const range = { period: "2026-10-27" }; + describe("cloudUsageQueries", () => { - it("waits for periods, asks by person only for admins, and boots only for a workspace", () => { + it("waits for periods, asks by person only for admins, and a workspace's data only for a workspace", () => { const member = cloudUsageQueries({ - range: "30d", + range, periodsLoaded: true, isAdmin: false, - workspaceId: undefined, }); expect(member.byDay.enabled).toBe(true); expect(member.byPerson.enabled).toBe(false); + expect(member.workspace.enabled).toBe(false); expect(member.boots.enabled).toBe(false); const loading = cloudUsageQueries({ - range: "30d", + range, periodsLoaded: false, isAdmin: true, workspaceId: "w1", }); expect(loading.byDay.enabled).toBe(false); expect(loading.byPerson.enabled).toBe(false); - expect(loading.workspaces.enabled).toBe(false); - expect(loading.boots).toEqual({ - input: { workspace: "w1", range: "30d", limit: 25 }, + expect(loading.boots.enabled).toBe(false); + + const loaded = cloudUsageQueries({ + range, + periodsLoaded: true, + isAdmin: true, + workspaceId: "w1", + }); + expect(loaded.boots).toEqual({ + input: { workspace: "w1", range, limit: 25 }, enabled: true, }); }); + + it("passes the Workspaces page's filters to the router, and a person only for admins", () => { + const filters = { + user: "u1", + size: "large", + status: "asleep", + q: "fix", + sort: "name", + } as const; + const admin = cloudUsageQueries({ + range, + periodsLoaded: true, + isAdmin: true, + filters, + }); + expect(admin.workspaces.input).toMatchObject({ + user: "u1", + size: "large", + status: ["asleep"], + search: "fix", + sort: "name", + order: "asc", + }); + const member = cloudUsageQueries({ + range, + periodsLoaded: true, + isAdmin: false, + filters, + }); + expect(member.workspaces.input.user).toBeUndefined(); + expect(member.topWorkspaces.input.limit).toBe(8); + }); }); diff --git a/packages/ui/src/components/CloudUsagePage/utils/cloudUsageQueries/cloudUsageQueries.ts b/packages/ui/src/components/CloudUsagePage/utils/cloudUsageQueries/cloudUsageQueries.ts index 5435b3693f4..017c57f0090 100644 --- a/packages/ui/src/components/CloudUsagePage/utils/cloudUsageQueries/cloudUsageQueries.ts +++ b/packages/ui/src/components/CloudUsagePage/utils/cloudUsageQueries/cloudUsageQueries.ts @@ -1,22 +1,30 @@ -import type { usageRange } from "../usageRange"; +import type { WorkspacesFilters } from "../../types"; +import { usageRange } from "../usageRange"; +import { ROWS_PER_PAGE } from "../workspacesFilters"; const PAGE_SIZE = 25; const CHART_LIMIT = 100; +const TOP_WORKSPACES = 8; +/** Before any cloud workspace existed. */ +const ALL_TIME_FROM = "2024-01-01T00:00:00.000Z"; export const PERIODS_INPUT = { limit: 24 } as const; -/** Inputs and enable rules for the page's queries, so every app asks for the same data. */ +/** Inputs and enable rules for the pages' queries, so every app asks for the same data. */ export function cloudUsageQueries({ range, periodsLoaded, isAdmin, workspaceId, + filters = {}, }: { range: ReturnType; periodsLoaded: boolean; isAdmin: boolean; - workspaceId: string | undefined; + workspaceId?: string; + filters?: WorkspacesFilters; }) { + const { user, size, status, q, sort, rows } = filters; return { byDay: { input: { range, groupBy: "day", limit: CHART_LIMIT } as const, @@ -26,13 +34,45 @@ export function cloudUsageQueries({ input: { range, groupBy: "user", limit: CHART_LIMIT } as const, enabled: periodsLoaded && isAdmin, }, + topWorkspaces: { + input: { range, groupBy: "workspace", limit: TOP_WORKSPACES } as const, + enabled: periodsLoaded, + }, workspaces: { - input: { range, groupBy: "workspace", limit: PAGE_SIZE } as const, + input: { + range, + groupBy: "workspace", + limit: rows ?? ROWS_PER_PAGE[0], + user: isAdmin ? user : undefined, + size, + status: status && [status], + search: q, + sort, + order: sort === "name" || sort === "status" ? "asc" : undefined, + } as const, enabled: periodsLoaded, }, + workspace: { + input: { + range, + workspace: workspaceId, + groupBy: "workspace", + limit: 1, + } as const, + enabled: periodsLoaded && workspaceId !== undefined, + }, + workspaceAllTime: { + input: { + range: { from: ALL_TIME_FROM, to: usageRange(undefined).to }, + workspace: workspaceId, + groupBy: "workspace", + limit: 1, + } as const, + enabled: workspaceId !== undefined, + }, boots: { input: { workspace: workspaceId, range, limit: PAGE_SIZE }, - enabled: workspaceId !== undefined, + enabled: periodsLoaded && workspaceId !== undefined, }, }; } diff --git a/packages/ui/src/components/CloudUsagePage/utils/periodParam/index.ts b/packages/ui/src/components/CloudUsagePage/utils/periodParam/index.ts new file mode 100644 index 00000000000..a927db59f3a --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/periodParam/index.ts @@ -0,0 +1 @@ +export { periodParam } from "./periodParam"; diff --git a/packages/ui/src/components/CloudUsagePage/utils/periodParam/periodParam.test.ts b/packages/ui/src/components/CloudUsagePage/utils/periodParam/periodParam.test.ts new file mode 100644 index 00000000000..49333915f2d --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/periodParam/periodParam.test.ts @@ -0,0 +1,9 @@ +import { expect, test } from "bun:test"; +import { periodParam } from "./periodParam"; + +test("is the period id, except for the newest period", () => { + const periods = [{ id: "2026-10-27" }, { id: "2026-09-27" }]; + expect(periodParam(periods, periods[1])).toBe("2026-09-27"); + expect(periodParam(periods, periods[0])).toBeUndefined(); + expect(periodParam(undefined, undefined)).toBeUndefined(); +}); diff --git a/packages/ui/src/components/CloudUsagePage/utils/periodParam/periodParam.ts b/packages/ui/src/components/CloudUsagePage/utils/periodParam/periodParam.ts new file mode 100644 index 00000000000..5597dada692 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/periodParam/periodParam.ts @@ -0,0 +1,7 @@ +/** The period's id for a link, or undefined for the newest, so the newest period keeps a plain URL. */ +export function periodParam( + periods: TPeriod[] | undefined, + period: TPeriod | undefined, +): string | undefined { + return period && period !== periods?.[0] ? period.id : undefined; +} diff --git a/packages/ui/src/components/CloudUsagePage/utils/priced/index.ts b/packages/ui/src/components/CloudUsagePage/utils/priced/index.ts new file mode 100644 index 00000000000..aaaa45431c4 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/priced/index.ts @@ -0,0 +1 @@ +export * from "./priced"; diff --git a/packages/ui/src/components/CloudUsagePage/utils/priced/priced.test.ts b/packages/ui/src/components/CloudUsagePage/utils/priced/priced.test.ts new file mode 100644 index 00000000000..9c84b11cca9 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/priced/priced.test.ts @@ -0,0 +1,59 @@ +import { describe, expect, it } from "bun:test"; +import { + cardArgs, + pagesQuery, + query, + withoutRate, + workspacePages, +} from "../../fixtures"; +import type { CloudPeriod, CloudUsage } from "../../types"; +import { priced, pricedPages, pricedQuery } from "./priced"; + +const { allowance, total } = cardArgs("northwind"); +const page = workspacePages()[0] as NonNullable< + ReturnType[number] +>; + +describe("priced", () => { + it("passes usage with prices through", () => { + expect(pricedQuery(query(page))).toMatchObject({ + data: page, + isError: false, + }); + expect(total.usageUsd).toBeGreaterThan(0); + }); + + it("turns usage without prices into a load failure", () => { + expect(pricedQuery(query(withoutRate(page)))).toMatchObject({ + data: undefined, + isError: true, + }); + expect( + pricedPages(pagesQuery(workspacePages().map(withoutRate))), + ).toMatchObject({ data: undefined, isError: true }); + }); + + it("is still loading, not failed, before the data comes", () => { + expect(pricedQuery(query(undefined)).isError).toBe(false); + expect(pricedPages(pagesQuery(undefined)).isError).toBe(false); + }); + + it("refuses an allowance with a missing dollar field, at any depth", () => { + if (!allowance) throw new Error("fixture"); + expect(priced(allowance)).toBe(allowance); + expect(priced({ ...allowance, usedUsd: null })).toBeNull(); + const unpriced: CloudPeriod["allowance"] = { + ...allowance, + extraUsageLimit: { gbHours: 10, usd: null }, + }; + expect(priced(unpriced)).toBeNull(); + }); + + it("allows no included price only when the included total is not known", () => { + if (!allowance) throw new Error("fixture"); + expect(priced({ ...allowance, includedUsd: null })).toBeNull(); + expect( + priced({ ...allowance, includedGbHours: null, includedUsd: null }), + ).not.toBeNull(); + }); +}); diff --git a/packages/ui/src/components/CloudUsagePage/utils/priced/priced.ts b/packages/ui/src/components/CloudUsagePage/utils/priced/priced.ts new file mode 100644 index 00000000000..37a29f16c1a --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/priced/priced.ts @@ -0,0 +1,76 @@ +import type { + CloudBoots, + CloudMetrics, + CloudPages, + CloudPeriod, + CloudQuery, + CloudUsage, + CloudUsageRow, +} from "../../types"; + +/** Null only when the included total itself is not known. */ +type KeepsNull = "includedUsd"; + +/** A router output with every dollar field present: `usageUsd`, `usedUsd`, `usd` and the rest. */ +export type Priced = T extends Date + ? T + : T extends readonly (infer Item)[] + ? Priced[] + : T extends object + ? { + [K in keyof T]: K extends KeepsNull + ? T[K] + : K extends `${string}Usd` | "usd" + ? Exclude + : Priced; + } + : T; + +export type PricedUsage = Priced; +export type PricedRow = Priced; +export type PricedMetrics = Priced; +export type PricedBoots = Priced; +export type PricedAllowance = Priced>; + +const isDollars = (key: string) => key === "usd" || key.endsWith("Usd"); + +/** `value` itself when every dollar field in it is present, else null. */ +export function priced(value: T): Priced | null { + const check = (node: unknown): boolean => { + if (Array.isArray(node)) return node.every(check); + if (node === null || typeof node !== "object" || node instanceof Date) + return true; + const record = node as Record; + return Object.entries(record).every(([key, item]) => + key === "includedUsd" + ? item !== null || record.includedGbHours === null + : isDollars(key) + ? item !== null + : check(item), + ); + }; + return check(value) ? (value as Priced) : null; +} + +/** Usage without prices is a load failure: the pages show usage in dollars only. */ +export function pricedQuery(query: CloudQuery): CloudQuery> { + const data = + query.data === undefined ? undefined : (priced(query.data) ?? undefined); + return { + data, + isError: query.isError || (query.data !== undefined && data === undefined), + refetch: query.refetch, + }; +} + +export function pricedPages(query: CloudPages): CloudPages> { + const pages = query.data?.pages.map(priced); + const all = pages?.every((page) => page !== null) + ? (pages as Priced[]) + : undefined; + return { + ...query, + data: all && { pages: all }, + isError: query.isError || (pages !== undefined && all === undefined), + }; +} diff --git a/packages/ui/src/components/CloudUsagePage/utils/usageRange/usageRange.test.ts b/packages/ui/src/components/CloudUsagePage/utils/usageRange/usageRange.test.ts index 6d75702afff..c305ab40d97 100644 --- a/packages/ui/src/components/CloudUsagePage/utils/usageRange/usageRange.test.ts +++ b/packages/ui/src/components/CloudUsagePage/utils/usageRange/usageRange.test.ts @@ -1,9 +1,20 @@ import { describe, expect, it } from "bun:test"; +import { utcDays } from "../../components/UsageByDay/utils/utcDays"; import { usageRange } from "./usageRange"; describe("usageRange", () => { - it("uses the period, and the last 30 days when there is none", () => { + it("uses the period, and else the last 30 UTC days with today", () => { expect(usageRange({ id: "2026-11-01" })).toEqual({ period: "2026-11-01" }); - expect(usageRange(undefined)).toBe("30d"); + const range = usageRange(undefined, new Date("2026-11-18T15:30:00Z")); + expect(range).toEqual({ + from: "2026-10-20T00:00:00.000Z", + to: "2026-11-19T00:00:00.000Z", + }); + const days = utcDays({ + from: new Date("2026-10-20T00:00:00.000Z"), + to: new Date("2026-11-19T00:00:00.000Z"), + }); + expect(days).toHaveLength(30); + expect(days.at(-1)).toBe("2026-11-18"); }); }); diff --git a/packages/ui/src/components/CloudUsagePage/utils/usageRange/usageRange.ts b/packages/ui/src/components/CloudUsagePage/utils/usageRange/usageRange.ts index 19365d5fec0..902bf2c438a 100644 --- a/packages/ui/src/components/CloudUsagePage/utils/usageRange/usageRange.ts +++ b/packages/ui/src/components/CloudUsagePage/utils/usageRange/usageRange.ts @@ -1,4 +1,18 @@ -/** A billing period when the organization has one; otherwise the router's last-30-days preset. */ -export function usageRange(period: { id: string } | undefined) { - return period ? { period: period.id } : ("30d" as const); +const DAY_MS = 24 * 60 * 60 * 1000; +const DAYS = 30; + +/** + * A billing period when the organization has one; otherwise the last 30 UTC days, today + * included. The window ends at the next UTC midnight, so it stays the same all day. + */ +export function usageRange( + period: { id: string } | undefined, + now = new Date(), +) { + if (period) return { period: period.id }; + const to = (Math.floor(now.getTime() / DAY_MS) + 1) * DAY_MS; + return { + from: new Date(to - DAYS * DAY_MS).toISOString(), + to: new Date(to).toISOString(), + }; } diff --git a/packages/ui/src/components/CloudUsagePage/utils/workspaceOf/index.ts b/packages/ui/src/components/CloudUsagePage/utils/workspaceOf/index.ts new file mode 100644 index 00000000000..8afa6d7f1e6 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/workspaceOf/index.ts @@ -0,0 +1 @@ +export { workspaceOf } from "./workspaceOf"; diff --git a/packages/ui/src/components/CloudUsagePage/utils/workspaceOf/workspaceOf.ts b/packages/ui/src/components/CloudUsagePage/utils/workspaceOf/workspaceOf.ts new file mode 100644 index 00000000000..92c797a0df5 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/workspaceOf/workspaceOf.ts @@ -0,0 +1,6 @@ +import type { CloudUsageRow, WorkspaceRef } from "../../types"; + +/** A workspace row's ref, or null when the workspace is gone. */ +export function workspaceOf(row: CloudUsageRow): WorkspaceRef | null { + return row.ref && "status" in row.ref ? row.ref : null; +} diff --git a/packages/ui/src/components/CloudUsagePage/utils/workspacesFilters/index.ts b/packages/ui/src/components/CloudUsagePage/utils/workspacesFilters/index.ts new file mode 100644 index 00000000000..29fc9bb21d9 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/workspacesFilters/index.ts @@ -0,0 +1,5 @@ +export { + FILTER_STATUSES, + ROWS_PER_PAGE, + workspacesFilters, +} from "./workspacesFilters"; diff --git a/packages/ui/src/components/CloudUsagePage/utils/workspacesFilters/workspacesFilters.test.ts b/packages/ui/src/components/CloudUsagePage/utils/workspacesFilters/workspacesFilters.test.ts new file mode 100644 index 00000000000..eaaf9c5eec8 --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/workspacesFilters/workspacesFilters.test.ts @@ -0,0 +1,48 @@ +import { expect, test } from "bun:test"; +import { workspacesFilters } from "./workspacesFilters"; + +test("keeps valid values and drops what the router would refuse", () => { + const read = (search: Record) => (key: string) => search[key]; + expect( + workspacesFilters( + read({ + user: "b0000000-0000-4000-8000-000000000001", + size: "large", + status: "asleep", + q: " fix ", + sort: "name", + rows: "50", + page: "3", + }), + ), + ).toEqual({ + user: "b0000000-0000-4000-8000-000000000001", + size: "large", + status: "asleep", + q: "fix", + sort: "name", + rows: 50, + page: 3, + }); + expect( + workspacesFilters( + read({ + user: "maya", + size: "huge", + status: "ready", + q: " ", + sort: "boots", + rows: "25", + page: "1", + }), + ), + ).toEqual({ + user: undefined, + size: undefined, + status: undefined, + q: undefined, + sort: undefined, + rows: undefined, + page: undefined, + }); +}); diff --git a/packages/ui/src/components/CloudUsagePage/utils/workspacesFilters/workspacesFilters.ts b/packages/ui/src/components/CloudUsagePage/utils/workspacesFilters/workspacesFilters.ts new file mode 100644 index 00000000000..7c367ec96ac --- /dev/null +++ b/packages/ui/src/components/CloudUsagePage/utils/workspacesFilters/workspacesFilters.ts @@ -0,0 +1,56 @@ +import { MACHINE_SIZES } from "@superset/shared/billing"; +import type { + WorkspaceRef, + WorkspacesFilters, + WorkspacesRows, + WorkspacesSort, +} from "../../types"; + +/** The statuses a person can filter by, in the design's order. */ +export const FILTER_STATUSES = [ + "provisioning", + "awake", + "asleep", + "failed", + "archived", +] as const satisfies readonly WorkspaceRef["status"][]; + +const SORTS = [ + "gbHours", + "hours", + "name", + "status", +] as const satisfies readonly WorkspacesSort[]; +/** The first is the default, as in the design. */ +export const ROWS_PER_PAGE = [ + 15, 50, +] as const satisfies readonly WorkspacesRows[]; +const MAX_PAGE = 1000; +const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; + +const oneOf = (values: readonly T[], value: unknown) => + values.find((item) => item === value); + +const pageOf = (value: unknown) => { + const page = Number(value); + return Number.isInteger(page) && page > 1 && page <= MAX_PAGE + ? page + : undefined; +}; + +/** The filters in a URL's search params; a value the router would refuse is dropped. */ +export function workspacesFilters( + read: (key: string) => unknown, +): WorkspacesFilters { + const user = read("user"); + const q = read("q"); + return { + user: typeof user === "string" && UUID.test(user) ? user : undefined, + size: oneOf(MACHINE_SIZES, read("size")), + status: oneOf(FILTER_STATUSES, read("status")), + q: typeof q === "string" && q.trim() ? q.trim().slice(0, 200) : undefined, + sort: oneOf(SORTS, read("sort")), + rows: ROWS_PER_PAGE.find((rows) => String(rows) === String(read("rows"))), + page: pageOf(read("page")), + }; +}