@burdenoff/microfe-sandbox 2026.624.3 → 2026.625.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,12 +6,15 @@ function i({ runningCount: i, maxConcurrent: a, minutesConsumed: o, minutesQuota
6
6
  let { t: c } = t(), l = a > 0 ? Math.min(100, Math.round(i / a * 100)) : 0;
7
7
  return /* @__PURE__ */ r("output", {
8
8
  "aria-live": "polite",
9
- className: "flex flex-wrap items-center gap-3 rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-xs text-text-secondary",
9
+ className: "flex flex-wrap items-center gap-3 rounded-card border border-border-seam bg-accent-wash px-3.5 py-2.5 text-xs text-text-secondary",
10
10
  children: [
11
- /* @__PURE__ */ n("span", { children: e(c, "sandbox.usageBanner.concurrent", `${i} of ${a} sandboxes running`, {
12
- count: i,
13
- max: a
14
- }) }),
11
+ /* @__PURE__ */ n("span", {
12
+ className: "tabular-nums",
13
+ children: e(c, "sandbox.usageBanner.concurrent", `${i} of ${a} sandboxes running`, {
14
+ count: i,
15
+ max: a
16
+ })
17
+ }),
15
18
  /* @__PURE__ */ n("div", {
16
19
  className: "h-1.5 w-32 overflow-hidden rounded-full bg-bg-surface",
17
20
  "aria-hidden": "true",
@@ -1 +1 @@
1
- {"version":3,"file":"SandboxUsageBanner.js","names":[],"sources":["../../../src/sandbox/components/SandboxUsageBanner.tsx"],"sourcesContent":["import { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { tWithFallback } from '../utils/i18n';\n\ninterface Props {\n /** Concurrent running count from the live list (cheap to compute client-side). */\n runningCount: number;\n /** Workspace policy max (`SandboxConfig.maxConcurrentPerWorkspace`). */\n maxConcurrent: number;\n /** Optional consumed/quota minute counts for monthly usage. Hide block if not provided. */\n minutesConsumed?: number;\n minutesQuota?: number;\n}\n\n/**\n * Compact usage banner shown above the sandbox list. Mirrors the per-workspace\n * limits set by admins so members see why creates are blocked when they hit a cap.\n */\nexport function SandboxUsageBanner({\n runningCount,\n maxConcurrent,\n minutesConsumed,\n minutesQuota,\n}: Props) {\n const { t } = useI18n();\n\n const pct =\n maxConcurrent > 0 ? Math.min(100, Math.round((runningCount / maxConcurrent) * 100)) : 0;\n\n return (\n <output\n aria-live=\"polite\"\n className=\"flex flex-wrap items-center gap-3 rounded-md border border-border-subtle bg-bg-sunken px-3 py-2 text-xs text-text-secondary\"\n >\n <span>\n {tWithFallback(\n t,\n 'sandbox.usageBanner.concurrent',\n `${runningCount} of ${maxConcurrent} sandboxes running`,\n { count: runningCount, max: maxConcurrent }\n )}\n </span>\n <div className=\"h-1.5 w-32 overflow-hidden rounded-full bg-bg-surface\" aria-hidden=\"true\">\n <div\n className={`h-full ${pct >= 90 ? 'bg-status-error-bg-default' : pct >= 70 ? 'bg-status-warning-bg-default' : 'bg-status-success-bg-default'}`}\n style={{ width: `${pct}%` }}\n />\n </div>\n {typeof minutesConsumed === 'number' && typeof minutesQuota === 'number' && (\n <span className=\"ml-auto\">\n {tWithFallback(\n t,\n 'sandbox.usageBanner.consumed',\n `${minutesConsumed} of ${minutesQuota} minutes used this month`,\n { minutes: minutesConsumed, quota: minutesQuota }\n )}\n </span>\n )}\n </output>\n );\n}\n"],"mappings":";;;;AAiBA,SAAgB,EAAmB,EACjC,iBACA,kBACA,oBACA,mBACQ;CACR,IAAM,EAAE,SAAM,GAAS,EAEjB,IACJ,IAAgB,IAAI,KAAK,IAAI,KAAK,KAAK,MAAO,IAAe,IAAiB,IAAI,CAAC,GAAG;AAExF,QACE,kBAAC,UAAD;EACE,aAAU;EACV,WAAU;YAFZ;GAIE,kBAAC,QAAD,EAAA,UACG,EACC,GACA,kCACA,GAAG,EAAa,MAAM,EAAc,qBACpC;IAAE,OAAO;IAAc,KAAK;IAAe,CAC5C,EACI,CAAA;GACP,kBAAC,OAAD;IAAK,WAAU;IAAwD,eAAY;cACjF,kBAAC,OAAD;KACE,WAAW,UAAU,KAAO,KAAK,+BAA+B,KAAO,KAAK,iCAAiC;KAC7G,OAAO,EAAE,OAAO,GAAG,EAAI,IAAI;KAC3B,CAAA;IACE,CAAA;GACL,OAAO,KAAoB,YAAY,OAAO,KAAiB,YAC9D,kBAAC,QAAD;IAAM,WAAU;cACb,EACC,GACA,gCACA,GAAG,EAAgB,MAAM,EAAa,2BACtC;KAAE,SAAS;KAAiB,OAAO;KAAc,CAClD;IACI,CAAA;GAEF"}
1
+ {"version":3,"file":"SandboxUsageBanner.js","names":[],"sources":["../../../src/sandbox/components/SandboxUsageBanner.tsx"],"sourcesContent":["import { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { tWithFallback } from '../utils/i18n';\n\ninterface Props {\n /** Concurrent running count from the live list (cheap to compute client-side). */\n runningCount: number;\n /** Workspace policy max (`SandboxConfig.maxConcurrentPerWorkspace`). */\n maxConcurrent: number;\n /** Optional consumed/quota minute counts for monthly usage. Hide block if not provided. */\n minutesConsumed?: number;\n minutesQuota?: number;\n}\n\n/**\n * Compact usage banner shown above the sandbox list. Mirrors the per-workspace\n * limits set by admins so members see why creates are blocked when they hit a cap.\n */\nexport function SandboxUsageBanner({\n runningCount,\n maxConcurrent,\n minutesConsumed,\n minutesQuota,\n}: Props) {\n const { t } = useI18n();\n\n const pct =\n maxConcurrent > 0 ? Math.min(100, Math.round((runningCount / maxConcurrent) * 100)) : 0;\n\n return (\n <output\n aria-live=\"polite\"\n className=\"flex flex-wrap items-center gap-3 rounded-card border border-border-seam bg-accent-wash px-3.5 py-2.5 text-xs text-text-secondary\"\n >\n <span className=\"tabular-nums\">\n {tWithFallback(\n t,\n 'sandbox.usageBanner.concurrent',\n `${runningCount} of ${maxConcurrent} sandboxes running`,\n { count: runningCount, max: maxConcurrent }\n )}\n </span>\n <div className=\"h-1.5 w-32 overflow-hidden rounded-full bg-bg-surface\" aria-hidden=\"true\">\n <div\n className={`h-full ${pct >= 90 ? 'bg-status-error-bg-default' : pct >= 70 ? 'bg-status-warning-bg-default' : 'bg-status-success-bg-default'}`}\n style={{ width: `${pct}%` }}\n />\n </div>\n {typeof minutesConsumed === 'number' && typeof minutesQuota === 'number' && (\n <span className=\"ml-auto\">\n {tWithFallback(\n t,\n 'sandbox.usageBanner.consumed',\n `${minutesConsumed} of ${minutesQuota} minutes used this month`,\n { minutes: minutesConsumed, quota: minutesQuota }\n )}\n </span>\n )}\n </output>\n );\n}\n"],"mappings":";;;;AAiBA,SAAgB,EAAmB,EACjC,iBACA,kBACA,oBACA,mBACQ;CACR,IAAM,EAAE,SAAM,GAAS,EAEjB,IACJ,IAAgB,IAAI,KAAK,IAAI,KAAK,KAAK,MAAO,IAAe,IAAiB,IAAI,CAAC,GAAG;AAExF,QACE,kBAAC,UAAD;EACE,aAAU;EACV,WAAU;YAFZ;GAIE,kBAAC,QAAD;IAAM,WAAU;cACb,EACC,GACA,kCACA,GAAG,EAAa,MAAM,EAAc,qBACpC;KAAE,OAAO;KAAc,KAAK;KAAe,CAC5C;IACI,CAAA;GACP,kBAAC,OAAD;IAAK,WAAU;IAAwD,eAAY;cACjF,kBAAC,OAAD;KACE,WAAW,UAAU,KAAO,KAAK,+BAA+B,KAAO,KAAK,iCAAiC;KAC7G,OAAO,EAAE,OAAO,GAAG,EAAI,IAAI;KAC3B,CAAA;IACE,CAAA;GACL,OAAO,KAAoB,YAAY,OAAO,KAAiB,YAC9D,kBAAC,QAAD;IAAM,WAAU;cACb,EACC,GACA,gCACA,GAAG,EAAgB,MAAM,EAAa,2BACtC;KAAE,SAAS;KAAiB,OAAO;KAAc,CAClD;IACI,CAAA;GAEF"}
@@ -1,2 +1,2 @@
1
- import { Badge as e, Button as t, Card as n, CardContent as r, Checkbox as i, Dialog as a, DialogContent as o, DialogDescription as s, DialogFooter as c, DialogHeader as l, DialogTitle as u, Input as d, Select as f, SelectContent as p, SelectItem as m, SelectTrigger as h, SelectValue as g, Skeleton as _ } from "@burdenoff/fe-libs/ui";
2
- export { e as Badge, t as Button, n as Card, r as CardContent, i as Checkbox, a as Dialog, o as DialogContent, s as DialogDescription, c as DialogFooter, l as DialogHeader, u as DialogTitle, d as Input, f as Select, p as SelectContent, m as SelectItem, h as SelectTrigger, g as SelectValue, _ as Skeleton };
1
+ import { Badge as e, Button as t, CTAOverflowMenu as n, Card as r, CardContent as i, Checkbox as a, Dialog as o, DialogContent as s, DialogDescription as c, DialogFooter as l, DialogHeader as u, DialogTitle as d, EmphasisPanel as f, GlassCard as p, Input as m, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y, ShowMore as b, Skeleton as x } from "@burdenoff/fe-libs/ui";
2
+ export { e as Badge, t as Button, n as CTAOverflowMenu, r as Card, i as CardContent, a as Checkbox, o as Dialog, s as DialogContent, c as DialogDescription, l as DialogFooter, u as DialogHeader, d as DialogTitle, f as EmphasisPanel, p as GlassCard, m as Input, h as Select, g as SelectContent, _ as SelectItem, v as SelectTrigger, y as SelectValue, b as ShowMore, x as Skeleton };