Repository navigation
feat(ui): MarkdownEditor edits Markdown with comark-ui's editor and uploads files to Blob - #3404
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Latest result Pull request merged. Final answersSession 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. |
There was a problem hiding this comment.
💡 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".
@vite-hub/agent
@vite-hub/auth
@vite-hub/blob
@vite-hub/browser
@vite-hub/channels
@vite-hub/cli
@vite-hub/cms
@vite-hub/codemods
@vite-hub/comments
@vite-hub/connections
@vite-hub/content
@vite-hub/database
@vite-hub/decisions
@vite-hub/docs
@vite-hub/email
@vite-hub/env
@vite-hub/forge
@vite-hub/gateways
@vite-hub/kv
@vite-hub/markdown-template
@vite-hub/presets
@vite-hub/queue
@vite-hub/rate-limit
@vite-hub/realtime
@vite-hub/runtime
@vite-hub/sandbox
@vite-hub/schedule
@vite-hub/shell
@vite-hub/source
@vite-hub/ui
vite-hub
@vite-hub/web-container
@vite-hub/workflow
@vite-hub/workspace
commit: |
|
Codex finding: confirmed as P2 because |
There was a problem hiding this comment.
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()whenonProgressis 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.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
💡 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".
|
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 |
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
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-3peer baseline to^3.31.4and 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.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
✅ 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
XMLHttpRequesttype 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.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
✅ 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-typesetscope to the editable document and covered it with a focused component assertion. - Added keyboard focus presentation — gave the editor wrapper a visible
focus-withinoutline while keeping ProseMirror’s own outline disabled. - Repaired subpath-only peer probing — changed the consumer contract to resolve
@tiptap/pm/stateinstead of the package’s nonexistent root export and added isolated coverage for that case.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
✅ 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/clientbundled 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-canvasbrowser alias and bundling while leavingvega-loaderselectable by the consuming host.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
💡 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".
|
Codex accessible-name finding: P2, confirmed on |
There was a problem hiding this comment.
💡 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".
|
Codex minimum-height finding: P2, confirmed on ef567ca because |

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 withfetch, which can't report how far an upload got.This adds
MarkdownEditorin@vite-hub/ui/markdown-editor(andvite-hub/ui/markdown-editor). Bind Markdown withv-model, or passeditorwith 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 thatMarkdownreads with. Withupload="/api/uploads", a route that returnsblob.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.uploadalso takes(file, progress) => Promise<url>for other storage. A store that isn't served fails with an error that namesblob.serve.Blob's
uploadFiles()getsonProgress, 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 withfetch.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/runtimeis.comark-uiis pinned to the pkg.pr.new build of onmax/comark-ui#359 (headf31c298), which adds thechooseFilescommand 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 asand loaded. A paste took the same path. Evidence on Drop. The@vite-hub/uitypecheck and its 568 tests pass, and so do Blob's client tests. I haven't run a real Blob store through it, thevite-hubumbrella package test (it needs the full umbrella build, so CI runs it), dark mode, or a hosteditorfrom 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.