Skip to content

feat: Drop, rebuilt on Nuxt: review what your agents plan - #11

Merged
onmax merged 24 commits into
mainfrom
feat/nuxt
Oct 7, 2026
Merged

onmax merged 24 commits into
mainfrom
feat/nuxt

Conversation

@onmax

@onmax onmax commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Drop becomes a new product: review what your agents plan. Agents drop docs and small apps, people comment on the exact spot and share the ones worth sharing, and the agent reads the feedback and drops the next version. Same name and repository, rebuilt on Nuxt + Nuxt UI over vite-hub/nuxt.

For agents

  • Auth: every upload needs an API key (x-api-key: drop_… or Authorization: Bearer drop_…), created on /agents and named after the agent. Without one the API answers 401.
  • Uploads: drops start private. POST /api/files returns { id, url, page, visibility, version }, where page is the review page.
  • Next versions: send supersedes (as a form field or in the front matter).
  • Apps: POST /api/apps publishes a static app, with its files keyed by path.
  • File URLs:
    • Files move from /i/<key> to /f/<key>. /i/* answers 301, so old links keep working.
    • Private files answer 404 to anyone who can't see them.
    • Uploads from before accounts existed stay public.
  • HTML docs run their scripts in a sandbox with an opaque origin, so they can't reach Drop's session.
  • MCP at /mcp, on nitro-mcp-toolkit:
    • Tools list_drops, read_drop, list_comments, create_doc, publish_app, plus the address_feedback prompt.
    • Speaks the 2026-07-28 revision and answers initialize from older clients.
  • Skills: the skill is defined once in skills/ and served three ways:
    • over MCP, through the Skills extension (SEP-2640): skills/list, skills/get, skill:// resources;
    • at /.well-known/agent-skills/ (Discovery v0.2.0: index with digests, .tar.gz archive);
    • at the older /.well-known/skills/ for npx skills add.
  • Code images: POST /api/code renders with Shiki as SVG, and a single ViteHub Browser screenshot action makes the PNG. Images expire after five minutes. Ray.so, Cloudflare Playwright, and the image optimizer are gone.

For people

  • Sign-in and roles:
    • GitHub sign-in through Better Auth; swap providers in server/auth.ts.
    • The first sign-in becomes admin. After that Drop is invite-only, with Admin, Editor, and Member roles.
  • Drops: one list for docs and apps, with share switches. The sidebar tree shows apps as folders.
  • Viewer: full screen, with one tabbed side panel (Comments, Source or Files, Details).
  • Review:
    • Comment on selected text, or on a spot in a zoomed image.
    • Share links grant view, comment, or edit access.
    • Markdown edits in a Notion-like editor, and every publish is a new version.
  • Pages:
    • Agents: MCP setup per client and API keys.
    • Members: invite, change roles, remove.
    • Docs: the API, MCP, and self-hosting.
    • Landing: rebuilt around plan review, with a "You own it" section for ViteHub, and a new OG image.

Under the hood

  • ViteHub:
    • Auth (Better Auth with the admin and API key plugins);
    • Database (D1 through Drizzle: drops, drop_files, comments; migrations in server/databases/migrations, applied by pnpm run deploy);
    • Blob (/f/), KV (Nitro cache for rendered Markdown), Rate Limit, Browser, Schedule (hourly code-image cleanup).
  • h3 v2 APIs: defineValidatedHandler with Valibot schemas shared between the forms and the server.
  • Nuxt and VueUse: createUseFetch, useNuxtData, useOverlay, defineShortcuts, and VueUse throughout.
  • Rendering: Markdown renders once through Comark and is cached by blob key.
  • Logs: evlog wide events, one structured line per request with the user, the agent, the MCP tool, and the failure reason. Workers Logs is on.
  • Toolchain:
    • Nuxt 5 nightly (pinned and patched, same as Quiver wiki), Nitro 3 beta, h3 2.0.1, pnpm 11, wrangler 4.148.
    • Fonts are self-hosted with Fontsource.
    • h3-mcp carries a small pnpm patch that logs the error behind JSON-RPC "Internal error".

Review

Five Codex (gpt-6.1-sol) sessions reviewed security, server, MCP, frontend, and build/docs. Separate Codex sessions fixed the confirmed findings:

  • Security
    • Raw HTML and SVG under /f/ (?raw) are served with a CSP sandbox, so they never run on Drop's origin.
    • The first admin is assigned with one conditional update, so two simultaneous first sign-ins can't both become admin.
    • Sign-in redirects reject /\host escapes.
    • Expired code-image URLs return 404 at request time instead of waiting for the hourly cleanup.
  • Data integrity (migration 0001)
    • Sharing and delete apply to a doc's whole version chain.
    • A new version always lands on the latest one; a unique index plus a 409 cover racing publishes.
    • App publishes are atomic: files go under a fresh prefix, then a D1 batch with a version check swaps them in.
    • Comment numbers are unique per drop.
    • Size limits count UTF-8 bytes, including over MCP.
    • Duplicate app paths are rejected.
    • Version publishing is rate limited, guest edit links included.
    • Failed blob deletions are queued and retried.
  • Frontend
    • The editor's Link button uses Drop's prompt modal.
    • Switching theme mid-edit keeps the draft.
    • App file state resets when ?file= is removed.
    • A failed drops load shows an error state instead of an empty workspace.
    • Date groups match between server render and hydration, then follow the reader's timezone.
    • Dialogs clean up after themselves.
    • Fixes for narrow screens and panel-button ARIA, and a keyboard-reachable Source button.
  • Not changed: two findings were false positives.
    • The KV binding has no ID because wrangler 4.148 provisions it on deploy.
    • Skill URIs ending in /SKILL.md match SEP-2640's own examples.

Verified

  • nuxt typecheck and nuxt build pass.
  • Production build under wrangler dev (the deployed-flow e2e):
    • 401 without a key; private 404 and owner 200; sharing; the /i/ → /f/ 301.
    • Markdown render and ?raw; raw HTML served with a CSP sandbox.
    • Expired code images 404; SVG code images.
    • Modern MCP: discover with the skills extension, tools/list, create_doc, skills/list, resources/read.
    • The Discovery v0.2 digest.
  • MCP on the same Worker: both protocol eras, prompts, the Skills extension, and the Discovery v0.2 and v0.1 indexes, with the archive digest matching.
  • Data fixes on the same Worker:
    • app v2 publish, duplicate paths 400;
    • superseding an old id lands on the latest;
    • chain-wide sharing and delete;
    • byte limit 413;
    • six concurrent comments get numbers 1–6.
  • Dev, in Chromium: the editor Link prompt, theme switch mid-edit, the drops list, and the sign-in redirect.
  • Not verified:
    • PNG code images (Browser Run only exists on Cloudflare);
    • Signed-in flows on the deployed preview (I didn't create users there, so the first-admin bootstrap stays yours).

Deploy status

  • Preview (vitehub-drop-preview) is set up and deploys from this branch:

    • D1 vitehub-drop-preview has migrations 0000 and 0001 applied;
    • R2, Browser Run, and the three secrets are in place;
    • GitHub sign-in has created its first admin.
  • Legacy Sandbox Durable Object: f715e44 retires it. On this branch the vitehub-drop check fails because wrangler versions upload can't apply Durable Object migrations; wrangler deploy on main can.

  • Production (vitehub-drop) has no D1 and no secrets yet. After merging, its deploy stops at "required secrets have not been set", so drop.vitehub.dev keeps the previous version until it gets its one-time setup:

    1. wrangler d1 create vitehub-drop, then set CLOUDFLARE_D1_DATABASE_ID as a Workers Builds variable.
    2. A GitHub OAuth app with callback https://drop.vitehub.dev/api/auth/callback/github.
    3. Secrets GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, and BETTER_AUTH_SECRET on vitehub-drop.
    4. pnpm db:migrate:remote once (pnpm run deploy does it too).

    The R2 bucket already exists, and Wrangler creates the KV namespace on the first deploy.

Not in this PR

  • Agent Auth (per-agent identities with approvals). The Agents page marks it "Soon".
  • Image upload and optimization, plus Sandbox. They move to a separate template; the old code is in this branch's history.

🤖 Generated with Claude Code

onmax added 3 commits October 3, 2026 02:36
- Nuxt 5 nightly + Nuxt UI + vite-hub/nuxt replace the Vite + Nitro app; server code ports as-is
- Better Auth: GitHub sign-in, admin roles (admin/editor/member), API keys; first user is admin,
  then invite-only
- D1 tables for drops, app files, and comments; uploads need a key or a session and start private
- Files move from /i/ to /f/; /i/* answers 301 so old links keep working
- Drops, comments, versions, apps, members, and keys APIs; MCP over Streamable HTTP at /mcp
- Dashboard shell: Drops tree (apps are folders), Agents/Members/Docs at the bottom, account menu with theme
- Drops list with share switches; viewer with one tabbed side panel (Comments, Source/Files, Details),
  comments on text and image spots, the Notion-like editor, versions, and share links (view/comment/edit)
- Agents (MCP setup, API keys), Members (invite, roles, ban), and Docs pages
- Landing: rotating headline, dot grid, live drop feed, logo loop, spotlight cards, and a ViteHub self-host section
- HTML drops run scripts in an opaque-origin sandbox; skill, README, and e2e cover keys, /f/, and MCP
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
vitehub-drop 2d3f6d2 Oct 07 2026, 11:47 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
vitehub-drop-preview 2d3f6d2 Oct 07 2026, 11:47 AM

onmax added 21 commits October 6, 2026 19:46
ViteHub's Rate Limit integration writes its Nitro plugin under Vite's root (app/ in Nuxt) but registers it
under the project root, so Workers Builds couldn't resolve it. A local module links the two paths.
- useApi (createUseFetch) forwards the session cookie on SSR; replaces per-call headers
- Layout prefs in cookies (side panel open/tab, panel sizes) so SSR matches the browser; tree state in useState
- Nuxt UI: defineShortcuts, useOverlay-backed confirm/prompt dialogs instead of window.confirm/prompt,
  autoresizing UTextarea in the comment composer
- VueUse: useClipboard (copied state), useFileDialog, useEventListener/onKeyStroke, useBase64, refDebounced,
  useIntervalFn, usePreferredReducedMotion, useResizeObserver, useRafFn, useMounted, breakpoints with ssrWidth
- One SSR-stable clock (useRelativeNow) for relative times
- Drops in the sidebar sit under a guide line so they read as children of Drops
- Point app/.vitehub at .vitehub: ViteHub writes some generated files under Vite's root
- One composable per resource with its actions (useDrops/useDropActions, useDrop, useMembers, useApiKeys),
  like nuxt-ui-templates/chat and nuxt.com; cache patched after success, optimistic only for toggles
- The drop page provides its state (createInjectionState); the viewer splits into useViewerPanel,
  useDropEditor, useAppFiles, useDropFrame
- SSR auth guard via /api/me with a return path; useNotify for consistent toasts
- UForm with valibot schemas shared with the server (shared/schemas.ts); server errors land on fields
- <NuxtTime> (TimeAgo), typed route params, lazy hydration for below-the-fold landing sections
- h3: defineValidatedHandler for every body, getValidatedRouterParams for ids, redirect() for /i/*
- Nitro: /api/stats is a defineCachedHandler on the Worker's KV
…validation

Tried nuxt-nightly 5.0.0-2610061743 (Nitro 260903, h3 2.0.1, Vapor option): production builds, but
local dev breaks. Nitro now runs dev in workerd, where CommonJS deps fail, and on the Node runner
ViteHub's generated middleware imports cloudflare:workers. Stay on the pinned nightly (and its cookie
workaround) until ViteHub supports the new dev runner.
- Code images: Shiki tokens become a ray.so-style SVG; PNG is one stateless vite-hub/browser screenshot.
  No Playwright, no @cloudflare/playwright, no scraping ray.so. Old Ray theme names map to Shiki themes.
- Image optimizer (Queue + Sandbox + sharp) leaves Drop: no containers, no queue, no Workers Paid needed.
- One Markdown renderer: Comark on the server. /api/drops/:id returns its HTML, so the viewer shows exactly
  what /f/ shows (server-rendered Mermaid SVG). Deletes the hand-rolled client renderer and CDN Mermaid.
- One typeset stylesheet (shared/typeset.css via ?raw); callouts styled in both places.
- External libraries for small helpers: entities (escaping), mrmime (content types, kinds),
  pretty-bytes (sizes); drop unused prototype leftovers.
- Comark renders are cached by blob key (blobs are immutable) in the Worker's KV via defineCachedFunction;
  uploads warm the cache. Drop detail: ~470ms -> ~30ms locally once rendered.
- Version history: one query and an in-memory walk instead of up to 40 sequential queries.
- identify() resolves once per request; middleware and route share it.
- Comment numbers come from max(n) instead of loading every comment.
- Agent logos use @iconify-json/simple-icons (already installed) instead of copied SVG strings.
- Drop the unused @better-auth/agent-auth dependency.
… evlog wide events

- MCP: nitro-mcp-toolkit + h3-mcp (both protocol revisions), one file per tool/prompt in server/mcp/,
  Drop API keys via auth.validate, new address_feedback prompt; Docs reads the live catalog (/api/mcp)
- Skills: one source (skills/) served through the MCP Skills extension (SEP-2640: skills/list,
  skills/get, skill:// resources, written as an h3-mcp extension plugin), Agent Skills Discovery v0.2.0
  at /.well-known/agent-skills/ (digests, tar.gz archive via nanotar), and v0.1.0 at /.well-known/skills/
- Observability: evlog (Nitro v3 module), one wide event per request with user, agent, MCP method/tool,
  code-image and drop details; errors go through evlog; Workers Logs + invocation logs enabled
- pnpm patch: h3-mcp logs the error behind a JSON-RPC Internal error
- h3 2.0.1, wrangler 4.148; uploads release an unread body before a 401
…d delete, byte limits, comment numbering, blob cleanup retries
…; e2e covers raw HTML sandbox and expired code images
@onmax onmax changed the title feat: Drop on Nuxt with accounts, private drops, review, and MCP feat: Drop, rebuilt on Nuxt: review what your agents plan Oct 7, 2026
@onmax
onmax merged commit b82ecfc into main Oct 7, 2026
1 of 2 checks passed
@onmax
onmax deleted the feat/nuxt branch October 7, 2026 13:04
vite-hub Bot pushed a commit that referenced this pull request Nov 18, 2026
…'s thread card, relative times, shared copy buttons, a doc header that copies at once, who dropped it, the folder's drops, and comark's side outline (#228)

* chore(deps): run on ViteHub main 69dde88 and comark-ui main af08c87, with the open fixes as patches

ViteHub's main renamed the backend keys, so the D1 database and the Cloudflare and memory Realtime use `driver: "cloudflare"` / `"memory"`, and Vercel Blob is `driver: "vercel"`. The fixes still open upstream ride along as patches built from their heads on the pinned main: vite-hub/vitehub#4785 and #4788 in @vite-hub/ui, #4794 in @vite-hub/comments, onmax/comark-ui#453 in comark-time and comark-properties. ViteHub Content now renders with the same comark-ui as Drop, so one copy carries the patches.

* fix(viewer): one frame around a new comment, ViteHub's sm thread card, a crisp +, and each person once in the toolbar

The new-comment bubble is the box's frame, so the box passes `frame="none"` and the bubble shows the focus: the bordered one takes the accented border, the shadow-ring one a 22% ring (Drop comment #14). The dock's box and thread pass `size="sm"`, which brings the reply field, the 14px rows and the image shape from ViteHub, so the copies of those styles go (Drop comments #2, #7). The + of the pill is an inline SVG snapped to whole pixels while closed (Drop comment #13). The comments toolbar on Drop's own pages leaves out its faces and cursors, since the review dock already shows who's here (Drop comment #11). The frame's pop-out timing comes from ViteHub's `commentLeaveMs`.

* feat: times and copy buttons come from ViteHub, and the doc's Updated row reads relative

`TimeAgo` goes for ViteHub's `RelativeTime`: relative under 3 weeks, then the date, with the full date in a tooltip, short words in the lists. app.vue gives it Drop's one clock, so the words and Drop's countdowns move together (Drop comment #10). The copy buttons are ViteHub's `CopyButton`, whose icons cross-fade both ways, on Drop's 1.4 s (`DropCopyButton`); Drop's `icon-in` animation goes (Drop comments #6, #12).

The Updated row writes the version's full instant in comark-time's markup, and a box that had no date of its own now gets the relative-dates script too. The CSP allows comark-properties' `scripts` as they are, and the markdown cache integrity moves to drop.24.

* fix: load the icon swap with every copy button, keep the Updated row's render stable, and follow ViteHub's renamed drivers in tests

The parts' stylesheet loads only with the viewer, so DropCopyButton brings @vite-hub/ui/icon-swap.css itself. The Updated row's tooltip id comes from the version's time instead of a random one, so a warm render matches a cold one. The blob and rate limit tests use the `cloudflare` and `memory` drivers, and the area test checks ViteHub's grey saved areas (Drop comment #1).

* chore(deps): move to ViteHub main 20ab822, where #4788 and #4794 landed, and comark-ui main a410d81

vite-hub/vitehub#4788 (the 130 ms pop-out and commentLeaveMs) and #4794 (overlay presence: false, one face per person) merged, so their patches go and @vite-hub/comments runs unpatched. The @vite-hub/ui patch now carries #4785 alone, built on 20ab822. comark-properties' patch follows #453's latest head. comark-ui's pin is #456's head, the same tree as its main.

* test(viewer): give the guest lookup composer test 30 s, as its siblings have, since it starts two Vite servers and a browser

* chore(deps): move to comark-ui 5ed5886, where #453, #456 and #457 landed, and drop the comark-time and comark-properties patches

5ed5886 is #458's head, the newest commit pkg.pr.new published; its packages match main 1ef8c09, since pkg.pr.new skips pushes to main.

* fix(viewer): comments reach Comark's zoom, now a modal dialog, and an Escape a popover takes stays in the page

comark-ui#457 opens the zoom with showModal(), which made Drop's comment layer inert: no pin could land on a zoomed screenshot. The layer moves into the dialog while it's open, hides the page's own marks there, and returns on close.

* feat(doc): Copy writes from the doc's frame, Dropped by shows the person and their agent, and the folder opens a list of its drops

The header's Copy is built once and toggles data-copied and data-pending with ViteHub's icon swap, so a press is never lost to a rebuild. Its Markdown loads once per version when the pointer or focus reaches it (doc-intent), and the click writes it in the frame; it says Markdown copied, or Couldn't copy in the frame, and reports a refusal to the client-error log. The shortcut and menus copy the same text, and show on the button too.

Dropped by reads [avatar] Max · [logo] Claude Code, with what it came through, the model and the reasoning level on hover (dropDetail now carries owner). Signed-in readers get the folder's newest drops in a popover (GET /api/drops?folder=&limit=). The save menu and the folder list are native popovers placed with anchor positioning.

* test(nodes): a folder lists its newest few with limit, and a drop's detail says whose it is

* fix(doc): Dropped by's pictures and the folder button keep the facts' row height

* chore(doc): keep the folder row's type private, as knip asks

* chore(deps): RelativeTime's length prop is format, from vite-hub/vitehub#4785 at 4aab7d9c

style would be the native attribute in a template, so style="short" never reached the prop. The patch takes the rename (prop, RelativeTimeFormat) and Drop's lists pass format="short".

* ci: install Playwright's Firefox for the Firefox browser tests

* test(doc): wait for the popovers' toggle event before reading aria-expanded and focus

* fix(ui): textareas grow with field-sizing: content, so the Nuxt UI autoresize patch goes

* feat(doc): the outline is comark-outline's side outline, which follows the section being read and reaches the bottom (Drop comment #5)

* fix(drops): Yesterday and This week start at midnight on a day with a daylight-saving change

* fix(review): review.js writes thread times with Intl.RelativeTimeFormat

* docs(agents): the browser support floor and the native-first rule

* chore(deps): move to ViteHub main ccf6574, where #4785 landed, and drop the @vite-hub/ui patch

* fix: the doc header's folder list follows a moved doc, and Marker ink drawn on a zoom stays visible while the comment is written

* fix: Marker ink kept on a zoom shows only on the screenshot it was drawn on

* fix: kept Marker ink comes back with its own screenshot in the zoom, keyed by the zoomed element

* fix: only signed-in readers see whose doc it is; a public link doesn't name the person who shared it

* fix: Copy prompt uses Drop's copy button, so its check animates like every other copy
vite-hub Bot added a commit that referenced this pull request Nov 21, 2026
* chore(deps): run on ViteHub main 69dde88 and comark-ui main af08c87, with the open fixes as patches

ViteHub's main renamed the backend keys, so the D1 database and the Cloudflare and memory Realtime use `driver: "cloudflare"` / `"memory"`, and Vercel Blob is `driver: "vercel"`. The fixes still open upstream ride along as patches built from their heads on the pinned main: vite-hub/vitehub#4785 and #4788 in @vite-hub/ui, #4794 in @vite-hub/comments, onmax/comark-ui#453 in comark-time and comark-properties. ViteHub Content now renders with the same comark-ui as Drop, so one copy carries the patches.

* fix(viewer): one frame around a new comment, ViteHub's sm thread card, a crisp +, and each person once in the toolbar

The new-comment bubble is the box's frame, so the box passes `frame="none"` and the bubble shows the focus: the bordered one takes the accented border, the shadow-ring one a 22% ring (Drop comment #14). The dock's box and thread pass `size="sm"`, which brings the reply field, the 14px rows and the image shape from ViteHub, so the copies of those styles go (Drop comments #2, #7). The + of the pill is an inline SVG snapped to whole pixels while closed (Drop comment #13). The comments toolbar on Drop's own pages leaves out its faces and cursors, since the review dock already shows who's here (Drop comment #11). The frame's pop-out timing comes from ViteHub's `commentLeaveMs`.

* feat: times and copy buttons come from ViteHub, and the doc's Updated row reads relative

`TimeAgo` goes for ViteHub's `RelativeTime`: relative under 3 weeks, then the date, with the full date in a tooltip, short words in the lists. app.vue gives it Drop's one clock, so the words and Drop's countdowns move together (Drop comment #10). The copy buttons are ViteHub's `CopyButton`, whose icons cross-fade both ways, on Drop's 1.4 s (`DropCopyButton`); Drop's `icon-in` animation goes (Drop comments #6, #12).

The Updated row writes the version's full instant in comark-time's markup, and a box that had no date of its own now gets the relative-dates script too. The CSP allows comark-properties' `scripts` as they are, and the markdown cache integrity moves to drop.24.

* fix: load the icon swap with every copy button, keep the Updated row's render stable, and follow ViteHub's renamed drivers in tests

The parts' stylesheet loads only with the viewer, so DropCopyButton brings @vite-hub/ui/icon-swap.css itself. The Updated row's tooltip id comes from the version's time instead of a random one, so a warm render matches a cold one. The blob and rate limit tests use the `cloudflare` and `memory` drivers, and the area test checks ViteHub's grey saved areas (Drop comment #1).

* chore(deps): move to ViteHub main 20ab822, where #4788 and #4794 landed, and comark-ui main a410d81

vite-hub/vitehub#4788 (the 130 ms pop-out and commentLeaveMs) and #4794 (overlay presence: false, one face per person) merged, so their patches go and @vite-hub/comments runs unpatched. The @vite-hub/ui patch now carries #4785 alone, built on 20ab822. comark-properties' patch follows #453's latest head. comark-ui's pin is #456's head, the same tree as its main.

* test(viewer): give the guest lookup composer test 30 s, as its siblings have, since it starts two Vite servers and a browser

* chore(deps): move to comark-ui 5ed5886, where #453, #456 and #457 landed, and drop the comark-time and comark-properties patches

5ed5886 is #458's head, the newest commit pkg.pr.new published; its packages match main 1ef8c09, since pkg.pr.new skips pushes to main.

* fix(viewer): comments reach Comark's zoom, now a modal dialog, and an Escape a popover takes stays in the page

comark-ui#457 opens the zoom with showModal(), which made Drop's comment layer inert: no pin could land on a zoomed screenshot. The layer moves into the dialog while it's open, hides the page's own marks there, and returns on close.

* feat(doc): Copy writes from the doc's frame, Dropped by shows the person and their agent, and the folder opens a list of its drops

The header's Copy is built once and toggles data-copied and data-pending with ViteHub's icon swap, so a press is never lost to a rebuild. Its Markdown loads once per version when the pointer or focus reaches it (doc-intent), and the click writes it in the frame; it says Markdown copied, or Couldn't copy in the frame, and reports a refusal to the client-error log. The shortcut and menus copy the same text, and show on the button too.

Dropped by reads [avatar] Max · [logo] Claude Code, with what it came through, the model and the reasoning level on hover (dropDetail now carries owner). Signed-in readers get the folder's newest drops in a popover (GET /api/drops?folder=&limit=). The save menu and the folder list are native popovers placed with anchor positioning.

* test(nodes): a folder lists its newest few with limit, and a drop's detail says whose it is

* fix(doc): Dropped by's pictures and the folder button keep the facts' row height

* chore(doc): keep the folder row's type private, as knip asks

* chore(deps): RelativeTime's length prop is format, from vite-hub/vitehub#4785 at 4aab7d9c

style would be the native attribute in a template, so style="short" never reached the prop. The patch takes the rename (prop, RelativeTimeFormat) and Drop's lists pass format="short".

* ci: install Playwright's Firefox for the Firefox browser tests

* test(doc): wait for the popovers' toggle event before reading aria-expanded and focus

* fix(ui): textareas grow with field-sizing: content, so the Nuxt UI autoresize patch goes

* feat(doc): the outline is comark-outline's side outline, which follows the section being read and reaches the bottom (Drop comment #5)

* fix(drops): Yesterday and This week start at midnight on a day with a daylight-saving change

* fix(review): review.js writes thread times with Intl.RelativeTimeFormat

* docs(agents): the browser support floor and the native-first rule

* chore(deps): move to ViteHub main ccf6574, where #4785 landed, and drop the @vite-hub/ui patch

* fix: the doc header's folder list follows a moved doc, and Marker ink drawn on a zoom stays visible while the comment is written

* fix: Marker ink kept on a zoom shows only on the screenshot it was drawn on

* fix: kept Marker ink comes back with its own screenshot in the zoom, keyed by the zoomed element

* fix: swap the copy icons without @vite-hub/ui/icon-swap.css

vite-hub/vitehub#4917 removes icon-swap.css. DropCopyButton keeps vite-hub/ui's
CopyButton, which swaps its icon with SwapIcon, and the doc header frame draws its
own cross-fade. Pins every @vite-hub package to that branch's preview.

* Fix formatting for the copy icon swap

* Load the real copy icon stylesheet in viewer tests

---------

Co-authored-by: vite-hub[bot] <320448255+vite-hub[bot]@users.noreply.github.com>
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