399 lines
18 KiB
HTML
399 lines
18 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>UI Mock: Self-service subscription builder interim (VA-P24a)</title>
|
|
<style>
|
|
:root { color-scheme: light; --bg: #f6f7f9; --panel: #ffffff; --ink: #1f2937; --muted: #64748b; --line: #d9e0e8; --accent: #2563eb; --ok: #0f766e; }
|
|
* { box-sizing: border-box; }
|
|
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
|
|
.mock-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 720px; }
|
|
.mock-nav { border-right: 1px solid var(--line); background: #eef2f7; padding: 24px 18px; }
|
|
.mock-brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
|
|
.mock-link { display: block; margin-top: 12px; padding: 9px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
|
|
.mock-link[data-active='true'] { background: var(--panel); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
|
|
.mock-main { padding: 32px; }
|
|
.mock-breadcrumbs { display: flex; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
|
|
.mock-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
|
|
.mock-title { margin: 0; font-size: 28px; line-height: 1.2; }
|
|
.mock-description { margin: 8px 0 0; max-width: 620px; color: var(--muted); }
|
|
.mock-status { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 10px 12px; color: var(--ok); font-weight: 700; }
|
|
.mock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
|
|
.mock-card, .mock-state { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 16px; }
|
|
.mock-card-label { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
|
|
.mock-card-value { margin: 0; font-size: 24px; font-weight: 750; }
|
|
.mock-card-trend { margin-top: 10px; color: var(--ok); font-size: 12px; text-transform: uppercase; }
|
|
.mock-activity { margin: 0; padding: 0; list-style: none; }
|
|
.mock-activity li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
|
|
.mock-activity li:first-child { border-top: 0; padding-top: 0; }
|
|
.mock-state pre { margin: 12px 0 0; white-space: pre-wrap; color: #334155; }
|
|
</style>
|
|
</head>
|
|
<body data-ui-mock-route="/:tenant/settings/billing" data-ui-mock-status="ready">
|
|
<div class="mock-shell" data-ui-mock-page="va-p24a-interim">
|
|
<nav class="mock-nav" aria-label="Mock sidebar">
|
|
<div class="mock-brand">HiveGrid mock</div>
|
|
<a class="mock-link" data-active="true" href="/:tenant/settings/billing">Self-service subscription</a>
|
|
</nav>
|
|
<main class="mock-main">
|
|
<div class="mock-breadcrumbs"><span>Settings</span><span>/</span><span>Self-service subscription</span></div>
|
|
<header class="mock-header">
|
|
<div>
|
|
<h1 class="mock-title">Self-service subscription builder interim (VA-P24a)</h1>
|
|
<p class="mock-description">Static fixture for the VA-P24a plan, price and seat builder (AD-28).</p>
|
|
</div>
|
|
<div class="mock-status">Ready</div>
|
|
</header>
|
|
<section class="mock-grid" aria-label="Mock metrics">
|
|
<article class="mock-card">
|
|
<p class="mock-card-label">Public plans</p>
|
|
<p class="mock-card-value">2</p>
|
|
<div class="mock-card-trend">Flat</div>
|
|
</article>
|
|
<article class="mock-card">
|
|
<p class="mock-card-label">Active prices</p>
|
|
<p class="mock-card-value">4</p>
|
|
<div class="mock-card-trend">Flat</div>
|
|
</article>
|
|
<article class="mock-card">
|
|
<p class="mock-card-label">Minimum seats</p>
|
|
<p class="mock-card-value">3</p>
|
|
<div class="mock-card-trend">Flat</div>
|
|
</article>
|
|
</section>
|
|
<section class="mock-card" aria-label="Mock activity">
|
|
<ul class="mock-activity">
|
|
<li><span>Server-filtered catalog</span><span>2 plans / 4 prices</span></li>
|
|
<li><span>Server-calculated preview</span><span>server-calculated</span></li>
|
|
<li><span>Self-service trial</span><span>payment-method-required</span></li>
|
|
</ul>
|
|
</section>
|
|
<section class="mock-state" aria-label="Mock state payload">
|
|
<strong>Serialized state</strong>
|
|
<pre>{
|
|
"activity": 3,
|
|
"cards": 3,
|
|
"status": "Ready"
|
|
}</pre>
|
|
</section>
|
|
<script type="application/json" id="mock-page-state">{
|
|
"data": {
|
|
"activity": [
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.activity.catalog",
|
|
"meta": "2 plans / 4 prices"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.activity.preview",
|
|
"meta": "server-calculated"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.activity.trial",
|
|
"meta": "payment-method-required"
|
|
}
|
|
],
|
|
"cards": [
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.metrics.plans",
|
|
"trend": "flat",
|
|
"value": "2"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.metrics.prices",
|
|
"trend": "flat",
|
|
"value": "4"
|
|
},
|
|
{
|
|
"labelKey": "mock.va-p24a.interim.metrics.minimumSeats",
|
|
"trend": "flat",
|
|
"value": "3"
|
|
}
|
|
],
|
|
"designStatus": "interim",
|
|
"screenRoute": "/:tenant/settings/billing",
|
|
"viewModel": {
|
|
"billingHref": "/:tenant/settings/billing",
|
|
"canManage": true,
|
|
"catalog": {
|
|
"plans": [
|
|
{
|
|
"badge": null,
|
|
"code": "starter",
|
|
"descriptionKey": "billing:selfServiceSubscription.fixture.starter.description",
|
|
"features": [
|
|
{
|
|
"code": "crm",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.crm"
|
|
},
|
|
{
|
|
"code": "projects",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.projects"
|
|
}
|
|
],
|
|
"id": "plan-starter",
|
|
"prices": [
|
|
{
|
|
"billingPeriod": 3,
|
|
"currency": "EUR",
|
|
"id": "price-starter-monthly",
|
|
"trialDays": 14,
|
|
"unitAmountCents": 2900
|
|
},
|
|
{
|
|
"billingPeriod": 4,
|
|
"currency": "EUR",
|
|
"id": "price-starter-yearly",
|
|
"trialDays": 14,
|
|
"unitAmountCents": 29000
|
|
}
|
|
],
|
|
"quantityMode": "flat",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.starter.title"
|
|
},
|
|
{
|
|
"badge": "billing:selfServiceSubscription.fixture.business.badge",
|
|
"code": "business",
|
|
"descriptionKey": "billing:selfServiceSubscription.fixture.business.description",
|
|
"features": [
|
|
{
|
|
"code": "crm",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.crm"
|
|
},
|
|
{
|
|
"code": "projects",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.projects"
|
|
},
|
|
{
|
|
"code": "automation",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.automation"
|
|
}
|
|
],
|
|
"id": "plan-business",
|
|
"prices": [
|
|
{
|
|
"billingPeriod": 3,
|
|
"currency": "EUR",
|
|
"id": "price-business-monthly",
|
|
"trialDays": 30,
|
|
"unitAmountCents": 4900
|
|
},
|
|
{
|
|
"billingPeriod": 4,
|
|
"currency": "EUR",
|
|
"id": "price-business-yearly",
|
|
"trialDays": 30,
|
|
"unitAmountCents": 49000
|
|
}
|
|
],
|
|
"quantityMode": "flat",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.business.title"
|
|
}
|
|
]
|
|
},
|
|
"currentSelection": {
|
|
"planCode": "starter",
|
|
"planId": "plan-starter",
|
|
"priceId": "price-starter-monthly",
|
|
"seatQuantity": 3
|
|
},
|
|
"emailMarketingAddOns": [
|
|
{
|
|
"active": true,
|
|
"amountCents": 5900,
|
|
"code": "email_marketing_s",
|
|
"currency": "EUR",
|
|
"grossAmountCents": 7021,
|
|
"monthlyEmailLimit": 10000,
|
|
"priceId": "price-email-s",
|
|
"productId": "product-email-s",
|
|
"title": "billing:selfServiceSubscription.emailMarketing.fixture.s",
|
|
"vatAmountCents": 1121,
|
|
"vatRateBasisPoints": 1900
|
|
},
|
|
{
|
|
"active": false,
|
|
"amountCents": 14900,
|
|
"code": "email_marketing_m",
|
|
"currency": "EUR",
|
|
"grossAmountCents": 17731,
|
|
"monthlyEmailLimit": 50000,
|
|
"priceId": "price-email-m",
|
|
"productId": "product-email-m",
|
|
"title": "billing:selfServiceSubscription.emailMarketing.fixture.m",
|
|
"vatAmountCents": 2831,
|
|
"vatRateBasisPoints": 1900
|
|
}
|
|
],
|
|
"managementPolicy": {
|
|
"effectiveAtByChangeKind": {
|
|
"billing_period_change": "period_end",
|
|
"configuration_change": "period_end",
|
|
"configuration_decrease": "period_end",
|
|
"configuration_increase": "immediate",
|
|
"downgrade": "period_end",
|
|
"new": "immediate",
|
|
"seat_decrease": "period_end",
|
|
"seat_increase": "immediate",
|
|
"unchanged": "immediate",
|
|
"upgrade": "immediate"
|
|
},
|
|
"planOrder": [
|
|
"starter",
|
|
"business"
|
|
]
|
|
},
|
|
"minimumSeatQuantities": {
|
|
"field": 0,
|
|
"office": 3
|
|
},
|
|
"minimumSeatQuantity": 3,
|
|
"overview": {
|
|
"data": {
|
|
"banner": {
|
|
"data": {
|
|
"descriptionKey": "settings.subscription.banner.active.description",
|
|
"readOnly": false,
|
|
"status": "active",
|
|
"titleKey": "settings.subscription.banner.active.title",
|
|
"tone": "success",
|
|
"trialDaysRemaining": null
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"contactHref": "/:tenant/settings/billing",
|
|
"emptyDescriptionKey": "billing:subscriptionOverview.empty.description",
|
|
"emptyTitleKey": "billing:subscriptionOverview.empty.title",
|
|
"entitlements": [
|
|
{
|
|
"code": "crm",
|
|
"enabled": true,
|
|
"labelKey": "billing:selfServiceSubscription.fixture.feature.crm",
|
|
"remaining": "unlimited",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.feature.crm",
|
|
"used": 0,
|
|
"value": 1
|
|
}
|
|
],
|
|
"planCode": "starter",
|
|
"planLabel": "billing:selfServiceSubscription.fixture.starter.title",
|
|
"products": [
|
|
{
|
|
"canCancel": false,
|
|
"code": "starter",
|
|
"currentPeriodEnd": "2026-08-15T00:00:00.000Z",
|
|
"id": "tenant-product-starter",
|
|
"prices": [
|
|
{
|
|
"amount": 29,
|
|
"currency": "EUR",
|
|
"period": "monthly",
|
|
"periodLabelKey": "billing:subscriptionOverview.period.monthly",
|
|
"quantity": 1
|
|
}
|
|
],
|
|
"quantity": 3,
|
|
"state": "active",
|
|
"stateLabelKey": "billing:subscriptionOverview.productState.active",
|
|
"titleKey": "billing:selfServiceSubscription.fixture.starter.title"
|
|
}
|
|
],
|
|
"seatUsage": {
|
|
"data": {
|
|
"categories": [
|
|
{
|
|
"extra": 0,
|
|
"extraCostEur": 0,
|
|
"extraPriceEur": null,
|
|
"included": null,
|
|
"labelKey": "settings.subscription.seats.office",
|
|
"overLimit": false,
|
|
"seatType": "office",
|
|
"used": 2
|
|
},
|
|
{
|
|
"extra": 0,
|
|
"extraCostEur": 0,
|
|
"extraPriceEur": null,
|
|
"included": null,
|
|
"labelKey": "settings.subscription.seats.field",
|
|
"overLimit": false,
|
|
"seatType": "field",
|
|
"used": 1
|
|
}
|
|
],
|
|
"currency": "EUR",
|
|
"descriptionKey": "settings.subscription.seats.description",
|
|
"hasOverage": false,
|
|
"hasPackage": false,
|
|
"noPackageHintKey": "settings.subscription.seats.noPackageHint",
|
|
"overageNoticeKey": "settings.subscription.seats.overageNotice",
|
|
"packageId": null,
|
|
"packageNameKey": null,
|
|
"titleKey": "settings.subscription.seats.title",
|
|
"totalExtraCostEur": 0
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"status": "active",
|
|
"statusLabelKey": "billing:subscriptionOverview.status.active",
|
|
"trialDaysRemaining": null,
|
|
"trialEndsAt": null
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"preferredSelection": null,
|
|
"storageAddOns": [],
|
|
"trialPolicy": {
|
|
"requiresManualActivation": false,
|
|
"requiresPaymentMethod": true
|
|
},
|
|
"usage": {
|
|
"emailMarketing": {
|
|
"limit": 10000,
|
|
"percentUsed": 32.5,
|
|
"periodEnd": "2026-08-01T00:00:00.000Z",
|
|
"periodStart": "2026-07-01T00:00:00.000Z",
|
|
"remaining": 6750,
|
|
"status": "ready",
|
|
"used": 3250
|
|
},
|
|
"storage": {
|
|
"capacityBytes": 10737418240,
|
|
"percentUsed": 32.5,
|
|
"remainingBytes": 7247757312,
|
|
"reservedBytes": 268435456,
|
|
"status": "ready",
|
|
"storedBytes": 3221225472
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"status": "ready"
|
|
}</script>
|
|
<script type="application/json" id="mock-page-registries">{
|
|
"breadcrumbs": [
|
|
{
|
|
"href": "/:tenant/settings",
|
|
"id": "settings",
|
|
"labelKey": "mock.va-p24a.interim.breadcrumb.settings"
|
|
},
|
|
{
|
|
"href": "/:tenant/settings/billing",
|
|
"id": "subscription",
|
|
"labelKey": "mock.va-p24a.interim.label"
|
|
}
|
|
],
|
|
"sidebar": [
|
|
{
|
|
"href": "/:tenant/settings/billing",
|
|
"id": "va-p24a-subscription",
|
|
"labelKey": "mock.va-p24a.interim.label"
|
|
}
|
|
]
|
|
}</script>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|