You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Complete reference for ObjectUI Phase 2 schemas including App, Theme, Reports, Blocks, and Enhanced Actions"
2
+
title: "Schema Overview"
3
+
description: "Comprehensive overview of ObjectUI schemas for building enterprise applications"
4
4
---
5
5
6
-
# Phase 2 Schema Reference
6
+
# Schema Overview
7
7
8
-
ObjectUI Phase 2 introduces advanced schemas for enterprise applications, providing comprehensive solutions for theming, reporting, reusable components, and complex action workflows.
8
+
ObjectUI provides powerful schemas that enable you to build sophisticated enterprise applications with advanced features like theming, reporting, reusable components, and complex workflows. This guide provides an overview of all available schemas and helps you get started quickly.
9
9
10
-
## New Schemas
10
+
## Key Capabilities
11
+
12
+
ObjectUI includes enterprise-grade capabilities to build production-ready applications:
13
+
14
+
-**Application Structure** - Define complete multi-page applications with navigation
15
+
-**Dynamic Theming** - Brand your applications with custom themes and light/dark modes
16
+
-**Advanced Actions** - Build complex workflows with API calls, chaining, and conditions
17
+
-**Enterprise Reporting** - Generate, schedule, and export comprehensive reports
18
+
-**Reusable Components** - Create and share component blocks across projects
19
+
20
+
## Core Schemas
11
21
12
22
### Application Configuration
13
23
@@ -80,7 +90,7 @@ const action: ActionSchema = {
80
90
-**`confirm`** - Confirmation dialogs
81
91
-**`dialog`** - Modal/dialog actions
82
92
83
-
**Advanced Features:**
93
+
**Key Features:**
84
94
- Action chaining (sequential/parallel)
85
95
- Conditional execution (if/then/else)
86
96
- Success/failure callbacks
@@ -158,7 +168,7 @@ const block: BlockSchema = {
158
168
159
169
## View Components
160
170
161
-
Phase 2 also includes enhanced view components:
171
+
ObjectUI also includes enhanced view components:
162
172
163
173
### [Detail View](/docs/components/detail-view)
164
174
Rich detail pages with sections, tabs, and related records.
@@ -172,19 +182,23 @@ Advanced filtering interface with multiple field types.
172
182
### [Sort UI](/docs/components/sort-ui)
173
183
Sort configuration with multiple fields.
174
184
175
-
## Getting Started
185
+
## Installation & Setup
176
186
177
-
### Installation
187
+
### Package Installation
178
188
179
-
All Phase 2 schemas are included in `@object-ui/types`:
189
+
All schemas are included in `@object-ui/types`. Install it in your project:
180
190
181
191
```bash
182
192
npm install @object-ui/types
183
193
# or
184
194
pnpm add @object-ui/types
195
+
# or
196
+
yarn add @object-ui/types
185
197
```
186
198
187
-
### Basic Usage
199
+
### TypeScript Usage
200
+
201
+
Import the type definitions you need:
188
202
189
203
```typescript
190
204
importtype {
@@ -198,7 +212,7 @@ import type {
198
212
199
213
### Runtime Validation
200
214
201
-
Use Zod schemas for runtime validation:
215
+
For runtime validation, use the included Zod schemas:
202
216
203
217
```typescript
204
218
import {
@@ -212,18 +226,21 @@ import {
212
226
const result =AppSchema.safeParse(myConfig);
213
227
if (result.success) {
214
228
// Valid configuration
229
+
const app =result.data;
215
230
} else {
216
231
// Handle validation errors
232
+
console.error(result.error);
217
233
}
218
234
```
219
235
220
-
## Examples
236
+
## Quick Start Example
221
237
222
-
### Complete Application
238
+
Here's a complete example showing how to build a simple CRM application using ObjectUI schemas:
-[Test Suite](https://github.com/objectstack-ai/objectui/blob/main/packages/types/src/__tests__/phase2-schemas.test.ts) - 40+ example configurations
359
+
### Code Examples
360
+
-**[Test Suite](https://github.com/objectstack-ai/objectui/blob/main/packages/types/src/__tests__/phase2-schemas.test.ts)** - 40+ working examples demonstrating all features
0 commit comments