Skip to content

feat(wiki): add MobX-Lark document debugger#16

Closed
malb200710-dev wants to merge 2 commits into
idea2app:mainfrom
malb200710-dev:codex/wiki-debugger-14
Closed

feat(wiki): add MobX-Lark document debugger#16
malb200710-dev wants to merge 2 commits into
idea2app:mainfrom
malb200710-dev:codex/wiki-debugger-14

Conversation

@malb200710-dev

@malb200710-dev malb200710-dev commented Jun 14, 2026

Copy link
Copy Markdown

PR-16 PR-16 PR-16 Powered by Pull Request Badge

Summary

  • Adds /wiki/[node_token]/debugger for MobX-Lark document inspection.
  • Fetches the current wiki node, creates a DocumentBlockModel, and shows getAll() raw blocks plus getRenderableAll() blocks in JSON viewers.
  • Shows the renderBlocks() component tree in an idea-react CodeBlock, then renders the same blocks as a full-width read-only document preview.

Validation

  • Confirmed mobx-lark@2.8.1 exports DocumentBlockModel#getAll(), DocumentBlockModel#getRenderableAll(), and renderBlocks() from the published type declarations.
  • Static route checks passed for the required debugger route, raw block view, renderable block view, component tree view, and read-only rendered view.
  • Full tsc --noEmit was not run in this workspace because node, npm, and pnpm are not installed here.

Closes #14

@malb200710-dev

Copy link
Copy Markdown
Author

Validation update: I installed dependencies locally with the bundled Node runtime using:

pnpm install --no-frozen-lockfile --ignore-scripts

The frozen install is blocked by an existing pnpm lockfile/config mismatch, but with dependencies installed I fixed the React type narrowing issue in the debugger route and ran:

tsc --noEmit

TypeScript now completes successfully.

@TechQuery TechQuery closed this Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

新增 MobX-Lark 云文档渲染调试器

2 participants