Repository navigation
feat(example-starter, create-objectstack): help articles in the Starter app and the blank template - #38435
feat(example-starter, create-objectstack): help articles in the Starter app and the blank template#38435objectstack-fleet[bot] wants to merge 14 commits into
Conversation
…r to biz The two objects, the app, the dashboard, the two datasets and their translation keys move from starter_* to biz_*; every reference (lookup, related list, view data.object, menu, dashboard widgets, both locales) follows. The manifest id com.example.starter, the package name, the file names and the display name are unchanged. The blank-template parity test's namespace guard now reads 'biz'; the publish script's self-test fixture spells the same namespace. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
A blank_article object (title, Markdown body, category, status), its grid view, a menu entry, en and zh-CN labels, and four sample articles seeded on boot, one left as a draft. The starter test reads the seed and the menu. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
A biz_article object (title, Markdown body, category, status), its grid view, a menu entry, en and zh-CN labels, and four seed articles, one a draft. A unit test holds every seed body to one Markdown shape; the boot test reads the articles and the menu; the parity test compares the article object, view and seed with the blank template's. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
… src/translations The blank template's config now imports both barrels, and the Project Structure tree is held to exactly the directories the config loads. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
…arter-help-articles # Conflicts: # examples/app-starter/objectstack.config.ts # examples/app-starter/src/apps/starter.app.ts # examples/app-starter/test/boot.test.ts
📓 Docs Drift CheckThis PR changes 1 package(s): 51 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 15 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 994915e1701cddffc042912166e5a9e7279e1e48 && git checkout 994915e1701cddffc042912166e5a9e7279e1e48
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 16f132fbe76686713b709934389113f915c7d647 7e469db3ba60a6c4119a06839179f44fb54bd722 && git checkout -B drift-repro 16f132fbe76686713b709934389113f915c7d647 && git merge --no-ff 7e469db3ba60a6c4119a06839179f44fb54bd722
node scripts/docs-audit/affected-docs.mjs --json 16f132fbe76686713b709934389113f915c7d647
|
… name The template's barrel imports stay exactly the ones `os init` wires (one per generator directory); the sample rows and the translation bundle are not generator output, so the config lists them by name, as the Starter does. The scaffolded AGENTS.md tree goes back to the generator directories, and the CLI wiring pin's views vacuity guard names the article view line. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
…the generated one Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
…arter-help-articles
…ndle The blank template ships the article object, view, menu entry and seed; its labels are the English ones in its source, as for the companies and contacts. A zh-CN half translated next to an untranslated rest gives a fresh project i18n findings on `objectstack lint`. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
…arter-help-articles
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb Final green head for L1: 7e469db (origin/main 16f132f merged in, no rebase; the merge touches none of the PR's 26 files). CI on this head: 40 success, 19 expected skips, none failed (two PR-body guards re-running on the body refresh); the earlier red |
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb 席位核对L1 (thread L1-a, area o5-ai37000) · read 2026-11-29T05:22Z · Head-sha: This is the first L1 record on this PR, a full review. The diff, the tests and the declaration are accepted. Three acceptance notes are "noted, not filed". Checklist (l1-face
My readings
Must-fix (body only)
After the fix: a delta L1 on the body. The head does not move, so the time limit (before the next Version Packages PR) is not affected by this fix. |
Requested by Leehom · project thread
Fixes #38372
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The Starter app (
examples/app-starter, namespacebiz, landed by #38371) and the blank template thatnpm create objectstackscaffolds (packages/create-objectstack/src/templates/blank, namespaceblank) both gain the same help-article slice:biz_article/blank_article(src/objects/article.object.ts):title(text, required, thenameField),body(markdown),category(select:how_to,faq,reference),status(select:draftdefault,published); one field group listing all four;sharingModel: 'public_read_write'like the other two objects.src/views/article.view.ts): a grid oftitle,category,status.enandzh-CNfor the article's object, fields, options, view and section. The blank template carries no translation bundle: its labels are the English ones in its source, as for its companies and contacts today. This is the seat's ruling (option A, record 7249604628): a zh-CN bundle covering the article alone gives a fresh project i18n findings onobjectstack lintand breaks the on-ramp's zero-findings pins. The template's zh-CN labels are split to Blank template: full zh-CN bundle (company, contact, article, app) so a fresh scaffold lints clean in Chinese #38456.src/data/articles.ts): four generic office-help articles: setting up a laptop (how-to), a Wi-Fi and printing FAQ, a meeting rooms reference with a table and a one-line note, and a draft on sharing files. No policy or regulation text. The template gainssrc/data/, and its config lists the seed by name (data: [articles]). Its./srcbarrel imports stay exactly the onesos initwires, one per generator directory, because a seed is not generator output.packages/cli/test/create-objectstack-wiring-parity.test.ts(+1 line): the views vacuity guard names the article view's export line.packages/cli/test/create-objectstack-stack-reach.test.ts(+3 -2): the on-ramp starter validates with three objects plus the generated one (Data: 4 Objects).packages/create-objectstack/src/templates/AGENTS.md: an earlier commit on this branch namedsrc/data/andsrc/translations/in the Project Structure tree; with the seed listed by name it went back to main's text, so this file is net zero in the diff.Changeset:
.changeset/38372-starter-help-articles.md(patch for@objectstack/example-starterandcreate-objectstack).Tests
examples/app-starter/test/help-articles-38372.test.tsholds every seed article to one shape: first line# TITLE(the record's own title), 3 to 6##sections, no section without text, each section with its heading under 800 characters, nothing between the title and the first section; all three categories present; exactly one draft; one reference article with a table followed by a one-line note. A CONTROL case breaks each rule and sees it caught.blank-template-starter-parity.test.ts:PAIRSgains the article object and the article views; a new case compares the wholedefineSeed(Article, …)call modulo the namespace (with its own CONTROL); the menu case now expects five object entries.test/boot.test.ts: the install seeds the four articles (one draft), the menu listsbiz_article, uninstall removes it.starter.test.ts: the seed loads and the menu lists Articles.npm create objectstackblank template's config imports only./src/objects, so everyos g view|action|flow|dashboard|app|skillit scaffolds is never loaded (os validatecounts 0) #20333 wiring parity and stack-reach (Test Core), and the nightly on-ramp e2e (os generate scaffolds fail the project's own gates: flow targets a nonexistent object, view is refused by os lint, action/app cannot target an existing object #21325 zero findings at every gate, [finding] fresh starters carry a latentfield-no-consumerswarning that the firstos generatewakes (create-objectstack blanknote.body;os init -t appitemdescription/status) #21370 field consumers) were run on a freshcreate-objectstackbuild.Acceptance notes
packages/create-objectstack/src/index.ts, "Your project starts with:") still names only Companies and Contacts and Tasks and Notes. This PR makes it incomplete (every new project now also starts with Articles); fixed on create-objectstack: the scaffold summary, manifest descriptions and platform-objects template sweeps still describe a project without the help articles (after #38372) #38483.manifest.descriptionin both configs, the template'sobjectstack.manifest.json, the Starter'szh-CNpackage description) still read "companies and contacts, with tasks and notes"; updated on create-objectstack: the scaffold summary, manifest descriptions and platform-objects template sweeps still describe a project without the help articles (after #38372) #38483.platform-objects'managed-api-method-affordance-sweepandplatform-admin-affordance-standingexclude template object files by an exact path list naming only company and contact, so the template'sarticle.object.tsis swept as if it were a booted definition. Their tests are green, but the file is misclassified; corrected on create-objectstack: the scaffold summary, manifest descriptions and platform-objects template sweeps still describe a project without the help articles (after #38372) #38483.tscrun (inside a scaffolded project) was not measured locally: its dependencies resolve only in a scaffolded project.os validateloads the template, and itsstarter.test.tswas run against workspace source.Read first (by risk):
packages/create-objectstack/src/templates/blank/objectstack.config.ts(thedata: [articles]key a new project starts with, beside barrel imports equal toos init's);packages/create-objectstack/src/blank-template-starter-parity.test.ts(the new seed pair);packages/cli/test/create-objectstack-stack-reach.test.ts(the object count).Two-minute check:
pnpm --filter create-objectstack exec vitest run src/blank-template-starter-parity.test.tsshows 13 passed.Verification
All readings at head 7e469db (after merging
origin/mainat 16f132f), on a freshcreate-objectstackbuild (distremoved first: the on-ramp e2e tests scaffold from the builtdist/templates, and the build does not delete directories removed fromsrc).Local runs
pnpm --filter @objectstack/example-starter validate: Validation passed (3 Objects, 3 Views, 1 Dashboard).typecheck: exit 0.test: Test Files 2 passed, Tests 14 passed.pnpm --filter create-objectstack typecheck: exit 0.test: Test Files 26 passed, Tests 408 passed.objectstack validateon the blank template: Validation passed (3 Objects, 3 Views).starter.test.tsagainst workspace source (scratch vitest config aliasing@objectstack/verifyand@objectstack/spectosrc): Tests 4 passed.pnpm --filter @objectstack/cli test(the unit and integration tiers PR CI runs): Test Files 680 passed, 2 skipped; Tests 8514 passed, 10 skipped.OS_TEST_TIERS=nightly), every CLI e2e that scaffolds through the on-ramp:generate-scaffold-gates,starter-field-consumers,serve-boot-diagnostics-noise-budget,scaffold-emission-policy: Test Files 4 passed, Tests 92 passed.node scripts/pm/dispatch-gates.mjs --commandsderived 67 families; all 67 exit 0 (check:i18n-coverage: OK, none new;check:dual-build-cjs-loadsandcheck:type-check-debtafter building their prerequisites).--ran: 67 derived, 67 run, 0 NOT-MEASURED, 0 UNRUN. Derived against merge base 16f132f with no staleness warning;origin/mainhas since moved 8 commits (70d2d48), none touching this PR's 26 files; CI reads the current one.git grep -n "knowledge_source\|knowledgeSources"over both apps prints nothing.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb