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.
Badge showing count of pending approvals
Goal
Visual notification of pending approvals
Context
Global navigation or sidebar
Source Definition
import {
definePresentation,
StabilityEnum,
} from '@lssm-tech/lib.contracts-spec';
import { ApprovalRequestModel } from '../approval/approval.schema';
import { WorkflowInstanceModel } from '../instance/instance.schema';
import { WorkflowDefinitionModel } from '../workflow/workflow.schema';
export const PendingApprovalsBadgePresentation = definePresentation({
meta: {
key: 'workflow.approval.badge',
version: '1.0.0',
title: 'Pending Approvals Badge',
description: 'Badge showing count of pending approvals',
domain: 'workflow-system',
owners: ['@workflow-team'],
tags: ['workflow', 'approval', 'badge', 'widget'],
stability: StabilityEnum.Experimental,
goal: 'Visual notification of pending approvals',
context: 'Global navigation or sidebar',
},
source: {
type: 'component',
framework: 'react',
componentKey: 'PendingApprovalsBadge',
},
targets: ['react'],
policy: {
flags: ['workflow.approvals.enabled'],
},
});