Skip to content

feat(ADR-0046): seed Setup & Studio package docs so the docs hub isn't empty - #1845

Merged
xuyushun441-sys merged 1 commit into
mainfrom
adr0046-platform-docs
Jun 14, 2026
Merged

feat(ADR-0046): seed Setup & Studio package docs so the docs hub isn't empty#1845
xuyushun441-sys merged 1 commit into
mainfrom
adr0046-platform-docs

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

Why

ADR-0046 added doc metadata + the in-product docs hub (/_console/docs), but no first-party package shipped any doc — a fresh install opened the hub completely empty, and the feature had zero reference implementation. This seeds a deliberately minimal first version: one short overview per built-in app (Setup, Studio), so the hub is non-empty out of the box and there's a worked example to copy.

What

  • @objectstack/setup registers setup_overview — for admins: users & authentication, the roles & permissions model, record visibility (sharing).
  • @objectstack/studio registers studio_overview — for builders: the metadata-first model, the invisible draft/overlay precedence rule (ADR-0005/ADR-0033), publish vs deploy.

Both follow the HotCRM principle — document the invisible business logic, not what the UI already shows — and link to https://docs.objectstack.ai for depth. Plain CommonMark + GFM, no MDX/images (ADR-0046 §3.4).

Mechanism (the experiment's finding)

These are TS-first code packages built by tsup, not user apps built by os build, so they do not go through the flat src/docs/*.md collection + lint. The docs are declared inline as Doc items on each package's manifest.register({ docs }) call — the path DocSchema explicitly blesses for TS-first stacks. They register under their owning package id, so the hub groups them under Setup / Studio. No framework change was needed.

Verification

  • Both packages build clean (incl. DTS type-check); runtime smoke test confirms each registers 1 DocSchema-valid doc under its package id.
  • Live showcase boot: GET /api/v1/meta/doc returns both docs (correct label/description/packageId); detail route returns full Markdown.
  • objectui console /docs portal: both render grouped under SETUP and STUDIO, Markdown (bold/italic/inline-code/autolinks) renders correctly. Screenshots captured during review.

Diff is tiny: 2 new doc files + 2 one-block edits to each app's index.ts + a changeset.

🤖 Generated with Claude Code

…t empty
A bare install shipped no first-party `doc` metadata, so `/_console/docs`
opened empty and ADR-0046 had no reference implementation. Seed one short
overview per built-in app, registered inline on each app package's
`manifest.register({ docs })` (the TS-first path DocSchema blesses) so they
group under Setup and Studio in the hub.
- @objectstack/setup: setup_overview (users/auth, roles & permissions, sharing)
- @objectstack/studio: studio_overview (metadata-first, draft/overlay
precedence per ADR-0005/0033, publish vs deploy)
Documents the invisible concepts only (HotCRM principle), links to
https://docs.objectstack.ai for depth. No framework change needed — code
packages register docs inline, not via os build flat-file collection.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Jun 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJun 14, 2026 8:23am

Request Review

@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation tooling size/m labels Jun 14, 2026
@xuyushun441-sys
xuyushun441-sys merged commit 1a4f079 into mainJun 14, 2026
13 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the adr0046-platform-docs branch June 14, 2026 08:25
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/mtooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@xuyushun441-sys@os-zhuang