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: "Phase 2 Schemas Overview"
3
+
description: "Comprehensive overview of ObjectUI Phase 2 schemas for building enterprise applications"
4
4
---
5
5
6
-
# Phase 2 Schema Reference
6
+
# Phase 2 Schemas 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 Phase 2 introduces powerful new 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 Phase 2 schemas and helps you get started quickly.
9
9
10
-
## New Schemas
10
+
## What's New in Phase 2?
11
+
12
+
Phase 2 brings enterprise-grade capabilities to ObjectUI, making it easier 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
@@ -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 Phase 2 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 Phase 2 schemas:
-**[Implementation Guide](https://github.com/objectstack-ai/objectui/blob/main/packages/types/PHASE2_IMPLEMENTATION.md)** - Complete implementation details and technical specifications
359
+
-**[Quick Start Guide](https://github.com/objectstack-ai/objectui/blob/main/PHASE2_QUICK_START.md)** - Step-by-step tutorial for getting started with Phase 2
-[Test Suite](https://github.com/objectstack-ai/objectui/blob/main/packages/types/src/__tests__/phase2-schemas.test.ts) - 40+ example configurations
365
+
### Code Examples
366
+
-**[Test Suite](https://github.com/objectstack-ai/objectui/blob/main/packages/types/src/__tests__/phase2-schemas.test.ts)** - 40+ working examples demonstrating all Phase 2 features
0 commit comments