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 d250bee
Browse filesBrowse the repository at this point in the historyBrowse files
docs(ui): package homepages and README links point at objectstack.ai/docs; objectui.org is retired
42
+
43
+
Clause-②: no
44
+
Metadata-protocol: none
45
+
46
+
The ObjectUI documentation site at objectui.org is retired. Its pages now live in the ObjectStack docs, mostly under [User Interface](https://objectstack.ai/docs/frontend). Every `@object-ui/*` package's `homepage` and README links now go to the matching page there, and the old objectui.org addresses answer with a permanent redirect to the same page. The `description` fields spell the product name "ObjectUI". The `@objectstack/skills` bundle's ObjectUI skill links to the same pages. Nothing else changes in what these packages ship.
Copy file name to clipboardExpand all lines: content/docs/frontend/architecture-overview.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,7 @@ Plugins use `React.lazy()` wrapped by `LazyPluginLoader` (`packages/react/src/La
150
150
151
151
Every plugin follows the same structure (see `packages/plugin-kanban/`, `packages/plugin-grid/`):
152
152
153
+
{/* doc-snippet: fragment — an excerpt of a plugin package's own index: `./KanbanImpl` is that package's sibling module and `Props` its local prop type, neither of which exists outside the plugin being described */}
@@ -271,6 +272,7 @@ that dispatch. It owns the protocol (name-based action identity, record-id
271
272
resolution, re-entrancy guard, the `/actions` response-envelope rule) and
272
273
injects the three things core has no opinion about:
273
274
275
+
{/* doc-snippet: fragment — the three injected values are the reader's own (`myAuthenticatedFetch`, `currentObject`, `notifyDataChanged`), and the closing line is a bare `<ActionProvider ... />` tag whose remaining props are deliberately elided */}
{/* doc-snippet: fragment — a vite.config.ts for the reader's own project: @vitejs/plugin-react and @tailwindcss/vite are the reader's dependencies, not this repository's, so the imports cannot resolve here */}
37
38
```ts
38
39
import { defineConfig } from'vite';
39
40
importreactfrom'@vitejs/plugin-react';
@@ -209,6 +210,7 @@ Wire everything together in `src/App.tsx`. `SchemaRendererProvider` injects the
209
210
data source once, and every `SchemaRenderer` beneath it renders its schema
210
211
against that one adapter:
211
212
213
+
{/* doc-snippet: fragment — the reader's src/App.tsx; './setup' and './data/rest-data-source' are the project files created in Steps 2 and 4 */}
@@ -262,6 +264,7 @@ resolved** panel naming itself and the object it was about to read.
262
264
263
265
ObjectUI generates forms directly from your schema. Extend `App.tsx` with form state:
264
266
267
+
{/* doc-snippet: fragment — two lines to paste into the App component of Step 5 — the useState import and the surrounding function body are already there */}
@@ -272,6 +275,7 @@ Add a "New Task" button and handle row clicks to open the edit form:
272
275
Both of these render inside the `SchemaRendererProvider` from Step 5, so neither
273
276
carries a data source of its own:
274
277
278
+
{/* doc-snippet: fragment — JSX to place inside the Step 5 App component; showForm, editId and their setters are the state declared in the block above */}
@@ -320,6 +324,7 @@ it declaratively, with the spec's per-element `dataSource` binding
320
324
(fetched through your data source's `getObjectSchema` / `listViews`) and
321
325
composes that view's `filter` and `sort` onto the query for you:
322
326
327
+
{/* doc-snippet: fragment — an excerpt mixing a state declaration with the JSX it drives, to be placed inside the App component; it is not a standalone module */}
@@ -398,6 +403,7 @@ Use this component in your main app with simple routing state, or integrate with
398
403
399
404
**Environment config** — Keep your API URL configurable:
400
405
406
+
{/* doc-snippet: fragment — continues Step 4 — RestDataSource is the class defined there, and import.meta.env is Vite's typing in the reader's own app */}
Copy file name to clipboardExpand all lines: content/docs/frontend/component-registry.mdx
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ Now you can use it in schemas:
88
88
89
89
All registered components receive the schema as props:
90
90
91
+
{/* doc-snippet: fragment — continues the custom-component block above — `BaseSchema` and `MyComponentSchema` are declared there, and re-declaring them here would teach the reader to write the same interface twice (measured: TS2304 x3) */}
@@ -119,6 +120,7 @@ function MyRenderer(props: ComponentProps<MyComponentSchema>) {
119
120
120
121
Register components with additional metadata:
121
122
123
+
{/* doc-snippet: fragment — continues the custom-component block above — `MyComponent` and the `ComponentRegistry` import come from it (measured: TS2304 x2). The `ComponentMeta` literal this block shows is type-checked on the complete example at the end of the page, which does compile */}
@@ -144,6 +146,7 @@ of a react page's JSX scope — and does not stand in for the slot.
144
146
145
147
Register components that load on demand:
146
148
149
+
{/* doc-snippet: fragment — `./HeavyComponent` is the reader's own module, so the dynamic import cannot resolve here (measured: TS2307 x1, plus TS2304 on the `ComponentRegistry` the block above imports) */}
147
150
```tsx
148
151
// The loader runs the first time a schema asks for `heavy-component`.
{/* doc-snippet: fragment — `MyCustomButton` is the reader's own replacement component; there is nothing in this repo to import it from (measured: TS2304 x1) */}
@@ -309,6 +313,7 @@ Use kebab-case for component types:
309
313
310
314
### 4. Provide Meaningful Metadata
311
315
316
+
{/* doc-snippet: fragment — `RatingComponent` is the component built in the complete example at the end of this page, and the `ComponentRegistry` import comes with it (measured: TS2304 x2) */}
{/* doc-snippet: fragment — continues the component-interface block above — `ComponentProps` is declared there and `MySchema` stands for whatever schema the reader's component takes (measured: TS2304 x2) */}
323
329
```tsx
324
330
function MyComponent(props:ComponentProps<MySchema>) {
325
331
const { schema } =props
@@ -339,6 +345,7 @@ function MyComponent(props: ComponentProps<MySchema>) {
339
345
340
346
Group related components into plugin packages:
341
347
348
+
{/* doc-snippet: fragment — the three chart components are files the reader is being told to write, so `./BarChart` / `./LineChart` / `./PieChart` cannot resolve here (measured: TS2307 x3) */}
@@ -355,6 +362,7 @@ export function registerChartComponents() {
355
362
356
363
Usage:
357
364
365
+
{/* doc-snippet: fragment — `@my-org/objectui-plugin-charts` is the package the reader has just been shown how to create, not one this repo publishes (measured: TS2307 x1) */}
Copy file name to clipboardExpand all lines: content/docs/frontend/create-plugin.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ Advice for the plugin you are about to write, beyond whatever the scaffold hands
130
130
third-party libraries are allowed to live, which makes it the layer that most needs a
131
131
`React.lazy` boundary, so an app that never renders your component never pays for it:
132
132
133
+
{/* doc-snippet: fragment — the lazy boundary points at `./HeavyImpl`, a module in the READER's own plugin that cannot exist beside this page, and `React` is the UMD global a one-line excerpt does not import (measured: TS2307 x1, TS2686 x1). Adding an import would make the snippet about this repository rather than about the plugin the reader is scaffolding. */}
Copy file name to clipboardExpand all lines: content/docs/frontend/data-objectstack.mdx
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,7 @@ implements `DataSource` — backed by an ObjectStack backend.
112
112
113
113
**Config:**
114
114
115
+
{/* doc-snippet: fragment — a SIGNATURE excerpt of the factory: a `function` declaration with no body and an `ObjectStackAdapter` return type this reference block does not import (measured: TS2391 x1, TS2304 x1). ⚠️ This gate never compiles a DECLARED block, so nothing here re-verifies that this excerpt still agrees with the shipped `packages/data-objectstack/dist/index.d.ts` — and this reason may not claim it does (objectui#7505). Read the shipped declaration when this page matters to you; it has drifted twice, once in the return type (objectui#7503) and once in a config member (objectui#7505) */}
115
116
```typescript
116
117
function createObjectStackAdapter<T=unknown>(config: {
117
118
/** ObjectStack server base URL */
@@ -252,6 +253,7 @@ A schema node's `dataSource` key is the spec's `ElementDataSource` (validated by
252
253
`ElementDataSourceSchema` in `@objectstack/spec`) — plain JSON metadata, **not**
253
254
the adapter object:
254
255
256
+
{/* doc-snippet: fragment — a SHAPE excerpt restating `@objectstack/spec`'s own `ElementDataSource` as a bare interface, so its `filter` member names the spec's `ViewFilterRule` without importing it (measured: TS2304 x1); the type is exported from `@objectstack/spec/ui`. ⚠️ This gate never compiles a DECLARED block, so nothing here re-verifies this excerpt against `ElementDataSourceSchema` in the installed `@objectstack/spec` — and this reason may not claim it does (objectui#7505). The schema is the authority on which members are required and whether it is strict; read it there */}
255
257
```typescript
256
258
interfaceElementDataSource {
257
259
/** Object to query (required) */
@@ -342,6 +344,7 @@ passed to `createObjectStackAdapter` in code. Sourcing those values from the
342
344
environment is your bundler's business (`process.env.*` under Node or webpack,
343
345
`import.meta.env.*` under Vite):
344
346
347
+
{/* doc-snippet: fragment — `process` is a NODE global carried by the reader's own `@types/node`, which this gate's program does not load, and the paragraph above says so in words: sourcing config from the environment is the reader's bundler's business (measured: TS2591 x2) */}
Copy file name to clipboardExpand all lines: content/docs/frontend/data-source.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,6 +164,7 @@ class UserDataSource implements DataSource<User> {
164
164
165
165
ObjectUI uses OData-style query keys for broad compatibility:
166
166
167
+
{/* doc-snippet: fragment — continues the adapter block above: dataSource is the adapter created there, and repeating its construction here would bury the query keys this section is about */}
0 commit comments