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
{{ message }}
Repository navigation
Commit 6cfd961
Browse filesBrowse the repository at this point in the historyBrowse files
This document describes the refactored architecture that enables third-party systems to use ObjectUI components without inheriting the full console infrastructure.
6
-
7
-
## New Packages
8
-
9
-
### @object-ui/app-shell
10
-
11
-
**Purpose**: Minimal application rendering engine
12
-
13
-
**Exports**:
14
-
-`AppShell` - Basic layout container
15
-
-`ObjectView` - Renders object views; it reads `objectName` from the router
16
-
(`useParams()`) and takes an `objects` metadata array. For a router-free embed,
17
-
use `ObjectView` from `@object-ui/plugin-view` instead - see the examples below.
18
-
-`DashboardView` - Renders a dashboard by name. The dashboard renderer itself,
19
-
`DashboardRenderer`, is not an app-shell export - it ships from
20
-
`@object-ui/plugin-dashboard`, and `DashboardView` renders through it.
21
-
-`PageView` - Renders a custom page by name. No package exports a
22
-
`PageRenderer`: a page body is dispatched through the component registry on
23
-
the schema node's `type` (`page`, `app`, `utility`, `home`, `record`).
24
-
-`RecordFormPage` - Renders a full-screen create/edit page. No package exports
25
-
a `FormRenderer`; the exported form renderer is `ObjectForm` from
26
-
`@object-ui/plugin-form`, which this page delegates to.
This document describes `@object-ui/app-shell` as it ships today, and the two
6
+
ways a host uses it: compose the full console from its building blocks, or take
7
+
only the layout container and bring your own routing, auth and backend.
8
+
9
+
The package started as a minimal rendering engine for third-party hosts. It has
10
+
since become the home of the console itself: its routing tree, its auth and
11
+
organization pages, Studio, the metadata admin engine, the marketplace and the
12
+
AI chat pages all live here, and `apps/console` composes them. The sections
13
+
below describe that package, not the original plan.
14
+
15
+
## What the package contains
16
+
17
+
### `@object-ui/app-shell`
18
+
19
+
**Entry**: one root entry, `.` (`src/index.ts`), plus `./styles.css`. There are
20
+
no subpath exports.
21
+
22
+
**Size** (non-test TypeScript under `src/`): about 211,000 lines in about 600
23
+
files, with about 1,700 test files beside them. By directory:
24
+
25
+
| Directory | Lines | What it holds |
26
+
|:---|---:|:---|
27
+
|`views/metadata-admin`|~97,000 | The generic metadata admin engine: directory, list, edit, history and diagnostics pages, the schema form, the per-type previews and inspectors, and its own designer string table (`i18n.ts`) |
28
+
|`views/studio-design`|~22,000 | The Studio WYSIWYG design surface, its per-type canvases and the builder landing page |
29
+
|`views/` (the rest) |~27,000 | The inner-SPA views: `ObjectView`, `RecordDetailView`, `RecordFormPage`, `DashboardView`, `PageView`, `ReportView`, search, flows, approvals |
30
+
|`console/`|~22,000 | The console routing tree (`AppContent`, `ConsoleShell`) and its pages: auth, home, organizations, marketplace, AI chat |
31
+
|`hooks/`, `layout/`, `utils/`, `providers/`, `chrome/`, `context/`, the rest |~43,000 | Shell chrome (header, sidebar, command palette, toasts), the metadata, adapter and expression providers, navigation and user-state hooks, runtime configuration and observability |
32
+
33
+
**Exports**: the root entry publishes about 200 names (about 35 of them
34
+
type-only). They fall into these groups, in the order `src/index.ts` lists
35
+
them:
36
+
37
+
-**The minimal shell** — `AppShell` (layout container) and its
38
+
`MinimalAppShellProps`.
39
+
-**Providers and hooks** — `AdapterProvider`, `MetadataProvider`,
40
+
`ExpressionProvider`, the settle signal (`useSettleSignal`, `whenIdle`, …),
41
+
recent items, favorites, navigation pins and sync, the AI-surface signal.
42
+
-**Console building blocks** — `ConsoleShell`, `ConnectedShell`,
0 commit comments