OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Usage metrics and breakdown by resource type
Goal
Monitor feature usage and limits
Context
Billing section
Source Definition
import {
definePresentation,
StabilityEnum,
} from '@lssm-tech/lib.contracts-spec';
export const UsageDashboardPresentation = definePresentation({
meta: {
key: 'saas.billing.usage',
version: '1.0.0',
title: 'Usage Dashboard',
description: 'Usage metrics and breakdown by resource type',
domain: 'saas-boilerplate',
owners: ['@saas-team'],
tags: ['billing', 'usage', 'metrics'],
stability: StabilityEnum.Beta,
goal: 'Monitor feature usage and limits',
context: 'Billing section',
},
source: {
type: 'component',
framework: 'react',
componentKey: 'UsageDashboardView',
},
targets: ['react', 'markdown'],
policy: {
flags: ['saas.billing.enabled'],
},
});