Skip to content

Commit 67b7dec

Browse files
committed
docs(skills): name the objectui upload packages after the providers fold
The project-setup guide sent a third-party app to @object-ui/providers for UploadProvider/useUpload. That package is retired; the provider-stack list and the decision matrix now name @object-ui/fields (UploadProvider/useUpload), @object-ui/data-objectstack (createObjectStackUploadAdapter) and @object-ui/types (the UploadAdapter contract, re-exported by fields). The token ratchet is paid by dropping two monorepo-only troubleshooting tips. Claude-Session: https://claude.ai/code/session_016WV4d1CgLtPgbu4RrVtPDQ Co-authored-by: Claude <noreply@anthropic.com>
1 parent b77c160 commit 67b7dec

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the objectui project-setup guide names where uploads live now that `@object-ui/providers` is gone
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **Before.** `objectui/guides/project-setup.md` sent a third-party app to `@object-ui/providers` for `UploadProvider` / `useUpload`, in the provider-stack list and in the decision matrix. That package is retired and gets no further release.
11+
- **Now.** `UploadProvider` / `useUpload` come from `@object-ui/fields`; the ObjectStack storage adapter `createObjectStackUploadAdapter` comes from `@object-ui/data-objectstack`; the `UploadAdapter` / `UploadOptions` / `UploadResult` contract is `@object-ui/types`'s, re-exported by `@object-ui/fields`.
12+
- The troubleshooting section drops two monorepo-only tips (the Turbo cache block and the "downstream packages need built `dist/`" line), which a third-party app consuming published packages never needs.
13+
- No schema, key or behaviour changes.

‎skills/objectui/guides/project-setup.md‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,10 @@ The provider stack for a third-party app comes from the packages that read it:
246246
`auto` / `light` / `dark` mode.
247247
- `MetadataProvider` / `useMetadata` (`@object-ui/app-shell`) — apps / objects /
248248
dashboards / pages metadata from the API.
249-
- `UploadProvider` / `useUpload` (`@object-ui/providers`) — the upload adapter the
250-
file and image fields upload through.
249+
- `UploadProvider` / `useUpload` (`@object-ui/fields`) — the adapter file and image
250+
fields upload through; `createObjectStackUploadAdapter`
251+
(`@object-ui/data-objectstack`) is ObjectStack's. Its contract `UploadAdapter` /
252+
`UploadOptions` / `UploadResult` is `@object-ui/types`'s; `fields` re-exports it.
251253

252254
```tsx
253255
import { SchemaRendererProvider, ThemeProvider } from '@object-ui/react';
@@ -304,7 +306,7 @@ a private workspace demo app, not a published package.
304306
|------|-----|
305307
| Bare renderer in existing app | `@object-ui/react` |
306308
| Need the data-source / theme providers | `SchemaRendererProvider`, `ThemeProvider` from `@object-ui/react` |
307-
| Need file / image uploads | + `@object-ui/providers` (`UploadProvider`) |
309+
| Need file / image uploads | + `@object-ui/fields` (`UploadProvider`), `@object-ui/data-objectstack` (adapter) |
308310
| Need shell + object/dashboard/page/record views | + `@object-ui/app-shell` |
309311
| Need full admin console (sidebar, system hub, navigation) | study `apps/console` patterns |
310312
| Need a CLI-driven dev server | `@object-ui/cli` (`objectui dev`) |
@@ -337,13 +339,8 @@ Access in code: `import.meta.env.VITE_API_BASE_URL`
337339

338340
### Module not found errors
339341
- Run `pnpm install` to ensure workspace links are resolved
340-
- Run `pnpm build` — downstream packages need built `dist/` directories
341342
- Check `tsconfig.json` path aliases match project structure
342343

343-
### Turbo cache issues
344-
- `pnpm turbo run build --force` to bypass cache
345-
- Delete `.turbo/` directory for clean state
346-
347344
### Vite HMR not working
348345
- Check `vite.config.ts` has `react()` plugin
349346
- Ensure file extensions are `.tsx` not `.jsx` when using TypeScript

0 commit comments

Comments
 (0)