Skip to content

feat: Mirror the wizard setup report into a PostHog notebook and open it#868

Draft
gewenyu99 wants to merge 6 commits into
mainfrom
notebook-mirror
Draft

feat: Mirror the wizard setup report into a PostHog notebook and open it#868
gewenyu99 wants to merge 6 commits into
mainfrom
notebook-mirror

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

At the end of an integration run the wizard converts the local posthog-setup-report.md into a PostHog notebook (checklists become task items), opens it in the browser, and links it in the outro; the local markdown stays the source of truth.

See:
https://us.posthog.com/project/483112/notebooks/r3OJjEhI?utm_source=wizard&utm_medium=cli&utm_content=notebook

Screenshot 2026-07-10 at 11 14 18 PM Screenshot 2026-07-10 at 11 14 31 PM

🤖 Generated with Claude Code

gewenyu99 and others added 2 commits July 10, 2026 22:39
At the end of an integration run the wizard converts the local
posthog-setup-report.md to a PostHog notebook, opens it in the browser, and
links it in the outro; the local markdown stays the source of truth.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Markdown "- [ ]" / "- [x]" lines now map to tiptap taskList/taskItem nodes
instead of a bullet with literal "[ ]" text, which the notebook's markdown
serializer escaped to "\[ \]".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci mcp-analytics
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

gewenyu99 and others added 3 commits July 10, 2026 23:11
Tell the Pi harness to write posthog-setup-report.md as valid markdown starting
with an H1 and to strip templating/delimiter strings (e.g. <wizard-report>) that
appear in the format example, instead of writing them into the file verbatim.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PostHog notebooks hold raw markdown in a single ph-markdown-notebook node, so
hand the report markdown straight to the API instead of converting it to
ProseMirror. PostHog renders checklists, tables, and links natively.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Inline the single-node content, drop the provisioning-only API-Version and
User-Agent headers (the REST API just needs the bearer token), and remove the
content-shape test — notebook.ts is now one function.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gewenyu99 gewenyu99 changed the title Mirror the wizard setup report into a PostHog notebook and open it feat: Mirror the wizard setup report into a PostHog notebook and open it Jul 11, 2026
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Comment thread src/utils/notebook.ts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we do this with an API call vs using the MCP?

Comment thread src/utils/notebook.ts
content: [
{
type: 'ph-markdown-notebook',
attrs: { nodeId: 'markdown-notebook-v2', markdown },

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to define this twice? Weird, huh

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.

2 participants