@loopstack/test-ui-documents-example-workflow
v0.24.3
Published
A simple workflow demonstrating how to render core UI documents (message, error, markdown, plain text) in the Loopstack Studio.
Maintainers
Readme
title: UI Documents Example description: Example demonstrating Studio document rendering — MessageDocument, ErrorDocument, MarkdownDocument, PlainDocument from a single workflow
@loopstack/test-ui-documents-example-workflow
Demonstrates core Studio document rendering by emitting message, error, markdown, and plain-text documents from a single workflow.
By using this example you'll get...
- A compact workflow for UI/document smoke testing
- Real examples of
MessageDocument,ErrorDocument,MarkdownDocument, andPlainDocument - A quick baseline for validating custom Studio document rendering behavior
Installation
npm install @loopstack/test-ui-documents-example-workflowThen register the module in your app:
import { StudioApp } from '@loopstack/common';
import { TestUiDocumentsExampleModule, TestUiDocumentsWorkflow } from '@loopstack/test-ui-documents-example-workflow';
@StudioApp({
title: 'UI Documents Example',
workflows: [TestUiDocumentsWorkflow],
})
@Module({
imports: [TestUiDocumentsExampleModule],
})
export class MyAppModule {}How It Works
renderAllsaves one document of each core UI type.- The workflow transitions to
endafter writing all documents. - Studio displays each document using its corresponding renderer.
Public API
TestUiDocumentsExampleModuleTestUiDocumentsWorkflow
Dependencies
@loopstack/common
