Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
improvement(platfor-416): UI fixes
Tre Dubrava0f0093b26d5e
diff --git a/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx b/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsxindex abdf6d3060..73a420ff64 100644--- a/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx+++ b/frontend/src/pages/organization/BillingV2Page/BillingV2Page.tsx@@ -1,5 +1,4 @@-import { ReactNode, useEffect, useState } from "react";-import { createPortal } from "react-dom";+import { useEffect, useState } from "react";import { Helmet } from "react-helmet";import { useTranslation } from "react-i18next";@@ -25,17 +24,10 @@ import { BillingV2RenderState, Overview } from "./components/Overview";import { ProductSheet } from "./components/ProductSheet";import { catalogById, intervalToCadence } from "./billing-v2-data";-import "./billing-v2.css";-const CONTACT_SALES_URL = "https://infisical.com/talk-to-us";type BillingV2Flow = { type: "sheet"; prodId: string };-// Overlays render through a portal so fixed positioning is viewport-relative regardless of layout-// ancestors, while keeping the `.billing-v2` scope that the ported stylesheet targets.-const Overlay = ({ children }: { children: ReactNode }) =>- createPortal(<div className="billing-v2">{children}</div>, document.body);-export const BillingV2Page = () => {const { t } = useTranslation();const { currentOrg } = useOrganization();@@ -86,6 +78,12 @@ export const BillingV2Page = () => {const cadence = intervalToCadence(overview?.interval ?? null);+ // New customers check out; existing subscribers add/manage products via the Stripe portal.+ let sheetManageMode: "checkout" | "portal" = "portal";+ if (overview?.subState === "no-subscription") {+ sheetManageMode = "checkout";+ }+const close = () => setFlow(null);const redirectToPortal = async () => {@@ -119,24 +117,20 @@ export const BillingV2Page = () => {redirectToPortal();};- // No subscription yet: open the first purchasable product so the customer can review and check out.+ // No subscription yet: send the customer to the product list to pick what they want, rather than+ // pre-selecting a product for them.const onGetStarted = () => {- const startable = catalog.find((product) =>- (product.pro?.dims ?? []).some((dim) => dim.monthly > 0 || dim.annual > 0)- );- const target = startable ?? catalog[0];- if (target) {- setFlow({ type: "sheet", prodId: target.id });- }+ document+ .getElementById("billing-v2-products")+ ?.scrollIntoView({ behavior: "smooth", block: "start" });};const onUpgrade = (productId: string) => {setFlow({ type: "sheet", prodId: productId });};- // From the product sheet: a new customer checks out for that product, an existing one manages in Stripe.const onSheetManage = async (productId: string) => {- if (overview?.subState === "no-subscription") {+ if (sheetManageMode === "checkout") {await redirectToCheckout(productId);return;}@@ -189,42 +183,38 @@ export const BillingV2Page = () => {I={OrgPermissionBillingActions.Read}a={OrgPermissionSubjects.Billing}>- <div className="billing-v2">- <Overview- overview={overview}- catalog={catalog}- subState={subState}- onManageSubscription={onManageSubscription}- onUpgrade={onUpgrade}- onUpdatePayment={onUpdatePayment}- onEditDetails={onEditDetails}- onContact={onContact}- onGetStarted={onGetStarted}- onRetry={onRetry}- canManageBilling={canManageBilling}- getStartedLoading={createCheckoutSession.isPending}- />- </div>+ <Overview+ overview={overview}+ catalog={catalog}+ subState={subState}+ onManageSubscription={onManageSubscription}+ onUpgrade={onUpgrade}+ onUpdatePayment={onUpdatePayment}+ onEditDetails={onEditDetails}+ onContact={onContact}+ onGetStarted={onGetStarted}+ onRetry={onRetry}+ canManageBilling={canManageBilling}+ /></OrgPermissionCan></div></div>{flow?.type === "sheet" && (- <Overlay>- <ProductSheet- prodId={flow.prodId}- prod={catalogById(catalog, flow.prodId)}- entitlement={overview?.entitlements[flow.prodId]}- cadence={cadence}- redirecting={sheetRedirecting}- onClose={close}- onManage={onSheetManage}- onContact={() => {- close();- onContact();- }}- />- </Overlay>+ <ProductSheet+ prodId={flow.prodId}+ prod={catalogById(catalog, flow.prodId)}+ entitlement={overview?.entitlements[flow.prodId]}+ cadence={cadence}+ manageMode={sheetManageMode}+ redirecting={sheetRedirecting}+ onClose={close}+ onManage={onSheetManage}+ onContact={() => {+ close();+ onContact();+ }}+ />)}</div>);diff --git a/frontend/src/pages/organization/BillingV2Page/billing-v2-data.ts b/frontend/src/pages/organization/BillingV2Page/billing-v2-data.tsindex de37a432a9..9602217d06 100644--- a/frontend/src/pages/organization/BillingV2Page/billing-v2-data.ts+++ b/frontend/src/pages/organization/BillingV2Page/billing-v2-data.ts@@ -7,10 +7,8 @@ export const catalogById = (id: string): BillingV2CatalogProduct | undefined => catalog.find((p) => p.id === id);-export const fmtMoney = (n: number): string => `$${Math.round(Number(n)).toLocaleString("en-US")}`;--export const fmtMoney2 = (n: number): string =>- `$${Number(n).toLocaleString("en-US", { minimumFractionDigits: 0, maximumFractionDigits: 2 })}`;+export const fmtMoney = (n: number, maximumFractionDigits = 0): string =>+ `$${Number(n).toLocaleString("en-US", { maximumFractionDigits })}`;export const cadenceWord = (cad: BillingV2Cadence): string => {if (cad === "annual") {diff --git a/frontend/src/pages/organization/BillingV2Page/billing-v2.css b/frontend/src/pages/organization/BillingV2Page/billing-v2.cssdeleted file mode 100644index 1a407596d8..0000000000--- a/frontend/src/pages/organization/BillingV2Page/billing-v2.css+++ /dev/null@@ -1,463 +0,0 @@-/* Infisical — License v2 billing surface. Scoped under .billing-v2 to avoid global collisions. */--.billing-v2 * { box-sizing: border-box; }-.billing-v2 a { color: inherit; text-decoration: none; }-.billing-v2 button { font-family: inherit; }-.billing-v2 ::selection { background: rgba(48,179,255,0.25); }--/* ---------- BUTTON ---------- */-.billing-v2 .btn { display:inline-flex; align-items:center; justify-content:center; gap:6px;- border:1px solid; border-radius:6px; color:#ebebeb; font-family:inherit;- font-size:13px; cursor:pointer; white-space:nowrap;- transition: background 200ms, border-color 200ms, transform 80ms; }-.billing-v2 .btn:active { transform: scale(0.99); }-.billing-v2 .btn:focus-visible { outline:none; box-shadow:0 0 0 3px rgba(45,47,51,0.6); }-.billing-v2 .btn:disabled { opacity:0.5; pointer-events:none; }-.billing-v2 .btn.xs { height:26px; padding:0 8px; font-size:12px; border-radius:4px; }-.billing-v2 .btn.sm { height:30px; padding:0 10px; font-size:13px; }-.billing-v2 .btn.md { height:34px; padding:0 13px; font-size:13px; }-.billing-v2 .btn.lg { height:40px; padding:0 16px; font-size:14px; }-.billing-v2 .btn.full { width:100%; }-.billing-v2 .btn .ico { width:14px; height:14px; flex-shrink:0; }--.billing-v2 .btn-outline { background:transparent; border-color:#2b2c30; color:#adaeb0; }-.billing-v2 .btn-outline:hover { background:rgba(235,235,235,0.05); border-color:#3a3b40; color:#ebebeb; }-.billing-v2 .btn-ghost { background:transparent; border-color:transparent; color:#adaeb0; }-.billing-v2 .btn-ghost:hover { background:rgba(235,235,235,0.08); color:#ebebeb; }-.billing-v2 .btn-neutral { background:rgba(173,174,176,0.10); border-color:rgba(173,174,176,0.25); }-.billing-v2 .btn-neutral:hover { background:rgba(173,174,176,0.16); }-.billing-v2 .btn-org { background:rgba(48,179,255,0.10); border-color:rgba(48,179,255,0.28); color:#ebebeb; }-.billing-v2 .btn-org:hover { background:rgba(48,179,255,0.16); border-color:rgba(48,179,255,0.34); }-.billing-v2 .btn-success { background:rgba(46,204,113,0.10); border-color:rgba(46,204,113,0.25); }-.billing-v2 .btn-success:hover { background:rgba(46,204,113,0.16); }-.billing-v2 .btn-info { background:rgba(99,176,189,0.10); border-color:rgba(99,176,189,0.25); }-.billing-v2 .btn-warning { background:rgba(241,196,15,0.10); border-color:rgba(241,196,15,0.28); }-.billing-v2 .btn-warning:hover { background:rgba(241,196,15,0.16); }-.billing-v2 .btn-danger { background:rgba(231,76,60,0.10); border-color:rgba(231,76,60,0.28); }-.billing-v2 .btn-danger:hover { background:rgba(231,76,60,0.16); border-color:rgba(231,76,60,0.34); }--.billing-v2 .icon-btn { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px;- border-radius:6px; background:transparent; border:1px solid transparent; color:#7d7f80; cursor:pointer;- transition:all 200ms; flex-shrink:0; }-.billing-v2 .icon-btn:hover { background:rgba(235,235,235,0.06); color:#ebebeb; }--/* ---------- BADGE ---------- */-.billing-v2 .badge { display:inline-flex; align-items:center; gap:4px; height:20px; padding:0 7px; font-size:11px;- border-radius:4px; border:1px solid; line-height:1; white-space:nowrap; font-weight:500; }-.billing-v2 .badge .ico { width:11px; height:11px; }-.billing-v2 .badge .dot { width:6px; height:6px; border-radius:50%; background:currentColor; }-.billing-v2 .badge-neutral { background:rgba(173,174,176,0.15); border-color:rgba(173,174,176,0.10); color:#adaeb0; }-.billing-v2 .badge-success { background:rgba(46,204,113,0.15); border-color:rgba(46,204,113,0.12); color:#2ecc71; }-.billing-v2 .badge-info { background:rgba(99,176,189,0.15); border-color:rgba(99,176,189,0.12); color:#63b0bd; }-.billing-v2 .badge-warning { background:rgba(241,196,15,0.15); border-color:rgba(241,196,15,0.12); color:#f1c40f; }-.billing-v2 .badge-danger { background:rgba(231,76,60,0.15); border-color:rgba(231,76,60,0.12); color:#e74c3c; }-.billing-v2 .badge-org { background:rgba(48,179,255,0.15); border-color:rgba(48,179,255,0.12); color:#30b3ff; }-.billing-v2 .badge-outline { background:transparent; border-color:#2b2c30; color:#adaeb0; }--/* ---------- CARD ---------- */-.billing-v2 .card { background:#16181a; border:1px solid #2b2c30; border-radius:8px; padding:20px;- display:flex; flex-direction:column; gap:18px; box-shadow:0 1px 2px rgba(0,0,0,0.3); }-.billing-v2 .card.no-pad { padding:0; gap:0; }-.billing-v2 .card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }-.billing-v2 .card-title { font-size:16px; font-weight:600; line-height:1.1; color:#ebebeb; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }-.billing-v2 .card-desc { font-size:13px; color:#7d7f80; margin-top:6px; line-height:1.5; }--/* ---------- INPUT ---------- */-.billing-v2 .input { display:block; width:100%; height:34px; padding:0 12px; border:1px solid #2b2c30;- background:#141617; color:#ebebeb; border-radius:6px; font-size:13px; font-family:inherit;- transition:border-color 200ms, box-shadow 200ms; }-.billing-v2 .input::placeholder { color:#707174; }-.billing-v2 .input:focus { outline:none; border-color:#2d2f33; box-shadow:0 0 0 3px rgba(45,47,51,0.5); }-.billing-v2 .field-label { font-size:12px; color:#adaeb0; margin-bottom:6px; display:block; }-.billing-v2 .field-desc { font-size:12px; color:#707174; margin-top:5px; line-height:1.5; }--/* ---------- PAGE DESC ---------- */-.billing-v2 .page-desc { font-size:13px; color:#adaeb0; margin-top:7px; line-height:1.55; max-width:56ch; }--/* ---------- STACK ---------- */-.billing-v2 .stack { display:flex; flex-direction:column; gap:18px; }--/* ====================================================================== */-/* ==================== BILLING-SPECIFIC ============================== */-/* ====================================================================== */--/* ---------- Summary header card ---------- */-.billing-v2 .summary { display:flex; flex-direction:column; gap:0; padding:0; overflow:hidden; }-.billing-v2 .summary-top { display:flex; align-items:stretch; gap:0; flex-wrap:wrap; }-.billing-v2 .summary-metric { flex:1; min-width:180px; padding:22px 24px; display:flex; flex-direction:column; gap:8px;- border-right:1px solid #2b2c30; }-.billing-v2 .summary-metric:last-child { border-right:none; }-.billing-v2 .summary-metric .lbl { font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:#707174; font-weight:500; }-.billing-v2 .summary-metric .val { font-size:24px; font-weight:600; color:#fff; line-height:1.1; letter-spacing:-0.01em; }-.billing-v2 .summary-metric .val .cadence { font-size:14px; font-weight:400; color:#adaeb0; letter-spacing:0; }-.billing-v2 .summary-metric .sub { font-size:12px; color:#7d7f80; }-.billing-v2 .summary-note { padding:12px 24px; border-top:1px solid #2b2c30; background:rgba(48,179,255,0.04);- font-size:12.5px; color:#9fa1a4; display:flex; align-items:center; gap:8px; }-.billing-v2 .summary-note .ico { color:#30b3ff; width:14px; height:14px; flex-shrink:0; }--/* ---------- Product rows / cards ---------- */-.billing-v2 .prod-list { display:flex; flex-direction:column; }-.billing-v2 .prod-item { padding:16px 4px; border-top:1px solid #2b2c30; }-.billing-v2 .prod-item:first-child { border-top:none; }-.billing-v2 .prod-row { display:flex; align-items:center; gap:16px; }-.billing-v2 .prod-row.paused { opacity:0.62; }-.billing-v2 .prod-row.paused .prod-ico { filter:grayscale(0.6); }-.billing-v2 .prod-ico { width:38px; height:38px; border-radius:8px; display:flex; align-items:center; justify-content:center;- flex-shrink:0; border:1px solid; }-.billing-v2 .prod-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }-.billing-v2 .prod-name-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }-.billing-v2 .prod-name { font-size:14.5px; font-weight:600; color:#ebebeb; }-.billing-v2 .prod-plan-chip { font-size:11px; color:#adaeb0; background:rgba(173,174,176,0.10); border:1px solid rgba(173,174,176,0.18);- padding:1px 7px; border-radius:4px; font-weight:500; white-space:nowrap; }-.billing-v2 .prod-meta { font-size:12.5px; color:#7d7f80; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }-.billing-v2 .prod-meta .sep { color:#3a3b40; }-.billing-v2 .prod-price { text-align:right; flex-shrink:0; display:flex; flex-direction:column; gap:2px; }-.billing-v2 .prod-price .amt { font-size:14px; font-weight:600; color:#ebebeb; }-.billing-v2 .prod-price .amt .cadence { font-size:12px; font-weight:400; color:#7d7f80; }-.billing-v2 .prod-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }--/* ---------- Generic info rows (payment, billing details) ---------- */-.billing-v2 .info-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }-.billing-v2 .info-pair { display:flex; align-items:center; gap:14px; }-.billing-v2 .card-brand { width:46px; height:30px; border-radius:5px; border:1px solid #2b2c30; background:#1a1c1e;- display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; letter-spacing:0.03em; color:#ebebeb; flex-shrink:0; }-.billing-v2 .info-text .t1 { font-size:13.5px; color:#ebebeb; font-weight:500; }-.billing-v2 .info-text .t2 { font-size:12px; color:#7d7f80; margin-top:2px; }-.billing-v2 .detail-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }-.billing-v2 .detail-cell .dk { font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:#707174; margin-bottom:5px; }-.billing-v2 .detail-cell .dv { font-size:13.5px; color:#ebebeb; }-.billing-v2 .detail-cell .dv.mono { font-family:ui-monospace,"SF Mono",Menlo,monospace; font-size:12.5px; }--/* ---------- Invoices table ---------- */-.billing-v2 .inv-tbl { width:100%; border-collapse:collapse; }-.billing-v2 .inv-tbl thead th { text-align:left; padding:0 4px 10px; font-size:11px; font-weight:500; color:#707174;- text-transform:uppercase; letter-spacing:0.05em; border-bottom:1px solid #2b2c30; }-.billing-v2 .inv-tbl thead th.right { text-align:right; }-.billing-v2 .inv-tbl tbody td { padding:13px 4px; font-size:13px; color:#ebebeb; border-bottom:1px solid #222327; vertical-align:middle; }-.billing-v2 .inv-tbl tbody tr:last-child td { border-bottom:none; }-.billing-v2 .inv-tbl td.right { text-align:right; }-.billing-v2 .inv-tbl td.mono { font-family:ui-monospace,"SF Mono",Menlo,monospace; font-size:12.5px; color:#adaeb0; }-.billing-v2 .inv-dl { color:#30b3ff; cursor:pointer; display:inline-flex; align-items:center; gap:5px; font-size:12.5px; }-.billing-v2 .inv-dl:hover { text-decoration:underline; }-.billing-v2 .empty-row { padding:28px; text-align:center; color:#707174; font-size:13px; }--/* ---------- Banners ---------- */-.billing-v2 .banner { display:flex; align-items:flex-start; gap:13px; padding:14px 16px; border-radius:8px; border:1px solid;- margin-bottom:22px; }-.billing-v2 .banner .b-ico { width:20px; height:20px; flex-shrink:0; margin-top:1px; }-.billing-v2 .banner .b-body { flex:1; min-width:0; }-.billing-v2 .banner .b-title { font-size:13.5px; font-weight:600; margin-bottom:3px; }-.billing-v2 .banner .b-text { font-size:12.5px; line-height:1.5; }-.billing-v2 .banner .b-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }-.billing-v2 .banner-warning { background:rgba(241,196,15,0.07); border-color:rgba(241,196,15,0.28); }-.billing-v2 .banner-warning .b-ico, .billing-v2 .banner-warning .b-title { color:#f1c40f; }-.billing-v2 .banner-warning .b-text { color:#cdb86a; }-.billing-v2 .banner-danger { background:rgba(231,76,60,0.08); border-color:rgba(231,76,60,0.30); }-.billing-v2 .banner-danger .b-ico, .billing-v2 .banner-danger .b-title { color:#e74c3c; }-.billing-v2 .banner-danger .b-text { color:#d39189; }-.billing-v2 .banner-info { background:rgba(99,176,189,0.07); border-color:rgba(99,176,189,0.26); }-.billing-v2 .banner-info .b-ico, .billing-v2 .banner-info .b-title { color:#63b0bd; }-.billing-v2 .banner-info .b-text { color:#92b3ba; }--/* ---------- Get-started / empty ---------- */-.billing-v2 .getstarted { display:flex; flex-direction:column; align-items:center; text-align:center; gap:16px;- padding:52px 28px; }-.billing-v2 .getstarted .gs-ico { width:54px; height:54px; border-radius:12px; display:flex; align-items:center; justify-content:center;- background:rgba(48,179,255,0.10); border:1px solid rgba(48,179,255,0.25); color:#30b3ff; }-.billing-v2 .getstarted .gs-title { font-size:18px; font-weight:600; color:#fff; }-.billing-v2 .getstarted .gs-text { font-size:13.5px; color:#9fa1a4; max-width:42ch; line-height:1.6; }--/* ---------- Inline error panel ---------- */-.billing-v2 .err-panel { display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; padding:40px 28px; }-.billing-v2 .err-panel .e-ico { color:#e74c3c; }-.billing-v2 .err-panel .e-title { font-size:15px; font-weight:600; color:#ebebeb; }-.billing-v2 .err-panel .e-text { font-size:13px; color:#9fa1a4; max-width:40ch; line-height:1.55; }--/* ---------- Skeletons ---------- */-.billing-v2 .sk { background:linear-gradient(90deg, #1c1e21 25%, #232529 50%, #1c1e21 75%); background-size:200% 100%;- animation:bv2-sk-shimmer 1.4s ease-in-out infinite; border-radius:5px; }-@keyframes bv2-sk-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }--/* ---------- Modal / Dialog ---------- */-.billing-v2 .modal-backdrop { position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:60;- display:flex; align-items:center; justify-content:center; padding:24px; animation:bv2-fade 180ms ease-out; }-.billing-v2 .modal { background:#141617; border:1px solid #2b2c30; border-radius:10px; box-shadow:0 10px 40px rgba(0,0,0,0.55);- width:480px; max-width:100%; max-height:calc(100vh - 48px); display:flex; flex-direction:column; overflow:hidden;- animation:bv2-pop 180ms cubic-bezier(0.16,1,0.3,1); }-.billing-v2 .modal.wide { width:760px; }-.billing-v2 .modal-head { padding:18px 20px 16px; border-bottom:1px solid #2b2c30; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }-.billing-v2 .modal-head .m-title { font-size:16px; font-weight:600; color:#fff; }-.billing-v2 .modal-head .m-desc { font-size:12.5px; color:#7d7f80; margin-top:4px; line-height:1.5; }-.billing-v2 .modal-body { padding:20px; overflow-y:auto; flex:1; }-.billing-v2 .modal-foot { padding:14px 20px; border-top:1px solid #2b2c30; display:flex; gap:10px; justify-content:flex-end; align-items:center; }-.billing-v2 .modal-foot .foot-note { margin-right:auto; font-size:12px; color:#707174; }-@keyframes bv2-fade { from{opacity:0} to{opacity:1} }-@keyframes bv2-pop { from{opacity:0; transform:scale(0.97) translateY(6px)} to{opacity:1; transform:none} }--/* ---------- Catalog cards ---------- */-.billing-v2 .catalog-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }-@media (max-width:680px){ .billing-v2 .catalog-grid{ grid-template-columns:1fr; } }-.billing-v2 .cat-card { border:1px solid #2b2c30; border-radius:9px; background:#16181a; padding:16px;- display:flex; flex-direction:column; gap:13px; transition:border-color 200ms, background 200ms; }-.billing-v2 .cat-card.added { border-color:rgba(46,204,113,0.30); background:rgba(46,204,113,0.03); }-.billing-v2 .cat-card.selected { border-color:rgba(48,179,255,0.45); background:rgba(48,179,255,0.05); }-.billing-v2 .cat-head { display:flex; gap:12px; align-items:flex-start; }-.billing-v2 .cat-head .prod-ico { width:34px; height:34px; }-.billing-v2 .cat-titles { flex:1; min-width:0; }-.billing-v2 .cat-name { font-size:14px; font-weight:600; color:#ebebeb; display:flex; align-items:center; gap:8px; }-.billing-v2 .cat-desc { font-size:12.5px; color:#7d7f80; margin-top:4px; line-height:1.5; }-.billing-v2 .cat-plans { display:flex; flex-direction:column; gap:8px; }-.billing-v2 .plan-opt { display:flex; align-items:center; gap:11px; padding:10px 12px; border:1px solid #2b2c30; border-radius:7px;- cursor:pointer; transition:border-color 150ms, background 150ms; background:#141617; }-.billing-v2 .plan-opt:hover { border-color:#3a3b40; }-.billing-v2 .plan-opt.sel { border-color:rgba(48,179,255,0.5); background:rgba(48,179,255,0.06); }-.billing-v2 .plan-opt.disabled { opacity:0.55; cursor:default; }-.billing-v2 .plan-radio { width:16px; height:16px; border-radius:50%; border:1.5px solid #3a3b40; flex-shrink:0; position:relative; }-.billing-v2 .plan-opt.sel .plan-radio { border-color:#30b3ff; }-.billing-v2 .plan-opt.sel .plan-radio::after { content:""; position:absolute; inset:3px; border-radius:50%; background:#30b3ff; }-.billing-v2 .plan-info { flex:1; min-width:0; }-.billing-v2 .plan-name { font-size:13px; font-weight:500; color:#ebebeb; }-.billing-v2 .plan-feat { font-size:11.5px; color:#707174; margin-top:2px; }-.billing-v2 .plan-price { text-align:right; flex-shrink:0; font-size:13px; font-weight:600; color:#ebebeb; }-.billing-v2 .plan-price .cadence { font-size:11px; font-weight:400; color:#7d7f80; }-.billing-v2 .plan-price.sales { font-size:12px; font-weight:500; color:#63b0bd; }-.billing-v2 .cat-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:2px; }--/* ---------- Preset bundle ---------- */-.billing-v2 .preset { display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:9px;- border:1px dashed rgba(48,179,255,0.35); background:rgba(48,179,255,0.04); margin-bottom:16px; }-.billing-v2 .preset .p-ico { width:36px; height:36px; border-radius:8px; background:rgba(48,179,255,0.12);- border:1px solid rgba(48,179,255,0.25); color:#30b3ff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }-.billing-v2 .preset .p-body { flex:1; }-.billing-v2 .preset .p-title { font-size:13.5px; font-weight:600; color:#ebebeb; }-.billing-v2 .preset .p-text { font-size:12px; color:#8a8c8f; margin-top:2px; }--/* ---------- Cart summary (checkout) ---------- */-.billing-v2 .cart { border:1px solid #2b2c30; border-radius:9px; background:#16181a; padding:16px; display:flex; flex-direction:column; gap:12px; }-.billing-v2 .cart-title { font-size:13px; font-weight:600; color:#ebebeb; text-transform:uppercase; letter-spacing:0.04em; }-.billing-v2 .cart-line { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13px; }-.billing-v2 .cart-line .cl-name { color:#cfd0d2; display:flex; align-items:center; gap:7px; }-.billing-v2 .cart-line .cl-amt { color:#ebebeb; font-weight:500; white-space:nowrap; }-.billing-v2 .cart-line.muted .cl-name, .billing-v2 .cart-line.muted .cl-amt { color:#8a8c8f; font-weight:400; }-.billing-v2 .cart-divider { height:1px; background:#2b2c30; margin:2px 0; }-.billing-v2 .cart-total { display:flex; align-items:center; justify-content:space-between; }-.billing-v2 .cart-total .ct-lbl { font-size:13px; color:#adaeb0; }-.billing-v2 .cart-total .ct-amt { font-size:18px; font-weight:600; color:#fff; }-.billing-v2 .cart-total .ct-amt .cadence { font-size:12px; font-weight:400; color:#7d7f80; }-.billing-v2 .cart-empty { font-size:12.5px; color:#707174; text-align:center; padding:14px 0; }--/* ---------- Stepper ---------- */-.billing-v2 .stepper { display:flex; align-items:center; gap:0; margin-bottom:4px; }-.billing-v2 .step { display:flex; align-items:center; gap:9px; }-.billing-v2 .step .sdot { width:24px; height:24px; border-radius:50%; border:1.5px solid #2b2c30; display:flex; align-items:center; justify-content:center;- font-size:12px; font-weight:600; color:#707174; flex-shrink:0; transition:all 200ms; }-.billing-v2 .step.active .sdot { border-color:#30b3ff; color:#30b3ff; background:rgba(48,179,255,0.10); }-.billing-v2 .step.done .sdot { border-color:#2ecc71; background:#2ecc71; color:#0e1014; }-.billing-v2 .step .slbl { font-size:12.5px; color:#707174; white-space:nowrap; }-.billing-v2 .step.active .slbl { color:#ebebeb; font-weight:500; }-.billing-v2 .step.done .slbl { color:#adaeb0; }-.billing-v2 .step-line { flex:1; height:1px; background:#2b2c30; margin:0 12px; min-width:18px; }-.billing-v2 .step-line.done { background:rgba(46,204,113,0.4); }--/* ---------- Review line items ---------- */-.billing-v2 .review-list { display:flex; flex-direction:column; border:1px solid #2b2c30; border-radius:8px; overflow:hidden; }-.billing-v2 .review-line { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 15px; border-top:1px solid #222327; }-.billing-v2 .review-line:first-child { border-top:none; }-.billing-v2 .review-line .rl-name { font-size:13px; color:#ebebeb; display:flex; align-items:center; gap:9px; }-.billing-v2 .review-line .rl-sub { font-size:11.5px; color:#707174; margin-top:1px; }-.billing-v2 .review-line .rl-amt { font-size:13px; color:#ebebeb; font-weight:500; white-space:nowrap; }-.billing-v2 .review-totals { background:#141617; padding:14px 15px; display:flex; flex-direction:column; gap:9px; border-top:1px solid #2b2c30; }--/* ---------- Embedded payment region ---------- */-.billing-v2 .pay-region { border:1px solid #2b2c30; border-radius:8px; background:#141617; padding:16px; position:relative; }-.billing-v2 .pay-region-badge { position:absolute; top:-9px; right:14px; font-size:10px; color:#707174; background:#141617;- padding:0 7px; display:inline-flex; align-items:center; gap:5px; }-.billing-v2 .pay-region-badge .ico { width:11px; height:11px; }-.billing-v2 .pay-field { display:flex; flex-direction:column; gap:6px; margin-bottom:13px; }-.billing-v2 .pay-field:last-child { margin-bottom:0; }-.billing-v2 .pay-field label { font-size:11.5px; color:#8a8c8f; }-.billing-v2 .pay-input { height:38px; border:1px solid #2b2c30; border-radius:7px; background:#16181a; display:flex; align-items:center;- padding:0 12px; gap:8px; font-size:13px; color:#ebebeb; }-.billing-v2 .pay-input .pi-dots { letter-spacing:2px; color:#cfd0d2; font-family:ui-monospace,Menlo,monospace; }-.billing-v2 .pay-input .pi-placeholder { color:#55575b; }-.billing-v2 .pay-input .brand-mini { margin-left:auto; font-size:10px; font-weight:700; color:#707174; }-.billing-v2 .pay-row { display:flex; gap:12px; }-.billing-v2 .pay-row .pay-field { flex:1; }--/* ---------- What-changes list ---------- */-.billing-v2 .changes { display:flex; flex-direction:column; gap:9px; }-.billing-v2 .change-item { display:flex; gap:10px; align-items:flex-start; font-size:12.5px; line-height:1.5; }-.billing-v2 .change-item .ci-ico { width:16px; height:16px; flex-shrink:0; margin-top:1px; }-.billing-v2 .change-item.add .ci-ico { color:#2ecc71; }-.billing-v2 .change-item.remove .ci-ico { color:#e74c3c; }-.billing-v2 .change-item .ci-text { color:#c4c5c7; }--/* ---------- Proration preview box ---------- */-.billing-v2 .proration { border:1px solid #2b2c30; border-radius:8px; overflow:hidden; }-.billing-v2 .proration-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 15px; }-.billing-v2 .proration-row.hl { background:rgba(48,179,255,0.05); }-.billing-v2 .proration-row + .proration-row { border-top:1px solid #2b2c30; }-.billing-v2 .proration-row .pr-lbl { font-size:13px; color:#adaeb0; }-.billing-v2 .proration-row .pr-lbl .pr-sub { font-size:11.5px; color:#707174; margin-top:2px; }-.billing-v2 .proration-row .pr-amt { font-size:15px; font-weight:600; color:#ebebeb; white-space:nowrap; }-.billing-v2 .proration-row.hl .pr-amt { color:#30b3ff; }--/* ---------- 3DS auth interstitial ---------- */-.billing-v2 .auth-body { display:flex; flex-direction:column; align-items:center; text-align:center; gap:18px; padding:34px 24px; }-.billing-v2 .auth-bank { width:54px; height:54px; border-radius:12px; background:#1a1c1e; border:1px solid #2b2c30;- display:flex; align-items:center; justify-content:center; color:#63b0bd; }-.billing-v2 .auth-title { font-size:15px; font-weight:600; color:#ebebeb; }-.billing-v2 .auth-text { font-size:13px; color:#9fa1a4; max-width:34ch; line-height:1.55; }--/* ---------- Spinner ---------- */-.billing-v2 .spin { width:16px; height:16px; border:2px solid rgba(235,235,235,0.2); border-top-color:#ebebeb; border-radius:50%;- animation:bv2-spin 0.7s linear infinite; display:inline-block; }-.billing-v2 .spin.lg { width:30px; height:30px; border-width:3px; }-.billing-v2 .spin.org { border-top-color:#30b3ff; }-@keyframes bv2-spin { to{ transform:rotate(360deg); } }--/* ---------- Confirmation ---------- */-.billing-v2 .confirm-body { display:flex; flex-direction:column; align-items:center; text-align:center; gap:16px; padding:36px 24px 28px; }-.billing-v2 .confirm-check { width:56px; height:56px; border-radius:50%; background:rgba(46,204,113,0.12); border:1px solid rgba(46,204,113,0.3);- display:flex; align-items:center; justify-content:center; color:#2ecc71; }-.billing-v2 .confirm-title { font-size:18px; font-weight:600; color:#fff; }-.billing-v2 .confirm-text { font-size:13.5px; color:#9fa1a4; line-height:1.6; max-width:40ch; }-.billing-v2 .confirm-list { width:100%; border:1px solid #2b2c30; border-radius:8px; overflow:hidden; margin-top:4px; }--/* ---------- Misc ---------- */-.billing-v2 .hint { font-size:12px; color:#707174; line-height:1.5; }-.billing-v2 .mono { font-family:ui-monospace,"SF Mono",Menlo,monospace; }-.billing-v2 .row-link { color:#30b3ff; cursor:pointer; font-size:12.5px; }-.billing-v2 .row-link:hover { text-decoration:underline; }-.billing-v2 .divider { height:1px; background:#2b2c30; }--/* ---------- Usage meters ---------- */-.billing-v2 .prod-usage { display:flex; flex-direction:column; gap:9px; margin-top:10px; }-.billing-v2 .meter { display:flex; flex-direction:column; gap:5px; }-.billing-v2 .meter-top { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }-.billing-v2 .meter-label { font-size:12px; color:#9fa1a4; white-space:nowrap; }-.billing-v2 .meter-count { font-size:12px; color:#ebebeb; font-variant-numeric:tabular-nums; white-space:nowrap; }-.billing-v2 .meter-count .meter-cap { color:#707174; }-.billing-v2 .meter-count .meter-rate { color:#707174; }-.billing-v2 .meter-count.tone-near { color:#f1c40f; }-.billing-v2 .meter-count.tone-full { color:#e74c3c; }-.billing-v2 .meter-track { height:5px; border-radius:3px; background:#26282c; overflow:hidden; }-.billing-v2 .meter-fill { height:100%; border-radius:3px; background:#30b3ff; transition:width 300ms ease; }-.billing-v2 .meter-fill.tone-near { background:#f1c40f; }-.billing-v2 .meter-fill.tone-full { background:#e74c3c; }-.billing-v2 .limit-note { display:flex; align-items:center; gap:7px; font-size:12px; margin-top:9px;- padding:8px 11px; border-radius:6px; }-.billing-v2 .limit-note.near { background:rgba(241,196,15,0.07); border:1px solid rgba(241,196,15,0.22); color:#cdb86a; }-.billing-v2 .limit-note.full { background:rgba(231,76,60,0.07); border:1px solid rgba(231,76,60,0.24); color:#d39189; }-.billing-v2 .limit-note .ico { flex-shrink:0; }--/* ---------- Cost block (MTD + projected) ---------- */-.billing-v2 .cost-block { display:flex; flex-direction:column; gap:3px; }-.billing-v2 .cost-mtd { font-size:24px; font-weight:600; color:#fff; line-height:1.1; letter-spacing:-0.01em; }-.billing-v2 .cost-proj { font-size:12px; color:#7d7f80; }-.billing-v2 .cost-proj strong { color:#adaeb0; font-weight:500; }--/* ---------- Per-product price column ---------- */-.billing-v2 .prod-price .breakdown { font-size:11px; color:#707174; margin-top:2px; line-height:1.4; }-.billing-v2 .prod-price .model-chip { display:inline-flex; align-items:center; height:17px; padding:0 6px; border-radius:3px;- font-size:10px; font-weight:500; letter-spacing:0.02em; background:rgba(173,174,176,0.10);- border:1px solid rgba(173,174,176,0.16); color:#8a8c8f; text-transform:uppercase; }--/* ====================================================================== */-/* ==================== RIGHT-SIDE SHEET ============================== */-/* ====================================================================== */-.billing-v2 .sheet-backdrop { position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:60; animation:bv2-fade 180ms ease-out; }-.billing-v2 .sheet { position:fixed; top:0; right:0; height:100vh; width:780px; max-width:100%; background:#141617;- border-left:1px solid #2b2c30; box-shadow:-14px 0 50px rgba(0,0,0,0.5); z-index:61;- display:flex; flex-direction:column; animation:bv2-sheet-in 240ms cubic-bezier(0.16,1,0.3,1); }-@keyframes bv2-sheet-in { from{ transform:translateX(48px); opacity:0.3 } to{ transform:none; opacity:1 } }-@media (max-width:840px){ .billing-v2 .sheet{ width:100%; } }-.billing-v2 .sheet-head { padding:18px 22px; border-bottom:1px solid #2b2c30; display:flex; align-items:flex-start; gap:14px; flex-shrink:0; }-.billing-v2 .sheet-head .prod-ico { width:40px; height:40px; }-.billing-v2 .sh-titles { flex:1; min-width:0; }-.billing-v2 .sheet-title { font-size:17px; font-weight:600; color:#fff; line-height:1.2; display:flex; align-items:center; gap:9px; flex-wrap:wrap; }-.billing-v2 .sheet-sub { font-size:12.5px; color:#7d7f80; margin-top:5px; line-height:1.5; max-width:62ch; }-.billing-v2 .sheet-body { flex:1; overflow-y:auto; padding:22px; display:flex; flex-direction:column; gap:24px; }-.billing-v2 .sheet-foot { padding:14px 22px; border-top:1px solid #2b2c30; display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-shrink:0; }-.billing-v2 .sheet-foot .foot-note { margin-right:auto; font-size:12px; color:#707174; }-.billing-v2 .sheet-back { display:inline-flex; align-items:center; gap:5px; font-size:12.5px; color:#8a8c8f; cursor:pointer;- background:none; border:none; padding:0; margin-right:auto; font-family:inherit; }-.billing-v2 .sheet-back:hover { color:#ebebeb; }--/* ---------- Tier cards (pricing-page style, per product) ---------- */-.billing-v2 .tier-cards { display:grid; grid-template-columns:1fr 1fr; gap:14px; }-.billing-v2 .tier-cards.single { grid-template-columns:1fr; }-@media (max-width:640px){ .billing-v2 .tier-cards{ grid-template-columns:1fr; } }-.billing-v2 .tier-card { border:1px solid #2b2c30; border-radius:10px; background:#16181a; padding:18px;- display:flex; flex-direction:column; gap:14px; position:relative; transition:border-color 200ms, background 200ms; }-.billing-v2 .tier-card.featured { border-color:rgba(48,179,255,0.42); background:rgba(48,179,255,0.045); }-.billing-v2 .tier-card.current { border-color:rgba(173,174,176,0.30); background:rgba(173,174,176,0.04); }-.billing-v2 .tier-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }-.billing-v2 .tier-name { font-size:15px; font-weight:600; color:#fff; }-.billing-v2 .tier-price { display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; min-height:30px; }-.billing-v2 .tier-price .tp-amt { font-size:26px; font-weight:600; color:#fff; letter-spacing:-0.02em; line-height:1; }-.billing-v2 .tier-price .tp-unit { font-size:12px; color:#7d7f80; }-.billing-v2 .tier-desc { font-size:12.5px; color:#9fa1a4; line-height:1.55; flex:1; }-.billing-v2 .tier-cta { margin-top:2px; }--/* ---------- Comparison table ---------- */-.billing-v2 .cmp-h { font-size:12px; font-weight:600; color:#8a8c8f; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:12px; }-.billing-v2 .cmp-wrap { border:1px solid #2b2c30; border-radius:8px; overflow:hidden; }-.billing-v2 .cmp-table { width:100%; border-collapse:collapse; }-.billing-v2 .cmp-table th, .billing-v2 .cmp-table td { padding:11px 16px; text-align:left; font-size:12.5px; vertical-align:middle; }-.billing-v2 .cmp-table tbody tr { border-top:1px solid #222327; }-.billing-v2 .cmp-table thead th { background:#16181a; font-size:11px; text-transform:uppercase; letter-spacing:0.05em;- color:#707174; font-weight:500; border-bottom:1px solid #2b2c30; }-.billing-v2 .cmp-table th.col, .billing-v2 .cmp-table td.col { text-align:center; width:150px; }-.billing-v2 .cmp-table thead th.col .ch-name { color:#ebebeb; font-size:12px; font-weight:600; text-transform:none; letter-spacing:0; }-.billing-v2 .cmp-table thead th.col .ch-name.org { color:#30b3ff; }-.billing-v2 .cmp-table thead th.col .ch-name.ent { color:#63b0bd; }-.billing-v2 .cmp-table .feat { color:#cfd0d2; }-.billing-v2 .cmp-table td.col { color:#dfe0e2; font-variant-numeric:tabular-nums; }-.billing-v2 .cmp-table td.col.ent, .billing-v2 .cmp-table th.col.ent { background:rgba(99,176,189,0.035); }-.billing-v2 .cmp-table tbody tr:hover { background:rgba(235,235,235,0.02); }-.billing-v2 .cmp-check { color:#2ecc71; display:inline-flex; }-.billing-v2 .cmp-dash { color:#54565a; }--/* ---------- Included-features list (add-ons w/ no Enterprise) ---------- */-.billing-v2 .incl-list { display:grid; grid-template-columns:1fr 1fr; gap:11px 20px; }-@media (max-width:560px){ .billing-v2 .incl-list{ grid-template-columns:1fr; } }-.billing-v2 .incl-item { display:flex; gap:9px; align-items:flex-start; font-size:12.5px; color:#c4c5c7; line-height:1.5; }-.billing-v2 .incl-item .ci-ico { width:15px; height:15px; flex-shrink:0; margin-top:2px; color:#2ecc71; }--/* ---------- Sheet: current-usage strip (owned products) ---------- */-.billing-v2 .sheet-usage { border:1px solid #2b2c30; border-radius:8px; background:#16181a; padding:16px; }-.billing-v2 .sheet-usage .su-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }-.billing-v2 .sheet-usage .su-lbl { font-size:12px; color:#adaeb0; font-weight:500; white-space:nowrap; }-.billing-v2 .sheet-usage .su-amt { font-size:13px; color:#ebebeb; font-weight:600; white-space:nowrap; flex-shrink:0; }-.billing-v2 .sheet-usage .su-amt .cadence { font-size:11px; font-weight:400; color:#7d7f80; }--/* ---------- Available products section header ---------- */-.billing-v2 .avail-intro { display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:8px 20px 22px; }-.billing-v2 .avail-intro .ai-ico { width:48px; height:48px; border-radius:11px; display:flex; align-items:center; justify-content:center;- background:rgba(48,179,255,0.10); border:1px solid rgba(48,179,255,0.25); color:#30b3ff; margin-bottom:4px; }-.billing-v2 .avail-intro .ai-title { font-size:17px; font-weight:600; color:#fff; }-.billing-v2 .avail-intro .ai-text { font-size:13px; color:#9fa1a4; max-width:46ch; line-height:1.6; }-.billing-v2 .section-label { font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:#707174; font-weight:600;- margin:2px 0 -4px; }--/* ---------- Available rows (within the Products card) ---------- */-.billing-v2 .avail-sep { font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:#707174; font-weight:600;- padding:18px 0 12px; border-top:1px solid #2b2c30; margin-top:6px; }-.billing-v2 .avail-sep + .prod-item { border-top:none; }-.billing-v2 .prod-item.avail .prod-meta { color:#8a8c8f; max-width:62ch; }-.billing-v2 .prod-item.avail .prod-price .amt { font-weight:500; color:#cfd0d2; white-space:nowrap; }--/* ---------- Quantity stepper (manage seats/units) ---------- */-.billing-v2 .qty-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 15px;- border:1px solid #2b2c30; border-radius:8px; }-.billing-v2 .qty-info { min-width:0; }-.billing-v2 .qty-name { font-size:13px; color:#ebebeb; font-weight:500; }-.billing-v2 .qty-sub { font-size:11.5px; color:#707174; margin-top:2px; }-.billing-v2 .qty-stepper { display:flex; align-items:center; gap:0; border:1px solid #2b2c30; border-radius:7px; overflow:hidden; flex-shrink:0; }-.billing-v2 .qty-btn { width:34px; height:34px; display:flex; align-items:center; justify-content:center; background:#16181a;- border:none; color:#adaeb0; cursor:pointer; }-.billing-v2 .qty-btn:hover:not(:disabled) { background:#1f2123; color:#ebebeb; }-.billing-v2 .qty-btn:disabled { opacity:0.4; cursor:not-allowed; }-.billing-v2 .qty-val { width:56px; height:34px; display:flex; align-items:center; justify-content:center; font-size:14px;- font-weight:600; color:#ebebeb; font-variant-numeric:tabular-nums; border-left:1px solid #2b2c30; border-right:1px solid #2b2c30; }diff --git a/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx b/frontend/src/pages/organization/BillingV2Page/components/Overview.tsxindex b296d63633..e4168c3cec 100644--- a/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx+++ b/frontend/src/pages/organization/BillingV2Page/components/Overview.tsx@@ -1,3 +1,38 @@+import { ReactNode } from "react";+import {+ faArrowRight,+ faBagShopping,+ faCalendar,+ faCircleExclamation,+ faCircleInfo,+ faCreditCard,+ faRotate,+ faTriangleExclamation,+ faUpRightFromSquare,+ IconDefinition+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";++import {+ Alert,+ AlertDescription,+ AlertTitle,+ Badge,+ Button,+ Card,+ CardAction,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+ Skeleton,+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow+} from "@app/components/v3";import {BillingV2CatalogProduct,BillingV2Entitlement,@@ -6,19 +41,7 @@ import {} from "@app/hooks/api";import { fmtMoney, intervalWord } from "../billing-v2-data";-import {- IconAlert,- IconAlertCircle,- IconArrowRight,- IconCalendar,- IconCreditCard,- IconExternal,- IconInfo,- IconRefresh,- IconShoppingBag-} from "../icons";-import { Button, Card, Skeleton } from "./primitives";-import { LimitMeter, ProductIcon, StatusBadge } from "./shared";+import { ActiveBadge, LimitMeter, ProductIcon } from "./shared";export type BillingV2Mode = "self-serve" | "managed";export type BillingV2RenderState =@@ -38,7 +61,28 @@ type BannerProps = {onManageSubscription: () => void;};-// Banners (managed info / dunning).+type Dunning = {+ variant: "warning" | "danger";+ icon: IconDefinition;+ title: string;+ body: string;+};++const DUNNING: Partial<Record<BillingV2RenderState, Dunning>> = {+ "past-due": {+ variant: "warning",+ icon: faTriangleExclamation,+ title: "We couldn't process your last payment",+ body: "Update your payment method to avoid losing access. Your products are still active while we retry."+ },+ suspended: {+ variant: "danger",+ icon: faCircleExclamation,+ title: "Your subscription is suspended",+ body: "A payment kept failing and access is paused. Complete payment to restore access to your products."+ }+};+const Banner = ({mode,subState,@@ -48,97 +92,81 @@ const Banner = ({}: BannerProps) => {if (mode === "managed") {return (- <div className="banner banner-info">- <IconInfo className="b-ico" />- <div className="b-body">- <div className="b-title">Your plan is managed by your account team</div>- <div className="b-text">- Products and limits on this organization are set by contract. Contact your account- manager to make changes.- </div>- </div>- </div>+ <Alert variant="info">+ <FontAwesomeIcon icon={faCircleInfo} />+ <AlertTitle>Your plan is managed by your account team</AlertTitle>+ <AlertDescription>+ Products and limits on this organization are set by contract. Contact your account manager+ to make changes.+ </AlertDescription>+ </Alert>);}- if (subState === "past-due") {- return (- <div className="banner banner-warning">- <IconAlert className="b-ico" />- <div className="b-body">- <div className="b-title">We couldn't process your last payment</div>- <div className="b-text">- Update your payment method to avoid losing access. Your products are still active while- we retry.- </div>- {canManage && (- <div className="b-actions">- <Button variant="warning" size="sm" onClick={onUpdatePayment}>- <IconCreditCard size={14} />- Update payment method- </Button>- <Button variant="outline" size="sm" onClick={onManageSubscription}>- Manage subscription- </Button>- </div>- )}- </div>- </div>- );++ const dunning = DUNNING[subState];+ if (!dunning) {+ return null;}- if (subState === "suspended") {- return (- <div className="banner banner-danger">- <IconAlertCircle className="b-ico" />- <div className="b-body">- <div className="b-title">Your subscription is suspended</div>- <div className="b-text">- A payment kept failing and access is paused. Complete payment to restore access to your- products.++ return (+ <Alert variant={dunning.variant}>+ <FontAwesomeIcon icon={dunning.icon} />+ <AlertTitle>{dunning.title}</AlertTitle>+ <AlertDescription>+ {dunning.body}+ {canManage && (+ <div className="mt-3 flex flex-wrap gap-2">+ <Button variant={dunning.variant} size="sm" onClick={onUpdatePayment}>+ <FontAwesomeIcon icon={faCreditCard} />+ Update payment method+ </Button>+ <Button variant="outline" size="sm" onClick={onManageSubscription}>+ Manage subscription+ </Button></div>- {canManage && (- <div className="b-actions">- <Button variant="danger" size="sm" onClick={onUpdatePayment}>- <IconCreditCard size={14} />- Update payment method- </Button>- <Button variant="outline" size="sm" onClick={onManageSubscription}>- Manage subscription- </Button>- </div>- )}- </div>- </div>- );- }- return null;+ )}+ </AlertDescription>+ </Alert>+ );};-// Loading skeleton.+const CardEmpty = ({ children }: { children: ReactNode }) => (+ <div className="py-7 text-center text-sm text-mineshaft-400">{children}</div>+);+const OverviewSkeleton = () => (- <div className="stack">- <Card noPad>- <div style={{ padding: 22, display: "flex", gap: 40 }}>+ <div className="flex flex-col gap-4">+ <Card className="p-0">+ <div className="flex gap-10 p-6">{[0, 1, 2].map((i) => (- <div key={i} style={{ flex: 1, display: "flex", flexDirection: "column", gap: 10 }}>- <Skeleton w="50%" h={10} />- <Skeleton w="70%" h={22} />+ <div key={i} className="flex flex-1 flex-col gap-2.5">+ <Skeleton className="h-2.5 w-1/2" />+ <Skeleton className="h-5 w-2/3" /></div>))}</div></Card>- <Card title={<Skeleton w={130} h={16} />}>- {[0, 1].map((i) => (- <div key={i} className="prod-item">- <div className="prod-row">- <Skeleton w={38} h={38} r={8} />- <div className="prod-main" style={{ gap: 8 }}>- <Skeleton w="40%" h={14} />- <Skeleton w="25%" h={11} />+ <Card>+ <CardHeader>+ <CardTitle>+ <Skeleton className="h-4 w-32" />+ </CardTitle>+ </CardHeader>+ <CardContent className="flex flex-col">+ {[0, 1].map((i) => (+ <div+ key={i}+ className="flex items-center gap-4 border-t border-border py-4 first:border-t-0"+ >+ <Skeleton className="size-[38px] rounded-lg" />+ <div className="flex flex-1 flex-col gap-2">+ <Skeleton className="h-3.5 w-2/5" />+ <Skeleton className="h-2.5 w-1/4" /></div>- <Skeleton w={80} h={14} />+ <Skeleton className="h-3.5 w-20" /></div>- </div>- ))}+ ))}+ </CardContent></Card></div>);@@ -149,14 +177,16 @@ type ErrorPanelProps = {const ErrorPanel = ({ onRetry }: ErrorPanelProps) => (<Card>- <div className="err-panel">- <IconAlertCircle className="e-ico" size={30} />- <div className="e-title">Couldn't load your subscription</div>- <div className="e-text">+ <div className="flex flex-col items-center gap-3 px-7 py-10 text-center">+ <FontAwesomeIcon icon={faCircleExclamation} className="text-3xl text-danger" />+ <div className="text-base font-semibold text-foreground">+ Couldn't load your subscription+ </div>+ <div className="max-w-[40ch] text-sm text-mineshaft-300">There was a problem reaching the billing service. Your products are unaffected.</div><Button variant="outline" size="sm" onClick={onRetry}>- <IconRefresh size={14} />+ <FontAwesomeIcon icon={faRotate} />Try again</Button></div>@@ -166,23 +196,22 @@ const ErrorPanel = ({ onRetry }: ErrorPanelProps) => (type GetStartedProps = {onGetStarted: () => void;canManage: boolean;- loading?: boolean;};-const GetStarted = ({ onGetStarted, canManage, loading }: GetStartedProps) => (+const GetStarted = ({ onGetStarted, canManage }: GetStartedProps) => (<Card>- <div className="getstarted">- <div className="gs-ico">- <IconShoppingBag size={26} />+ <div className="flex flex-col items-center gap-4 px-7 py-12 text-center">+ <div className="flex size-[54px] items-center justify-center rounded-xl border border-org/25 bg-org/10 text-2xl text-org">+ <FontAwesomeIcon icon={faBagShopping} /></div>- <div className="gs-title">Start your subscription</div>- <div className="gs-text">+ <div className="text-lg font-semibold text-foreground">Start your subscription</div>+ <div className="max-w-[42ch] text-sm text-mineshaft-300">Pick the products your team needs and check out securely. You can change or cancel any time.</div>{canManage && (- <Button variant="org" size="lg" onClick={onGetStarted} loading={loading}>+ <Button variant="org" size="lg" onClick={onGetStarted}>Get started- <IconArrowRight size={15} />+ <FontAwesomeIcon icon={faArrowRight} /></Button>)}</div>@@ -193,56 +222,53 @@ type SummaryCardProps = {overview: BillingV2Overview;};-type StatusBadgeStatus = "trialing" | "past-due" | "suspended" | "active";--const summaryStatus = (subState: BillingV2RenderState): StatusBadgeStatus => {+const StatusBadge = ({ subState }: { subState: BillingV2RenderState }) => {if (subState === "trialing") {- return "trialing";+ return <Badge variant="info">Trial</Badge>;}if (subState === "past-due") {- return "past-due";+ return <Badge variant="warning">Past due</Badge>;}if (subState === "suspended") {- return "suspended";+ return <Badge variant="danger">Suspended</Badge>;}- return "active";+ return <ActiveBadge />;};const recurringLabel = (overview: BillingV2Overview): string => {- if (overview.subState === "no-subscription") {- return "No subscription";- }- if (overview.recurringAmount === null || overview.recurringAmount === 0) {+ if (!overview.recurringAmount) {return "Free";}return `${fmtMoney(overview.recurringAmount)} / ${intervalWord(overview.interval)}`;};const SummaryCard = ({ overview }: SummaryCardProps) => (- <Card noPad>- <div className="summary">- <div className="summary-top">- <div className="summary-metric">- <span className="lbl">Status</span>- <span className="val" style={{ display: "flex", alignItems: "center", gap: 9 }}>- <StatusBadge status={summaryStatus(overview.subState)} />- </span>- <span className="sub">{overview.planName}</span>- </div>- <div className="summary-metric">- <span className="lbl">Next billing date</span>- <span className="val" style={{ display: "flex", alignItems: "center", gap: 9 }}>- <IconCalendar size={19} stroke={1.75} style={{ color: "#30b3ff" }} />- {overview.nextBillingDate || "—"}- </span>- <span className="sub">All products renew together</span>- </div>- <div className="summary-metric">- <span className="lbl">Recurring total</span>- <div className="cost-block">- <span className="cost-mtd">{recurringLabel(overview)}</span>- </div>- </div>+ <Card className="overflow-hidden p-0">+ <div className="flex flex-wrap items-stretch">+ <div className="flex min-w-[180px] flex-1 flex-col gap-2 border-r border-border p-6">+ <span className="text-xs font-medium tracking-wide text-mineshaft-400 uppercase">+ Status+ </span>+ <span className="flex items-center text-2xl font-semibold text-foreground">+ <StatusBadge subState={overview.subState} />+ </span>+ <span className="text-xs text-mineshaft-400">{overview.planName}</span>+ </div>+ <div className="flex min-w-[180px] flex-1 flex-col gap-2 border-r border-border p-6">+ <span className="text-xs font-medium tracking-wide text-mineshaft-400 uppercase">+ Next billing date+ </span>+ <span className="flex items-center gap-2 text-2xl font-semibold text-foreground">+ <FontAwesomeIcon icon={faCalendar} className="text-lg text-org" />+ {overview.nextBillingDate || "—"}+ </span>+ <span className="text-xs text-mineshaft-400">All products renew together</span>+ </div>+ <div className="flex min-w-[180px] flex-1 flex-col gap-2 p-6">+ <span className="text-xs font-medium tracking-wide text-mineshaft-400 uppercase">+ Recurring total+ </span>+ <span className="text-2xl font-semibold text-foreground">{recurringLabel(overview)}</span></div></div></Card>@@ -253,8 +279,11 @@ type UsageCardProps = {};const UsageCard = ({ overview }: UsageCardProps) => (- <Card title="Usage">- <div className="prod-usage" style={{ marginTop: 0 }}>+ <Card>+ <CardHeader>+ <CardTitle>Usage</CardTitle>+ </CardHeader>+ <CardContent className="flex flex-col gap-2.5"><LimitMeterlabel="Members"used={overview.usage.members}@@ -265,7 +294,7 @@ const UsageCard = ({ overview }: UsageCardProps) => (used={overview.usage.identities}limit={overview.usage.identityLimit}/>- </div>+ </CardContent></Card>);@@ -277,13 +306,6 @@ type ProductRowProps = {onContact: (prod: BillingV2CatalogProduct) => void;};-const entitlementLabel = (entitlement?: BillingV2Entitlement): string => {- if (entitlement?.entitled) {- return "Active";- }- return "Not in your plan";-};-const ProductRow = ({ prod, entitlement, readOnly, onManage, onContact }: ProductRowProps) => {const entitled = Boolean(entitlement?.entitled);let limitNote: string | null = null;@@ -318,32 +340,23 @@ const ProductRow = ({ prod, entitlement, readOnly, onManage, onContact }: Produc}return (- <div className="prod-item">- <div className="prod-row">- <ProductIcon product={prod} />- <div className="prod-main">- <div className="prod-name-row">- <span className="prod-name">{prod.name}</span>- {prod.addon && <span className="prod-plan-chip">Add-on</span>}- {entitled ? (- <span className="badge badge-success" style={{ gap: 5 }}>- <span className="dot" />- {entitlementLabel(entitlement)}- </span>- ) : (- <span className="badge badge-neutral">Not in your plan</span>- )}- </div>- <div className="prod-meta">{prod.tagline || prod.desc}</div>+ <div className="flex items-center gap-4 border-t border-border py-4 first:border-t-0">+ <ProductIcon product={prod} />+ <div className="flex min-w-0 flex-1 flex-col gap-1">+ <div className="flex flex-wrap items-center gap-2">+ <span className="text-sm font-semibold text-foreground">{prod.name}</span>+ {prod.addon && <Badge variant="neutral">Add-on</Badge>}+ {entitled ? <ActiveBadge /> : <Badge variant="neutral">Not in your plan</Badge>}</div>- {limitNote && (- <div className="prod-price">- <span className="amt">{limitNote}</span>- <div className="breakdown">in use</div>- </div>- )}- {action && <div className="prod-actions">{action}</div>}+ <div className="text-xs text-mineshaft-400">{prod.tagline || prod.desc}</div></div>+ {limitNote && (+ <div className="flex shrink-0 flex-col items-end gap-0.5">+ <span className="text-sm font-semibold text-foreground">{limitNote}</span>+ <span className="text-xs text-mineshaft-400">in use</span>+ </div>+ )}+ {action && <div className="flex shrink-0 items-center gap-1.5">{action}</div>}</div>);};@@ -357,23 +370,29 @@ type ProductsCardProps = {};const ProductsCard = ({ overview, catalog, readOnly, onManage, onContact }: ProductsCardProps) => (- <Card title="Products" desc="Everything you can run on your subscription." noPad>- {catalog.length === 0 ? (- <div className="empty-row">No products are available yet.</div>- ) : (- <div className="prod-list" style={{ padding: "4px 20px 16px" }}>- {catalog.map((prod) => (- <ProductRow- key={prod.id}- prod={prod}- entitlement={overview.entitlements[prod.id]}- readOnly={readOnly}- onManage={onManage}- onContact={onContact}- />- ))}- </div>- )}+ <Card>+ <CardHeader>+ <CardTitle>Products</CardTitle>+ <CardDescription>Everything you can run on your subscription.</CardDescription>+ </CardHeader>+ <CardContent>+ {catalog.length === 0 ? (+ <CardEmpty>No products are available yet.</CardEmpty>+ ) : (+ <div className="flex flex-col">+ {catalog.map((prod) => (+ <ProductRow+ key={prod.id}+ prod={prod}+ entitlement={overview.entitlements[prod.id]}+ readOnly={readOnly}+ onManage={onManage}+ onContact={onContact}+ />+ ))}+ </div>+ )}+ </CardContent></Card>);@@ -384,34 +403,37 @@ type PaymentCardProps = {};const PaymentCard = ({ overview, canManage, onUpdate }: PaymentCardProps) => (- <Card- title="Payment method"- action={- canManage ? (- <Button variant="outline" size="sm" onClick={onUpdate}>- Update- </Button>- ) : undefined- }- >- {overview.payment ? (- <div className="info-row">- <div className="info-pair">- <div className="card-brand">{overview.payment.brand.toUpperCase()}</div>- <div className="info-text">- <div className="t1">+ <Card>+ <CardHeader>+ <CardTitle>Payment method</CardTitle>+ {canManage && (+ <CardAction>+ <Button variant="outline" size="sm" onClick={onUpdate}>+ Update+ </Button>+ </CardAction>+ )}+ </CardHeader>+ <CardContent>+ {overview.payment ? (+ <div className="flex items-center gap-3.5">+ <div className="flex h-[30px] w-[46px] shrink-0 items-center justify-center rounded-sm border border-border bg-mineshaft-700 text-[10px] font-bold tracking-wide text-foreground">+ {overview.payment.brand.toUpperCase()}+ </div>+ <div>+ <div className="text-sm font-medium text-foreground">{overview.payment.brand.toUpperCase()} ending in {overview.payment.last4}</div>- <div className="t2">+ <div className="mt-0.5 text-xs text-mineshaft-400">Expires {String(overview.payment.expMonth).padStart(2, "0")} /{" "}{String(overview.payment.expYear).slice(-2)}</div></div></div>- </div>- ) : (- <div className="empty-row">No payment method on file yet.</div>- )}+ ) : (+ <CardEmpty>No payment method on file yet.</CardEmpty>+ )}+ </CardContent></Card>);@@ -422,30 +444,37 @@ type DetailsCardProps = {};const DetailsCard = ({ overview, canManage, onEdit }: DetailsCardProps) => (- <Card- title="Billing details"- action={- canManage ? (- <Button variant="outline" size="sm" onClick={onEdit}>- Edit- </Button>- ) : undefined- }- >- {overview.billingDetails ? (- <div className="detail-grid">- <div className="detail-cell">- <div className="dk">Billing name</div>- <div className="dv">{overview.billingDetails.name || "—"}</div>- </div>- <div className="detail-cell">- <div className="dk">Billing email</div>- <div className="dv">{overview.billingDetails.email || "—"}</div>+ <Card>+ <CardHeader>+ <CardTitle>Billing details</CardTitle>+ {canManage && (+ <CardAction>+ <Button variant="outline" size="sm" onClick={onEdit}>+ Edit+ </Button>+ </CardAction>+ )}+ </CardHeader>+ <CardContent>+ {overview.billingDetails ? (+ <div className="grid grid-cols-3 gap-4">+ <div>+ <div className="mb-1 text-xs tracking-wide text-mineshaft-400 uppercase">+ Billing name+ </div>+ <div className="text-sm text-foreground">{overview.billingDetails.name || "—"}</div>+ </div>+ <div>+ <div className="mb-1 text-xs tracking-wide text-mineshaft-400 uppercase">+ Billing email+ </div>+ <div className="text-sm text-foreground">{overview.billingDetails.email || "—"}</div>+ </div></div>- </div>- ) : (- <div className="empty-row">No billing details on file yet.</div>- )}+ ) : (+ <CardEmpty>No billing details on file yet.</CardEmpty>+ )}+ </CardContent></Card>);@@ -454,50 +483,60 @@ type InvoicesCardProps = {};const InvoicesCard = ({ invoices }: InvoicesCardProps) => (- <Card title="Invoices">- {invoices.length === 0 ? (- <div className="empty-row">- No invoices yet. Your first invoice appears after your next billing date.- </div>- ) : (- <table className="inv-tbl">- <thead>- <tr>- <th>Date</th>- <th>Amount</th>- <th>Status</th>- <th className="right">Invoice</th>- </tr>- </thead>- <tbody>- {invoices.map((inv) => (- <tr key={inv.id}>- <td>{inv.date}</td>- <td className="mono">{fmtMoney(inv.amount)}</td>- <td>- {inv.paid ? (- <span className="badge badge-success">Paid</span>- ) : (- <span className="badge badge-danger">Unpaid</span>- )}- </td>- <td className="right">- {inv.pdfUrl ? (- <a className="inv-dl" href={inv.pdfUrl} target="_blank" rel="noopener noreferrer">- <IconExternal size={13} />- </a>- ) : (- <span className="dv" style={{ color: "#707174" }}>- —- </span>- )}- </td>- </tr>- ))}- </tbody>- </table>- )}+ <Card>+ <CardHeader>+ <CardTitle>Invoices</CardTitle>+ </CardHeader>+ <CardContent>+ {invoices.length === 0 ? (+ <CardEmpty>+ No invoices yet. Your first invoice appears after your next billing date.+ </CardEmpty>+ ) : (+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead>Date</TableHead>+ <TableHead>Amount</TableHead>+ <TableHead>Status</TableHead>+ <TableHead className="text-right">Invoice</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {invoices.map((inv) => (+ <TableRow key={inv.id}>+ <TableCell>{inv.date}</TableCell>+ <TableCell className="text-mineshaft-300 tabular-nums">+ {fmtMoney(inv.amount, 2)}+ </TableCell>+ <TableCell>+ {inv.paid ? (+ <Badge variant="success">Paid</Badge>+ ) : (+ <Badge variant="danger">Unpaid</Badge>+ )}+ </TableCell>+ <TableCell className="text-right">+ {inv.pdfUrl ? (+ <a+ className="inline-flex items-center gap-1.5 text-xs text-org hover:underline"+ href={inv.pdfUrl}+ target="_blank"+ rel="noopener noreferrer"+ >+ <FontAwesomeIcon icon={faUpRightFromSquare} />+ </a>+ ) : (+ <span className="text-mineshaft-400">—</span>+ )}+ </TableCell>+ </TableRow>+ ))}+ </TableBody>+ </Table>+ )}+ </CardContent></Card>);@@ -513,7 +552,6 @@ export type OverviewProps = {onGetStarted: () => void;onRetry: () => void;canManageBilling: boolean;- getStartedLoading?: boolean;};export const Overview = ({@@ -527,8 +565,7 @@ export const Overview = ({onContact,onGetStarted,onRetry,- canManageBilling,- getStartedLoading+ canManageBilling}: OverviewProps) => {if (subState === "loading") {return <OverviewSkeleton />;@@ -536,7 +573,7 @@ export const Overview = ({if (subState === "error" || !overview) {return (- <div className="stack">+ <div className="flex flex-col gap-4"><ErrorPanel onRetry={onRetry} /></div>);@@ -549,7 +586,7 @@ export const Overview = ({if (subState === "no-subscription") {return (- <div className="stack">+ <div className="flex flex-col gap-4"><Bannermode={mode}subState={subState}@@ -557,19 +594,17 @@ export const Overview = ({onUpdatePayment={onUpdatePayment}onManageSubscription={onManageSubscription}/>- <GetStarted- onGetStarted={onGetStarted}- canManage={canManageBilling}- loading={getStartedLoading}- />+ <GetStarted onGetStarted={onGetStarted} canManage={canManageBilling} /><UsageCard overview={overview} />- <ProductsCard- overview={overview}- catalog={catalog}- readOnly={productsReadOnly}- onManage={onUpgrade}- onContact={onContact}- />+ <div id="billing-v2-products">+ <ProductsCard+ overview={overview}+ catalog={catalog}+ readOnly={productsReadOnly}+ onManage={onUpgrade}+ onContact={onContact}+ />+ </div></div>);}@@ -577,7 +612,7 @@ export const Overview = ({const showPayment = overview.isCloud && !isManaged;return (- <div className="stack">+ <div className="flex flex-col gap-4"><Bannermode={mode}subState={subState}diff --git a/frontend/src/pages/organization/BillingV2Page/components/ProductSheet.tsx b/frontend/src/pages/organization/BillingV2Page/components/ProductSheet.tsxindex 8921f16300..51142d7afb 100644--- a/frontend/src/pages/organization/BillingV2Page/components/ProductSheet.tsx+++ b/frontend/src/pages/organization/BillingV2Page/components/ProductSheet.tsx@@ -1,9 +1,26 @@+import { faArrowRight, faCheck, faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";++import {+ Badge,+ Button,+ Sheet,+ SheetContent,+ SheetDescription,+ SheetFooter,+ SheetHeader,+ SheetTitle,+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow+} from "@app/components/v3";import { BillingV2Cadence, BillingV2CatalogProduct, BillingV2Entitlement } from "@app/hooks/api";-import { cadenceWord, fmtMoney, fmtMoney2, unitPrice } from "../billing-v2-data";-import { IconArrowRight, IconCheck, IconExternal, IconPlus, IconX } from "../icons";-import { Button } from "./primitives";-import { ProductIcon } from "./shared";+import { cadenceWord, fmtMoney, unitPrice } from "../billing-v2-data";+import { ActiveBadge, ProductIcon } from "./shared";type ProPriceParts = { amt: string; unit: string } | null;@@ -24,19 +41,15 @@ const proPriceParts = (prod: BillingV2CatalogProduct, cad: BillingV2Cadence): Prif (cad === "annual") {suffix = "yr";}- return { amt: fmtMoney2(unitPrice(d, cad)), unit: `/ ${d.noun} / ${suffix}` };+ return { amt: fmtMoney(unitPrice(d, cad), 2), unit: `/ ${d.noun} / ${suffix}` };};-export const CmpCell = (v: string | boolean) => {+const CmpCell = (v: string | boolean) => {if (v === true) {- return (- <span className="cmp-check">- <IconCheck size={15} stroke={2.5} />- </span>- );+ return <FontAwesomeIcon icon={faCheck} className="text-success" />;}if (v === false) {- return <span className="cmp-dash">—</span>;+ return <span className="text-mineshaft-500">—</span>;}return v;};@@ -56,21 +69,12 @@ const EntitlementSummary = ({ entitlement }: EntitlementSummaryProps) => {}}return (- <div className="sheet-usage">- <div className="su-top">- <span className="su-lbl">Your plan</span>- {entitled ? (- <span className="badge badge-success" style={{ gap: 5 }}>- <span className="dot" />- Active- </span>- ) : (- <span className="badge badge-neutral">Not in your plan</span>- )}- </div>- <div className="tier-desc" style={{ flex: "none" }}>- {detail}+ <div className="rounded-lg border border-border bg-card p-4">+ <div className="mb-3 flex items-center justify-between gap-3">+ <span className="text-xs font-medium text-mineshaft-300">Your plan</span>+ {entitled ? <ActiveBadge /> : <Badge variant="neutral">Not in your plan</Badge>}</div>+ <div className="text-xs text-mineshaft-300">{detail}</div></div>);};@@ -90,79 +94,83 @@ const PlansView = ({ prod, entitlement, cadence }: PlansViewProps) => {<><EntitlementSummary entitlement={entitlement} />- <div className={`tier-cards ${hasEnt ? "" : "single"}`}>- <div className={`tier-card ${entitled ? "current" : "featured"}`}>- <div className="tier-top">- <span className="tier-name">Pro</span>+ <div className={`grid gap-3.5 ${hasEnt ? "sm:grid-cols-2" : "grid-cols-1"}`}>+ <div+ className={`flex flex-col gap-3.5 rounded-xl border p-[18px] ${+ entitled ? "border-mineshaft-500 bg-mineshaft-700/40" : "border-org/40 bg-org/5"+ }`}+ >+ <div className="flex items-center justify-between gap-2">+ <span className="text-[15px] font-semibold text-foreground">Pro</span>{entitled ? (- <span className="badge badge-outline" style={{ gap: 5 }}>- <IconCheck size={11} stroke={2.5} style={{ color: "#2ecc71" }} />+ <Badge variant="outline">+ <FontAwesomeIcon icon={faCheck} className="text-success" />Current plan- </span>+ </Badge>) : (- <span className="badge badge-org">Self-serve</span>+ <Badge variant="org">Self-serve</Badge>)}</div>{pp ? (- <div className="tier-price">- <span className="tp-amt">{pp.amt}</span>- <span className="tp-unit">{pp.unit}</span>+ <div className="flex flex-wrap items-baseline gap-1.5">+ <span className="text-2xl font-semibold text-foreground">{pp.amt}</span>+ <span className="text-xs text-mineshaft-400">{pp.unit}</span></div>) : null}- {prod.pro?.proFeature ? <div className="tier-desc">{prod.pro.proFeature}</div> : null}+ {prod.pro?.proFeature ? (+ <div className="text-xs text-mineshaft-300">{prod.pro.proFeature}</div>+ ) : null}</div>{hasEnt && prod.enterprise ? (- <div className="tier-card">- <div className="tier-top">- <span className="tier-name">Enterprise</span>- <span className="badge badge-info">Sales-led</span>+ <div className="flex flex-col gap-3.5 rounded-xl border border-border bg-card p-[18px]">+ <div className="flex items-center justify-between gap-2">+ <span className="text-[15px] font-semibold text-foreground">Enterprise</span>+ <Badge variant="info">Sales-led</Badge></div>- <div className="tier-price">- <span className="tp-amt">Custom</span>+ <div className="flex items-baseline">+ <span className="text-2xl font-semibold text-foreground">Custom</span></div>- <div className="tier-desc">{prod.enterprise.feature}</div>+ <div className="text-xs text-mineshaft-300">{prod.enterprise.feature}</div></div>) : null}</div>{hasEnt && prod.compare ? (<div>- <div className="cmp-h">Compare plans</div>- <div className="cmp-wrap">- <table className="cmp-table">- <thead>- <tr>- <th aria-label="Feature" />- <th className="col">- <span className="ch-name org">Pro</span>- </th>- <th className="col ent">- <span className="ch-name ent">Enterprise</span>- </th>- </tr>- </thead>- <tbody>- {prod.compare.map((row) => (- <tr key={row.label}>- <td className="feat">{row.label}</td>- <td className="col">{CmpCell(row.pro)}</td>- <td className="col ent">{CmpCell(row.ent)}</td>- </tr>- ))}- </tbody>- </table>+ <div className="mb-3 text-xs font-semibold tracking-wide text-mineshaft-400 uppercase">+ Compare plans</div>+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead aria-label="Feature" />+ <TableHead className="text-center text-org">Pro</TableHead>+ <TableHead className="text-center text-info">Enterprise</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {prod.compare.map((row) => (+ <TableRow key={row.label}>+ <TableCell className="text-mineshaft-200">{row.label}</TableCell>+ <TableCell className="text-center">{CmpCell(row.pro)}</TableCell>+ <TableCell className="text-center">{CmpCell(row.ent)}</TableCell>+ </TableRow>+ ))}+ </TableBody>+ </Table></div>) : null}{!(hasEnt && prod.compare) && prod.includes ? (<div>- <div className="cmp-h">What's included</div>- <div className="incl-list">+ <div className="mb-3 text-xs font-semibold tracking-wide text-mineshaft-400 uppercase">+ What's included+ </div>+ <div className="grid gap-x-5 gap-y-2.5 sm:grid-cols-2">{prod.includes.map((f) => (- <div className="incl-item" key={f}>- <IconCheck className="ci-ico" size={14} stroke={2.25} />+ <div className="flex items-start gap-2 text-xs text-mineshaft-200" key={f}>+ <FontAwesomeIcon icon={faCheck} className="mt-0.5 shrink-0 text-success" />{f}</div>))}@@ -178,6 +186,7 @@ type ProductSheetProps = {prod?: BillingV2CatalogProduct;entitlement?: BillingV2Entitlement;cadence: BillingV2Cadence;+ manageMode: "checkout" | "portal";redirecting?: boolean;onClose: () => void;onManage: (prodId: string) => void;@@ -189,6 +198,7 @@ export const ProductSheet = ({prod,entitlement,cadence,+ manageMode,redirecting,onClose,onManage,@@ -202,91 +212,74 @@ export const ProductSheet = ({const selfServe = Boolean(prod.pro?.planKey);let primaryCta = null;- if (entitled) {+ if (entitled || (selfServe && manageMode === "portal")) {primaryCta = (- <Button variant="org" onClick={() => onManage(prodId)} loading={redirecting}>+ <Button variant="org" onClick={() => onManage(prodId)} isPending={redirecting}>Manage in Stripe- <IconExternal size={14} />+ <FontAwesomeIcon icon={faUpRightFromSquare} /></Button>);} else if (selfServe) {primaryCta = (- <Button variant="org" onClick={() => onManage(prodId)} loading={redirecting}>- <IconPlus size={14} />- Activate in Stripe+ <Button variant="org" onClick={() => onManage(prodId)} isPending={redirecting}>+ Continue to Checkout</Button>);} else if (prod.enterprise) {primaryCta = (<Button variant="info" onClick={() => onContact(prod)}>Contact sales- <IconArrowRight size={14} />- </Button>- );- }-- // A product with both a self-serve tier and an Enterprise tier keeps a sales path alongside checkout.- let secondaryCta = null;- if (!entitled && selfServe && prod.enterprise) {- secondaryCta = (- <Button variant="info" onClick={() => onContact(prod)} disabled={redirecting}>- Contact sales- <IconArrowRight size={14} />+ <FontAwesomeIcon icon={faArrowRight} /></Button>);}return (- // eslint-disable-next-line jsx-a11y/no-static-element-interactions- <div- className="sheet-backdrop"- onMouseDown={(e) => {- if (e.target === e.currentTarget && !redirecting) {+ <Sheet+ open+ onOpenChange={(open) => {+ if (!open && !redirecting) {onClose();}}}>- <div className="sheet" role="dialog" aria-modal="true">- <div className="sheet-head">+ <SheetContent+ side="right"+ className={`w-full p-0 sm:max-w-3xl ${redirecting ? "[&>button]:hidden" : ""}`}+ onEscapeKeyDown={(e) => {+ if (redirecting) {+ e.preventDefault();+ }+ }}+ onPointerDownOutside={(e) => {+ if (redirecting) {+ e.preventDefault();+ }+ }}+ >+ <SheetHeader className="flex-row items-start gap-3.5 border-b pr-12"><ProductIcon product={prod} size={40} />- <div className="sh-titles">- <div className="sheet-title">+ <div className="min-w-0 flex-1">+ <SheetTitle className="flex flex-wrap items-center gap-2 text-base">{prod.name}- {entitled ? (- <span className="badge badge-success" style={{ gap: 5 }}>- <span className="dot" />- Active- </span>- ) : null}- {prod.addon ? <span className="badge badge-neutral">Add-on</span> : null}- </div>- <div className="sheet-sub">{prod.tagline || prod.desc}</div>+ {entitled ? <ActiveBadge /> : null}+ {prod.addon ? <Badge variant="neutral">Add-on</Badge> : null}+ </SheetTitle>+ <SheetDescription className="mt-1">{prod.tagline || prod.desc}</SheetDescription></div>- {!redirecting ? (- <button- type="button"- className="icon-btn"- onClick={onClose}- aria-label="Close"- style={{ marginTop: -2, marginRight: -6 }}- >- <IconX size={17} />- </button>- ) : null}- </div>+ </SheetHeader>- <div className="sheet-body">+ <div className="flex flex-1 flex-col gap-6 overflow-y-auto p-5"><PlansView prod={prod} entitlement={entitlement} cadence={cadence} /></div>- <div className="sheet-foot">- <Button variant="outline" onClick={onClose} disabled={redirecting}>+ <SheetFooter className="flex-row justify-end border-t">+ <Button variant="outline" onClick={onClose} isDisabled={redirecting}>Close</Button>- {secondaryCta}{primaryCta}- </div>- </div>- </div>+ </SheetFooter>+ </SheetContent>+ </Sheet>);};diff --git a/frontend/src/pages/organization/BillingV2Page/components/primitives.tsx b/frontend/src/pages/organization/BillingV2Page/components/primitives.tsxdeleted file mode 100644index 0aa8c4e2e1..0000000000--- a/frontend/src/pages/organization/BillingV2Page/components/primitives.tsx+++ /dev/null@@ -1,217 +0,0 @@-import {- ButtonHTMLAttributes,- CSSProperties,- InputHTMLAttributes,- MouseEvent,- ReactNode-} from "react";--import { IconExternal, IconX } from "../icons";--export type ButtonVariant =- | "outline"- | "ghost"- | "neutral"- | "org"- | "success"- | "info"- | "warning"- | "danger";-export type ButtonSize = "xs" | "sm" | "md" | "lg";--type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {- variant?: ButtonVariant;- size?: ButtonSize;- full?: boolean;- loading?: boolean;-};--export const Button = ({- variant = "outline",- size = "md",- children,- full,- loading,- disabled,- ...rest-}: ButtonProps) => (- <button- type="button"- className={`btn btn-${variant} ${size} ${full ? "full" : ""}`}- disabled={loading || disabled}- {...rest}- >- {loading && <span className="spin" style={{ width: 13, height: 13 }} />}- {children}- </button>-);--type IconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {- title?: string;-};--export const IconButton = ({ children, title, ...rest }: IconButtonProps) => (- <button type="button" className="icon-btn" title={title} {...rest}>- {children}- </button>-);--export type BadgeVariant =- | "neutral"- | "success"- | "info"- | "warning"- | "danger"- | "org"- | "outline";--type BadgeProps = {- variant?: BadgeVariant;- dot?: boolean;- children?: ReactNode;-};--export const Badge = ({ variant = "neutral", dot, children }: BadgeProps) => (- <span className={`badge badge-${variant}`}>- {dot && <span className="dot" />}- {children}- </span>-);--type InputProps = InputHTMLAttributes<HTMLInputElement>;--export const Input = (p: InputProps) => <input className="input" {...p} />;--type FieldProps = {- label?: ReactNode;- desc?: ReactNode;- children?: ReactNode;-};--export const Field = ({ label, desc, children }: FieldProps) => (- <div>- {label && (- // eslint-disable-next-line jsx-a11y/label-has-associated-control- <label className="field-label">{label}</label>- )}- {children}- {desc && <div className="field-desc">{desc}</div>}- </div>-);--type CardProps = {- title?: ReactNode;- desc?: ReactNode;- action?: ReactNode;- docs?: boolean;- noPad?: boolean;- children?: ReactNode;- style?: CSSProperties;-};--export const Card = ({ title, desc, action, docs, noPad, children, style }: CardProps) => {- let headerStyle: CSSProperties | undefined;- if (noPad) {- headerStyle = { padding: "18px 20px 0" };- }- return (- <div className={`card ${noPad ? "no-pad" : ""}`} style={style}>- {(title || action) && (- <div className="card-header" style={headerStyle}>- <div>- <div className="card-title">- {title}- {docs && (- <a className="badge badge-info" style={{ cursor: "pointer" }}>- Documentation <IconExternal size={11} stroke={2.25} />- </a>- )}- </div>- {desc && <div className="card-desc">{desc}</div>}- </div>- {action && (- <div style={{ display: "flex", gap: 8, alignItems: "center", flexShrink: 0 }}>- {action}- </div>- )}- </div>- )}- {children}- </div>- );-};--type SkeletonProps = {- w?: number | string;- h?: number | string;- r?: number | string;- style?: CSSProperties;-};--export const Skeleton = ({ w = "100%", h = 14, r, style }: SkeletonProps) => (- <div className="sk" style={{ width: w, height: h, borderRadius: r, ...style }} />-);--type ModalProps = {- title?: ReactNode;- desc?: ReactNode;- onClose?: () => void;- wide?: boolean;- children?: ReactNode;- footer?: ReactNode;- closable?: boolean;-};--// Modal — centered dialog. onClose fires on backdrop click + close button.-export const Modal = ({- title,- desc,- onClose,- wide,- children,- footer,- closable = true-}: ModalProps) => {- const onBackdropMouseDown = (e: MouseEvent<HTMLDivElement>) => {- if (e.target === e.currentTarget && closable) {- onClose?.();- }- };- return (- // eslint-disable-next-line jsx-a11y/no-static-element-interactions- <div className="modal-backdrop" onMouseDown={onBackdropMouseDown}>- <div className={`modal ${wide ? "wide" : ""}`} role="dialog" aria-modal="true">- {(title || closable) && (- <div className="modal-head">- <div>- {title && <div className="m-title">{title}</div>}- {desc && <div className="m-desc">{desc}</div>}- </div>- {closable && (- <button- type="button"- className="icon-btn"- onClick={onClose}- aria-label="Close"- style={{ marginTop: -2, marginRight: -6 }}- >- <IconX size={16} />- </button>- )}- </div>- )}- <div className="modal-body">{children}</div>- {footer && <div className="modal-foot">{footer}</div>}- </div>- </div>- );-};--type SpinnerProps = {- lg?: boolean;- org?: boolean;-};--export const Spinner = ({ lg, org }: SpinnerProps) => (- <span className={`spin ${lg ? "lg" : ""} ${org ? "org" : ""}`} />-);diff --git a/frontend/src/pages/organization/BillingV2Page/components/shared.tsx b/frontend/src/pages/organization/BillingV2Page/components/shared.tsxindex 2f39bdec5d..81738cc1d8 100644--- a/frontend/src/pages/organization/BillingV2Page/components/shared.tsx+++ b/frontend/src/pages/organization/BillingV2Page/components/shared.tsx@@ -1,28 +1,27 @@-import { BillingV2CatalogProduct } from "@app/hooks/api";-import {- IconBox,- IconKey,- IconLock,- IconProps,- IconScan,- IconShieldCheck,- IconZap-} from "../icons";+ faBolt,+ faBox,+ faKey,+ faLock,+ faMagnifyingGlass,+ faShieldHalved,+ IconDefinition+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-type IconComponent = (props: IconProps) => JSX.Element;+import { Badge } from "@app/components/v3";+import { BillingV2CatalogProduct } from "@app/hooks/api";-const ICON_BY_NAME: Record<string, IconComponent> = {- IconKey,- IconShieldCheck,- IconLock,- IconScan,- IconZap,- IconBox+// Maps the catalog icon name (license-server presentation metadata) to a FontAwesome glyph.+const ICON_BY_NAME: Record<string, IconDefinition> = {+ IconKey: faKey,+ IconShieldCheck: faShieldHalved,+ IconLock: faLock,+ IconScan: faMagnifyingGlass,+ IconZap: faBolt,+ IconBox: faBox};-type StatusType = "trialing" | "past-due" | "suspended" | "active";-type MeterTone = "ok" | "near" | "full";type ProductIconProps = {@@ -30,50 +29,35 @@ type ProductIconProps = {size?: number;};-// Tinted product icon tile (follows the design-system tint pattern).+// Tinted product icon tile. The tint is per-product brand metadata from the API, so it stays inline.export const ProductIcon = ({ product, size = 38 }: ProductIconProps) => {- const Glyph = ICON_BY_NAME[product.icon] || IconBox;- const c = product.color;+ const glyph = ICON_BY_NAME[product.icon] ?? faBox;+ const { color } = product;return (<div- className="prod-ico"+ className="flex shrink-0 items-center justify-center rounded-lg border"style={{width: size,height: size,- background: `color-mix(in srgb, ${c} 14%, transparent)`,- borderColor: `color-mix(in srgb, ${c} 30%, transparent)`,- color: c+ background: `color-mix(in srgb, ${color} 14%, transparent)`,+ borderColor: `color-mix(in srgb, ${color} 30%, transparent)`,+ color}}>- <Glyph size={Math.round(size * 0.5)} stroke={1.75} />+ <FontAwesomeIcon icon={glyph} style={{ fontSize: Math.round(size * 0.45) }} /></div>);};-type StatusBadgeProps = {- status: StatusType;-};--export const StatusBadge = ({ status }: StatusBadgeProps) => {- if (status === "trialing") {- return <span className="badge badge-info">Trial</span>;- }- if (status === "past-due") {- return <span className="badge badge-warning">Past due</span>;- }- if (status === "suspended") {- return <span className="badge badge-danger">Suspended</span>;- }- return (- <span className="badge badge-success" style={{ gap: 5 }}>- <span className="dot" />- Active- </span>- );-};+export const ActiveBadge = () => (+ <Badge variant="success">+ <span className="size-1.5 rounded-full bg-current" />+ Active+ </Badge>+);-// Usage level to meter color. A null limit is unlimited (no bar, no alarm).-export const meterTone = (used: number, limit: number | null): MeterTone => {+// A null limit is unlimited (no bar, no alarm).+const meterTone = (used: number, limit: number | null): MeterTone => {if (!limit || limit <= 2) {return "ok";}@@ -87,13 +71,24 @@ export const meterTone = (used: number, limit: number | null): MeterTone => {return "ok";};+const FILL_TONE: Record<MeterTone, string> = {+ ok: "bg-org",+ near: "bg-warning",+ full: "bg-danger"+};++const COUNT_TONE: Record<MeterTone, string> = {+ ok: "text-foreground",+ near: "text-warning",+ full: "text-danger"+};+type LimitMeterProps = {label: string;used: number;limit: number | null;};-// A single real usage meter: label, used/limit bar. Null limit renders "Unlimited" with no bar.export const LimitMeter = ({ label, used, limit }: LimitMeterProps) => {const tone = meterTone(used, limit);let pct = 0;@@ -101,21 +96,24 @@ export const LimitMeter = ({ label, used, limit }: LimitMeterProps) => {pct = Math.min(100, Math.round((used / limit) * 100));}return (- <div className="meter">- <div className="meter-top">- <span className="meter-label">{label}</span>- <span className={`meter-count tone-${tone}`}>+ <div className="flex flex-col gap-1.5">+ <div className="flex items-baseline justify-between gap-2.5">+ <span className="text-xs text-mineshaft-300">{label}</span>+ <span className={`text-xs tabular-nums ${COUNT_TONE[tone]}`}>{used.toLocaleString()}{limit === null ? (- <span className="meter-cap"> / Unlimited</span>+ <span className="text-mineshaft-400"> / Unlimited</span>) : (- <span className="meter-cap"> / {limit.toLocaleString()}</span>+ <span className="text-mineshaft-400"> / {limit.toLocaleString()}</span>)}</span></div>{limit !== null && limit > 0 && (- <div className="meter-track">- <div className={`meter-fill tone-${tone}`} style={{ width: `${pct}%` }} />+ <div className="h-1.5 overflow-hidden rounded-full bg-mineshaft-600">+ <div+ className={`h-full rounded-full transition-all ${FILL_TONE[tone]}`}+ style={{ width: `${pct}%` }}+ /></div>)}</div>diff --git a/frontend/src/pages/organization/BillingV2Page/icons.tsx b/frontend/src/pages/organization/BillingV2Page/icons.tsxdeleted file mode 100644index 4447103f2f..0000000000--- a/frontend/src/pages/organization/BillingV2Page/icons.tsx+++ /dev/null@@ -1,531 +0,0 @@-import { CSSProperties, ReactNode } from "react";--export type IconProps = {- size?: number;- stroke?: number;- fill?: string;- className?: string;- style?: CSSProperties;-};--type IconBaseProps = IconProps & { d: ReactNode };--const Icon = ({- d,- size = 16,- stroke = 1.75,- fill = "none",- className = "ico",- style-}: IconBaseProps) => (- <svg- width={size}- height={size}- viewBox="0 0 24 24"- fill={fill}- stroke="currentColor"- strokeWidth={stroke}- strokeLinecap="round"- strokeLinejoin="round"- className={className}- style={style}- >- {d}- </svg>-);--export const IconKey = (p: IconProps) => (- <Icon- {...p}- d={- <>- <circle cx="7.5" cy="15.5" r="5.5" />- <path d="m21 2-9.6 9.6" />- <path d="m15.5 7.5 3 3L22 7l-3-3" />- </>- }- />-);--export const IconShieldCheck = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />- <path d="m9 12 2 2 4-4" />- </>- }- />-);--export const IconLock = (p: IconProps) => (- <Icon- {...p}- d={- <>- <rect x="3" y="11" width="18" height="11" rx="2" />- <path d="M7 11V7a5 5 0 0 1 10 0v4" />- </>- }- />-);--export const IconScan = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M3 7V5a2 2 0 0 1 2-2h2" />- <path d="M17 3h2a2 2 0 0 1 2 2v2" />- <path d="M21 17v2a2 2 0 0 1-2 2h-2" />- <path d="M7 21H5a2 2 0 0 1-2-2v-2" />- <path d="M7 12h10" />- </>- }- />-);--export const IconZap = (p: IconProps) => (- <Icon {...p} d={<path d="M13 2 3 14h9l-1 8 10-12h-9z" />} />-);--export const IconPlus = (p: IconProps) => <Icon {...p} d={<path d="M12 5v14M5 12h14" />} />;--export const IconCheck = (p: IconProps) => <Icon {...p} d={<path d="M20 6 9 17l-5-5" />} />;--export const IconX = (p: IconProps) => <Icon {...p} d={<path d="M18 6 6 18M6 6l12 12" />} />;--export const IconTrash = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M3 6h18" />- <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" />- <path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />- </>- }- />-);--export const IconExternal = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6" />- <path d="m14 4 6 6" />- <path d="M21 3h-7v7" />- </>- }- />-);--export const IconDownload = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />- <path d="M7 10l5 5 5-5" />- <path d="M12 15V3" />- </>- }- />-);--export const IconAlert = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" />- <line x1="12" y1="9" x2="12" y2="13" />- <line x1="12" y1="17" x2="12.01" y2="17" />- </>- }- />-);--export const IconAlertCircle = (p: IconProps) => (- <Icon- {...p}- d={- <>- <circle cx="12" cy="12" r="10" />- <line x1="12" y1="8" x2="12" y2="12" />- <line x1="12" y1="16" x2="12.01" y2="16" />- </>- }- />-);--export const IconInfo = (p: IconProps) => (- <Icon- {...p}- d={- <>- <circle cx="12" cy="12" r="10" />- <path d="M12 16v-4" />- <path d="M12 8h.01" />- </>- }- />-);--export const IconCalendar = (p: IconProps) => (- <Icon- {...p}- d={- <>- <rect x="3" y="4" width="18" height="18" rx="2" />- <path d="M16 2v4M8 2v4M3 10h18" />- </>- }- />-);--export const IconCreditCard = (p: IconProps) => (- <Icon- {...p}- d={- <>- <rect x="2" y="5" width="20" height="14" rx="2" />- <line x1="2" y1="10" x2="22" y2="10" />- </>- }- />-);--export const IconReceipt = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1-2-1z" />- <path d="M8 7h8M8 11h8M8 15h5" />- </>- }- />-);--export const IconBuilding = (p: IconProps) => (- <Icon- {...p}- d={- <>- <rect x="4" y="2" width="16" height="20" rx="2" />- <path d="M9 22v-4h6v4" />- <path d="M8 6h.01M16 6h.01M8 10h.01M16 10h.01M8 14h.01M16 14h.01" />- </>- }- />-);--export const IconShoppingBag = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z" />- <path d="M3 6h18" />- <path d="M16 10a4 4 0 0 1-8 0" />- </>- }- />-);--export const IconLayers = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="m12 2 9 5-9 5-9-5 9-5z" />- <path d="m3 12 9 5 9-5" />- <path d="m3 17 9 5 9-5" />- </>- }- />-);--export const IconChevronRight = (p: IconProps) => (- <Icon stroke={2} {...p} d={<path d="m9 18 6-6-6-6" />} />-);--export const IconChevronLeft = (p: IconProps) => (- <Icon stroke={2} {...p} d={<path d="m15 18-6-6 6-6" />} />-);--export const IconChevronDown = (p: IconProps) => (- <Icon stroke={2} {...p} d={<path d="m6 9 6 6 6-6" />} />-);--export const IconArrowRight = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M5 12h14" />- <path d="m12 5 7 7-7 7" />- </>- }- />-);--export const IconArrowUp = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M12 19V5" />- <path d="m5 12 7-7 7 7" />- </>- }- />-);--export const IconMinus = (p: IconProps) => <Icon {...p} d={<path d="M5 12h14" />} />;--export const IconRefresh = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" />- <path d="M21 3v5h-5" />- <path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" />- <path d="M3 21v-5h5" />- </>- }- />-);--export const IconLink = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" />- <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" />- </>- }- />-);--export const IconBuilding2 = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" />- <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" />- <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" />- <path d="M10 6h4M10 10h4M10 14h4M10 18h4" />- </>- }- />-);--export const IconChevronsUpDown = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="m7 15 5 5 5-5" />- <path d="m7 9 5-5 5 5" />- </>- }- />-);--export const IconServer = (p: IconProps) => (- <Icon- {...p}- d={- <>- <rect width="20" height="8" x="2" y="2" rx="2" />- <rect width="20" height="8" x="2" y="14" rx="2" />- <line x1="6" x2="6.01" y1="6" y2="6" />- <line x1="6" x2="6.01" y1="18" y2="18" />- </>- }- />-);--export const IconHelp = (p: IconProps) => (- <Icon- {...p}- d={- <>- <circle cx="12" cy="12" r="10" />- <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" />- <path d="M12 17h.01" />- </>- }- />-);--export const IconBell = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M10.27 21a2 2 0 0 0 3.46 0" />- <path d="M13.92 2.31A6 6 0 0 0 6 8c0 4.5-1.41 5.96-2.74 7.33A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.67 9 9 0 0 1-.59-.66" />- <circle cx="18" cy="8" r="3" />- </>- }- />-);--export const IconUser = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />- <circle cx="12" cy="7" r="4" />- </>- }- />-);--export const IconPanelLeft = (p: IconProps) => (- <Icon- stroke={1.5}- {...p}- d={- <>- <rect width="18" height="18" x="3" y="3" rx="2" />- <path d="M9 3v18" />- </>- }- />-);--export const IconSettings = (p: IconProps) => (- <Icon- {...p}- d={- <>- <circle cx="12" cy="12" r="3" />- <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h0a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h0a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v0a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" />- </>- }- />-);--export const IconShield = (p: IconProps) => (- <Icon {...p} d={<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />} />-);--export const IconActivity = (p: IconProps) => (- <Icon {...p} d={<polyline points="22 12 18 12 15 21 9 3 6 12 2 12" />} />-);--export const IconFileText = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />- <path d="M14 2v4a2 2 0 0 0 2 2h4" />- <path d="M16 13H8M16 17H8M10 9H8" />- </>- }- />-);--export const IconBox = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" />- <polyline points="3.27 6.96 12 12.01 20.73 6.96" />- <line x1="12" y1="22.08" x2="12" y2="12" />- </>- }- />-);--export const IconUsers = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />- <circle cx="9" cy="7" r="4" />- <path d="M22 21v-2a4 4 0 0 0-3-3.87" />- <path d="M16 3.13a4 4 0 0 1 0 7.75" />- </>- }- />-);--export const IconPlug = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M12 22v-5" />- <path d="M9 8V2M15 8V2" />- <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" />- </>- }- />-);--export const IconBookCheck = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" />- <path d="m9 9.5 2 2 4-4" />- </>- }- />-);--export const IconWallet = (p: IconProps) => (- <Icon- {...p}- d={- <>- <path d="M19 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0 0 4h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5" />- <path d="M16 12h.01" />- </>- }- />-);--export const IconLifeBuoy = (p: IconProps) => (- <Icon- {...p}- d={- <>- <circle cx="12" cy="12" r="10" />- <circle cx="12" cy="12" r="4" />- <line x1="4.93" y1="4.93" x2="9.17" y2="9.17" />- <line x1="14.83" y1="14.83" x2="19.07" y2="19.07" />- <line x1="14.83" y1="9.17" x2="19.07" y2="4.93" />- <line x1="4.93" y1="19.07" x2="9.17" y2="14.83" />- </>- }- />-);--export const IconPauseCircle = (p: IconProps) => (- <Icon- {...p}- d={- <>- <circle cx="12" cy="12" r="10" />- <line x1="10" y1="15" x2="10" y2="9" />- <line x1="14" y1="15" x2="14" y2="9" />- </>- }- />-);