Skip to content

feat(ui): MarkdownEditor edits Markdown with comark-ui's editor and uploads files to Blob - #3404

Merged
vite-hub[bot] merged 13 commits into
mainfrom
feat/ui-markdown-editor
Nov 7, 2026
Merged

vite-hub[bot] merged 13 commits into
mainfrom
feat/ui-markdown-editor

Conversation

@onmax

@onmax onmax commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

An app that wants a Markdown editor with image uploads has to put together comark-ui's editor, Nuxt UI's menus, a file picker, and an upload route on its own. Drop does this by hand today, and it shows no progress: uploadFiles() from Blob's client posts with fetch, which can't report how far an upload got.

This adds MarkdownEditor in @vite-hub/ui/markdown-editor (and vite-hub/ui/markdown-editor). Bind Markdown with v-model, or pass editor with a Tiptap editor the app made, such as a Realtime room's. Nuxt UI's bubble toolbar, "/" menu, and drag handle sit on top, and the text takes the comark typeset that Markdown reads with. With upload="/api/uploads", a route that returns blob.handleUpload(), pasted and dropped media upload, and "/" gets an Image item that opens the file picker. Each file shows comark-ui's placeholder with its percentage on your screen only, then goes in with the served URL. upload also takes (file, progress) => Promise<url> for other storage. A store that isn't served fails with an error that names blob.serve.

Blob's uploadFiles() gets onProgress, from 0 to 100 like the multipart uploader's. With it, the files go through XMLHttpRequest, and the answer is read the same way as with fetch.

The entry stays out of the root barrel, so pages that only render Markdown don't load Tiptap. The Tiptap packages are optional peers, so the app's copy is the one Nuxt UI's menus use. Blob's client is bundled in, the way @vite-hub/runtime is.

comark-ui is pinned to the pkg.pr.new build of onmax/comark-ui#359 (head f31c298), which adds the chooseFiles command this uses. It's a devDependency of @vite-hub/ui, which bundles it, so the rest of the workspace stays on 0.9.1. Swap it back to the catalog once comark-ui releases #359.

I checked it in headless Chromium in a scratch Vite app with Nuxt UI, against a stand-in route that answers like blob.handleUpload() with a served URL. "/" showed Image, the picked file showed "Uploading hero.png, 66%" under a 12 KB/s throttle, then landed as ![hero.png](/assets/uploads/…) and loaded. A paste took the same path. Evidence on Drop. The @vite-hub/ui typecheck and its 568 tests pass, and so do Blob's client tests. I haven't run a real Blob store through it, the vite-hub umbrella package test (it needs the full umbrella build, so CI runs it), dark mode, or a host editor from a live Realtime room.

Next, Drop's editor moves onto this component once #359 and this PR are released.

Claude Opus 5.5 in Claude Code.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T02:43:59.741988Z ef567ca New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vite-hub

vite-hub Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Last seen running 2026-11-07T04:18:27.559Z 0s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Verified ef567ca. UI build, focused lint, 54 UI tests and 23 Blob client tests passed; working tree is clean. Codex: P2 minimum-height click area confirmed from code, deferred under the P2-only push rule, and thread resolved. P2 accessible naming remains deferred; prior findings remain fixed. No P0/P1 findings remain. Chromium was unavailable for layout reproduction. No repair commit was needed; waiting for queued current-head checks.

Session

Verified ef567ca. UI build, focused lint, 54 UI tests and 23 Blob client tests passed; working tree is clean. Codex: P2 minimum-height click area confirmed from code, deferred under the P2-only push rule, and thread resolved. P2 accessible naming remains deferred; prior findings remain fixed. No P0/P1 findings remain. Chromium was unavailable for layout reproduction. No repair commit was needed; waiting for queued current-head checks.

Session

Verified ef567ca. UI build, focused lint, 54 UI tests and 23 Blob client tests passed; working tree is clean. Codex: P2 minimum-height click area confirmed from code, deferred under the P2-only push rule, and thread resolved. P2 accessible naming remains deferred; prior findings remain fixed. No P0/P1 findings remain. Chromium was unavailable for layout reproduction. No repair commit was needed; waiting for queued current-head checks.

Session

Verified ef567ca. UI build, focused lint, 54 UI tests and 23 Blob client tests passed; working tree is clean. Codex: P2 minimum-height click area confirmed from code, deferred under the P2-only push rule, and thread resolved. P2 accessible naming remains deferred; prior findings remain fixed. No P0/P1 findings remain. Chromium was unavailable for layout reproduction. No repair commit was needed; waiting for queued current-head checks.

Session

Verified ef567ca. UI build, focused lint, 54 UI tests and 23 Blob client tests passed; working tree is clean. Codex: P2 minimum-height click area confirmed from code, deferred under the P2-only push rule, and thread resolved. P2 accessible naming remains deferred; prior findings remain fixed. No P0/P1 findings remain. Chromium was unavailable for layout reproduction. No repair commit was needed; waiting for queued current-head checks.

Session

Resolved the lockfile merge conflict and pushed ef567ca. Frozen install, dependency refresh, UI build, and focused lint passed. Package-local tests passed: 54 UI and 23 Blob tests. Tiptap and Comark pins are preserved. Codex: P2 accessible naming remains deferred; other supplied findings are fixed. Waiting for hosted checks.

Session

Resolved the lockfile merge conflict and pushed ef567ca. Frozen install, dependency refresh, UI build, and focused lint passed. Package-local tests passed: 54 UI and 23 Blob tests. Tiptap and Comark pins are preserved. Codex: P2 accessible naming remains deferred; other supplied findings are fixed. Waiting for hosted checks.

Session

Resolved the lockfile merge conflict and pushed ef567ca. Frozen install, dependency refresh, UI build, and focused lint passed. Package-local tests passed: 54 UI and 23 Blob tests. Tiptap and Comark pins are preserved. Codex: P2 accessible naming remains deferred; other supplied findings are fixed. Waiting for hosted checks.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7293506fe4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/blob/src/client.ts Resolved
@pkg-pr-new

pkg-pr-new Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vite-hub/agent

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/agent@3404

@vite-hub/auth

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/auth@3404

@vite-hub/blob

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/blob@3404

@vite-hub/browser

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/browser@3404

@vite-hub/channels

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/channels@3404

@vite-hub/cli

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/cli@3404

@vite-hub/cms

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/cms@3404

@vite-hub/codemods

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/codemods@3404

@vite-hub/comments

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/comments@3404

@vite-hub/connections

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/connections@3404

@vite-hub/content

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/content@3404

@vite-hub/database

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/database@3404

@vite-hub/decisions

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/decisions@3404

@vite-hub/docs

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/docs@3404

@vite-hub/email

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/email@3404

@vite-hub/env

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/env@3404

@vite-hub/forge

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/forge@3404

@vite-hub/gateways

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/gateways@3404

@vite-hub/kv

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/kv@3404

@vite-hub/markdown-template

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/markdown-template@3404

@vite-hub/presets

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/presets@3404

@vite-hub/queue

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/queue@3404

@vite-hub/rate-limit

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/rate-limit@3404

@vite-hub/realtime

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/realtime@3404

@vite-hub/runtime

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/runtime@3404

@vite-hub/sandbox

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/sandbox@3404

@vite-hub/schedule

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/schedule@3404

@vite-hub/shell

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/shell@3404

@vite-hub/source

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/source@3404

@vite-hub/ui

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/ui@3404

vite-hub

pnpm add https://pkg.pr.new/vite-hub/vitehub/vite-hub@3404

@vite-hub/web-container

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/web-container@3404

@vite-hub/workflow

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/workflow@3404

@vite-hub/workspace

pnpm add https://pkg.pr.new/vite-hub/vitehub/@vite-hub/workspace@3404

commit: ef567ca

@vite-hub

vite-hub Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Codex finding: confirmed as P2 because sendWithProgress registers an XHR upload listener and the new Blob docs omit the cross-origin OPTIONS/preflight requirement; deferring this documentation-only change under the repair rule against P2-only pushes and retaining the existing opt-in progress behavior.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important

The new public entry exposes a Tiptap peer range below the version supported by its bundled editor implementation.

Reviewed changes — reviewed the new Markdown Editor entry, its Blob upload transport and progress path, package boundaries, documentation, and focused tests.

  • Markdown Editor — adds owned and application-owned Tiptap editor modes with Nuxt UI menus, Comark typesetting, and local upload placeholders.
  • Blob upload progress — adds an XMLHttpRequest path to uploadFiles() when onProgress is supplied while retaining the existing response validation.
  • Package contract — adds focused UI and facade exports, external Tiptap peers, bundled Comark and Blob client code, icons, styles, and package isolation tests.
  • Documentation — documents installation, Blob route setup, custom upload callbacks, props, and import paths.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-5.6-sol | 𝕏

Comment thread packages/ui/package.json Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 244fa5804d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@vite-hub

vite-hub Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Codex editor finding: P1 documented-contract bug, fixed by capturing the initial editor in setup; the owned-editor regression failed before the fix and all six editor tests now pass. Pullfrog peer finding: P1 package-contract bug, fixed with a public @tiptap/vue-3 peer of ^3.31.4 and development runtime 3.31.4, satisfying bundled Comark's ^3.31.0 requirement while preserving Realtime's catalog. The previously deferred P2 CORS documentation gap is also fixed in Blob's upload-progress documentation.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b54e2cb46

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/content/docs/ui/markdown-editor.md Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important

The direct-package installation guide currently imports a package it does not tell readers to install.

Reviewed changes — reviewed the fixes and documentation added since the prior Pullfrog review.

  • Aligned Tiptap support — raised the public @tiptap/vue-3 peer baseline to ^3.31.4 and refreshed the lockfile against the pinned Comark build.
  • Preserved editor ownership — captured the initial owned or external editor at mount and added regression coverage for later prop changes.
  • Expanded documentation — added the live component preview, accessibility and API sections, and documented CORS preflight requirements for progress uploads.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-5.6-sol | 𝕏

Comment thread docs/content/docs/ui/markdown-editor.md Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3dddc97ac2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/ui/styles.css Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes — reviewed the package-contract and typecheck fixes added since the prior Pullfrog review.

  • Corrected direct-package documentation — changed both Markdown Editor examples to import @vite-hub/ui/markdown-editor, matching the package readers are told to install.
  • Repaired server-side Blob typechecks — replaced the DOM XMLHttpRequest type dependency with a local structural request interface while retaining the browser-only progress transport.
  • Covered optional editor peers — classified the Markdown Editor’s eager Nuxt UI and Tiptap runtime and declaration peers, and installed them in isolated consumer fixtures.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes — reviewed the editor presentation and optional-peer probe fixes added since the prior Pullfrog review.

  • Restored editor typesetting — added the vh-typeset scope to the editable document and covered it with a focused component assertion.
  • Added keyboard focus presentation — gave the editor wrapper a visible focus-within outline while keeping ProseMirror’s own outline disabled.
  • Repaired subpath-only peer probing — changed the consumer contract to resolve @tiptap/pm/state instead of the package’s nonexistent root export and added isolated coverage for that case.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes — reviewed the UI package merge resolution added since the prior Pullfrog review.

  • Preserved editor packaging — kept @vite-hub/blob/client bundled and Tiptap external so the Markdown Editor remains self-contained without loading a second Tiptap runtime.
  • Integrated the Vega build fix — retained main’s vega-canvas browser alias and bundling while leaving vega-loader selectable by the consuming host.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a8bc3d2b93

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@vite-hub

vite-hub Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex accessible-name finding: P2, confirmed on a8bc3d2b93fbb01ad2f87312d8c2e86c3669b39e because attrs are applied to the outer wrapper while EditorContent receives only editor; deferred under the rule against P2-only pushes and the current no-edit push window, preserving the existing component API.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef567ca7b0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/ui/styles.css Resolved
@vite-hub

vite-hub Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Codex minimum-height finding: P2, confirmed on ef567ca because min-h-40 applies to the outer frame while EditorContent and its parent keep auto height, so .ProseMirror { min-height: 100% } does not fill that frame; deferred under the rule against P2-only pushes, preserving the existing editor layout.

@vite-hub
vite-hub Bot merged commit 83fa7f6 into main Nov 7, 2026
25 checks passed
This was referenced Nov 7, 2026
This was referenced Nov 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.

1 participant