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.

workflow.approval.badge

Badge showing count of pending approvals

  • Type: presentation (presentation)
  • Version: 1.0.0
  • Owners: @workflow-team
  • Tags: workflow, approval, badge, widget
  • File: packages/examples/workflow-system/src/presentations/index.ts
  • field.key.label
    workflow.approval.badge
    field.version.label
    1.0.0
    field.type.label
    presentation (presentation)
    field.title.label
    workflow.approval.badge
    field.description.label

    Badge showing count of pending approvals

  • Type: presentation (presentation)
  • Version: 1.0.0
  • Owners: @workflow-team
  • Tags: workflow, approval, badge, widget
  • File: packages/examples/workflow-system/src/presentations/index.ts
  • field.tags.label
    workflow,approval,badge,widget
    field.owners.label
    @workflow-team
    field.stability.label

    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'],
    	},
    });