Repository navigation
feat(editor): chooseFiles opens the file picker for a "/" Image item, and the upload placeholder ships its styles - #359
Conversation
… and the upload placeholder ships its styles
Codex Review SummaryThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Latest result Pull request merged. Final answersSession Pull request merged. Session Pushed f31c298 fixing Pullfrog’s P1 WebKit picker retention and P1 CSS cascade contract findings; resolved both threads. Package-local upload tests passed all 10 cases; focused vp lint and tsrs passed. CSS parsing confirmed all nine rules are layered. Lifecycle tests failed before the fix and passed afterward; native Safari was unavailable. Awaiting new checks and reviews. Session Pushed f31c298 fixing Pullfrog’s P1 WebKit picker retention and P1 CSS cascade contract findings; resolved both threads. Package-local upload tests passed all 10 cases; focused vp lint and tsrs passed. CSS parsing confirmed all nine rules are layered. Lifecycle tests failed before the fix and passed afterward; native Safari was unavailable. Awaiting new checks and reviews. Session Pushed f31c298 fixing Pullfrog’s P1 WebKit picker retention and P1 CSS cascade contract findings; resolved both threads. Package-local upload tests passed all 10 cases; focused vp lint and tsrs passed. CSS parsing confirmed all nine rules are layered. Lifecycle tests failed before the fix and passed afterward; native Safari was unavailable. Awaiting new checks and reviews. Session Pushed f31c298 fixing Pullfrog’s P1 WebKit picker retention and P1 CSS cascade contract findings; resolved both threads. Package-local upload tests passed all 10 cases; focused vp lint and tsrs passed. CSS parsing confirmed all nine rules are layered. Lifecycle tests failed before the fix and passed afterward; native Safari was unavailable. Awaiting new checks and reviews. Session Pushed f31c298 fixing Pullfrog’s P1 WebKit picker retention and P1 CSS cascade contract findings; resolved both threads. Package-local upload tests passed all 10 cases; focused vp lint and tsrs passed. CSS parsing confirmed all nine rules are layered. Lifecycle tests failed before the fix and passed afterward; native Safari was unavailable. Awaiting new checks and reviews. Session Pushed f31c298 fixing Pullfrog’s P1 WebKit picker retention and P1 CSS cascade contract findings; resolved both threads. Package-local upload tests passed all 10 cases; focused vp lint and tsrs passed. CSS parsing confirmed all nine rules are layered. Lifecycle tests failed before the fix and passed afterward; native Safari was unavailable. Awaiting new checks and reviews. Session Pushed f31c298 fixing Pullfrog’s P1 WebKit picker retention and P1 CSS cascade contract findings; resolved both threads. Package-local upload tests passed all 10 cases; focused vp lint and tsrs passed. CSS parsing confirmed all nine rules are layered. Lifecycle tests failed before the fix and passed afterward; native Safari was unavailable. Awaiting new checks and reviews. |
There was a problem hiding this comment.
Important
The picker can silently fail on Safari/WebKit, and the injected CSS bypasses the repository's documented cascade layer contract.
Reviewed changes in the initial review of the file-picker command and upload-placeholder styling.
- Picker command — adds ProseMirror and Tiptap APIs that select multiple media files and reuse the existing upload pipeline at the current cursor.
- Placeholder styles — moves upload preview, label, progress, theming, and reduced-motion rules from the playground into runtime-injected exported CSS.
- Host examples — documents the slash-menu chain and adds an Insert image control to the editor playground.
- Coverage — adds direct tests for picker defaults, insertion, and the disabled-without-upload path.
gpt-5.6-sol | 𝕏
comark-annotate
comark-badge
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review, covering the follow-up fixes for the file-picker lifecycle and upload-placeholder cascade behavior.
- Retained picker input — attached the temporary file input off-screen until
changeorcancel, then removed it, addressing Safari/WebKit event reliability. - Layered placeholder styles — wrapped the upload theme and component rules in
@layer comark, restoring the documented host override contract. - Lifecycle coverage — updated the picker harness to require an attached input and added cancellation cleanup coverage without starting an upload.
gpt-5.6-sol | 𝕏
…ploads files to Blob (#3404) * feat(blob): uploadFiles reports upload progress with onProgress * feat(ui): MarkdownEditor edits Markdown with comark-ui's editor and uploads files to Blob * chore(ui): pin comark-ui to the latest build of onmax/comark-ui#359 * fix(ui): preserve editor selection and repair documentation contracts * fix(ui): repair editor package contracts and Blob typechecks * fix(ui): repair optional peer probe and editor presentation --------- Co-authored-by: vite-hub[bot] <320448255+vite-hub[bot]@users.noreply.github.com>
* chore(deps): update Comark to 0.9 and comark-content to 0.5.1 Move comark, @comark/html and @comark/vue to 0.9.0, comark-content to 0.5.1 and comark-ui to 0.10.0 together, since comark-ui 0.10 needs comark 0.9 as a peer. comark-ui 0.10 includes onmax/comark-ui#359, so @vite-hub/ui drops its pkg.pr.new pin and uses the catalog again. comark-chat stays at 0.7.1. Its 0.10.0 stylesheet has `@supports (interpolate-size:allow-keywords) and selector(::details-content)`, which autoprefixer 10.6 cannot parse, so Nuxt builds that import @vite-hub/ui/styles.css fail. Its Vue renderer is the same in both versions and only imports `Markdown` from @comark/vue. Comark 0.9 only registers linkify as a default plugin and turns fuzzy links off. The Markdown component parses with registerDefaultPlugins false, so it registers linkify() itself to keep linking URLs. The GitHub mention parser registers linkify with fuzzyLink and urlAuth, the old behavior, because GitHub autolinks www.example.com. The removed `html` parser option goes away from the Markdown component and its test. * chore(deps): update KaTeX to 0.19.1 for Comark 0.9 comark 0.9 declares `katex ^0.19.1` as a peer. With KaTeX 0.18 in @vite-hub/agent, a consumer install with --strict-peer-dependencies fails with ERR_PNPM_PEER_DEP_ISSUES, which published-chat-adapter-types.test.ts caught in CI. --------- Co-authored-by: vite-hub[bot] <320448255+vite-hub[bot]@users.noreply.github.com>

A host that adds
Uploadgets an unstyled placeholder: the preview renders at full size, so it looks like the finished image, and "Uploading shot.png, 40%" sits under it as plain text. Only the editor playground styled.cue-upload. And a "/" menu's Image item had no way in: paste and drop upload, but nothing opens the file picker.This adds a
chooseFilescommand (andchooseFiles(view, options)for ProseMirror hosts). It opens the file picker and uploads the picked files at the cursor, through the sameupload(file, progress)callback and placeholders as a paste. A "/" item runseditor.chain().focus().deleteRange(range).chooseFiles().run().picksets the picker'saccept, media by default. Undercan()it reports whether it would run and opens nothing. The placeholder now adds its own styles to the page with the first one (addStyles, exported asuploadCss), on the--comark-*tokens: a dimmed preview capped at 15rem, the label on it, and a 2px progress bar in--comark-primary. The playground drops its copy of those styles and gets an Insert image button.I checked both paths in headless Chromium on the playground: a paste and the Insert image picker each showed the placeholder with its percentage, then wrote
at the cursor. Before/after on Drop.vp test run packages/ui(281 passed),pnpm typecheck,vp lint packages/ui, the comark-ui doctor andlint:docspass. I haven't checked dark mode or a video file.This is level 2 of upload feedback for Drop.
@vite-hub/uigets aMarkdownEditornext that puts this behind its "/" menu and sends the files to Blob.