Skip to content

Commit 8748865

Browse files
Copilothotlong
andcommitted
Move UI examples from standalone ui-showcase to app-crm example
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent faca542 commit 8748865

15 files changed

Lines changed: 22 additions & 654 deletions

examples/app-crm/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Follows the **by-type** directory layout — the ObjectStack standard aligned wi
5050
```
5151
src/
5252
├── objects/ # 📦 10 Core Objects (account, contact, lead, opportunity, ...)
53+
├── views/ # 👁️ UI Views (FormView & ListView configurations for all objects)
54+
├── pages/ # 📄 Pages (Record, Home, App, Utility page layouts)
5355
├── actions/ # ⚡ Custom Actions (lead, contact, opportunity, case, global)
5456
├── apis/ # 🌐 REST Endpoints (pipeline-stats, lead-convert)
5557
├── apps/ # 🚀 App Configuration (crm.app.ts)
@@ -71,6 +73,24 @@ Comprehensive guides covering all aspects:
7173
3. **[Security](./docs/05-security.md)** - Profiles, roles, sharing, permissions
7274
4. **[AI Capabilities](./docs/08-ai-capabilities.md)** - Agents, RAG, NLQ, ML
7375

76+
### 🎨 UI Examples
77+
78+
The CRM includes comprehensive UI examples demonstrating all form layouts and page types:
79+
80+
#### FormView Examples (`src/views/`)
81+
- **6 Form Layout Types**: Simple, Tabbed, Wizard, Split, Drawer, Modal
82+
- **Advanced Features**: Collapsible sections, 1-4 column layouts, conditional visibility, cascading dependencies
83+
- **5 List View Types**: Grid, Kanban, Calendar, Gallery, filtered views
84+
- **Field Controls**: readonly, required, hidden, colSpan, visibleOn, dependsOn, custom widgets
85+
86+
#### PageSchema Examples (`src/pages/`)
87+
- **Record Page**: Comprehensive detail page with highlights, tabs, accordion, related lists, AI chat
88+
- **Home Page**: Dashboard-style with KPIs and quick actions
89+
- **App Page**: Application launcher grid
90+
- **Utility Page**: Floating utility panels
91+
92+
See `src/views/lead.view.ts` and `src/pages/` for complete implementations.
93+
7494
### 🚀 Quick Start
7595

7696
```bash
@@ -96,6 +116,8 @@ pnpm --filter @example/app-crm dev
96116
|----------|-------|----------|
97117
| **Objects** | 10 | Account, Opportunity, Case, Product |
98118
| **Fields** | 100+ | AutoNumber, Formula, Lookup, Address |
119+
| **Views** | 12+ | Grid, Kanban, Calendar, Gallery, Forms (Simple, Tabbed, Wizard, Split, Drawer, Modal) |
120+
| **Pages** | 4 | Record Detail, Home, App Launcher, Utility Bar |
99121
| **Profiles** | 5 | Admin, Sales Manager, Sales Rep |
100122
| **Sharing Rules** | 5+ | Criteria-based, Territory-based |
101123
| **AI Agents** | 5 | Sales Assistant, Service Agent |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/ui-showcase/IMPLEMENTATION_GUIDE.md

Lines changed: 0 additions & 350 deletions
This file was deleted.

0 commit comments

Comments
 (0)