Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Fix CI build failure: missing @objectstack/spec in build dependency chain - #120

Merged
huangyiirene merged 2 commits into
copilot/update-types-data-displayfrom
copilot/fix-ci-pipeline-error
Jan 19, 2026
Merged

huangyiirene merged 2 commits into
copilot/update-types-data-displayfrom
copilot/fix-ci-pipeline-error

Conversation

Copilot AI commented Jan 19, 2026 •

Copy link
Copy Markdown
Contributor

CI failed because @object-ui/types imports from @objectstack/spec, but @objectstack/spec was never built before the test suite ran.

// packages/types/src/base.ts
import type { UIComponent } from '@objectstack/spec';  // ← Module not found

Changes

  • package.json: Added @objectstack/spec build step to pretest script before @object-ui/types
  • packages/objectstack-spec/package.json: Changed build command from tsc to tsc --build (required for composite TypeScript projects)
  • packages/objectstack-spec/tsconfig.json: Added moduleResolution: "node" override (root uses bundler mode which doesn't emit library artifacts)

Technical Context

TypeScript composite projects require tsc --build to emit output. The root tsconfig uses moduleResolution: "bundler" for app development, but library packages need "node" to generate proper declaration files.

Original prompt

引用: https://github.com/objectstack-ai/objectui/actions/runs/21130492398/job/60761808508#step:8:1


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel

vercel Bot commented Jan 19, 2026 •

Copy link
Copy Markdown

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

Project Deployment Review Updated (UTC)
objectui-docs Error Error Jan 19, 2026 0:49am

- Add @objectstack/spec build to pretest script before @object-ui/types
- Fix @objectstack/spec build script to use 'tsc --build' for composite project
- Add moduleResolution: "node" to @objectstack/spec tsconfig for proper library build

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI pipeline error in workflow Fix CI build failure: missing @objectstack/spec in build dependency chain Jan 19, 2026
Copilot AI requested a review from hotlong January 19, 2026 12:52
@github-actions

Copy link
Copy Markdown
Contributor

✅ All checks passed!

  • ✅ Type check passed
  • ✅ Tests passed
  • ✅ Lint check completed

@huangyiirene
huangyiirene marked this pull request as ready for review January 19, 2026 13:03
@huangyiirene
huangyiirene merged commit 2d9bc45 into copilot/update-types-data-display Jan 19, 2026
os-tesla pushed a commit that referenced this pull request Sep 13, 2026
… composes one

objectui#7298 half two, maintainer ruling 2026-09-12 (decision batch #120
item 5). `RecordDetailView` stops auto-appending a discussion panel below any
record page whose tree places no `record:discussion` / `record:chatter` node,
and the `(effectivePage as any).disableDiscussion` read goes with it — nothing
reads an undeclared page key here any more. `PageSchema` is a `strictObject`,
so that key was a hard parse error rather than a dropped one and the escape
hatch the renderer's own comment documented could never be authored, while the
panel it was meant to decline was hard-coded open for writes.

`enable.feeds` stays the OBJECT's switch and now outranks the page: the composed
tree is pruned by `stripDiscussionNodes` when the object opted out, so a
declared (or synthesized) node no longer renders a panel over a feed the view
deliberately never fetched. The prune is identity-preserving, so a feeds-on page
is handed through by reference.

`hasExplicitDiscussion` is replaced rather than left dead: its only question was
whether to append, and the two walkers now share one container-key table so
"is the panel there" and "remove the panel" cannot disagree.

No transition window and no opt-in flag, per the ruling. Synthesized and slotted
pages are unchanged — `buildDefaultPageSchema` composes the node itself.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011QreXiyMEqKLN4U5daMPVa
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 17, 2026
… composes one (objectui#7298 half two) (objectstack-ai#9439)

* feat(app-shell)!: a record page shows a discussion panel only when it composes one

objectui#7298 half two, maintainer ruling 2026-09-12 (decision batch objectstack-ai#120
item 5). `RecordDetailView` stops auto-appending a discussion panel below any
record page whose tree places no `record:discussion` / `record:chatter` node,
and the `(effectivePage as any).disableDiscussion` read goes with it — nothing
reads an undeclared page key here any more. `PageSchema` is a `strictObject`,
so that key was a hard parse error rather than a dropped one and the escape
hatch the renderer's own comment documented could never be authored, while the
panel it was meant to decline was hard-coded open for writes.

`enable.feeds` stays the OBJECT's switch and now outranks the page: the composed
tree is pruned by `stripDiscussionNodes` when the object opted out, so a
declared (or synthesized) node no longer renders a panel over a feed the view
deliberately never fetched. The prune is identity-preserving, so a feeds-on page
is handed through by reference.

`hasExplicitDiscussion` is replaced rather than left dead: its only question was
whether to append, and the two walkers now share one container-key table so
"is the panel there" and "remove the panel" cannot disagree.

No transition window and no opt-in flag, per the ruling. Synthesized and slotted
pages are unchanged — `buildDefaultPageSchema` composes the node itself.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011QreXiyMEqKLN4U5daMPVa

* fix(app-shell,docs): drop the useless initialiser; keep the record-page doc to plain markdown

`no-useless-assignment` flagged `let result: any = node` in `stripDiscussionNodes`
— both branches assign it, so the initialiser only hid a branch that forgot to.

`content/docs/guide/slotted-pages.md` is a `.md` file and every `Callout` in
this docs tree lives in `.mdx`; the upgrade note is a blockquote instead, which
is the form the same file already uses.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011QreXiyMEqKLN4U5daMPVa

---------

Co-authored-by: Claude <noreply@anthropic.com>

This branch had an error being deployed

1 failed deployment
Preview — 1af6946a Deployed Jan 19, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants